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