]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESHGUI/SMESHGUI_CreateHypothesesDlg.h
Salome HOME
Portation on new based dialog
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_CreateHypothesesDlg.h
index e3ee5a9ce859067035a157c624bdedb054209ce3..c1ab1dd6fbe501df8a8e5537da011e4902ed59a6 100644 (file)
 #ifndef DIALOGBOX_CREATE_HYPOTHESES_H
 #define DIALOGBOX_CREATE_HYPOTHESES_H
 
-// QT Includes
-#include <qvariant.h>
-#include <qdialog.h>
-#include <qstringlist.h>
-
-// IDL Headers
-#include <SALOMEconfig.h>
-#include CORBA_SERVER_HEADER(GEOM_Gen)
-#include CORBA_SERVER_HEADER(SMESH_Mesh)
-
-#include <map>
-#include <string>
-
-class QButtonGroup;
-class QGroupBox;
-class QPushButton;
+#include "SMESHGUI_Dialog.h"
+
 class QListView;
 class QListViewItem;
-class SMESHGUI;
 
-//=================================================================================
-// class    : SMESHGUI_CreateHypothesesDlg
-// purpose  :
-//=================================================================================
-class SMESHGUI_CreateHypothesesDlg : public QDialog
+/*!
+ * \brief Dialog for creation of hypotheses and algorithms
+*/
+class SMESHGUI_CreateHypothesesDlg : public SMESHGUI_Dialog
 {
-    Q_OBJECT
+  Q_OBJECT
 
 public:
-    SMESHGUI_CreateHypothesesDlg (QWidget* parent = 0,
-                                 const char* name = 0,
-                                 bool modal = FALSE,
-                                 bool isAlgo = FALSE);
-    ~SMESHGUI_CreateHypothesesDlg ();
-
-private:
-
-    void Init() ;
-    void closeEvent( QCloseEvent* e ) ;
-    void enterEvent ( QEvent * ) ;
-
-    void InitAlgoDefinition();
 
-    SMESHGUI*     mySMESHGUI;
-    bool          myIsAlgo;
+  SMESHGUI_CreateHypothesesDlg ( bool isAlgo );
+  virtual ~SMESHGUI_CreateHypothesesDlg();
 
-    QGroupBox*    GroupButtons;
-    QPushButton*  buttonCancel;
-    QPushButton*  buttonApply;
+  void          init( const QStringList& theHypList,
+                      const QStringList& thePluginNames,
+                      const QStringList& theLabels,
+                      const QStringList& theIconIds );
 
-    QGroupBox* GroupAlgorithms;
-    QListView* ListAlgoDefinition;
+  QString       hypName() const;
 
 private slots:
 
-    void ClickOnCancel();
-    void ClickOnApply();
-    void ActivateThisDialog() ;
+  void          onHypSelected();
+  void          onDoubleClicked( QListViewItem* );
 
-    void onSelectionChanged();
-    void onDoubleClicked(QListViewItem*);
+private:
+
+  QListView*    myList;
+  bool          myIsAlgo;
 };
 
 #endif // DIALOGBOX_CREATE_HYPOTHESES_H
+
+
+