Salome HOME
fix for Bug IPAL9442
[modules/geom.git] / src / BasicGUI / BasicGUI_CurveDlg.h
1 //  GEOM GEOMGUI : GUI for Geometry component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE 
4 // 
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. 
9 // 
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. 
14 // 
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 
18 // 
19 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
20 //
21 //
22 //
23 //  File   : BasicGUI_CurveDlg.h
24 //  Author : Alexander SLADKOV
25 //  Module : GEOM
26 //  $Header$
27
28 #ifndef BASICGUI_CURVE_H
29 #define BASICGUI_CURVE_H
30
31 #include "GEOMBase_Skeleton.h"
32 #include "DlgRef_1Sel_QTD.h"
33
34 #include "BasicGUI.h"
35 #include <list>
36 #if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
37 #define BASICGUI_WNT_EXPORT __declspec( dllexport )
38 #else
39 #define BASICGUI_WNT_EXPORT
40 #endif
41 //#include "GEOM_ShapeTypeFilter.hxx"
42
43 //=================================================================================
44 // class    : BasicGUI_CurveDlg
45 // purpose  :
46 //=================================================================================
47 class BasicGUI_CurveDlg : public GEOMBase_Skeleton
48
49     Q_OBJECT
50
51 public:
52     BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
53     ~BasicGUI_CurveDlg();
54
55 protected:
56     // redefined from GEOMBase_Helper
57     virtual GEOM::GEOM_IOperations_ptr createOperation();
58     virtual bool isValid( QString& );
59     virtual bool execute( ObjectList& objects );
60
61     virtual void closeEvent( QCloseEvent* e );    
62
63 private :
64     void Init();
65     void enterEvent(QEvent* e);
66
67     GeometryGUI* myGeometryGUI;
68
69     DlgRef_1Sel_QTD* GroupPoints;
70     GEOM::ListOfGO_var myPoints;
71     list<GEOM::GEOM_Object_var> myOrderedSel;//!< This list used for managing orderes selection
72
73 private slots:
74     void ClickOnOk();
75     void ClickOnCancel();
76     bool ClickOnApply();
77
78     void ActivateThisDialog();
79     void DeactivateActiveDialog();    
80     
81     void ConstructorsClicked( int );
82     void LineEditReturnPressed();
83     void SelectionIntoArgument();
84     void SetEditCurrentArgument();
85
86 };
87
88 #endif // BASICGUI_CURVE_H