26 #ifndef STDMESHERSGUI_CartesianParamCreator_H
27 #define STDMESHERSGUI_CartesianParamCreator_H
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
37 #include CORBA_SERVER_HEADER(SMESH_Hypothesis)
40 #include <QItemDelegate>
42 class QAbstractItemModel;
48 class QListWidgetItem;
51 class QStyleOptionViewItem;
53 class QTreeWidgetItem;
58 namespace StdMeshersGUI
60 void getFromItem(QTreeWidgetItem * item,
double& t0,
double& t1, QString& fun );
61 QTreeWidgetItem*
setToItem (
double t0,
double t1,
const QString& fun, QTreeWidgetItem* item=0);
64 QListWidgetItem*
coordToItem(
double coord, QListWidgetItem * item=0);
77 void setSpacing( SMESH::string_array_var funs, SMESH::double_array_var points );
79 bool checkParams(QString& msg, SMESH::SMESH_Hypothesis_var& hyp)
const;
82 void getSpacing(SMESH::string_array_out funs, SMESH::double_array_out points)
const;
118 void setModelData(
QWidget* editor, QAbstractItemModel* model,
const QModelIndex& index )
const;
143 bool updateAxesPreview();
144 void onOrthogonalAxes(
bool);
145 void onAxisDirChange(
const QString&);
146 void onSelectionChange();
147 void onOptimalAxes(
bool);
148 void onResetAxes(
bool);
149 void onGridModeChanged(
int);
170 #endif // STDMESHERSGUI_CartesianParamCreator_H