Salome HOME
SMH: 3.0.0 preparation = merged version (POLYWORK + RTVDEBUG01) + adopation for new GUI
[modules/superv.git] / src / SUPERVGUI / SUPERVGUI_CanvasArray.cxx
index 7e18e792eac976573c43c2df0e400731b4456857..baeafa5536f2ba0c60e284de7bfa843f9f23f815 100644 (file)
@@ -10,9 +10,11 @@ using namespace std;
 #include "SUPERVGUI_CanvasArray.h"
 #include "SUPERVGUI_Main.h"
 #include "SUPERVGUI_BrowseNodeDlg.h"
-#include "QAD_Config.h"
 #include "SUPERVGUI_CanvasCellNodePrs.h"
 
+#include "SUIT_ResourceMgr.h"
+#include "SUIT_Session.h"
+
 #include <qtooltip.h>
 #define TEXT_MARGIN 5
 
@@ -82,11 +84,9 @@ SUPERVGUI_CanvasArray::SUPERVGUI_CanvasArray(SUPERVGUI_Main* m):
   setDoubleBuffering(true);
 
   QColor aColor(MAIN_COLOR);
-  QString aRed   = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorRed");
-  QString aGreen = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorGreen");
-  QString aBlue  = QAD_CONFIG->getSetting("SUPERVGraph:BackgroundColorBlue");
-  if( (!aRed.isEmpty()) && (!aGreen.isEmpty()) && (!aBlue.isEmpty()) )
-    aColor = QColor(aRed.toInt(), aGreen.toInt(), aBlue.toInt());
+  //aColor = QColor(SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorRed" ), 
+  //             SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorGreen" ), 
+  //             SUIT_Session::session()->resourceMgr()->integerValue( "SUPERVGraph", "BackgroundColorBlue" ) );
   setBackgroundColor(aColor);
 }