source: flair-dev/trunk/include/FlairCore/CheckBox.h@ 28

Last change on this file since 28 was 13, checked in by Bayard Gildas, 9 years ago

formatting script + include reformatted

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 CheckBox.h
7 * \brief Class displaying a QCheckBox 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 CHECKBOX_H
14#define CHECKBOX_H
15
16#include <Box.h>
17
18namespace flair {
19namespace gui {
20
21class LayoutPosition;
22
23/*! \class CheckBox
24*
25* \brief Class displaying a QCheckBox on the ground station
26*
27*/
28class CheckBox : public Box {
29public:
30 /*!
31 * \brief Constructor
32 *
33 * Construct a QCheckBox at given position.
34 *
35 * \param position position to display the QCheckBox
36 * \param name name
37 * \param default_value default value if not in the xml config file
38 */
39 CheckBox(const LayoutPosition *position, std::string name,
40 bool default_value = true);
41
42 /*!
43 * \brief Destructor
44 *
45 */
46 ~CheckBox();
47
48 /*!
49 * \brief Is checked?
50 *
51 * \return true if checked
52 */
53 bool IsChecked(void) const;
54
55 /*!
56 * \brief Value
57 *
58 * \return 1 if checked, 0 otherwise
59 */
60 int Value(void) const;
61
62private:
63 /*!
64 * \brief XmlEvent from ground station
65 *
66 * Reimplemented from Widget.
67 *
68 */
69 void XmlEvent(void);
70
71 bool box_value;
72};
73
74} // end namespace gui
75} // end namespace flair
76
77#endif // CHECKBOX_H
Note: See TracBrowser for help on using the repository browser.