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
+ myIsLoop = isLoop; // mkr : PAL12236
if (isLoop) {
QTabWidget* aLoopTabPane = new QTabWidget(this);
myInitPane = new SUPERVGUI_PythonEditPane( this, false, a, b ); // library == false, since no creation of a node is needed here
// will call with null python function name
void SUPERVGUI_EditPythonDlg::clickOnOk()
{
- if ( getFuncName().isEmpty() )
+ // mkr : PAL12236
+ bool hasEmptyName = myIsLoop ?
+ ( getInitFuncName().isEmpty() || getMoreFuncName().isEmpty() || getNextFuncName().isEmpty() ) :
+ getFuncName().isEmpty();
+
+ if ( hasEmptyName )
QMessageBox::warning( SUIT_Session::session()->activeApplication()->desktop(), tr( "ERROR" ), tr( "MSG_INCORRECT_INDENT" ) );
else
accept();
aMain->addMacroNode( theNode );
else if ( theNode->IsLoop() || theNode->IsSwitch() )
aMain->addControlNode( theNode, SUPERV::CNode::_narrow( theEndNode ), true );
- else
+ else
aMain->addComputeNode( theNode );
aSupMod->nullifyInitialVF();
}
SUPERV_Strings getFunction();
void setFunction(SUPERV_Strings theStr);
-
+
public slots:
// load all functions from an XML file into internal structures
void loadFile();
void clickOnOk();
private:
+ bool myIsLoop; // mkr : PAL12236
+
SUPERVGUI_PythonEditPane* myEditPane;
SUPERVGUI_PythonEditPane* myInitPane;
SUPERVGUI_PythonEditPane* myMorePane;