X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_MoveNodesOp.h;fp=src%2FSMESHGUI%2FSMESHGUI_MoveNodesOp.h;h=ea0d3fb2c690ff0cec8bc62b9cd1b3b55bb96cb4;hb=ba1cb5f70279795b66d7c2cc34248c3d5498da2c;hp=0000000000000000000000000000000000000000;hpb=2439f9a459c92ba5adbb7ff64f0ad8f04771c4d6;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_MoveNodesOp.h b/src/SMESHGUI/SMESHGUI_MoveNodesOp.h new file mode 100644 index 000000000..ea0d3fb2c --- /dev/null +++ b/src/SMESHGUI/SMESHGUI_MoveNodesOp.h @@ -0,0 +1,72 @@ +// SMESH SMESHGUI : GUI for SMESH component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SMESHGUI_MoveNodesOp.h +// Author : Alexander SOLOVYOV +// Module : SMESH +// $Header$ + +#ifndef OPERATION_MOVE_NODES_H +#define OPERATION_MOVE_NODES_H + +#include + +class SMESHGUI_MoveNodesDlg; +class SALOME_Actor; + +//================================================================================= +// class : SMESHGUI_MoveNodesOp +// purpose : +//================================================================================= +class SMESHGUI_MoveNodesOp : public SMESHGUI_SelectionOp +{ + Q_OBJECT + +public: + SMESHGUI_MoveNodesOp(); + virtual ~SMESHGUI_MoveNodesOp(); + + virtual SalomeApp_Dialog* dlg() const; + +protected: + virtual void startOperation(); + virtual void selectionDone(); + virtual void initDialog(); + virtual void commitOperation(); + virtual void abortOperation(); + + void updateDialog(); + +protected slots: + virtual bool onApply(); + virtual void redisplayPreview(); + +private: + void erasePreview(); + +private: + SALOME_Actor* myPreviewActor; + SMESHGUI_MoveNodesDlg* myDlg; +}; + +#endif // DIALOGBOX_MOVE_NODES_H