Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gtk/gui_keys.h @ 8284

Last change on this file since 8284 was 8145, checked in by bensch, 19 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.6 KB
RevLine 
[2613]1/*!
[4048]2  \file gui_keys.h
[2613]3  \brief File that holds the class that creates the Keyboard-Options.
4*/
5
[4048]6#ifndef _GUI_KEYS_H
7#define _GUI_KEYS_H
[2613]8
[4047]9#include "gui.h"
10#include "gui_element.h"
[4049]11#include "gui_gtk.h"
[4024]12
[3165]13#ifdef HAVE_GTK2
[2733]14#include <gdk/gdkkeysyms.h>
[3165]15#endif /* HAVE_GTK2 */
[3187]16
[4086]17//! One KeyOption has one InputKey
18struct InputKey
19{
[4089]20  Box* keyBox;           //!< One Box that holds the Keys
21  Button* keyButton;     //!< The Button for changing the Key.
22  OptionLabel* keyOLabel;//!< The Label for displaying the Key-setting.
[4086]23};
24
[3152]25//! Class that creates the Keys-Options.
[4056]26class GuiKeys : public GuiElement
[3152]27{
28 public:
[4746]29  GuiKeys();
[6981]30  virtual ~GuiKeys();
[4086]31
32  static Window* inputWindow; //!< A Window that gets keyboard clicks. Static, because only one needed.
33  static Button* inputButton; //!< A Button that gets keyboard clicks. Static, because only one needed.
34  static long keySignal;      //!< A keySignal that handles keyboard clicks. Static, because only one needed.
[3152]35};
36
[2735]37//! Class to hold infos about a Player
[4089]38class PlayerKeys
[2613]39{
40 private:
[3187]41  Button* openButton;     //!< The OpenButton for this key-settings.
[2735]42
[2613]43 public:
[4089]44  PlayerKeys(char* player);
[2613]45
[4746]46  Button* getOpenButton();
[4089]47};
[2613]48
[4089]49class MiscKeys
50{
51 private:
52  Button* openButton;     //!< The OpenButton for this key-settings.
53
54 public:
55  MiscKeys();
56
[6981]57  Button* getOpenButton();
[2613]58};
59
[4089]60Widget* addKey(const char* name, const char* defaultValue = NULL);
[4086]61#ifdef HAVE_GTK2
62gint inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* widget);
63gint key_cb(GtkWidget* w, GdkEventKey* event, void* inputKey);
64#endif /* HAVE_GTK2 */
[2613]65
66
[4048]67#endif /* _GUI_KEYS_H */
Note: See TracBrowser for help on using the repository browser.