Changeset 3153 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.cc
- Timestamp:
- Dec 11, 2004, 6:09:26 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_keys.cc
r3152 r3153 57 57 Player::Player(char* player) 58 58 { 59 openButton = new Button (player);60 openButton->connectSignal("button_press_event", this, openWindowEvent);61 59 62 60 pKeyWindow = new Window("keys of player"); … … 69 67 70 68 closeButton = new Button("close"); 71 closeButton->connectSignal("button_press_event", this, closeWindowEvent);69 closeButton->connectSignal("button_press_event", pKeyWindow, Window::windowClose); 72 70 pKeysBox->fill(closeButton); 73 71 pKeyWindow->fill(pKeysBox); 74 72 // Window::addWindow(pKeyWindow); 73 74 openButton = new Button (player); 75 openButton->connectSignal("button_press_event", pKeyWindow, Window::windowOpen); 76 75 77 } 76 78 … … 100 102 } 101 103 102 gint Player::openWindowEvent (GtkWidget* widget, GdkEvent* event, void* player)103 {104 static_cast<Player*>(player)->pKeyWindow->open();105 }106 107 gint Player::closeWindowEvent (GtkWidget* widget, GdkEvent* event, void* player)108 {109 static_cast<Player*>(player)->pKeyWindow->close();110 }111 112 104 /** 113 105 \brief Function which gets keystrokes
Note: See TracChangeset
for help on using the changeset viewer.