} else {
init(theDesktop);
}
+ // mkr : IPAL11362
+ connect(this, SIGNAL(EventToSync()), this, SLOT(onObjectCreatedDeleted()));
}
void SUPERVGUI_Main::init(SUIT_Desktop* theDesktop) {
void SUPERVGUI_Main::execute( char * theNodeName, SUPERV::GraphState theNodeState ) {
if (myCurrentView == CANVAS || myCurrentView == CONTROLFLOW) {
SUPERVGUI_CanvasNode* aNode = (SUPERVGUI_CanvasNode*) myCanvas->child(theNodeName, "SUPERVGUI_CanvasNode");
- if ( aNode )
+ if ( aNode ) {
aNode->sync();
+ emit EventToSync(); // mkr : IPAL11362
+ }
}
else if (myCurrentView == CANVASTABLE) {
SUPERVGUI_CanvasCellNode* aNode = (SUPERVGUI_CanvasCellNode*) myArray->child(theNodeName, "SUPERVGUI_CanvasCellNode");
- if (aNode)
+ if (aNode) {
aNode->sync();
+ emit EventToSync(); // mkr : IPAL11362
+ }
}
// asv : 26.01.05 : Bug PAL7164 : puting out-value to study if the "put_to_Study" flag is set on a
}
}
-// mkr : IPAL11362
-/**
- * Update current values on show event
- */
-void SUPERVGUI_Main::showEvent( QShowEvent* theEvent ) {
- sync();
- QWidget::showEvent( theEvent );
-}
-
/**
* Editing() is to be called by any operation in GUI before modification of a datamodel
* (add/remove ports or nodes, etc.). It is used to resolve inconsistancies between 2 data models
signals:
void KillMyThread(bool theValue);
+ void EventToSync(); // mkr : IPAL11362
public slots:
void execute(char * theNodeNode, SUPERV::GraphState theNodeState);
void chooseData(QListViewItem* item);
void checkExecution();
- protected:
- virtual void showEvent( QShowEvent* theEvent ); // mkr : IPAL11362
-
private:
void init(SUIT_Desktop* parent);
void syncNotification();