Salome HOME
Fixing a bug : Salome GUI style needs addLibraryPath() method to be called
[modules/gui.git] / src / SVTK / SVTK_ViewModel.h
index de432ffaaedb6769ae75025488e471900ee90782..fbf1c14b3419841812385cf502638e0e077ee53f 100644 (file)
@@ -7,6 +7,8 @@
 #include "SALOME_Prs.h"
 #include "SALOME_InteractiveObject.hxx"
 
+#include <qcolor.h>
+
 class SVTK_EXPORT SVTK_Viewer : public SUIT_ViewModel, public SALOME_View 
 {
   Q_OBJECT;
@@ -23,6 +25,9 @@ public:
   virtual void             contextMenuPopup( QPopupMenu* );
   virtual QString          getType() const { return Type(); }
 
+  QColor backgroundColor() const;
+  void   setBackgroundColor( const QColor& );
+
 public:
   void enableSelection(bool isEnabled);
   bool isSelectionEnabled() const { return mySelectionEnabled; }
@@ -57,12 +62,14 @@ protected slots:
   void onMouseMove(SUIT_ViewWindow*, QMouseEvent*);
   void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
 
-  void onChangeBgColor();
+  void onDumpView();
   void onShowToolbar();
+  void onChangeBgColor();
 
 private:
-  bool mySelectionEnabled;
-  bool myMultiSelectionEnabled;
+  QColor myBgColor;
+  bool   mySelectionEnabled;
+  bool   myMultiSelectionEnabled;
 };
 
 #endif