Flair
Framework Libre Air
DoubleSpinBox.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef DOUBLESPINBOX_H
14 #define DOUBLESPINBOX_H
15 
16 #include <Box.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class Layout;
22 
28 class DoubleSpinBox : public Box {
29 public:
44  DoubleSpinBox(const LayoutPosition *position, std::string name, double min,
45  double max, double step, int decimals = 2,
46  double default_value = 0);
47 
63  DoubleSpinBox(const LayoutPosition *position, std::string name,
64  std::string suffix, double min, double max, double step,
65  int decimals = 2, double default_value = 0);
66 
72 
78  double Value(void) const;
79 
80 private:
87  void XmlEvent(void);
88 
89  double box_value;
90 };
91 
92 } // end namespace gui
93 } // end namespace flair
94 
95 #endif // DOUBLESPINBOX_H
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class to display a box on the ground station.
Definition: Box.h:35
Class displaying a QDoubleSpinBox on the ground station.
Definition: DoubleSpinBox.h:28
~DoubleSpinBox()
Destructor.
DoubleSpinBox(const LayoutPosition *position, std::string name, double min, double max, double step, int decimals=2, double default_value=0)
Constructor.
double Value(void) const
Value.
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
Abstract class to display a box on the ground station.