Back to index

salome-smesh  6.5.0
SMESHGUI_DeleteGroupDlg.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_DeleteGroupDlg.h
00024 // Author : Sergey LITONIN, Open CASCADE S.A.S.
00025 //
00026 #ifndef SMESHGUI_DELETEGROUPDLG_H
00027 #define SMESHGUI_DELETEGROUPDLG_H
00028 
00029 // SMESH includes
00030 #include "SMESH_SMESHGUI.hxx"
00031 
00032 // Qt includes
00033 #include <QDialog>
00034 
00035 // IDL includes
00036 #include <SALOMEconfig.h>
00037 #include CORBA_SERVER_HEADER(SMESH_Group)
00038 
00039 class QPushButton;
00040 class QListWidget;
00041 class SMESHGUI;
00042 class LightApp_SelectionMgr;
00043 
00049 class SMESHGUI_EXPORT SMESHGUI_DeleteGroupDlg : public QDialog
00050 {
00051   Q_OBJECT
00052 
00053 public:
00054   SMESHGUI_DeleteGroupDlg( SMESHGUI* );
00055   virtual ~SMESHGUI_DeleteGroupDlg();
00056 
00057   void                    Init ();
00058 
00059 private:
00060   void                    closeEvent( QCloseEvent* );
00061   void                    enterEvent( QEvent* );
00062   void                    keyPressEvent( QKeyEvent* );
00063 
00064 private slots:
00065   void                    onOk();
00066   bool                    onApply();
00067   void                    onClose();
00068   void                    onHelp();
00069 
00070   void                    onDeactivate();
00071 
00072   void                    onSelectionDone();
00073 
00074 private:
00075   QWidget*                createButtonFrame( QWidget* );
00076   QWidget*                createMainFrame( QWidget* );
00077   bool                    isValid();
00078 
00079 private:
00080   QPushButton*            myOkBtn;
00081   QPushButton*            myApplyBtn;
00082   QPushButton*            myCloseBtn;
00083   QPushButton*            myHelpBtn;
00084   QListWidget*            myListBox;
00085 
00086   SMESHGUI*               mySMESHGUI;
00087   LightApp_SelectionMgr*  mySelectionMgr;
00088 
00089   QList<SMESH::SMESH_GroupBase_var> myListGrp;
00090   bool                    myBlockSelection;
00091 
00092   QString                 myHelpFileName;
00093 };
00094 
00095 #endif // SMESHGUI_DELETEGROUPDLG_H