source: flair-src/trunk/lib/FlairCore/src/CheckBox.h@ 67

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

sources reformatted with flair-format-dir script

File size: 1.3 KB
RevLine 
[2]1// %flair:license{
[15]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 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
[15]18namespace flair {
19namespace gui {
[2]20
[15]21class LayoutPosition;
[2]22
[15]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);
[2]41
[15]42 /*!
43 * \brief Destructor
44 *
45 */
46 ~CheckBox();
[2]47
[15]48 /*!
49 * \brief Is checked?
50 *
51 * \return true if checked
52 */
53 bool IsChecked(void) const;
[2]54
[15]55 /*!
56 * \brief Value
57 *
58 * \return 1 if checked, 0 otherwise
59 */
60 int Value(void) const;
[2]61
[15]62private:
63 /*!
64 * \brief XmlEvent from ground station
65 *
66 * Reimplemented from Widget.
67 *
68 */
69 void XmlEvent(void);
[2]70
[15]71 bool box_value;
72};
[2]73
74} // end namespace gui
75} // end namespace flair
76
77#endif // CHECKBOX_H
Note: See TracBrowser for help on using the repository browser.