Last change
on this file since 7929 was
7863,
checked in by bensch, 19 years ago
|
orxonox/trunk: also catching mouse-events
|
File size:
1.0 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file gui_control.h |
---|
3 | \brief File that holds the class that creates the Control-Options. |
---|
4 | */ |
---|
5 | #ifndef _GUI_CONTROL_H |
---|
6 | #define _GUI_CONTROL_H |
---|
7 | |
---|
8 | #include "../gui_element.h" |
---|
9 | #include <vector> |
---|
10 | #include <string> |
---|
11 | #include <QtGui/QGroupBox> |
---|
12 | #include <QtGui/QPushButton> |
---|
13 | #include "../gui_saveable.h" |
---|
14 | |
---|
15 | namespace OrxGui |
---|
16 | { |
---|
17 | //! Class that creates the Control-Options. |
---|
18 | class GuiControl : public OrxGui::Element, public QGroupBox |
---|
19 | { |
---|
20 | public: |
---|
21 | GuiControl(OrxGui::Gui* gui); |
---|
22 | virtual ~GuiControl(); |
---|
23 | |
---|
24 | private: |
---|
25 | }; |
---|
26 | |
---|
27 | class GuiControlInput : public QPushButton, public OrxGui::Saveable |
---|
28 | { |
---|
29 | Q_OBJECT |
---|
30 | public: |
---|
31 | GuiControlInput(const std::string& name, SaveableGroup* group, const std::string& defaultValue); |
---|
32 | |
---|
33 | virtual void load(); |
---|
34 | virtual void save(); |
---|
35 | |
---|
36 | |
---|
37 | virtual bool event(QEvent* e); |
---|
38 | |
---|
39 | static int QtKToSDLK(int key); |
---|
40 | static std::string QtKToString(int button); |
---|
41 | |
---|
42 | public slots: |
---|
43 | void listen(); |
---|
44 | signals: |
---|
45 | // void optionChanged(); |
---|
46 | |
---|
47 | private: |
---|
48 | bool bListening; |
---|
49 | }; |
---|
50 | |
---|
51 | |
---|
52 | |
---|
53 | } |
---|
54 | |
---|
55 | #endif /* _GUI_CONTROL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.