27 #ifndef SMESHGUI_HYPOTHESES_H
28 #define SMESHGUI_HYPOTHESES_H
35 #include <QtxDialog.h>
39 #include <SALOMEconfig.h>
40 #include CORBA_SERVER_HEADER(SMESH_Hypothesis)
55 void create( SMESH::SMESH_Hypothesis_ptr,
57 void create(
bool,
const QString&,
QWidget*,
QObject*,
const QString& );
58 void edit( SMESH::SMESH_Hypothesis_ptr,
const QString&,
QWidget*,
QObject*,
const QString& );
59 void setInitParamsHypothesis(SMESH::SMESH_Hypothesis_ptr);
61 virtual bool checkParams( QString& )
const;
62 virtual void onReject();
63 virtual QString helpPage()
const;
65 QString hypType()
const;
66 QString hypName()
const;
67 bool isCreation()
const;
70 void setShapeEntry(
const QString& theEntry );
93 ((QByteArray&) myTextAsBytes) = myText.toLatin1();
return myTextAsBytes.constData();
100 SMESH::SMESH_Hypothesis_var hypothesis()
const;
101 SMESH::SMESH_Hypothesis_var initParamsHypothesis(
const bool strict=
false)
const;
102 bool hasInitParamsHypothesis()
const;
105 QLabel* getLabel(
int i)
const;
107 QString getVariableName(
const char* methodName)
const;
109 virtual QFrame* buildFrame() = 0;
111 virtual void retrieveParams()
const = 0;
112 virtual QString storeParams()
const = 0;
115 virtual QStringList getVariablesFromDlg()
const;
117 virtual void attuneStdWidget(
QWidget*,
const int )
const;
120 virtual QWidget* getHelperWidget()
const;
122 virtual void valueChanged(
QWidget* );
123 virtual QString caption()
const;
124 virtual QPixmap icon()
const;
125 virtual QString type()
const;
128 virtual void onValueChanged();
131 virtual void onDialogFinished(
int );
134 void editHypothesis( SMESH::SMESH_Hypothesis_ptr,
const QString&,
QWidget*,
QObject* obj,
const QString& );
160 void setType(
const QString& );
179 const QString&,
const QString&,
const QString&,
180 const QString&,
const int,
const int,
181 const QList<int>&,
const bool,
182 const QStringList&,
const QStringList&,
183 const QStringList&,
const QStringList&,
184 const int,
const bool supportSub );
219 HypothesesSet(
const QString&,
const QStringList&,
const QStringList& );
221 QString
name()
const;
222 void set(
bool,
const QStringList& );
223 int count(
bool )
const;
239 QStringList*
list(
bool)
const;
240 QStringList*
list()
const;
249 #endif // SMESHGUI_HYPOTHESES_H