Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3165 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_gtk.h


Ignore:
Timestamp:
Dec 13, 2004, 2:17:30 AM (19 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_gtk.h

    r3164 r3165  
    1111#endif
    1212
     13#ifdef HAVE_GTK2
    1314#include <gtk/gtkmain.h>
    1415#include <gtk/gtkwindow.h>
     
    2526#include <gtk/gtkimage.h>
    2627#include <gtk/gtkeventbox.h>
    27 
     28#endif /* HAVE_GTK2 */
     29
     30#ifdef HAVE_GTK2
    2831bool initGTK(int argc, char *argv[]);
    2932bool mainloopGTK(void);
     33#endif /* HAVE_GTK2 */
     34
    3035
    3136//! This is the topmost object that can be displayed all others are derived from it.
     
    3742
    3843  Widget* next; //!< next always points to the next Widget in the list. Every Widget has a next one, or has NULL as next
     44#ifdef HAVE_GTK2
    3945  GtkWidget* widget; //!< widget is the gtk_widget that the specific Object Contains.
     46#endif /* HAVE_GTK2 */
    4047  void init(void);
    4148  int isOption; //!< with this Paramenter one can set the option-type: -2:Container, -1: Box, 0: not an Option, 1: Bool-option, 2: int-option, 3: float option, 4:char option, 5: char* option
     
    4552  enum option { containerType = -2, boxType = -1, nothingType = 0, boolType = 1, intType = 2};
    4653  char* label; //!< The name of the Widget. Some do display it, Options need it to save;
     54#ifdef HAVE_GTK2
    4755  gulong connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *));
    4856  gulong connectSignal (char* event, gint (*signal)(GtkWidget*, Widget *));
     
    5058  gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void *));
    5159  void disconnectSignal (gulong signalID);
     60#endif /* HAVE_GTK2 */
    5261  void show ();
    5362  void hide ();
     
    5867  static void setOptions (Widget* widget);
    5968 
     69#ifdef HAVE_GTK2
    6070  static gint doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing);
     71#endif /* HAVE_GTK2 */
    6172};
    6273
     
    114125  void close();
    115126
     127#ifdef HAVE_GTK2
    116128  static gint windowOpen (GtkWidget *widget, GdkEvent* event, void* window);
    117129  static gint windowClose (GtkWidget *widget, GdkEvent* event, void* window);
    118130  static gint orxonox_gui_quit (GtkWidget *widget, GdkEvent *event, gpointer data);
     131#endif /* HAVE_GTK2 */
    119132};
    120133
     
    220233 public:
    221234  CheckButton (char* buttonname);
     235#ifdef HAVE_GTK2
    222236  static gint OptionChange (GtkWidget* widget, Widget* checkbutton);
     237#endif /* HAVE_GTK2 */
    223238 
    224239  void init(void);
     
    242257  void setValue(int value);
    243258
     259#ifdef HAVE_GTK2
    244260  static gint OptionChange (GtkWidget* widget, Widget* slider);
     261#endif /* HAVE_GTK2 */
    245262  void redraw();
    246263};
     
    250267{
    251268 private:
     269#ifdef HAVE_GTK2
    252270  GtkWidget* menu;
    253271  GtkWidget* item;
     272#endif /* HAVE_GTK2 */
    254273  va_list itemlist;
    255274 
     
    261280
    262281  void addItem(char* itemName);
     282#ifdef HAVE_GTK2
    263283  static gint OptionChange (GtkWidget* widget, Widget* menu);
     284#endif /* HAVE_GTK2 */
    264285  void redraw();
    265286};
Note: See TracChangeset for help on using the changeset viewer.