#include CORBA_SERVER_HEADER(MEDPresentationManager)
#include <QObject>
+#include <vector>
+#include <string>
-class WidgetPresentationParameters : public QWidget
+class MEDCALCGUI_DIALOGS_EXPORT WidgetPresentationParameters : public QWidget
{
Q_OBJECT
WidgetPresentationParameters(QWidget* parent = 0);
virtual ~WidgetPresentationParameters() {}
- std::string getField();
- std::string getScalarBarRange();
- double getScalarBarTimestep();
- double getScalarBarMinVal();
- double getScalarBarMaxVal();
- MEDCALC::MEDPresentationColorMap getColorMap();
+ std::string getComponent() const;
+ void setComponents(std::vector<std::string> compos, int selecIndex);
- private:
- Ui_WidgetPresentationParameters ui; // instance of the class defined in ui_WidgetPresentationParameters.h
+ MEDCALC::MeshModeType getMeshMode() const;
+ void setMeshMode(MEDCALC::MeshModeType mode);
+
+ MEDCALC::ScalarBarRangeType getScalarBarRange() const;
+ void setScalarBarRange(MEDCALC::ScalarBarRangeType);
+
+// double getScalarBarTimestep() const;
+// double getScalarBarMinVal() const;
+// double getScalarBarMaxVal() const;
+ MEDCALC::ColorMapType getColorMap() const;
+ void setColorMap(MEDCALC::ColorMapType);
+
+ void setPresName(const std::string& name);
+
+ int getNbContour() const;
+ void setNbContour(int nbContour);
+
+ int getNbSlices() const;
+ void setNbSlices(int nbSlices);
+
+ MEDCALC::SliceOrientationType getSliceOrientation() const;
+ void setSliceOrientation(MEDCALC::SliceOrientationType orient);
+
+ void toggleWidget(bool show);
+ bool isShown() const;
+
+ void toggleCommonFieldWidget(bool show);
+
+signals:
+ void comboScalarBarRangeIndexChanged(int);
+ void comboColorMapIndexChanged(int);
+ void comboCompoIndexChanged(int);
+ void comboOrientIndexChanged(int);
+ void comboMeshIndexChanged(int);
+ void spinBoxValueChanged(int);
+
+private slots:
+ void onComboScalarBarRangeIndexChanged(int);
+ void onComboColorMapIndexChanged(int);
+ void onComboCompoIndexChanged(int);
+ void onComboOrientIndexChanged(int);
+ void onComboMeshIndexChanged(int);
+ void onSpinBoxEditingFinished();
+
+private:
+ Ui_WidgetPresentationParameters _ui; // instance of the class defined in ui_WidgetPresentationParameters.h
+ bool _blockSig;
};