]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug IPAL9241 : Changing view mode of the dataflow changes background color.
authormkr <mkr@opencascade.com>
Thu, 23 Jun 2005 07:03:21 +0000 (07:03 +0000)
committermkr <mkr@opencascade.com>
Thu, 23 Jun 2005 07:03:21 +0000 (07:03 +0000)
src/SUPERVGUI/SUPERVGUI_ArrayView.cxx
src/SUPERVGUI/SUPERVGUI_Canvas.cxx
src/SUPERVGUI/SUPERVGUI_CanvasArray.cxx
src/SUPERVGUI/SUPERVGUI_CanvasView.cxx

index b2b0309cdeedef948b0e6b16eb1c59efc15d1b94..63d7ac2e0e91829293ded06e10803a99ebd93795 100644 (file)
@@ -95,8 +95,12 @@ void SUPERVGUI_ArrayView::changeBackground()
 {
   QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this );
   if ( aColor.isValid() ) {
+    // change background color for array view
     canvas()->setBackgroundColor(aColor);
     setPaletteBackgroundColor(aColor.light(120));
+    // change background color for canvas view
+    getMain()->getCanvasView()->canvas()->setBackgroundColor(aColor);
+    getMain()->getCanvasView()->setPaletteBackgroundColor(aColor.light(120));
   }
 }
 
index dd99c802bcb7884279f39766e4b320789e807741..732a0f9ef5179f70f2dce669b4120c114bfaa906 100644 (file)
@@ -86,7 +86,7 @@ SUPERVGUI_Canvas::SUPERVGUI_Canvas(SUPERVGUI_Main* m):
   Trace("SUPERVGUI_Canvas::SUPERVGUI_Canvas");
   myIsControlView = false;
   // resize(GRAPH_WIDTH, GRAPH_HEIGHT);
-  resize(800, 600);
+  resize(1000, 725);
   setDoubleBuffering(true);
 
   QColor aColor(MAIN_COLOR);
index baeafa5536f2ba0c60e284de7bfa843f9f23f815..cf9404719e9f5a9ab41f3c3dc6622aa43a8138bf 100644 (file)
@@ -80,7 +80,7 @@ SUPERVGUI_CanvasArray::SUPERVGUI_CanvasArray(SUPERVGUI_Main* m):
 {
   Trace("SUPERVGUI_CanvasArray::SUPERVGUI_CanvasArray");
   //resize(GRAPH_WIDTH, GRAPH_HEIGHT);
-  resize(800, 600);
+  resize(1000, 725);
   setDoubleBuffering(true);
 
   QColor aColor(MAIN_COLOR);
index bbe4d72208b2ccf57cd7127f14e647e130289812..b2d536f43063f4ba8697de4a9a7eb2c0786bdf1c 100644 (file)
@@ -327,7 +327,7 @@ void SUPERVGUI_CanvasView::contentsMouseMoveEvent(QMouseEvent* theEvent)
     myLinkBuilder->setFloatPoint(p);
     canvas()->update();
   }
-      
+   
   if (myCurrentItem) {
     //    setHilighted(0);
     if (myCurrentItem->x() && myCurrentItem->y()) {
@@ -556,8 +556,12 @@ void SUPERVGUI_CanvasView::changeBackground()
 {
   QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this );
   if ( aColor.isValid() ) {
+    // change background color for canvas view
     canvas()->setBackgroundColor(aColor);
     setPaletteBackgroundColor(aColor.light(120));
+    // change background color for array view
+    getMain()->getArrayView()->canvas()->setBackgroundColor(aColor);
+    getMain()->getArrayView()->setPaletteBackgroundColor(aColor.light(120));
   }
 }