Back to index

salome-smesh  6.5.0
SMESHGUI_MakeNodeAtPointDlg.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 // File   : SMESHGUI_MakeNodeAtPointDlg.h
00024 // Author : Edward AGAPOV, Open CASCADE S.A.S.
00025 //
00026 #ifndef SMESHGUI_MAKENODEATPOINTDLG_H
00027 #define SMESHGUI_MAKENODEATPOINTDLG_H
00028 
00029 // SMESH includes
00030 #include "SMESH_SMESHGUI.hxx"
00031 
00032 #include "SMESHGUI_Dialog.h"
00033 #include "SMESHGUI_SelectionOp.h"
00034 
00035 class QGroupBox;
00036 class QLineEdit;
00037 class QPushButton;
00038 class QCheckBox;
00039 class SMESHGUI_SpinBox;
00040 class SMESHGUI_MeshEditPreview;
00041 class SMESHGUI_MakeNodeAtPointDlg;
00042 
00046 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointOp: public SMESHGUI_SelectionOp
00047 {
00048   Q_OBJECT
00049 
00050 public:
00051   SMESHGUI_MakeNodeAtPointOp();
00052   virtual ~SMESHGUI_MakeNodeAtPointOp();
00053 
00054   virtual LightApp_Dialog*       dlg() const;  
00055 
00056 protected:
00057 
00058   virtual void                   startOperation();
00059   virtual void                   stopOperation();
00060 
00061   virtual void                   activateSelection();
00062 
00063   bool                           isValid( QString& );
00064 
00065 protected slots:
00066   virtual bool                   onApply();
00067 
00068 private slots:
00069   void                           onSelectionDone();
00070   void                           redisplayPreview();
00071   void                           onTextChange( const QString& );
00072 
00073 private:
00074   SMESHGUI_MakeNodeAtPointDlg*  myDlg;
00075 
00076   SUIT_SelectionFilter*         myFilter;
00077   int                           myMeshOldDisplayMode;
00078   SMESHGUI_MeshEditPreview*     mySimulation;
00079   SMESH_Actor*                  myMeshActor;
00080   bool                          myNoPreview;
00081 };
00082 
00087 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointDlg : public SMESHGUI_Dialog
00088 {
00089   Q_OBJECT
00090 
00091 public:
00092   SMESHGUI_MakeNodeAtPointDlg();
00093 
00094 private:
00095   QWidget*                      createMainFrame( QWidget* );
00096 
00097   QPushButton*                  myCoordBtn;
00098   SMESHGUI_SpinBox*             myX;
00099   SMESHGUI_SpinBox*             myY;
00100   SMESHGUI_SpinBox*             myZ;
00101   QGroupBox*                    myNodeToMoveGrp;
00102   QPushButton*                  myIdBtn;
00103   QLineEdit*                    myId;
00104   SMESHGUI_SpinBox*             myCurrentX;
00105   SMESHGUI_SpinBox*             myCurrentY;
00106   SMESHGUI_SpinBox*             myCurrentZ;
00107   SMESHGUI_SpinBox*             myDX;
00108   SMESHGUI_SpinBox*             myDY;
00109   SMESHGUI_SpinBox*             myDZ;
00110   QCheckBox*                    myAutoSearchChkBox;
00111   QCheckBox*                    myPreviewChkBox;
00112 
00113   QString                       myHelpFileName;
00114 
00115   friend class SMESHGUI_MakeNodeAtPointOp;
00116 
00117 private slots:
00118   void                          ButtonToggled( bool );
00119 };
00120 
00121 #endif // SMESHGUI_MAKENODEATPOINTDLG_H