X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Fgui%2FMEDWidgetHelper.hxx;h=5d64823b4fecd926b42bf0c6749b123c82381167;hb=e14b6ab9f409fe42f5c210582b1520e213eb3e8c;hp=2fbeaadca42d5a887adcdaf72d42a0458a3fe221;hpb=ede17e79573b8cbb9a384e698a925450cc386a89;p=modules%2Fmed.git diff --git a/src/MEDCalc/gui/MEDWidgetHelper.hxx b/src/MEDCalc/gui/MEDWidgetHelper.hxx index 2fbeaadca..5d64823b4 100644 --- a/src/MEDCalc/gui/MEDWidgetHelper.hxx +++ b/src/MEDCalc/gui/MEDWidgetHelper.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2016 CEA/DEN, EDF R&D +// Copyright (C) 2016-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,7 @@ #ifndef SRC_MEDCALC_GUI_MEDWIDGETHELPER_HXX_ #define SRC_MEDCALC_GUI_MEDWIDGETHELPER_HXX_ +#include #include "WidgetPresentationParameters.hxx" #include "PresentationEvent.hxx" @@ -30,7 +31,7 @@ class WidgetPresentationParameters; class PresentationController; /*! - * The widget helper hierarchy is in charge of seting up the WidgetPresentationParameters + * The widget helper hierarchy is in charge of setting up the WidgetPresentationParameters * to display the Qt widgets relevant to the underlying presentation on the component side. */ class MEDWidgetHelper : public QObject @@ -40,7 +41,7 @@ class MEDWidgetHelper : public QObject public: virtual ~MEDWidgetHelper(); - virtual void udpateWidget(); + virtual void updateWidget(bool connect); virtual void releaseWidget(); ///! Returns the string X in the Python command "Update" or "GetParameters" @@ -50,7 +51,7 @@ signals: void presentationUpdateSignal(const PresentationEvent *); protected: - // Only child classes to be instanciated: + // Only child classes to be instantiated: MEDWidgetHelper(const PresentationController* presController, MEDCALC::MEDPresentationManager_ptr presManager, int presId, const std::string & presName, WidgetPresentationParameters * paramWidget); @@ -60,6 +61,11 @@ protected slots: void onComponentChanged(int idx); void onColorMapChanged(int idx); void onScalarBarRangeChanged(int idx); + void onScalarBarVisibilityChanged(int idx); + void onUseCustomRangeChanged(int idx); + void onCustomRangeValueChanged(double min, double max); + void onHideDataOutsideCustomRangeChanged(int idx); + protected: ///! GUI needs to talk directly to the pres manager to activate a view, get some params, etc ...: @@ -74,6 +80,9 @@ protected: int _selectedCompo; // Selected field component int _nbCompos; // Total number of available components std::vector _allCompos; // All available components + bool _scalarBarVisibility; + double _scalarBarRangeArray[2]; + bool _hideDataOutsideCustomRange; // Color map MEDCALC::ColorMapType _colorMap;