Salome HOME
Mantis 23461 - MED module exception
[modules/med.git] / src / MEDCalc / gui / dialogs / WidgetPresentationParameters.hxx
index 758a545024e9417756795bb4d7d83d6f308c702d..a9d0d5742ff97e0e8c334d71bb1a7d6d4ca71946 100644 (file)
 #include CORBA_SERVER_HEADER(MEDPresentationManager)
 
 #include <QObject>
+#include <vector>
+#include <string>
 
 class MEDCALCGUI_DIALOGS_EXPORT WidgetPresentationParameters : public QWidget
 {
   Q_OBJECT
+
 public:
   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);
+
+  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
+private:
+  Ui_WidgetPresentationParameters _ui; // instance of the class defined in ui_WidgetPresentationParameters.h
+  bool _blockSig;
 };