Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/qt/gui_control.h @ 9467

Last change on this file since 9467 was 8145, checked in by bensch, 18 years ago

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

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
15namespace 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.