connect( myTypeCombo, SIGNAL(activated(const QString&)), this, SLOT(typeChanged(const QString&)));
// mkr: PAL12448
- connect( myInList,SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)), this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
- connect( myOutList,SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)), this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
-
+ connect( myInList, SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)),
+ this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
+ connect( myOutList, SIGNAL(rightButtonClicked(QListBoxItem*, const QPoint&)),
+ this, SLOT(itemDeselect(QListBoxItem*, const QPoint&)));
+
myNode->getMain()->lockedGraph( true );
// asv : 11.01.05 : if a node is a loop node, then only INPUT ports can be added/removed
anUpOutputBtn->setEnabled( false );
aDownOutputBtn->setEnabled( false );
}
-
+
+ // NPAL15537: initialization moved here from showEvent()
+ init( myNode );
}
/**
if ( aNodeName.compare(aLink->InPort()->Node()->Name()) == 0
||
aNodeName.compare(aLink->OutPort()->Node()->Name()) == 0 ) {
- QPair<QString, QString> InPair(QString(aLink->InPort()->Node()->Name()), QString(aLink->InPort()->Name()));
- QPair<QString, QString> OutPair(QString(aLink->OutPort()->Node()->Name()), QString(aLink->OutPort()->Name()));
+ QPair<QString, QString> InPair (QString(aLink->InPort()->Node()->Name()),
+ QString(aLink->InPort()->Name()));
+ QPair<QString, QString> OutPair(QString(aLink->OutPort()->Node()->Name()),
+ QString(aLink->OutPort()->Name()));
InPortsL.append(InPair);
OutPortsL.append(OutPair);
}
if ( aCoupledNodeName.compare(aLink->InPort()->Node()->Name()) == 0
||
aCoupledNodeName.compare(aLink->OutPort()->Node()->Name()) == 0 ) {
- QPair<QString, QString> InPair(QString(aLink->InPort()->Node()->Name()), QString(aLink->InPort()->Name()));
- QPair<QString, QString> OutPair(QString(aLink->OutPort()->Node()->Name()), QString(aLink->OutPort()->Name()));
+ QPair<QString, QString> InPair (QString(aLink->InPort()->Node()->Name()),
+ QString(aLink->InPort()->Name()));
+ QPair<QString, QString> OutPair(QString(aLink->OutPort()->Node()->Name()),
+ QString(aLink->OutPort()->Name()));
InPortsL.append(InPair);
OutPortsL.append(OutPair);
}
close();
}
-/**
- * Update current values on show event
- */
-void SUPERVGUI_ManagePortsDlg::showEvent( QShowEvent* theEvent ) {
- init( myNode );
- QDialog::showEvent( theEvent );
-}
-
/**
* Initialize In/Out tables with values from the given node
*/