X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_FilterDlg.h;h=2cc71d94ae73bcf608e25ed31d37fe0d086ef102;hb=9d11375af40826e967ab2c3bcb77d1f9d439c90c;hp=8cb544484085a0b42049c6cf173fb4295309fd4f;hpb=25cec45acb2923f66c849516f31337c1a3c4c687;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.h b/src/SMESHGUI/SMESHGUI_FilterDlg.h index 8cb544484..2cc71d94a 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.h +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.h @@ -17,7 +17,7 @@ // 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 +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -29,12 +29,14 @@ #ifndef SMESHGUI_FilterDlg_H #define SMESHGUI_FilterDlg_H +#include "SMESH_SMESHGUI.hxx" + #include #include #include #include -#include "SalomeApp_SelectionMgr.h" +#include "LightApp_SelectionMgr.h" #include "SALOME_InteractiveObject.hxx" #include "SALOME_DataMapOfIOMapOfInteger.hxx" #include "SVTK_Selection.h" @@ -56,7 +58,7 @@ class QStringList; class QTable; class QTableItem; class QWidgetStack; -class SalomeApp_SelectionMgr; +class LightApp_SelectionMgr; class SMESHGUI; class SMESHGUI_FilterLibraryDlg; class SVTK_Selector; @@ -70,7 +72,7 @@ class SVTK_ViewWindow; * - Buttons for editing table */ -class SMESHGUI_FilterTable : public QFrame +class SMESHGUI_EXPORT SMESHGUI_FilterTable : public QFrame { Q_OBJECT @@ -130,6 +132,14 @@ public: 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: @@ -213,7 +223,7 @@ class SMESHGUI_FilterDlg : public QDialog 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*, @@ -243,6 +253,7 @@ private slots: void onOk(); bool onApply(); void onClose(); + void onHelp(); void onDeactivate(); void onSelectionDone(); void onCriterionChanged (const int, const int); @@ -254,6 +265,7 @@ private: void closeEvent (QCloseEvent*); void enterEvent (QEvent*); + void keyPressEvent(QKeyEvent*); // dialog creation QFrame* createButtonFrame (QWidget*); @@ -291,9 +303,8 @@ private: // initial fields QValueList myTypes; SMESHGUI* mySMESHGUI; - SalomeApp_SelectionMgr* mySelectionMgr; + LightApp_SelectionMgr* mySelectionMgr; SVTK_Selector* mySelector; - SVTK_ViewWindow* myViewWindow; SMESH::SMESH_Mesh_ptr myMesh; QWidget* mySourceWg; @@ -302,6 +313,8 @@ private: QMap< int, SMESH::Filter_var > myFilter; QMap< int, bool > myInsertState; QMap< int, int > myApplyToState; + + QString myHelpFileName; }; #endif