Flair
Framework Libre Air
SpinBox.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 SPINBOX_H
14 #define SPINBOX_H
15 
16 #include <Box.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class LayoutPosition;
22 
28 class SpinBox : public Box {
29 public:
43  SpinBox(const LayoutPosition *position, std::string name, int min, int max,
44  int step, int default_value = 0);
59  SpinBox(const LayoutPosition *position, std::string name, std::string suffix,
60  int min, int max, int step, int default_value = 0);
61 
66  ~SpinBox();
67 
73  int Value(void) const;
74 
75 private:
82  void XmlEvent(void);
83 
84  int box_value;
85 };
86 
87 } // end namespace gui
88 } // end namespace flair
89 
90 #endif // SPINBOX_H
namespace of the flair Framework
Definition: Ahrs.h:19
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
~SpinBox()
Destructor.
int Value(void) const
Value.
Abstract class to display a box on the ground station.
Definition: Box.h:35
SpinBox(const LayoutPosition *position, std::string name, int min, int max, int step, int default_value=0)
Constructor.
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.