Last change
on this file since 26 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.4 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 PushButton.h
|
---|
7 | * \brief Class displaying a QPushButton 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 PUSHBUTTON_H
|
---|
14 | #define PUSHBUTTON_H
|
---|
15 |
|
---|
16 | #include <Widget.h>
|
---|
17 |
|
---|
18 | namespace flair {
|
---|
19 | namespace gui {
|
---|
20 |
|
---|
21 | class LayoutPosition;
|
---|
22 |
|
---|
23 | /*! \class PushButton
|
---|
24 | *
|
---|
25 | * \brief Class displaying a QPushButton on the ground station
|
---|
26 | *
|
---|
27 | */
|
---|
28 | class PushButton : public Widget {
|
---|
29 | public:
|
---|
30 | /*!
|
---|
31 | * \brief Constructor
|
---|
32 | *
|
---|
33 | * Construct a QPushButton at given position. \n
|
---|
34 | * The PushButton will automatically be child of position->getLayout() Layout.
|
---|
35 | *After calling this constructor,
|
---|
36 | * position will be deleted as it is no longer usefull.
|
---|
37 | *
|
---|
38 | * \param parent parent
|
---|
39 | * \param name name
|
---|
40 | */
|
---|
41 | PushButton(const LayoutPosition *position, std::string name);
|
---|
42 |
|
---|
43 | /*!
|
---|
44 | * \brief Destructor
|
---|
45 | *
|
---|
46 | */
|
---|
47 | ~PushButton();
|
---|
48 |
|
---|
49 | /*!
|
---|
50 | * \brief Has been clicled?
|
---|
51 | *
|
---|
52 | * After calling this method, the internal flag
|
---|
53 | * representing the state of the button is
|
---|
54 | * automatically set to false.
|
---|
55 | *
|
---|
56 | * \return true if button was clicked
|
---|
57 | */
|
---|
58 | bool Clicked(void);
|
---|
59 |
|
---|
60 | private:
|
---|
61 | /*!
|
---|
62 | * \brief XmlEvent from ground station
|
---|
63 | *
|
---|
64 | * Reimplemented from Widget.
|
---|
65 | *
|
---|
66 | */
|
---|
67 | void XmlEvent(void);
|
---|
68 |
|
---|
69 | bool clicked;
|
---|
70 | };
|
---|
71 |
|
---|
72 | } // end namespace gui
|
---|
73 | } // end namespace flair
|
---|
74 |
|
---|
75 | #endif // PUSHBUTTON_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.