Salome HOME
Update copyright information
[modules/visu.git] / src / VISUGUI / VisuGUI_EvolutionDlg.h
1 // Copyright (C) 2007-2012  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.
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 //  File   : VisuGUI_EvolutionDlg.h
21 //  Author : Oleg UVAROV
22 //  Module : VISU
23 //
24 #ifndef VISUGUI_EVOLUTIONDLG_H
25 #define VISUGUI_EVOLUTIONDLG_H
26
27 #include <QtxDialog.h>
28
29 #include <SALOMEDSClient_Study.hxx>
30
31 #include <SVTK_Selection.h>
32
33 class QComboBox;
34 class QIntValidator;
35 class QKeyEvent;
36 class QLineEdit;
37
38 class SALOME_Actor;
39 class SVTK_ViewWindow;
40
41 class VisuGUI;
42 class VISU_Evolution;
43
44 class VisuGUI_EvolutionDlg: public QtxDialog
45 {
46   Q_OBJECT
47
48 public:
49   VisuGUI_EvolutionDlg( VisuGUI* theModule, _PTR(Study) theStudy );
50   ~VisuGUI_EvolutionDlg();
51
52 public:
53   bool                      setField( _PTR(SObject) theField );
54
55   void                      restoreFromStudy( _PTR(SObject) theEvolution );
56
57 protected:
58   virtual void              setVisible( bool theIsVisible );
59   virtual void              keyPressEvent( QKeyEvent* theEvent );
60
61 protected slots:
62   virtual void              accept();
63
64 private:
65   void                      updateFromEngine();
66
67 private slots:
68   void                      onPointEdited( const QString& );
69   void                      onSelectionEvent();
70   void                      onViewWindowClosed();
71   void                      onHelp();
72
73 private:
74   VisuGUI*                  myModule;
75   VISU_Evolution*           myEngine;
76
77   QLineEdit*                myFieldLE;
78   QLineEdit*                myPointLE;
79   QComboBox*                myComponentCB;
80
81   QIntValidator*            myPointValidator;
82
83   SVTK_ViewWindow*          myViewWindow;
84   SALOME_Actor*             myPreviewActor;
85   Selection_Mode            myStoredSelectionMode;
86 };
87
88 #endif //VISUGUI_EVOLUTIONDLG_H