myStackWidget = new QWidgetStack(aPythonPane);
// other pane
- myScriptPane = new SUPERVGUI_PythonEditPane( myStackWidget, true );
+ myScriptPane = new SUPERVGUI_PythonEditPane( myStackWidget, true, myX, myY );
myOtherId = myStackWidget->addWidget(myScriptPane);
// loop pane
QTabWidget* aLoopTabPane = new QTabWidget(myStackWidget);
- myInitPane = new SUPERVGUI_PythonEditPane( myStackWidget, true );
+ myInitPane = new SUPERVGUI_PythonEditPane( myStackWidget, true, myX, myY );
aLoopTabPane->addTab(myInitPane, "Init");
- myMorePane = new SUPERVGUI_PythonEditPane( myStackWidget, true );
+ myMorePane = new SUPERVGUI_PythonEditPane( myStackWidget, true, myX, myY );
aLoopTabPane->addTab(myMorePane, "More");
- myNextPane = new SUPERVGUI_PythonEditPane( myStackWidget, true );
+ myNextPane = new SUPERVGUI_PythonEditPane( myStackWidget, true, myX, myY );
aLoopTabPane->addTab(myNextPane, "Next");
myLoopId = myStackWidget->addWidget(aLoopTabPane);
//*****************************************************
// Pane for Python script editing
//*****************************************************
-SUPERVGUI_PythonEditPane::SUPERVGUI_PythonEditPane( QWidget* theParent, const bool isNodeCreation )
+SUPERVGUI_PythonEditPane::SUPERVGUI_PythonEditPane( QWidget* theParent, const bool isNodeCreation, int& theX, int& theY )
: myIsWithLibrary( isNodeCreation ),
- QFrame( theParent )
+ QFrame( theParent ),
+ myX( theX ), myY( theY )
{
QGridLayout* aEditLayout = new QGridLayout( this, 2, 8, 0, 6 );
* This slot opens a dialog box which then "lives" by itself..
*/
void SUPERVGUI_PythonEditPane::library() {
- SUPERVGUI_LibDlg* aDlg = new SUPERVGUI_LibDlg( this );
+ SUPERVGUI_LibDlg* aDlg = new SUPERVGUI_LibDlg( this, myX, myY );
aDlg->exec();
}
setCaption(tr("TIT_FUNC_PYTHON"));
resize( 500, 250 );
QVBoxLayout* aMainLayout = new QVBoxLayout(this, 7, 4);
+ int a,b; // dummies for PythonEditPane, not used, since library = false and myX, myY are not used in PythonEditPane
if (isLoop) {
QTabWidget* aLoopTabPane = new QTabWidget(this);
- myInitPane = new SUPERVGUI_PythonEditPane( this, false ); // library == false, since no creation of a node is needed here
+ myInitPane = new SUPERVGUI_PythonEditPane( this, false, a, b ); // library == false, since no creation of a node is needed here
aLoopTabPane->addTab(myInitPane, "Init");
- myMorePane = new SUPERVGUI_PythonEditPane( this, false );
+ myMorePane = new SUPERVGUI_PythonEditPane( this, false, a, b );
aLoopTabPane->addTab(myMorePane, "More");
- myNextPane = new SUPERVGUI_PythonEditPane( this, false );
+ myNextPane = new SUPERVGUI_PythonEditPane( this, false, a, b );
aLoopTabPane->addTab(myNextPane, "Next");
aMainLayout->addWidget(aLoopTabPane);
} else {
- myEditPane = new SUPERVGUI_PythonEditPane( this, false );
+ myEditPane = new SUPERVGUI_PythonEditPane( this, false, a, b );
aMainLayout->addWidget(myEditPane);
}
QGroupBox* aBtnBox = new QGroupBox( this );