Version: 9.12.0
MeasureGUI_CheckShapeDlg.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 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 : MeasureGUI_CheckShapeDlg.h
25 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
26 //
27 #ifndef MEASUREGUI_CHECKSHAPEDLG_H
28 #define MEASUREGUI_CHECKSHAPEDLG_H
29 
30 #include <GEOMBase_Skeleton.h>
31 
33 
34 //=================================================================================
35 // class : MeasureGUI_CheckShapeDlg
36 // purpose :
37 //=================================================================================
39 {
40  Q_OBJECT
41 
42 public:
45 
46 protected:
47  // redefined from GEOMBase_Helper and MeasureGUI_Skeleton
48  virtual GEOM::GEOM_IOperations_ptr createOperation();
49  virtual bool execute( ObjectList& );
50  virtual void processObject();
51  virtual void activateSelection();
52  virtual bool isValid( QString& );
53  virtual bool extractPrefix() const;
54 
55 private slots:
56  void SelectionIntoArgument();
57  void ClickOnOk();
58  bool ClickOnApply();
59  void ActivateThisDialog();
63 
64 private:
65  void Init();
66  void enterEvent( QEvent* );
67  bool getErrors
69 
70 private:
71  GEOM::GEOM_Object_var myObj;
73  GEOM::GEOM_IShapesOperations_var myShapesOper;
74 };
75 
76 #endif // MEASUREGUI_CHECKSHAPEDLG_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74
Definition: MeasureGUI_Widgets.h:82
Definition: MeasureGUI_CheckShapeDlg.h:39
virtual bool isValid(QString &)
Definition: MeasureGUI_CheckShapeDlg.cxx:255
~MeasureGUI_CheckShapeDlg()
Definition: MeasureGUI_CheckShapeDlg.cxx:110
void onSubShapesListSelectionChanged()
Definition: MeasureGUI_CheckShapeDlg.cxx:507
void enterEvent(QEvent *)
Definition: MeasureGUI_CheckShapeDlg.cxx:245
MeasureGUI_CheckShapeDlg(GeometryGUI *, QWidget *)
Definition: MeasureGUI_CheckShapeDlg.cxx:56
GEOM::GEOM_IShapesOperations_var myShapesOper
Definition: MeasureGUI_CheckShapeDlg.h:73
virtual void activateSelection()
Definition: MeasureGUI_CheckShapeDlg.cxx:236
void SelectionIntoArgument()
Definition: MeasureGUI_CheckShapeDlg.cxx:176
bool getErrors(bool &, GEOM::GEOM_IMeasureOperations::ShapeErrors &)
Definition: MeasureGUI_CheckShapeDlg.cxx:265
virtual bool execute(ObjectList &)
Definition: MeasureGUI_CheckShapeDlg.cxx:585
void Init()
Definition: MeasureGUI_CheckShapeDlg.cxx:119
void ClickOnOk()
Definition: MeasureGUI_CheckShapeDlg.cxx:144
bool ClickOnApply()
Definition: MeasureGUI_CheckShapeDlg.cxx:154
virtual bool extractPrefix() const
Definition: MeasureGUI_CheckShapeDlg.cxx:167
void SetEditCurrentArgument()
Definition: MeasureGUI_CheckShapeDlg.cxx:210
void onErrorsListSelectionChanged()
Definition: MeasureGUI_CheckShapeDlg.cxx:455
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: MeasureGUI_CheckShapeDlg.cxx:446
GEOM::GEOM_Object_var myObj
Definition: MeasureGUI_CheckShapeDlg.h:71
MeasureGUI_1Sel1Check1TextView2ListBox * myGrp
Definition: MeasureGUI_CheckShapeDlg.h:72
virtual void processObject()
Definition: MeasureGUI_CheckShapeDlg.cxx:297
void ActivateThisDialog()
Definition: MeasureGUI_CheckShapeDlg.cxx:220
sequence< ShapeError > ShapeErrors
Sequence of all shape defects.
Definition: GEOM_Gen.idl:4528