source: flair-src/trunk/lib/FlairCore/src/ComboBox.h@ 217

Last change on this file since 217 was 15, checked in by Bayard Gildas, 8 years ago

sources reformatted with flair-format-dir script

File size: 1.3 KB
Line 
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}
5/*!
6 * \file ComboBox.h
7 * \brief Class displaying a QComboBox on the ground station
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2011/10/07
10 * \version 4.0
11 */
12
13#ifndef COMBOBOX_H
14#define COMBOBOX_H
15
16#include <Box.h>
17
18namespace flair {
19namespace gui {
20
21class LayoutPosition;
22
23/*! \class ComboBox
24*
25* \brief Class displaying a QComboBox on the ground station
26*
27*/
28class ComboBox : public Box {
29public:
30 /*!
31 * \brief Constructor
32 *
33 * Construct a QComboBox at given position.
34 *
35 * \param position position to display the QComboBox
36 * \param name name
37 */
38 ComboBox(const LayoutPosition *position, std::string name);
39
40 /*!
41 * \brief Destructor
42 *
43 */
44 ~ComboBox();
45
46 /*!
47 * \brief Add an item
48 *
49 * Add an item to the end of the list.
50 *
51 * \param name item nam
52 */
53 void AddItem(std::string name);
54
55 /*!
56 * \brief Currend index
57 *
58 * Index of the currently selected item. Items are numbered starting to 0.
59 *
60 * \return index number
61 */
62 int CurrentIndex(void) const;
63
64private:
65 /*!
66 * \brief XmlEvent from ground station
67 *
68 * Reimplemented from Widget.
69 *
70 */
71 void XmlEvent(void);
72
73 int box_value;
74};
75
76} // end namespace gui
77} // end namespace flair
78
79#endif // COMBOBOX_H
Note: See TracBrowser for help on using the repository browser.