Version: 6.3.1

src/VISUGUI/VisuGUI_InputPane.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : GUI of VISU component
00024 //  File   : VisuGUI_InputPane.h
00025 //  Author : Oleg UVAROV
00026 //  Module : VISU
00027 //
00028 #ifndef VISUGUI_INPUTPANE_H
00029 #define VISUGUI_INPUTPANE_H
00030 
00031 #include "VISUConfig.hh"
00032 
00033 #include "SALOME_ListIO.hxx"
00034 
00035 #include <QGroupBox>
00036 
00037 class QCheckBox;
00038 class QComboBox;
00039 class QLineEdit;
00040 class QListWidgetItem;
00041 class QToolButton;
00042 
00043 class SalomeApp_Module;
00044 class LightApp_SelectionMgr;
00045 
00046 class VisuGUI_ListWidget;
00047 class VisuGUI_Prs3dDlg;
00048 class VisuGUI_FieldFilter;
00049 
00050 namespace VISU
00051 {
00052   class ColoredPrs3d_i;
00053   class Result_i;
00054 }
00055 
00056 class VisuGUI_InputPane : public QGroupBox
00057 {
00058   Q_OBJECT
00059 
00060 public:
00061   VisuGUI_InputPane( VISU::VISUType theType,
00062                      SalomeApp_Module* theModule,
00063                      VisuGUI_Prs3dDlg* theDialog );
00064   virtual ~VisuGUI_InputPane();
00065 
00066 public:
00067   virtual bool       check();
00068   virtual void       clear();
00069 
00070   void               initFromPrsObject( VISU::ColoredPrs3d_i* );
00071   int                storeToPrsObject( VISU::ColoredPrs3d_i* );
00072 
00073   bool               eventFilter (QObject* object, QEvent* event);
00074   void               SetRestoreInitialSelection(bool on);
00075   bool               GetRestoreInitialSelection();
00076 
00077 public slots:
00078   virtual void       onSelectionChanged();
00079   virtual void       onReInitialize( bool );
00080   virtual void       changeTimeStamp( int );
00081 
00082 private slots:
00083   void               onTypeChanged();
00084   void               onListDoubleClicked( QListWidgetItem* theItem );
00085   void               onAdd();
00086   void               onRemove();
00087 
00088 private:
00089   SalomeApp_Module*  myModule;
00090   VisuGUI_Prs3dDlg*  myDialog;
00091   VISU::ColoredPrs3d_i* myPrs;
00092 
00093   QGroupBox*         myUseGroupsGroupBox;
00094   VisuGUI_ListWidget* myAllGroups;
00095   VisuGUI_ListWidget* mySelectedGroups;
00096   QToolButton*       myAddButton;
00097   QToolButton*       myRemoveButton;
00098 
00099   QGroupBox*         myDataSourceGroupBox;
00100   QLineEdit*         myMedFile;
00101   QLineEdit*         myMeshName;
00102   QLineEdit*         myEntityName;
00103   QLineEdit*         myFieldName;
00104   QComboBox*         myTimeStamps;
00105   QCheckBox*         myReInit;
00106 
00107   VISU::Result_var   myResult;
00108   int                myEntity;
00109   bool               isRestoreInitialSelection;
00110 
00111   VisuGUI_FieldFilter* myFieldFilter;
00112   SALOME_ListIO        mySavedSelection;
00113 };
00114 
00115 #endif
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