Flair
Framework Libre Air
ComboBox.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 COMBOBOX_H
14 #define COMBOBOX_H
15 
16 #include <Box.h>
17 
18 namespace flair {
19 namespace gui {
20 
21 class LayoutPosition;
22 
28 class ComboBox : public Box {
29 public:
38  ComboBox(const LayoutPosition *position, std::string name);
39 
44  ~ComboBox();
45 
53  void AddItem(std::string name);
54 
62  int CurrentIndex(void) const;
63 
64 private:
71  void XmlEvent(void);
72 
73  int box_value;
74 };
75 
76 } // end namespace gui
77 } // end namespace flair
78 
79 #endif // COMBOBOX_H
int CurrentIndex(void) const
Currend index.
namespace of the flair Framework
Definition: Ahrs.h:19
ComboBox(const LayoutPosition *position, std::string name)
Constructor.
~ComboBox()
Destructor.
Abstract class to display a box on the ground station.
Definition: Box.h:35
Class displaying a QComboBox on the ground station.
Definition: ComboBox.h:28
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.
void AddItem(std::string name)
Add an item.