-// SMESH SMESHGUI : GUI for SMESH component
+// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 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.
//
-// 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
+// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// SMESH SMESHGUI : GUI for SMESH component
// File : SMESHGUI_FilterDlg.h
// Author : Sergey LITONIN
// Module : SMESH
-
-
+//
#ifndef SMESHGUI_FilterDlg_H
#define SMESHGUI_FilterDlg_H
+#include "SMESH_SMESHGUI.hxx"
+
#include <qdialog.h>
#include <qframe.h>
#include <qmap.h>
* - Buttons for editing table
*/
-class SMESHGUI_FilterTable : public QFrame
+class SMESHGUI_EXPORT SMESHGUI_FilterTable : public QFrame
{
Q_OBJECT
QString& theText,
const int theEntityType = -1);
+ void SetID( const int theRow,
+ const QString& theText,
+ const int theEntityType = -1 );
+
+ bool GetID( const int theRow,
+ QString& theText,
+ const int theEntityType = -1 );
+
void Update();
signals:
enum { Mesh, Selection, Dialog, None };
// Buttons
- enum { BTN_OK, BTN_Cancel, BTN_Apply, BTN_Close };
+ enum { BTN_OK, BTN_Cancel, BTN_Apply, BTN_Close, BTN_Help };
public:
SMESHGUI_FilterDlg( SMESHGUI*,
void Init (const int type);
void SetSelection();
- void SetMesh (SMESH::SMESH_Mesh_ptr);
+ void SetMesh (SMESH::SMESH_Mesh_var);
void SetSourceWg (QWidget*);
static SMESH::Filter::Criterion createCriterion();
void onOk();
bool onApply();
void onClose();
+ void onHelp();
void onDeactivate();
void onSelectionDone();
void onCriterionChanged (const int, const int);
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*);
+ void keyPressEvent(QKeyEvent*);
// dialog creation
QFrame* createButtonFrame (QWidget*);
SMESHGUI* mySMESHGUI;
LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
- SMESH::SMESH_Mesh_ptr myMesh;
+ SMESH::SMESH_Mesh_var myMesh;
QWidget* mySourceWg;
SALOME_DataMapOfIOMapOfInteger myIObjects;
QMap< int, SMESH::Filter_var > myFilter;
QMap< int, bool > myInsertState;
QMap< int, int > myApplyToState;
+
+ QString myHelpFileName;
};
#endif