// 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.salome-platform.org or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef DIALOGBOX_GROUP_H
#define DIALOGBOX_GROUP_H
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
//#include "SMESH_TypeFilter.hxx"
#include "SUIT_SelectionFilter.h"
class QButtonGroup;
class QGroupBox;
class QListBox;
+class QPopupMenu;
class QPushButton;
+class QToolButton;
class QCheckBox;
class QWidgetStack;
+class QtxIntSpinBox;
class SMESHGUI;
class SMESH_Actor;
class SMESHGUI_FilterDlg;
+class SMESHGUI_ShapeByMeshOp;
+class SUIT_Operation;
class SVTK_Selector;
class SVTK_ViewWindow;
bool modal = FALSE, WFlags fl = 0 );
SMESHGUI_GroupDlg( SMESHGUI*,
const char* name,
- SMESH::SMESH_Group_ptr theGroup,
+ SMESH::SMESH_GroupBase_ptr theGroup,
bool modal = FALSE, WFlags fl = 0 );
~SMESHGUI_GroupDlg();
void onOK();
void onClose();
bool onApply();
+ void onHelp();
void onDeactivate();
void onListSelectionChanged();
void onSelectSubMesh(bool on);
void onSelectGroup(bool on);
void onSelectGeomGroup(bool on);
+ void onSelectColorGroup(bool on);
void setCurrentSelection();
void setFilters();
void onSort();
void onNameChanged(const QString& text);
+ void onNbColorsChanged(const QString& text);
void onFilterAccepted();
+ void onGeomPopup( int );
+ void onGeomSelectionButton( bool );
+
+ void onPublishShapeByMeshDlg(SUIT_Operation*);
+ void onCloseShapeByMeshDlg(SUIT_Operation*);
+
private:
void initDialog(bool create);
void init(SMESH::SMESH_Mesh_ptr theMesh);
- void init(SMESH::SMESH_Group_ptr theGroup);
+ void init(SMESH::SMESH_GroupBase_ptr theGroup);
void closeEvent(QCloseEvent* e);
void enterEvent (QEvent*);
void hideEvent (QHideEvent*); /* ESC key */
+ void keyPressEvent(QKeyEvent*);
void setSelectionMode(int theMode);
void updateButtons();
+ void updateGeomPopup();
SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
- SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ 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 */
QPushButton* myGroupBtn;
QLineEdit* myGroupLine;
+ QCheckBox* mySelectColorGroup;
+ QtxIntSpinBox* myColorSpinBox;
+
QCheckBox* mySelectGeomGroup;
- QPushButton* myGeomGroupBtn;
+ QToolButton* myGeomGroupBtn;
QLineEdit* myGeomGroupLine;
+ QPopupMenu* myGeomPopup;
+
+ SMESHGUI_ShapeByMeshOp* myShapeByMeshOp;
SMESH::SMESH_Mesh_var myMesh;
SMESH::SMESH_Group_var myGroup;
+ SMESH::SMESH_GroupOnGeom_var myGroupOnGeom;
QValueList<int> myIdList;
- GEOM::GEOM_Object_var myGeomGroup;
+ GEOM::ListOfGO_var myGeomObjects;
int mySelectionMode;
//Handle(SMESH_TypeFilter) myMeshFilter;
SUIT_SelectionFilter* myMeshFilter;
SUIT_SelectionFilter* mySubMeshFilter;
SUIT_SelectionFilter* myGroupFilter;
+ SUIT_SelectionFilter* myGeomFilter;
SMESHGUI_FilterDlg* myFilterDlg;
bool myCreate, myIsBusy;
+
+ QString myHelpFileName;
};
#endif // DIALOGBOX_GROUP_H