- void initDialog(bool create);
- void init(SMESH::SMESH_Mesh_ptr theMesh);
- void init(SMESH::SMESH_GroupBase_ptr theGroup);
- void closeEvent(QCloseEvent* e);
- void enterEvent (QEvent*);
- void hideEvent (QHideEvent*); /* ESC key */
- void setSelectionMode(int theMode);
- void updateButtons();
-
- SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
- SMESH_Actor* myActor; /* Current mesh actor */
- int myGrpTypeId; /* Current group type id : standalone or group on geometry */
- int myTypeId; /* Current type id = radio button id */
- QLineEdit* myCurrentLineEdit; /* Current LineEdit */
- SVTK_Selector* mySelector;
-
- QPushButton* myMeshGroupBtn;
- QLineEdit* myMeshGroupLine;
-
- QButtonGroup* myTypeGroup;
- QLineEdit* myName;
-
- QButtonGroup* myGrpTypeGroup;
-
- QWidgetStack* myWGStack;
- QListBox* myElements;
- QPushButton* myFilter;
-
- QCheckBox* mySelectSubMesh;
- QPushButton* mySubMeshBtn;
- QLineEdit* mySubMeshLine;
-
- QCheckBox* mySelectGroup;
- QPushButton* myGroupBtn;
- QLineEdit* myGroupLine;
-
- QCheckBox* mySelectColorGroup;
- QtxIntSpinBox* myColorSpinBox;
-
- QCheckBox* mySelectGeomGroup;
- QPushButton* myGeomGroupBtn;
- QLineEdit* myGeomGroupLine;
-
- SMESH::SMESH_Mesh_var myMesh;
- SMESH::SMESH_Group_var myGroup;
- SMESH::SMESH_GroupOnGeom_var myGroupOnGeom;
- QValueList<int> myIdList;
- GEOM::GEOM_Object_var myGeomGroup;
-
- int mySelectionMode;
- //Handle(SMESH_TypeFilter) myMeshFilter;
- //Handle(SMESH_TypeFilter) mySubMeshFilter;
- //Handle(SMESH_TypeFilter) myGroupFilter;
- SUIT_SelectionFilter* myMeshFilter;
- SUIT_SelectionFilter* mySubMeshFilter;
- SUIT_SelectionFilter* myGroupFilter;
-
- SMESHGUI_FilterDlg* myFilterDlg;
-
- bool myCreate, myIsBusy;
-
- QString myHelpFileName;
+ void initDialog( bool );
+ void init( SMESH::SMESH_Mesh_ptr );
+ void init( SMESH::SMESH_GroupBase_ptr,
+ const bool theIsConvert = false );
+ void enterEvent( QEvent* );
+ void keyPressEvent( QKeyEvent* );
+ void setSelectionMode( int );
+ void updateButtons();
+ void updateGeomPopup();
+ bool SetAppropriateActor();
+ void setShowEntityMode();
+ void restoreShowEntityMode();
+
+ bool IsActorVisible( SMESH_Actor* );
+
+ void setGroupColor( const SALOMEDS::Color& );
+ SALOMEDS::Color getGroupColor() const;
+
+ void setGroupQColor( const QColor& );
+ QColor getGroupQColor() const;
+ void setDefaultName() const;
+ void setDefaultGroupColor();
+
+ void setIsApplyAndClose( const bool theFlag );
+ bool isApplyAndClose() const;
+
+ private:
+
+ SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ int myGrpTypeId; /* Current group type id : standalone or group on geometry */
+ int myTypeId; /* Current type id = radio button id */
+ int myStoredShownEntity; /* Store ShowEntity mode of myMesh */
+ QLineEdit* myCurrentLineEdit; /* Current LineEdit */
+ SVTK_Selector* mySelector;
+
+ QPushButton* myMeshGroupBtn;
+ QLineEdit* myMeshGroupLine;
+
+ QButtonGroup* myTypeGroup;
+ QLineEdit* myName;
+ QString myOldName;
+
+ QButtonGroup* myGrpTypeGroup;
+
+ QStackedWidget* myWGStack;
+ QCheckBox* mySelectAll;
+ QCheckBox* myAllowElemsModif;
+ QLabel* myElementsLab;
+ QListWidget* myElements;
+ QPushButton* myFilterBtn;
+ QPushButton* myAddBtn;
+ QPushButton* myRemoveBtn;
+ QPushButton* mySortBtn;
+
+ QGroupBox* mySelectBox;
+ QCheckBox* mySelectSubMesh;
+ QPushButton* mySubMeshBtn;
+ QLineEdit* mySubMeshLine;
+ QCheckBox* mySelectGroup;
+ QPushButton* myGroupBtn;
+ QLineEdit* myGroupLine;
+
+ QtxColorButton* myColorBtn;
+
+ QCheckBox* mySelectGeomGroup;
+ QToolButton* myGeomGroupBtn;
+ QLineEdit* myGeomGroupLine;
+ QMenu* myGeomPopup;
+
+ QPushButton* myOKBtn;
+ QPushButton* myApplyBtn;
+ QPushButton* myCloseBtn;
+ QPushButton* myHelpBtn;
+
+ SMESHGUI_ShapeByMeshOp* myShapeByMeshOp;
+
+ SMESH::SMESH_Mesh_var myMesh;
+ QList<SMESH_Actor*> myActorsList;
+ SMESH::SMESH_Group_var myGroup;
+ SMESH::SMESH_GroupOnGeom_var myGroupOnGeom;
+ SMESH::SMESH_GroupOnFilter_var myGroupOnFilter;
+ SMESH::Filter_var myFilter;
+ QList<int> myIdList;
+ GEOM::ListOfGO_var myGeomObjects;
+
+ int mySelectionMode;
+ //Handle(SMESH_TypeFilter) myMeshFilter;
+ //Handle(SMESH_TypeFilter) mySubMeshFilter;
+ //Handle(SMESH_TypeFilter) myGroupFilter;
+ SUIT_SelectionFilter* myMeshFilter;
+ SMESH_LogicalFilter* mySubMeshFilter;
+ SMESH_LogicalFilter* myGroupFilter;
+ SUIT_SelectionFilter* myGeomFilter;
+
+ SMESHGUI_FilterDlg* myFilterDlg;
+
+ bool myCreate, myIsBusy;
+
+ QString myHelpFileName;
+
+ QMap<QAction*, int> myActions;
+
+ bool myNameChanged; //added by skl for IPAL19574
+ int myNbChangesOfContents; // nb add's and remove's
+
+ QString myObjectToSelect;
+ bool myIsApplyAndClose;