smesh/src/SMESHGUI/SMESHGUI_DeleteGroupDlg.h

100 lines
2.7 KiB
C
Raw Normal View History

2013-04-01 19:05:47 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
2004-12-01 15:48:31 +05:00
//
2012-08-09 16:03:55 +06:00
// 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.
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// 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.
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// 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
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2009-02-17 10:27:49 +05:00
//
2012-08-09 16:03:55 +06:00
2009-02-17 10:27:49 +05:00
// File : SMESHGUI_DeleteGroupDlg.h
// Author : Sergey LITONIN, Open CASCADE S.A.S.
2004-12-01 15:48:31 +05:00
//
#ifndef SMESHGUI_DELETEGROUPDLG_H
#define SMESHGUI_DELETEGROUPDLG_H
2009-02-17 10:27:49 +05:00
// SMESH includes
#include "SMESH_SMESHGUI.hxx"
2012-12-13 17:41:29 +06:00
#include <SALOME_ListIO.hxx>
2009-02-17 10:27:49 +05:00
// Qt includes
#include <QDialog>
2004-12-01 15:48:31 +05:00
2009-02-17 10:27:49 +05:00
// IDL includes
2004-12-01 15:48:31 +05:00
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_Group)
class QPushButton;
2009-02-17 10:27:49 +05:00
class QListWidget;
2005-06-08 12:18:53 +06:00
class SMESHGUI;
class LightApp_SelectionMgr;
2005-06-08 12:18:53 +06:00
/*!
* Class : SMESHGUI_DeleteGroupDlg
* Description : Delete groups and their contents
*/
2004-12-01 15:48:31 +05:00
class SMESHGUI_EXPORT SMESHGUI_DeleteGroupDlg : public QDialog
{
2004-12-01 15:48:31 +05:00
Q_OBJECT
2004-12-01 15:48:31 +05:00
public:
2009-02-17 10:27:49 +05:00
SMESHGUI_DeleteGroupDlg( SMESHGUI* );
virtual ~SMESHGUI_DeleteGroupDlg();
2005-06-08 12:18:53 +06:00
void Init ();
2004-12-01 15:48:31 +05:00
private:
2009-02-17 10:27:49 +05:00
void enterEvent( QEvent* );
void keyPressEvent( QKeyEvent* );
2013-02-28 21:07:35 +06:00
protected slots:
virtual void reject();
2004-12-01 15:48:31 +05:00
private slots:
void onOk();
bool onApply();
void onHelp();
2004-12-01 15:48:31 +05:00
void onDeactivate();
2004-12-01 15:48:31 +05:00
void onSelectionDone();
2004-12-01 15:48:31 +05:00
private:
2009-02-17 10:27:49 +05:00
QWidget* createButtonFrame( QWidget* );
QWidget* createMainFrame( QWidget* );
bool isValid();
2004-12-01 15:48:31 +05:00
private:
QPushButton* myOkBtn;
QPushButton* myApplyBtn;
QPushButton* myCloseBtn;
QPushButton* myHelpBtn;
2009-02-17 10:27:49 +05:00
QListWidget* myListBox;
2005-06-08 12:18:53 +06:00
SMESHGUI* mySMESHGUI;
LightApp_SelectionMgr* mySelectionMgr;
2012-12-13 17:41:29 +06:00
SALOME_ListIO myListGrpIO;
2009-02-17 10:27:49 +05:00
QList<SMESH::SMESH_GroupBase_var> myListGrp;
bool myBlockSelection;
QString myHelpFileName;
2004-12-01 15:48:31 +05:00
};
2009-02-17 10:27:49 +05:00
#endif // SMESHGUI_DELETEGROUPDLG_H