Version: 6.3.1

src/SMESHGUI/SMESHGUI_MoveNodesDlg.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 // SMESH SMESHGUI : GUI for SMESH component
00024 // File   : SMESHGUI_MoveNodesDlg.h
00025 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
00026 //
00027 #ifndef SMESHGUI_MOVENODESDLG_H
00028 #define SMESHGUI_MOVENODESDLG_H
00029 
00030 // SMESH includes
00031 #include "SMESH_SMESHGUI.hxx"
00032 
00033 // Qt includes
00034 #include <QDialog>
00035 
00036 class QLineEdit;
00037 class QPushButton;
00038 
00039 class SMESHGUI;
00040 class SMESH_Actor;
00041 class SMESHGUI_SpinBox;
00042 class SALOME_Actor;
00043 class SVTK_Selector;
00044 class LightApp_SelectionMgr;
00045 
00046 //=================================================================================
00047 // class    : SMESHGUI_MoveNodesDlg
00048 // purpose  :
00049 //=================================================================================
00050 class SMESHGUI_EXPORT SMESHGUI_MoveNodesDlg : public QDialog
00051 { 
00052   Q_OBJECT
00053 
00054 public:
00055   SMESHGUI_MoveNodesDlg( SMESHGUI* );
00056   virtual ~SMESHGUI_MoveNodesDlg();
00057     
00058   void                          Init();
00059 
00060 private slots:
00061   void                          onOk();
00062   bool                          onApply();
00063   void                          onClose();
00064   void                          onHelp();
00065 
00066   void                          onDeactivate();
00067 
00068   void                          onSelectionDone();
00069   void                          redisplayPreview();
00070   void                          onTextChange( const QString& );
00071 
00072 private:
00073   void                          closeEvent( QCloseEvent* );
00074   void                          enterEvent( QEvent* );
00075   void                          hideEvent( QHideEvent* );
00076   void                          keyPressEvent( QKeyEvent* );
00077   void                          erasePreview();
00078   QWidget*                      createButtonFrame( QWidget* );
00079   QWidget*                      createMainFrame  ( QWidget* );
00080   bool                          isValid( const bool );
00081   void                          reset();
00082   void                          updateButtons();
00083 
00084 private:
00085   QPushButton*                  myOkBtn;
00086   QPushButton*                  myApplyBtn;
00087   QPushButton*                  myCloseBtn;
00088   QPushButton*                  myHelpBtn;
00089   
00090   QLineEdit*                    myId;
00091   SMESHGUI_SpinBox*             myX;
00092   SMESHGUI_SpinBox*             myY;
00093   SMESHGUI_SpinBox*             myZ;
00094 
00095   LightApp_SelectionMgr*        mySelectionMgr;
00096   SVTK_Selector*                mySelector;
00097   SMESHGUI*                     mySMESHGUI;
00098   
00099   SALOME_Actor*                 myPreviewActor;
00100   SMESH_Actor*                  myMeshActor;
00101   bool                          myBusy;
00102 
00103   QString                       myHelpFileName;
00104 };
00105 
00106 #endif // SMESHGUI_MOVENODESDLG_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