using namespace std;
+#include "SUPERVGUI.h"
#include "SUPERVGUI_ArrayView.h"
#include "SUPERVGUI_Main.h"
#include "SUPERVGUI_CanvasCellNodePrs.h"
// change background color for canvas view
getMain()->getCanvasView()->canvas()->setBackgroundColor(aColor);
getMain()->getCanvasView()->setPaletteBackgroundColor(aColor.light(120));
+
+ // mkr : IPAL10825 -->
+ SUPERVGUI* aSupMod = SUPERVGUI::Supervision();
+ if ( !aSupMod ) {
+ MESSAGE("NULL Supervision module!");
+ return;
+ }
+ aSupMod->setIVFBackgroundColor(aColor);
+ // <--
}
}
// Module : SUPERV
using namespace std;
+#include "SUPERVGUI.h"
#include "SUPERVGUI_Def.h"
#include "SUPERVGUI_Main.h"
#include "SUPERVGUI_CanvasNode.h"
resize(1050, 750);
setDoubleBuffering(true);
- QColor aColor = mgr->colorValue( "SUPERVGraph", "Background", DEF_MAIN_COLOR );
+ // mkr : IPAL10825 -->
+ SUPERVGUI* aSupMod = SUPERVGUI::Supervision();
+ if ( !aSupMod ) {
+ MESSAGE("NULL Supervision module!");
+ return;
+ }
+ QColor aColor = aSupMod->getIVFBackgroundColor();
+ if ( !aColor.isValid() )
+ aColor = mgr->colorValue( "SUPERVGraph", "Background", DEF_MAIN_COLOR );
+ // <--
+
//aColor = QColor(SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorRed" ),
// SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorGreen" ),
// SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorBlue" ) );
// Module : SUPERV
using namespace std;
+#include "SUPERVGUI.h"
#include "SUPERVGUI_CanvasArray.h"
#include "SUPERVGUI_Main.h"
#include "SUPERVGUI_BrowseNodeDlg.h"
resize(1000, 725);
setDoubleBuffering(true);
- QColor aColor = mgr->colorValue( "SUPERVGraph", "Background", DEF_MAIN_COLOR );
+ // mkr : IPAL10825 -->
+ SUPERVGUI* aSupMod = SUPERVGUI::Supervision();
+ if ( !aSupMod ) {
+ MESSAGE("NULL Supervision module!");
+ return;
+ }
+ QColor aColor = aSupMod->getIVFBackgroundColor();
+ if ( !aColor.isValid() )
+ aColor = mgr->colorValue( "SUPERVGraph", "Background", DEF_MAIN_COLOR );
+ // <--
+
//aColor = QColor(SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorRed" ),
// SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorGreen" ),
// SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorBlue" ) );
default:
setStatus("No Status");
- setStatusColor( resMgr()->colorValue( "SUPERVGraph", "Background", DEF_MAIN_BACK ) );
+ setStatusColor( resMgr()->colorValue( "SUPERVGraph", "NodeBody", DEF_MAIN_BACK ) ); // mkr : IPAL10829
break;
}
aPort = (SUPERVGUI_CanvasPort*) obj;
SUPERV_Port aPortEng = aPort->getEngine();
- if ( CORBA::is_nil( aPortEng ) )
- printf ( "---\n port engine IS NIL ---\n\n" );
+ // if ( CORBA::is_nil( aPortEng ) )
+ // printf ( "---\n port engine IS NIL ---\n\n" );
- if (!aPort->getEngine()->IsGate()) {
+ if ( !CORBA::is_nil( aPortEng ) && !aPortEng->IsGate() ) {
aPort->getPrs()->draw(thePainter);
}
}
if (aPort->IsParam() || aPort->IsInLine() || myPort->isStream())
aText = aText + "=" + aPort->ToString();
}
- printf( "--- return text of port : %s ---\n", aText.latin1() );
+ // printf( "--- return text of port : %s ---\n", aText.latin1() );
return aText;
}
using namespace std;
+#include "SUPERVGUI.h"
#include "SUPERVGUI_CanvasView.h"
#include "SUPERVGUI_Main.h"
#include "SUPERVGUI_CanvasNode.h"
// change background color for array view
getMain()->getArrayView()->canvas()->setBackgroundColor(aColor);
getMain()->getArrayView()->setPaletteBackgroundColor(aColor.light(120));
+
+ // mkr : IPAL10825 -->
+ SUPERVGUI* aSupMod = SUPERVGUI::Supervision();
+ if ( !aSupMod ) {
+ MESSAGE("NULL Supervision module!");
+ return;
+ }
+ aSupMod->setIVFBackgroundColor(aColor);
+ // <--
}
}