Last change
on this file since 182 was 15, checked in by Bayard Gildas, 9 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 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 | namespace gui {
|
---|
20 |
|
---|
21 | class LayoutPosition;
|
---|
22 |
|
---|
23 | /*! \class CheckBox
|
---|
24 | *
|
---|
25 | * \brief Class displaying a QCheckBox on the ground station
|
---|
26 | *
|
---|
27 | */
|
---|
28 | class CheckBox : public Box {
|
---|
29 | public:
|
---|
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 |
|
---|
62 | private:
|
---|
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.