Version: 6.3.1

src/VISUGUI/VisuGUI_EvolutionDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  File   : VisuGUI_EvolutionDlg.h
00021 //  Author : Oleg UVAROV
00022 //  Module : VISU
00023 //
00024 #ifndef VISUGUI_EVOLUTIONDLG_H
00025 #define VISUGUI_EVOLUTIONDLG_H
00026 
00027 #include <QtxDialog.h>
00028 
00029 #include <SALOMEDSClient_Study.hxx>
00030 
00031 #include <SVTK_Selection.h>
00032 
00033 class QComboBox;
00034 class QIntValidator;
00035 class QKeyEvent;
00036 class QLineEdit;
00037 
00038 class SALOME_Actor;
00039 class SVTK_ViewWindow;
00040 
00041 class VisuGUI;
00042 class VISU_Evolution;
00043 
00044 class VisuGUI_EvolutionDlg: public QtxDialog
00045 {
00046   Q_OBJECT
00047 
00048 public:
00049   VisuGUI_EvolutionDlg( VisuGUI* theModule, _PTR(Study) theStudy );
00050   ~VisuGUI_EvolutionDlg();
00051 
00052 public:
00053   bool                      setField( _PTR(SObject) theField );
00054 
00055   void                      restoreFromStudy( _PTR(SObject) theEvolution );
00056 
00057 protected:
00058   virtual void              setVisible( bool theIsVisible );
00059   virtual void              keyPressEvent( QKeyEvent* theEvent );
00060 
00061 protected slots:
00062   virtual void              accept();
00063 
00064 private:
00065   void                      updateFromEngine();
00066 
00067 private slots:
00068   void                      onPointEdited( const QString& );
00069   void                      onSelectionEvent();
00070   void                      onViewWindowClosed();
00071   void                      onHelp();
00072 
00073 private:
00074   VisuGUI*                  myModule;
00075   VISU_Evolution*           myEngine;
00076 
00077   QLineEdit*                myFieldLE;
00078   QLineEdit*                myPointLE;
00079   QComboBox*                myComponentCB;
00080 
00081   QIntValidator*            myPointValidator;
00082 
00083   SVTK_ViewWindow*          myViewWindow;
00084   SALOME_Actor*             myPreviewActor;
00085   Selection_Mode            myStoredSelectionMode;
00086 };
00087 
00088 #endif //VISUGUI_EVOLUTIONDLG_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS