// 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
//
//
//
#ifndef SMESHGUI_FilterDlg_H
#define SMESHGUI_FilterDlg_H
+#include "SMESH_SMESHGUI.hxx"
+
#include <qdialog.h>
#include <qframe.h>
#include <qmap.h>
#include <qvaluelist.h>
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_InteractiveObject.hxx"
#include "SALOME_DataMapOfIOMapOfInteger.hxx"
#include "SVTK_Selection.h"
class QTable;
class QTableItem;
class QWidgetStack;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
class SMESHGUI;
class SMESHGUI_FilterLibraryDlg;
class SVTK_Selector;
* - Buttons for editing table
*/
-class SMESHGUI_FilterTable : public QFrame
+class SMESHGUI_EXPORT SMESHGUI_FilterTable : public QFrame
{
Q_OBJECT
typedef QMap<int, Table*> TableMap;
public:
- SMESHGUI_FilterTable (QWidget* parent,
+ SMESHGUI_FilterTable( SMESHGUI*,
+ QWidget* parent,
const int type);
- SMESHGUI_FilterTable (QWidget* parent,
+ SMESHGUI_FilterTable( SMESHGUI*,
+ QWidget* parent,
const QValueList<int>& type);
virtual ~SMESHGUI_FilterTable();
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:
void AddToClicked();
void EntityTypeChanged (const int);
void NeedValidation();
- void CretarionChanged (const int theRow, const int theEntityType);
+ void CriterionChanged (const int theRow, const int theEntityType);
void CurrentChanged (int, int);
private slots:
const QMap<int, QString>& getSupportedTypes() const;
private:
+ SMESHGUI* mySMESHGUI;
QGroupBox* myTableGrp;
QGroupBox* mySwitchTableGrp;
QButtonGroup* myEntityTypeGrp;
int myEntityType;
int myIsValid;
+ bool myIsLocked;
SMESHGUI_FilterLibraryDlg* myLibDlg;
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 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*);
// initial fields
QValueList<int> myTypes;
SMESHGUI* mySMESHGUI;
- SalomeApp_SelectionMgr* mySelectionMgr;
+ LightApp_SelectionMgr* mySelectionMgr;
SVTK_Selector* mySelector;
- SVTK_ViewWindow* myViewWindow;
SMESH::SMESH_Mesh_ptr myMesh;
QWidget* mySourceWg;
QMap< int, SMESH::Filter_var > myFilter;
QMap< int, bool > myInsertState;
QMap< int, int > myApplyToState;
+
+ QString myHelpFileName;
};
#endif