Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 13, 2004, 2:17:30 AM (21 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: compiling as not-GTK possibe, but it is not usable yet

File:
1 edited

Legend:

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

    r3164 r3165  
    6868   
    6969    closeButton = new Button("close");
     70#ifdef HAVE_GTK2
    7071    closeButton->connectSignal("button_press_event", pKeyWindow, Window::windowClose);
     72#endif /* HAVE_GTK2 */
    7173
    7274    pKeysBox->fill(closeButton);
     
    7476   pKeyWindow->fill(pKeyFrame);
    7577   Window::addWindow(pKeyWindow);
     78#ifdef HAVE_GTK2
    7679   pKeyWindow->connectSignal("destroy", pKeyWindow, Window::windowClose);
    7780   pKeyWindow->connectSignal("delete_event", pKeyWindow, Window::windowClose);
     81#endif /* HAVE_GTK2 */
    7882
    7983  openButton = new Button (player);
     84#ifdef HAVE_GTK2
    8085  openButton->connectSignal("button_press_event", pKeyWindow, Window::windowOpen);
     86#endif /* HAVE_GTK2 */
    8187
    8288  inputWindow = new Window("inputWindow");
     
    8490  inputButton = new Button ("test");
    8591  inputWindow->fill (inputButton);
     92#ifdef HAVE_GTK2
    8693  inputWindow->connectSignal("destroy",  Widget::doNothingSignal);
    8794  inputWindow->connectSignal("delete_event", Widget::doNothingSignal);
     95#endif /* HAVE_GTK2 */
    8896
    8997}
     
    96104  inputKey[key]->pKeyOLabel = new OptionLabel (name, name);
    97105  inputKey[key]->pKeyOLabel->saveable = true;
    98  
     106
     107#ifdef HAVE_GTK2
    99108  //inputKey[key]->pKeyButton->connectSignal("key_press_event", inputKey[key]->pKeyButton, key_cb);
    100109  inputKey[key]->pKeyButton->connectSignal("button_press_event", inputKey[key], inputWindowEvent);
     110#endif /* HAVE_GTK2 */
    101111
    102112  inputKey[key]->pKeyBox->fill(inputKey[key]->pKeyButton);
     
    120130long Player::keySignal = 0;
    121131
     132#ifdef HAVE_GTK2
    122133gint Player::inputWindowEvent(GtkWidget* w, GdkEventKey* event, void* inputKey)
    123134{
     
    264275  inputWindow->close();
    265276}
     277#endif /* HAVE_GTK2 */
Note: See TracChangeset for help on using the changeset viewer.