//=====================================================================
// Compute node
//=====================================================================
-SUPERVGUI_CanvasComputeNode::SUPERVGUI_CanvasComputeNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
- SUPERVGUI_CanvasNode(theParent, theMain, theNode)
+SUPERVGUI_CanvasComputeNode::SUPERVGUI_CanvasComputeNode( SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
+ SUPERVGUI_CanvasNode( mgr, theParent, theMain, theNode)
{
Trace("SUPERVGUI_CanvasComputeNode::SUPERVGUI_CanvasComputeNode");
}
//=====================================================================
// Start control node
//=====================================================================
-SUPERVGUI_CanvasStartNode::SUPERVGUI_CanvasStartNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
- SUPERVGUI_CanvasNode(theParent, theMain, theNode),
+SUPERVGUI_CanvasStartNode::SUPERVGUI_CanvasStartNode(SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
+ SUPERVGUI_CanvasNode( mgr, theParent, theMain, theNode),
myCoupled(0)
{
Trace("SUPERVGUI_CanvasStartNode::SUPERVGUI_CanvasStartNode");
SUPERVGUI_CanvasNodePrs* SUPERVGUI_CanvasStartNode::createPrs() const
{
- return new SUPERVGUI_CanvasStartNodePrs(getMain()->getCanvas(),
- (SUPERVGUI_CanvasStartNode*)this);
+ return new SUPERVGUI_CanvasStartNodePrs( resMgr(), getMain()->getCanvas(),
+ (SUPERVGUI_CanvasStartNode*)this);
}
bool SUPERVGUI_CanvasStartNode::setNodeName(QString aName)
}
}
-void SUPERVGUI_CanvasStartNode::addInputPort()
+// mkr : IPAL9815 : commented the following code
+/*void SUPERVGUI_CanvasStartNode::addInputPort()
{
SUPERVGUI_CanvasNode::addInputPort();
if (getEngine()->IsLoop()) merge();
{
SUPERVGUI_CanvasNode::addOutputPort();
if (myCoupled) myCoupled->merge();
-}
+}*/
void SUPERVGUI_CanvasStartNode::pastePort()
{
//=====================================================================
// End control node
//=====================================================================
-SUPERVGUI_CanvasEndNode::SUPERVGUI_CanvasEndNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode,
- SUPERVGUI_CanvasStartNode* theStart):
- SUPERVGUI_CanvasNode(theParent, theMain, theNode),
+SUPERVGUI_CanvasEndNode::SUPERVGUI_CanvasEndNode(SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain,
+ SUPERV_CNode theNode, SUPERVGUI_CanvasStartNode* theStart):
+ SUPERVGUI_CanvasNode(mgr, theParent, theMain, theNode),
myCoupled(theStart)
{
Trace("SUPERVGUI_CanvasEndNode::SUPERVGUI_CanvasEndNode");
SUPERVGUI_CanvasNodePrs* SUPERVGUI_CanvasEndNode::createPrs() const
{
- return new SUPERVGUI_CanvasEndNodePrs(getMain()->getCanvas(),
- (SUPERVGUI_CanvasEndNode*)this);
+ return new SUPERVGUI_CanvasEndNodePrs( resMgr(), getMain()->getCanvas(),
+ (SUPERVGUI_CanvasEndNode*)this);
}
QPopupMenu* SUPERVGUI_CanvasEndNode::getPopupMenu(QWidget* theParent)
return popup;
}
-void SUPERVGUI_CanvasEndNode::addInputPort()
+// mkr : IPAL9815 : commented the following code
+/*void SUPERVGUI_CanvasEndNode::addInputPort()
{
SUPERVGUI_CanvasNode::addInputPort();
if (getEngine()->IsEndSwitch()) merge();
-}
+}*/
//=====================================================================
// Goto control node
//=====================================================================
-SUPERVGUI_CanvasGotoNode::SUPERVGUI_CanvasGotoNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
- SUPERVGUI_CanvasNode(theParent, theMain, theNode)
+SUPERVGUI_CanvasGotoNode::SUPERVGUI_CanvasGotoNode(SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
+ SUPERVGUI_CanvasNode(mgr, theParent, theMain, theNode)
{
Trace("SUPERVGUI_CanvasGotoNode::SUPERVGUI_CanvasGotoNode");
}
SUPERVGUI_CanvasNodePrs* SUPERVGUI_CanvasGotoNode::createPrs() const
{
- return new SUPERVGUI_CanvasGotoNodePrs(getMain()->getCanvas(),
- (SUPERVGUI_CanvasGotoNode*)this);
+ return new SUPERVGUI_CanvasGotoNodePrs( resMgr(), getMain()->getCanvas(),
+ (SUPERVGUI_CanvasGotoNode*)this);
}
QPopupMenu* SUPERVGUI_CanvasGotoNode::getPopupMenu(QWidget* theParent)
//=====================================================================
// Macro node
//=====================================================================
-SUPERVGUI_CanvasMacroNode::SUPERVGUI_CanvasMacroNode(QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
- SUPERVGUI_CanvasComputeNode(theParent, theMain, theNode)
+SUPERVGUI_CanvasMacroNode::SUPERVGUI_CanvasMacroNode(SUIT_ResourceMgr* mgr, QObject* theParent, SUPERVGUI_Main* theMain, SUPERV_CNode theNode):
+ SUPERVGUI_CanvasComputeNode(mgr, theParent, theMain, theNode)
{
Trace("SUPERVGUI_CanvasMacroNode::SUPERVGUI_CanvasMacroNode");
}
SUPERVGUI_CanvasNodePrs* SUPERVGUI_CanvasMacroNode::createPrs() const
{
- return new SUPERVGUI_CanvasMacroNodePrs(getMain()->getCanvas(),
- (SUPERVGUI_CanvasMacroNode*)this);
+ return new SUPERVGUI_CanvasMacroNodePrs( resMgr(), getMain()->getCanvas(),
+ (SUPERVGUI_CanvasMacroNode*)this);
}
QPopupMenu* SUPERVGUI_CanvasMacroNode::getPopupMenu(QWidget* theParent)
//=====================================================================
// Cell node: node for table view
//=====================================================================
-SUPERVGUI_CanvasCellNode::SUPERVGUI_CanvasCellNode(QObject* theParent,
+SUPERVGUI_CanvasCellNode::SUPERVGUI_CanvasCellNode(SUIT_ResourceMgr* mgr, QObject* theParent,
SUPERVGUI_Main* theMain,
SUPERV_CNode theNode):
- SUPERVGUI_CanvasNode(theParent, theMain, theNode, true)
+ SUPERVGUI_CanvasNode(mgr, theParent, theMain, theNode, true)
{
Trace("SUPERVGUI_CanvasCellNode::SUPERVGUI_CanvasCellNode");
SUPERVGUI_CanvasNodePrs* SUPERVGUI_CanvasCellNode::createPrs() const
{
SUPERVGUI_CanvasNodePrs* aPrs =
- new SUPERVGUI_CanvasCellNodePrs(getMain()->getCanvasArray(),
- (SUPERVGUI_CanvasCellNode*)this);
+ new SUPERVGUI_CanvasCellNodePrs( resMgr(), getMain()->getCanvasArray(),
+ (SUPERVGUI_CanvasCellNode*)this);
return aPrs;
}
-SUPERVGUI_CanvasCellEndNode::SUPERVGUI_CanvasCellEndNode( QObject* theParent,
+SUPERVGUI_CanvasCellEndNode::SUPERVGUI_CanvasCellEndNode( SUIT_ResourceMgr* mgr, QObject* theParent,
SUPERVGUI_Main* theMain,
SUPERV_CNode theNode,
SUPERVGUI_CanvasCellNode* theStart):
- SUPERVGUI_CanvasCellNode(theParent, theMain, theNode)
+ SUPERVGUI_CanvasCellNode(mgr, theParent, theMain, theNode)
{
//set start cell for end cell as pair
myPairCell = theStart;