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