Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4062 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
May 5, 2005, 3:36:51 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: now the gui also starts orxonox if in non-GTK-mode

Location:
orxonox/trunk/src/lib/gui/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/gui.cc

    r4059 r4062  
    118118
    119119  mainloopGUI();
     120#ifndef HAVE_GTK2
     121  GuiExec::startOrxonox(NULL, exec);
     122#endif /* HAVE_GTK2 */
    120123}
    121124
  • orxonox/trunk/src/lib/gui/gui/gui_exec.cc

    r4060 r4062  
    362362#endif /* HAVE_GTK2 */
    363363{
    364   GuiExec* exec =(GuiExec*)data;
     364  GuiExec* exec = (GuiExec*)data;
    365365  if(exec->shouldsave())
    366366    exec->writeToFile(Window::mainWindow);
  • orxonox/trunk/src/lib/gui/gui/gui_gtk.cc

    r4061 r4062  
    3434
    3535#include "gui_flags.h"
     36#include "gui_exec.h"
     37
    3638extern GuiFlags* flags;
    3739
     
    120122     
    121123      // here follows the rest.... this will be nasty.
    122       //! \todo move this into the gui-gtk-file
    123124      //! \todo finish it.
    124125      //! \todo memory leek at save(); and save is a BAD word, use saveString instead, or something like it.
  • orxonox/trunk/src/lib/gui/gui/gui_update.cc

    r4061 r4062  
    6767  this->updateFrame->fill(this->updateBox);
    6868  this->setMainWidget(this->updateFrame);
    69 
    7069}
    7170
     
    117116  download(&updateFileInfo);
    118117}
    119 #endif /* HAVE_CURL */
    120 #ifdef HAVE_CURL
     118
    121119/**
    122120   \brief Creates a window, and all it contains for the Data-update.
     
    129127  // the close-Button of the Update Window.
    130128  //  updateWindowClose = new Button("close");
    131 #ifdef HAVE_GTK2 
     129#ifdef HAVE_GTK2
    132130  //  updateWindowClose->connectSignal("button_press_event", updateWindow, Window::windowClose);
    133131#endif /* HAVE_GTK2 */
     
    142140  this->updateDataBegin = new Button("begin.");
    143141  dataInfo->stateButton = this->updateDataBegin;
    144 #ifdef HAVE_GTK2 
     142#ifdef HAVE_GTK2
    145143  dataInfo->buttonSignal = updateDataBegin->connectSignal("button_press_event", dataInfo, updateDataFunc);
    146144#endif /* HAVE_GTK2 */
     
    150148
    151149  this->updateDataWindowButton = new Button("update orxonox::Data");
    152 #ifdef HAVE_GTK2 
     150#ifdef HAVE_GTK2
    153151  this->updateDataWindowButton->connectSignal("button_press_event", this->updateDataWindow, Window::windowOpen);
    154152  this->updateDataWindow->connectSignal("destroy", this->updateDataWindow, Window::windowClose);
Note: See TracChangeset for help on using the changeset viewer.