Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3254 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Dec 23, 2004, 2:03:12 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/updater: implemented update-functions: do nothing yet, will follow in next commit…

Location:
orxonox/branches/updater/src/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.h

    r3244 r3254  
    1010#include <config.h>
    1111#endif
     12
     13#include "../debug.h"
    1214
    1315#ifdef HAVE_GTK2
  • orxonox/branches/updater/src/gui/orxonox_gui_update.cc

    r3253 r3254  
    6262
    6363  updateData = new Button ("update Orxonox::Data");
    64   updateSource = new Button ("update Orxonox::Source");; 
     64
     65#ifdef HAVE_GTK2
     66  updateData->connectSignal("button_press_event", updateData, updateDataFunc);
     67#endif /* HAVE_GTK2 */
     68
     69  updateSource = new Button ("update Orxonox::Source");
     70#ifdef HAVE_GTK2
     71  updateSource->connectSignal("button_press_event", updateData, updateSourceFunc);
     72#endif /* HAVE_GTK2 */
    6573
    6674  updateWindowBox->fill (updateData);
     
    7179
    7280  // crating the button that opens the Update Options
     81#ifdef HAVE_GTK2
    7382  updateWindowButton = new Button ("update");
    74 #ifdef HAVE_GTK2
    7583  updateWindowButton->connectSignal("button_press_event", updateWindow, Window::windowOpen);
    7684  updateWindow->connectSignal("destroy", updateWindow, Window::windowClose);
    7785  updateWindow->connectSignal("delete_event", updateWindow, Window::windowClose);
    7886#endif /* HAVE_GTK2 */
    79  
     87
    8088
    8189}
     
    8593  return updateWindowButton;
    8694}
     95
     96
     97#ifdef HAVE_GTK2
     98gint OrxonoxGuiUpdate::updateDataFunc(GtkWidget* w, GdkEventKey* event, void* button)
     99{
     100
     101}
     102
     103
     104gint OrxonoxGuiUpdate::updateSourceFunc(GtkWidget* w, GdkEventKey* event, void* button)
     105{
     106
     107}
     108
     109#endif /* HAVE_GTK2 */
  • orxonox/branches/updater/src/gui/orxonox_gui_update.h

    r3253 r3254  
    2424  Button* updateSource;        //!< A Button to update the Source of orxonox. \todo tricky
    2525
     26  static gint updateDataFunc (GtkWidget* w, GdkEventKey* event, void* button);
     27  static gint updateSourceFunc (GtkWidget* w, GdkEventKey* event, void* button);
     28
     29
    2630 public:
    2731  OrxonoxGuiUpdate ();
     
    3640
    3741
     42
    3843#endif /* _ORXONOX_GUI_UPDATE_H */
Note: See TracChangeset for help on using the changeset viewer.