Flair
Framework Libre Air
CheckBox.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 CHECKBOX_H
14 #define CHECKBOX_H
15 
16 #include <Box.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class LayoutPosition;
22 
28 class CheckBox : public Box {
29 public:
39  CheckBox(const LayoutPosition *position, std::string name,
40  bool default_value = true);
41 
46  ~CheckBox();
47 
53  bool IsChecked(void) const;
54 
60  int Value(void) const;
61 
62 private:
69  void XmlEvent(void);
70 
71  bool box_value;
72 };
73 
74 } // end namespace gui
75 } // end namespace flair
76 
77 #endif // CHECKBOX_H
Class displaying a QCheckBox on the ground station.
Definition: CheckBox.h:28
namespace of the flair Framework
Definition: Ahrs.h:19
~CheckBox()
Destructor.
CheckBox(const LayoutPosition *position, std::string name, bool default_value=true)
Constructor.
Abstract class to display a box on the ground station.
Definition: Box.h:35
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
bool IsChecked(void) const
Is checked?
Abstract class to display a box on the ground station.
int Value(void) const
Value.