X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_TranslationDlg.h;h=31ebe1b5c67f6283d040a4f75aceee886fa95ad2;hp=da9c93e7d309a7f554b46752d6209fd8313418a8;hb=79b1ac2b6df9117f16f11d444b1f165d477a1813;hpb=c38c10811a065cf5b13e8807ed71864d92ca7d80 diff --git a/src/SMESHGUI/SMESHGUI_TranslationDlg.h b/src/SMESHGUI/SMESHGUI_TranslationDlg.h index da9c93e7d..31ebe1b5c 100644 --- a/src/SMESHGUI/SMESHGUI_TranslationDlg.h +++ b/src/SMESHGUI/SMESHGUI_TranslationDlg.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,7 +29,9 @@ #ifndef DIALOGBOX_TRANSLATION_H #define DIALOGBOX_TRANSLATION_H -#include "SalomeApp_SelectionMgr.h" +#include "SMESH_SMESHGUI.hxx" + +#include "LightApp_SelectionMgr.h" #include "SMESH_LogicalFilter.hxx" @@ -59,7 +61,7 @@ class SVTK_Selector; // class : SMESHGUI_TranslationDlg // purpose : //================================================================================= -class SMESHGUI_TranslationDlg : public QDialog +class SMESHGUI_EXPORT SMESHGUI_TranslationDlg : public QDialog { Q_OBJECT @@ -75,14 +77,15 @@ private: void closeEvent (QCloseEvent*); void enterEvent (QEvent*); /* mouse enter the QWidget */ void hideEvent (QHideEvent*); /* ESC key */ + void keyPressEvent(QKeyEvent*); int GetConstructorId(); + void setNewMeshName(); SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ - SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */ + LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */ QString myElementsId; int myNbOkElements; /* to check when elements are defined */ - SVTK_ViewWindow* myViewWindow; SVTK_Selector* mySelector; QWidget* myEditCurrentArgument; @@ -99,6 +102,7 @@ private: QPushButton* buttonOk; QPushButton* buttonCancel; QPushButton* buttonApply; + QPushButton* buttonHelp; QGroupBox* GroupArguments; QLabel* TextLabelElements; QPushButton* SelectElementsButton; @@ -120,7 +124,12 @@ private: SMESHGUI_SpinBox* SpinBox2_2; QLabel* TextLabel2_3; SMESHGUI_SpinBox* SpinBox2_3; - QCheckBox* CheckBoxCopy; + //QCheckBox* CheckBoxCopy; + QButtonGroup* ActionGroup; + QCheckBox* MakeGroupsCheck; + QLineEdit* LineEditNewMesh; + + QString myHelpFileName; private slots: @@ -128,12 +137,14 @@ private: void ClickOnOk(); void ClickOnCancel(); void ClickOnApply(); + void ClickOnHelp(); void SetEditCurrentArgument() ; void SelectionIntoArgument() ; void DeactivateActiveDialog() ; void ActivateThisDialog() ; void onTextChange(const QString&); void onSelectMesh(bool toSelectMesh); + void onActionClicked(int button); protected: QGridLayout* SMESHGUI_TranslationDlgLayout;