SpinBase.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <ewol/debug.hpp>
11 #include <ewol/widget/Manager.hpp>
12 #include <etk/Color.hpp>
14 #include <ewol/widget/Entry.hpp>
15 #include <ewol/widget/Button.hpp>
16 #include <ewol/widget/Sizer.hpp>
17 
18 namespace ewol {
19  namespace widget {
20  enum spinPosition {
57  };
58  class SpinBase;
64  class SpinBase : public ewol::widget::Sizer {
65  public: // properties list:
68  public:
69  UN_DECLARE_FACTORY(SpinBase);
70  protected:
72  int32_t m_confIdEntryShaper;
73  int32_t m_confIdUpShaper;
74  int32_t m_confIdDownShaper;
75  int32_t m_confIdUpData;
76  int32_t m_confIdDownData;
77  protected:
82  SpinBase();
83  void init() override;
84  public:
88  virtual ~SpinBase();
89  protected:
90  ewol::widget::EntryShared m_widgetEntry;
91  ewol::widget::ButtonShared m_widgetButtonDown;
92  ewol::widget::ButtonShared m_widgetButtonUp;
93  virtual void updateGui();
94  public:
95  virtual bool loadXML(const exml::Element& _node) override;
96  protected:
97  virtual void onChangePropertySpinMode();
98  virtual void onChangePropertyShape();
99  };
100  }
101 }
102 
eproperty::Value< std::string > propertyShape
Shape of the widget.
Definition: SpinBase.hpp:66
spinPosition
Definition: SpinBase.hpp:20
SpinBase()
Constructor.
Definition: SpinBase.hpp:50
Definition: SpinBase.hpp:44
Definition: SpinBase.hpp:26
Definition: Area.hpp:16
Definition: SpinBase.hpp:64
virtual ~SpinBase()
Destructor.
virtual bool loadXML(const exml::Element &_node) override
load properties with an XML node.
Definition: SpinBase.hpp:32
Definition: SpinBase.hpp:38
Definition: SpinBase.hpp:56
eproperty::List< enum ewol::widget::spinPosition > propertySpinMode
How to display the spin base.
Definition: SpinBase.hpp:67
Definition: Sizer.hpp:23