1 #ifndef DIALOGBOX_ADD_QUADRATIC_ELEMENT_H
2 #define DIALOGBOX_ADD_QUADRATIC_ELEMENT_H
4 #include "LightApp_SelectionMgr.h"
22 struct TElementSimulation;
26 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(SMESH_Mesh)
29 enum { QUAD_EDGE, QUAD_TRIANGLE, QUAD_QUADRANGLE, QUAD_TETRAHEDRON, QUAD_PYRAMID, QUAD_PENTAHEDRON, QUAD_HEXAHEDRON };
31 //=================================================================================
32 // class : SMESHGUI_AddQuadraticElementDlg
34 //=================================================================================
35 class SMESHGUI_AddQuadraticElementDlg : public QDialog
40 SMESHGUI_AddQuadraticElementDlg( SMESHGUI* theModule,
43 bool modal = FALSE, WFlags fl = 0 );
44 ~SMESHGUI_AddQuadraticElementDlg();
48 void closeEvent (QCloseEvent*);
49 void hideEvent (QHideEvent*); /* ESC key */
50 void enterEvent (QEvent*); /* mouse enter the QWidget */
51 void displaySimulation();
52 void UpdateTable( bool theConersValidity = true );
55 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
56 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
57 int myNbCorners; /* The required number of corners */
59 SVTK_Selector* mySelector;
61 SMESH::SMESH_Mesh_var myMesh;
63 SMESH::TElementSimulation* mySimulation;
68 QButtonGroup* GroupConstructors;
69 QRadioButton* myRadioButton1;
71 QGroupBox* GroupArguments;
72 QLineEdit* myCornerNodes;
73 QPushButton* mySelectButton;
75 QCheckBox* myReverseCB;
77 QGroupBox* GroupButtons;
78 QPushButton* buttonOk;
79 QPushButton* buttonCancel;
80 QPushButton* buttonApply;
81 QPushButton * buttonHelp;
83 QString myHelpFileName;
87 void onTextChange(const QString&);
88 void onCellTextChange(int, int);
89 void onReverse( int );
90 void onCellDoubleClicked(int, int, int, const QPoint&);
96 void SetEditCorners() ;
97 void SelectionIntoArgument() ;
98 void DeactivateActiveDialog() ;
99 void ActivateThisDialog() ;
102 class SMESHGUI_IdEditItem: public QTableItem
105 SMESHGUI_IdEditItem(QTable* table, EditType et, const QString& text ):
106 QTableItem(table, et, text) {};
107 ~SMESHGUI_IdEditItem() {};
109 QWidget* createEditor() const;
113 #endif // DIALOGBOX_ADD_QUADRATIC_ELEMENT_H