X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Preferences_ScalarBarDlg.h;h=78950f7cd58b0eb06e812601524efcc4e8b2e8ef;hb=07ec002dfd20ec187228e11533e8e2135eca08fd;hp=f436c649cafb9010fafcfd2beaadde817eda7623;hpb=c38c10811a065cf5b13e8807ed71864d92ca7d80;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h index f436c649c..78950f7cd 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h +++ b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -29,6 +29,8 @@ #ifndef SMESHGUI_PREFERENCES_SCALARBARDLG_H #define SMESHGUI_PREFERENCES_SCALARBARDLG_H +#include "SMESH_SMESHGUI.hxx" + #include class QButtonGroup; @@ -41,27 +43,29 @@ class QPushButton; class QToolButton; class QRadioButton; class QSpinBox; +class SMESHGUI; class QtxDblSpinBox; -class SalomeApp_SelectionMgr; +class LightApp_SelectionMgr; class SMESH_Actor; -class SMESHGUI_Preferences_ScalarBarDlg : public QDialog +class SMESHGUI_EXPORT SMESHGUI_Preferences_ScalarBarDlg : public QDialog { Q_OBJECT public: ~SMESHGUI_Preferences_ScalarBarDlg(); - static void ScalarBarPreferences( QWidget* parent ); - static void ScalarBarProperties ( QWidget* parent, SalomeApp_SelectionMgr* Sel ); + static void ScalarBarPreferences( SMESHGUI* ); + static void ScalarBarProperties ( SMESHGUI* ); protected: - SMESHGUI_Preferences_ScalarBarDlg( QWidget* parent = 0, SalomeApp_SelectionMgr* Sel = 0, bool modal = FALSE ); + SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI*, bool, bool modal = FALSE ); static SMESHGUI_Preferences_ScalarBarDlg* myDlg; void closeEvent( QCloseEvent* e ); void setOriginAndSize( const double x, const double y, const double w, const double h ); + void initScalarBarFromResources(); protected slots: void onOk(); @@ -74,10 +78,13 @@ protected slots: void onOrientationChanged(); private: - SalomeApp_SelectionMgr* mySelectionMgr; + SMESHGUI* mySMESHGUI; + LightApp_SelectionMgr* mySelectionMgr; SMESH_Actor* myActor; double myIniX, myIniY, myIniW, myIniH; int myIniOrientation; + double DEF_VER_X,DEF_VER_Y,DEF_VER_H,DEF_VER_W; + double DEF_HOR_X,DEF_HOR_Y,DEF_HOR_H,DEF_HOR_W; QGroupBox* myRangeGrp; QLineEdit* myMinEdit;