Version: 9.16.0
BlocksGUI_TrsfDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// GEOM GEOMGUI : GUI for Geometry component
24// File : BlocksGUI_TrsfDlg.h
25// Author : Julia DOROVSKIKH, Open CASCADE S.A.S. (julia.dorovskikh@opencascade.com)
26//
27#ifndef BLOCKSGUI_TRSFDLG_H
28#define BLOCKSGUI_TRSFDLG_H
29
30#include <GEOMBase_Skeleton.h>
31
32#include <QMap>
33
34class SalomeApp_IntSpinBox;
35class QGroupBox;
36class QPushButton;
37class QLineEdit;
38
39//=================================================================================
40// class : BlocksGUI_TrsfDlg
41// purpose :
42//=================================================================================
44{
45 Q_OBJECT
46
49
50public:
53
54protected:
55 // redefined from GEOMBase_Helper
56 virtual GEOM::GEOM_IOperations_ptr createOperation();
57 virtual bool isValid (QString&);
58 virtual bool execute (ObjectList&);
59 virtual QList<GEOM::GeomObjPtr> getSourceObjects();
60
61private:
62 void Init();
63 void enterEvent(QEvent*);
64
65 void createSelWg (const QString&, QPixmap&, QWidget*, const int);
66 void createSpinWg (const QString&, QWidget*, const int);
67 void activateSelection();
68 void enableWidgets();
69
70private:
72
73 GEOM::GEOM_Object_var myShape;
74 QMap<int, int> myFaces;
75
76 // to initialize the first selection field with a selected object on the dialog creation
78
81
82 QMap<int, QPushButton*> mySelBtn;
83 QMap<int, QLineEdit*> mySelName;
84 QMap<int, SalomeApp_IntSpinBox*> mySpinBox;
85
86private slots:
87 void ClickOnOk();
88 bool ClickOnApply();
89 void ActivateThisDialog();
90 void ConstructorsClicked (int);
91
94
95 void ValueChangedInSpinBox (int);
96};
97
98#endif // BLOCKSGUI_TRSFDLG_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: BlocksGUI_TrsfDlg.h:44
void SetEditCurrentArgument()
Definition: BlocksGUI_TrsfDlg.cxx:325
BlocksGUI_TrsfDlg(GeometryGUI *, QWidget *)
Definition: BlocksGUI_TrsfDlg.cxx:49
int myConstructorId
Definition: BlocksGUI_TrsfDlg.h:71
void ValueChangedInSpinBox(int)
Definition: BlocksGUI_TrsfDlg.cxx:413
void createSpinWg(const QString &, QWidget *, const int)
Definition: BlocksGUI_TrsfDlg.cxx:451
virtual bool isValid(QString &)
Definition: BlocksGUI_TrsfDlg.cxx:553
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: BlocksGUI_TrsfDlg.cxx:544
@ SpinBox2U
Definition: BlocksGUI_TrsfDlg.h:48
@ SpinBox1
Definition: BlocksGUI_TrsfDlg.h:48
@ SpinBox2V
Definition: BlocksGUI_TrsfDlg.h:48
void Init()
Definition: BlocksGUI_TrsfDlg.cxx:112
QMap< int, int > myFaces
Definition: BlocksGUI_TrsfDlg.h:74
GEOM::GEOM_Object_var myShape
Definition: BlocksGUI_TrsfDlg.h:73
~BlocksGUI_TrsfDlg()
Definition: BlocksGUI_TrsfDlg.cxx:103
void enterEvent(QEvent *)
Definition: BlocksGUI_TrsfDlg.cxx:403
@ Face2
Definition: BlocksGUI_TrsfDlg.h:47
@ Face1V
Definition: BlocksGUI_TrsfDlg.h:47
@ Face1U
Definition: BlocksGUI_TrsfDlg.h:47
@ Face2V
Definition: BlocksGUI_TrsfDlg.h:47
@ Face1
Definition: BlocksGUI_TrsfDlg.h:47
@ MainObj1
Definition: BlocksGUI_TrsfDlg.h:47
@ MainObj2
Definition: BlocksGUI_TrsfDlg.h:47
@ Face2U
Definition: BlocksGUI_TrsfDlg.h:47
void ConstructorsClicked(int)
Definition: BlocksGUI_TrsfDlg.cxx:148
void createSelWg(const QString &, QPixmap &, QWidget *, const int)
Definition: BlocksGUI_TrsfDlg.cxx:422
void SelectionIntoArgument()
Definition: BlocksGUI_TrsfDlg.cxx:220
QGroupBox * myGrp2
Definition: BlocksGUI_TrsfDlg.h:80
bool myInitial
Definition: BlocksGUI_TrsfDlg.h:77
void ActivateThisDialog()
Definition: BlocksGUI_TrsfDlg.cxx:390
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: BlocksGUI_TrsfDlg.cxx:629
QMap< int, QLineEdit * > mySelName
Definition: BlocksGUI_TrsfDlg.h:83
virtual bool execute(ObjectList &)
Definition: BlocksGUI_TrsfDlg.cxx:576
void ClickOnOk()
Definition: BlocksGUI_TrsfDlg.cxx:196
QGroupBox * myGrp1
Definition: BlocksGUI_TrsfDlg.h:79
QMap< int, QPushButton * > mySelBtn
Definition: BlocksGUI_TrsfDlg.h:82
bool ClickOnApply()
Definition: BlocksGUI_TrsfDlg.cxx:207
void activateSelection()
Definition: BlocksGUI_TrsfDlg.cxx:474
void enableWidgets()
Definition: BlocksGUI_TrsfDlg.cxx:498
QMap< int, SalomeApp_IntSpinBox * > mySpinBox
Definition: BlocksGUI_TrsfDlg.h:84
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74