#include "SUPERVGUI_Canvas.h"
#include "SUPERVGUI_CanvasCellNodePrs.h"
+#include "SUIT_ResourceMgr.h"
+
//#define CHECKTIME
#ifdef CHECKTIME
//=====================================================================
// Node presentation
//=====================================================================
-SUPERVGUI_CanvasNodePrs::SUPERVGUI_CanvasNodePrs(QCanvas* theCanvas,
- SUPERVGUI_CanvasNode* theNode,
- bool theCellPrs):
+SUPERVGUI_CanvasNodePrs::SUPERVGUI_CanvasNodePrs( SUIT_ResourceMgr* mgr, QCanvas* theCanvas,
+ SUPERVGUI_CanvasNode* theNode,
+ bool theCellPrs):
QCanvasPolygonalItem(theCanvas),
- myNode(theNode)
+ myNode(theNode),
+ myMgr( mgr )
{
Trace("SUPERVGUI_CanvasNodePrs::SUPERVGUI_CanvasNodePrs");
myWidth = LABEL_WIDTH;
myPortVisible = true;
myCellPrs = theCellPrs;
- myColor = MAIN_BACK;
+ myColor = mgr->colorValue( "SUPERVGraph", "NodeBody", DEF_MAIN_BACK );
if (!myCellPrs) {
// create in/out connection points prs
void SUPERVGUI_CanvasNodePrs::drawTitle(QPainter& thePainter)
{
QBrush saved = thePainter.brush();
- QBrush br(MAIN_TITLE);
+ QBrush br( myMgr->colorValue( "SUPERVGraph", "Title", DEF_MAIN_TITLE ) );
thePainter.setBrush(br);
drawTitleShape(thePainter);
thePainter.setBrush(saved);
default:
myStatus = "No Status";
- myStatusColor = MAIN_BACK;
+ myStatusColor = myMgr->colorValue( "SUPERVGraph", "NodeBody", DEF_MAIN_BACK );
break;
}