1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // SMESH SMESHGUI : GUI for SMESH component
21 // File : SMESHGUI_GroupOnShapeDlg.h
22 // Author : Edard AGAPOV
25 #ifndef SMESHGUI_GroupOnShapeDlg_H_H
26 #define SMESHGUI_GroupOnShapeDlg_H_H
28 #include "SMESH_SMESHGUI.hxx"
30 #include "SMESHGUI_SelectionOp.h"
35 class SMESHGUI_GroupOnShapeDlg;
37 //=================================================================================
38 // class : SMESHGUI_GroupOnShapeOp
39 // purpose : create groups on shapes of nodes and element at once, Issue 19970
40 //=================================================================================
42 class SMESHGUI_EXPORT SMESHGUI_GroupOnShapeOp : public SMESHGUI_SelectionOp
47 SMESHGUI_GroupOnShapeOp();
48 ~SMESHGUI_GroupOnShapeOp();
50 virtual LightApp_Dialog* dlg() const;
51 static QString GetDefaultName(const QString& theOperation);
57 virtual void startOperation();
58 virtual void selectionDone();
59 virtual SUIT_SelectionFilter* createFilter( const int ) const;
60 //virtual bool isValid( SUIT_Operation* ) const;
68 // void onSelectColor();
74 // void setGroupColor( const SALOMEDS::Color& );
75 // SALOMEDS::Color getGroupColor() const;
77 // void setGroupQColor( const QColor& );
78 // QColor getGroupQColor() const;
80 // void setDefaultGroupColor();
84 SMESHGUI_GroupOnShapeDlg* myDlg;
87 QStringList myElemGeoIDs, myNodeGeoIDs;
88 //GEOM::ListOfGO_var myElemGObj;
91 class SMESHGUI_EXPORT SMESHGUI_GroupOnShapeDlg : public SMESHGUI_Dialog
96 SMESHGUI_GroupOnShapeDlg();
97 virtual ~SMESHGUI_GroupOnShapeDlg();
101 void updateButtons();
106 //QLineEdit* myGrpNameLine;
108 QPushButton* myMeshBtn;
109 QLineEdit* myMeshLine;
111 QPushButton* myElemGeomBtn;
112 QListWidget* myElemGeomList;
114 QPushButton* myNodeGeomBtn;
115 QListWidget* myNodeGeomList;
117 // QPushButton* myColorBtn;
119 // bool myCreate, myIsBusy;
121 // QString myHelpFileName;
123 friend class SMESHGUI_GroupOnShapeOp;
126 #endif // SMESHGUI_GroupOnShapeDlg_H_H