Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3153 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_keys.cc


Ignore:
Timestamp:
Dec 11, 2004, 6:09:26 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: more modular.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_keys.cc

    r3152 r3153  
    5757Player::Player(char* player)
    5858{
    59   openButton = new Button (player);
    60   openButton->connectSignal("button_press_event", this, openWindowEvent);
    6159
    6260  pKeyWindow = new Window("keys of player");
     
    6967   
    7068    closeButton = new Button("close");
    71     closeButton->connectSignal("button_press_event", this, closeWindowEvent);
     69    closeButton->connectSignal("button_press_event", pKeyWindow, Window::windowClose);
    7270    pKeysBox->fill(closeButton);
    7371   pKeyWindow->fill(pKeysBox);
    7472   //  Window::addWindow(pKeyWindow);
     73
     74  openButton = new Button (player);
     75  openButton->connectSignal("button_press_event", pKeyWindow, Window::windowOpen);
     76
    7577}
    7678
     
    100102}
    101103
    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 
    112104/**
    113105   \brief Function which gets keystrokes
Note: See TracChangeset for help on using the changeset viewer.