1 // Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : VisuGUI_EvolutionDlg.h
21 // Author : Oleg UVAROV
24 #ifndef VISUGUI_EVOLUTIONDLG_H
25 #define VISUGUI_EVOLUTIONDLG_H
27 #include <QtxDialog.h>
29 #include <SALOMEDSClient_Study.hxx>
31 #include <SVTK_Selection.h>
39 class SVTK_ViewWindow;
44 class VisuGUI_EvolutionDlg: public QtxDialog
49 VisuGUI_EvolutionDlg( VisuGUI* theModule, _PTR(Study) theStudy );
50 ~VisuGUI_EvolutionDlg();
53 bool setField( _PTR(SObject) theField );
55 void restoreFromStudy( _PTR(SObject) theEvolution );
58 virtual void setVisible( bool theIsVisible );
59 virtual void keyPressEvent( QKeyEvent* theEvent );
62 virtual void accept();
65 void updateFromEngine();
68 void onPointEdited( const QString& );
69 void onSelectionEvent();
70 void onViewWindowClosed();
75 VISU_Evolution* myEngine;
79 QComboBox* myComponentCB;
81 QIntValidator* myPointValidator;
83 SVTK_ViewWindow* myViewWindow;
84 SALOME_Actor* myPreviewActor;
85 Selection_Mode myStoredSelectionMode;
88 #endif //VISUGUI_EVOLUTIONDLG_H