Last change
on this file since 60 was 13, checked in by Bayard Gildas, 9 years ago |
formatting script + include reformatted
|
File size:
1.3 KB
|
Rev | Line | |
---|
[2] | 1 | // %flair:license{
|
---|
[13] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[2] | 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 |
|
---|
[13] | 18 | namespace flair {
|
---|
| 19 | namespace gui {
|
---|
[2] | 20 |
|
---|
[13] | 21 | class LayoutPosition;
|
---|
[2] | 22 |
|
---|
[13] | 23 | /*! \class ComboBox
|
---|
| 24 | *
|
---|
| 25 | * \brief Class displaying a QComboBox on the ground station
|
---|
| 26 | *
|
---|
| 27 | */
|
---|
| 28 | class ComboBox : public Box {
|
---|
| 29 | public:
|
---|
| 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);
|
---|
[2] | 39 |
|
---|
[13] | 40 | /*!
|
---|
| 41 | * \brief Destructor
|
---|
| 42 | *
|
---|
| 43 | */
|
---|
| 44 | ~ComboBox();
|
---|
[2] | 45 |
|
---|
[13] | 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);
|
---|
[2] | 54 |
|
---|
[13] | 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;
|
---|
[2] | 63 |
|
---|
[13] | 64 | private:
|
---|
| 65 | /*!
|
---|
| 66 | * \brief XmlEvent from ground station
|
---|
| 67 | *
|
---|
| 68 | * Reimplemented from Widget.
|
---|
| 69 | *
|
---|
| 70 | */
|
---|
| 71 | void XmlEvent(void);
|
---|
[2] | 72 |
|
---|
[13] | 73 | int box_value;
|
---|
| 74 | };
|
---|
[2] | 75 |
|
---|
| 76 | } // end namespace gui
|
---|
| 77 | } // end namespace flair
|
---|
| 78 |
|
---|
| 79 | #endif // COMBOBOX_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.