/** @file * @author Edouard DUPIN * @copyright 2011, Edouard DUPIN, all right reserved * @license MPL v2.0 (see license file) */ #pragma once #include #include #include #include #include #include #include namespace appl { namespace widget { class UpBar; using UpBarShared = ememory::SharedPtr; using UpBarWeak = ememory::WeakPtr; class UpBar : public ewol::widget::Composer { public: // properties eproperty::Value propertyType; //!< Type of the bar eproperty::Value propertyValue; //!< value of the bar ... public: // signals esignal::Signal signalChange; //!< Value of the bar protected: UpBar(); void init() override; public: DECLARE_WIDGET_FACTORY(UpBar, "appl_UpBar"); virtual ~UpBar(); private: // callback functions: void onCallbackLightRequest(const float& _value); void onCallbackVolumeRequest(const float& _value); void onCallbackHide(const float& _value); void onChangePropertyType(); void onChangePropertyValue(); }; }; };