Version: 8.3.0
Main Page
Related Pages
Packages
Data Structures
Files
File List
Globals
SMESHGUI_GroupOnShapeDlg.h
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2
//
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, or (at your option) any later version.
7
//
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.
12
//
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
16
//
17
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18
//
19
20
// SMESH SMESHGUI : GUI for SMESH component
21
// File : SMESHGUI_GroupOnShapeDlg.h
22
// Author : Edard AGAPOV
23
// Module : SMESH
24
//
25
#ifndef SMESHGUI_GroupOnShapeDlg_H_H
26
#define SMESHGUI_GroupOnShapeDlg_H_H
27
28
#include "
SMESH_SMESHGUI.hxx
"
29
30
#include "
SMESHGUI_SelectionOp.h
"
31
32
class
QLineEdit;
33
class
QListWidget;
34
class
QPushButton;
35
class
SMESHGUI_GroupOnShapeDlg
;
36
37
//=================================================================================
38
// class : SMESHGUI_GroupOnShapeOp
39
// purpose : create groups on shapes of nodes and element at once, Issue 19970
40
//=================================================================================
41
42
class
SMESHGUI_EXPORT
SMESHGUI_GroupOnShapeOp
:
public
SMESHGUI_SelectionOp
43
{
44
Q_OBJECT
45
46
public
:
47
SMESHGUI_GroupOnShapeOp
();
48
~
SMESHGUI_GroupOnShapeOp
();
49
50
virtual
LightApp_Dialog
* dlg()
const
;
51
static
QString GetDefaultName(
const
QString& theOperation);
52
53
public
slots:
54
55
protected
:
56
57
virtual
void
startOperation
();
58
virtual
void
selectionDone
();
59
virtual
SUIT_SelectionFilter
*
createFilter
(
const
int
)
const
;
60
//virtual bool isValid( SUIT_Operation* ) const;
61
62
private
slots:
63
64
bool
onApply
();
65
void
onButtonClick();
66
67
68
// void onSelectColor();
69
70
71
private
:
72
73
void
init();
74
// void setGroupColor( const SALOMEDS::Color& );
75
// SALOMEDS::Color getGroupColor() const;
76
77
// void setGroupQColor( const QColor& );
78
// QColor getGroupQColor() const;
79
80
// void setDefaultGroupColor();
81
82
private
:
83
84
SMESHGUI_GroupOnShapeDlg
*
myDlg
;
85
86
QString
myMeshID
;
87
QStringList myElemGeoIDs,
myNodeGeoIDs
;
88
//GEOM::ListOfGO_var myElemGObj;
89
};
90
91
class
SMESHGUI_EXPORT
SMESHGUI_GroupOnShapeDlg
:
public
SMESHGUI_Dialog
92
{
93
Q_OBJECT
94
95
public
:
96
SMESHGUI_GroupOnShapeDlg
();
97
virtual
~
SMESHGUI_GroupOnShapeDlg
();
98
99
public
slots:
100
101
void
updateButtons();
102
void
init();
103
104
private
:
105
106
//QLineEdit* myGrpNameLine;
107
108
QPushButton*
myMeshBtn
;
109
QLineEdit*
myMeshLine
;
110
111
QPushButton*
myElemGeomBtn
;
112
QListWidget*
myElemGeomList
;
113
114
QPushButton*
myNodeGeomBtn
;
115
QListWidget*
myNodeGeomList
;
116
117
// QPushButton* myColorBtn;
118
119
// bool myCreate, myIsBusy;
120
121
// QString myHelpFileName;
122
123
friend
class
SMESHGUI_GroupOnShapeOp
;
124
};
125
126
#endif // SMESHGUI_GroupOnShapeDlg_H_H
src
SMESHGUI
SMESHGUI_GroupOnShapeDlg.h
Copyright © 2007-2017 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS