Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISUGUI / VisuGUI_ScalarBarDlg.h
index c8ddc6ab4116933e582de69a094c7639d8c06925..33c55f963a00f7f129da10b59560dd424e653b63 100644 (file)
@@ -61,6 +61,7 @@ class QToolButton;
 class QtxDblSpinBox;
 class SalomeApp_Module;
 class VisuGUI_FontWg;
+class VISU_ScalarMapAct;
 
 class VisuGUI_TextPrefDlg: public QDialog
 {
@@ -117,6 +118,7 @@ class VisuGUI_ScalarBarPane : public QVBox
   int storeToPrsObject(VISU::ScalarMap_i* thePrs);
 
   bool check();
+  void deletePreview();
 
  protected:
   QButtonGroup*   RangeGroup;
@@ -155,6 +157,16 @@ class VisuGUI_ScalarBarPane : public QVBox
   void changeRange( int );
   void XYChanged( double );
   void onTextPref();
+  void onPreviewCheck(bool thePreview);
+  void updatePreview();
+
+ private:
+  void createScalarBar();
+  void deleteScalarBar();
+
+  QCheckBox* myPreviewCheck;
+  VISU_ScalarMapAct* myPreviewActor;
+  VISU::ScalarMap_i* myScalarMap;
 };
 
 
@@ -176,6 +188,7 @@ class VisuGUI_ScalarBarDlg : public QDialog
 
  protected slots:
   void accept();
+  void reject();
 
  protected:
   VisuGUI_ScalarBarPane* myScalarPane;