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;
78 // void setGroupColor( const SALOMEDS::Color& );
79 // SALOMEDS::Color getGroupColor() const;
81 // void setGroupQColor( const QColor& );
82 // QColor getGroupQColor() const;
84 // void setDefaultGroupColor();
88 SMESHGUI_GroupOnShapeDlg* myDlg;
91 QStringList myElemGeoIDs, myNodeGeoIDs;
92 //GEOM::ListOfGO_var myElemGObj;
95 class SMESHGUI_EXPORT SMESHGUI_GroupOnShapeDlg : public SMESHGUI_Dialog
100 SMESHGUI_GroupOnShapeDlg();
101 virtual ~SMESHGUI_GroupOnShapeDlg();
105 void updateButtons();
110 QLineEdit* myGrpNameLine;
112 QPushButton* myMeshBtn;
113 QLineEdit* myMeshLine;
115 QPushButton* myElemGeomBtn;
116 QListWidget* myElemGeomList;
118 QPushButton* myNodeGeomBtn;
119 QListWidget* myNodeGeomList;
121 // QPushButton* myColorBtn;
123 // bool myCreate, myIsBusy;
125 // QString myHelpFileName;
127 friend class SMESHGUI_GroupOnShapeOp;
130 #endif // SMESHGUI_GroupOnShapeDlg_H_H