1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 CEA
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : SMESHGUI_GroupOnShapeDlg.h
24 // Author : Edard AGAPOV
27 #ifndef SMESHGUI_GroupOnShapeDlg_H_H
28 #define SMESHGUI_GroupOnShapeDlg_H_H
30 #include "SMESH_SMESHGUI.hxx"
32 #include "SMESHGUI_SelectionOp.h"
37 class SMESHGUI_GroupOnShapeDlg;
39 //=================================================================================
40 // class : SMESHGUI_GroupOnShapeOp
41 // purpose : create groups on shapes of nodes and element at once, Issue 19970
42 //=================================================================================
44 class SMESHGUI_EXPORT SMESHGUI_GroupOnShapeOp : public SMESHGUI_SelectionOp
49 SMESHGUI_GroupOnShapeOp();
50 ~SMESHGUI_GroupOnShapeOp();
52 virtual LightApp_Dialog* dlg() const;
53 static QString GetDefaultName(const QString& theOperation);
59 virtual void startOperation();
60 virtual void selectionDone();
61 virtual SUIT_SelectionFilter* createFilter( const int ) const;
62 //virtual bool isValid( SUIT_Operation* ) const;
70 // void onSelectColor();
76 // void setGroupColor( const SALOMEDS::Color& );
77 // SALOMEDS::Color getGroupColor() const;
79 // void setGroupQColor( const QColor& );
80 // QColor getGroupQColor() const;
82 // void setDefaultGroupColor();
86 SMESHGUI_GroupOnShapeDlg* myDlg;
89 QStringList myElemGeoIDs, myNodeGeoIDs;
90 //GEOM::ListOfGO_var myElemGObj;
93 class SMESHGUI_EXPORT SMESHGUI_GroupOnShapeDlg : public SMESHGUI_Dialog
98 SMESHGUI_GroupOnShapeDlg();
99 virtual ~SMESHGUI_GroupOnShapeDlg();
103 void updateButtons();
108 //QLineEdit* myGrpNameLine;
110 QPushButton* myMeshBtn;
111 QLineEdit* myMeshLine;
113 QPushButton* myElemGeomBtn;
114 QListWidget* myElemGeomList;
116 QPushButton* myNodeGeomBtn;
117 QListWidget* myNodeGeomList;
119 // QPushButton* myColorBtn;
121 // bool myCreate, myIsBusy;
123 // QString myHelpFileName;
125 friend class SMESHGUI_GroupOnShapeOp;
128 #endif // SMESHGUI_GroupOnShapeDlg_H_H