Spin.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <vector>
9 #include <etk/types.hpp>
11 
12 namespace ewol {
13  namespace widget {
14  class Spin;
15  using SpinShared = ememory::SharedPtr<ewol::widget::Spin>;
16  using SpinWeak = ememory::WeakPtr<ewol::widget::Spin>;
21  class Spin : public ewol::widget::SpinBase {
22  public:
23  // Event list of properties
24  esignal::Signal<int64_t> signalValue;
25  esignal::Signal<double> signalValueDouble;
26  public:
32  protected:
38  Spin();
39  public:
40  DECLARE_WIDGET_FACTORY(Spin, "Spin");
44  virtual ~Spin();
45  protected:
46  virtual void checkValue(int64_t _value);
47  virtual void updateGui();
48  protected:
49  void onCallbackUp();
50  void onCallbackDown();
51  protected:
52  esignal::Connection m_connectionEntry;
53  esignal::Connection m_connectionButtonUp;
54  esignal::Connection m_connectionButtonDown;
55  protected:
56  virtual void onChangePropertyValue();
57  virtual void onChangePropertyMin();
58  virtual void onChangePropertyMax();
59  virtual void onChangePropertyIncrement();
60  virtual void onChangePropertyMantis();
61  };
62  };
63 };
virtual ~Spin()
Destructor.
Definition: Area.hpp:16
a composed Spin is a Spin with an inside composed with the specify XML element ==> this permit to gen...
Definition: Spin.hpp:21
eproperty::Value< int64_t > propertyMin
Minimum value.
Definition: Spin.hpp:28
eproperty::Value< int64_t > propertyIncrement
Increment value.
Definition: Spin.hpp:30
eproperty::Value< int64_t > propertyValue
Current value of the Spin.
Definition: Spin.hpp:27
eproperty::Value< int64_t > propertyMax
Maximum value.
Definition: Spin.hpp:29
Definition: SpinBase.hpp:64
Spin()
Constructor.
eproperty::Value< int8_t > propertyMantis
number of value under &#39;.&#39; value
Definition: Spin.hpp:31