Changeset 3165 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_gtk.h
- Timestamp:
- Dec 13, 2004, 2:17:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_gtk.h
r3164 r3165 11 11 #endif 12 12 13 #ifdef HAVE_GTK2 13 14 #include <gtk/gtkmain.h> 14 15 #include <gtk/gtkwindow.h> … … 25 26 #include <gtk/gtkimage.h> 26 27 #include <gtk/gtkeventbox.h> 27 28 #endif /* HAVE_GTK2 */ 29 30 #ifdef HAVE_GTK2 28 31 bool initGTK(int argc, char *argv[]); 29 32 bool mainloopGTK(void); 33 #endif /* HAVE_GTK2 */ 34 30 35 31 36 //! This is the topmost object that can be displayed all others are derived from it. … … 37 42 38 43 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 39 45 GtkWidget* widget; //!< widget is the gtk_widget that the specific Object Contains. 46 #endif /* HAVE_GTK2 */ 40 47 void init(void); 41 48 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 … … 45 52 enum option { containerType = -2, boxType = -1, nothingType = 0, boolType = 1, intType = 2}; 46 53 char* label; //!< The name of the Widget. Some do display it, Options need it to save; 54 #ifdef HAVE_GTK2 47 55 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *)); 48 56 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, Widget *)); … … 50 58 gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void *)); 51 59 void disconnectSignal (gulong signalID); 60 #endif /* HAVE_GTK2 */ 52 61 void show (); 53 62 void hide (); … … 58 67 static void setOptions (Widget* widget); 59 68 69 #ifdef HAVE_GTK2 60 70 static gint doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing); 71 #endif /* HAVE_GTK2 */ 61 72 }; 62 73 … … 114 125 void close(); 115 126 127 #ifdef HAVE_GTK2 116 128 static gint windowOpen (GtkWidget *widget, GdkEvent* event, void* window); 117 129 static gint windowClose (GtkWidget *widget, GdkEvent* event, void* window); 118 130 static gint orxonox_gui_quit (GtkWidget *widget, GdkEvent *event, gpointer data); 131 #endif /* HAVE_GTK2 */ 119 132 }; 120 133 … … 220 233 public: 221 234 CheckButton (char* buttonname); 235 #ifdef HAVE_GTK2 222 236 static gint OptionChange (GtkWidget* widget, Widget* checkbutton); 237 #endif /* HAVE_GTK2 */ 223 238 224 239 void init(void); … … 242 257 void setValue(int value); 243 258 259 #ifdef HAVE_GTK2 244 260 static gint OptionChange (GtkWidget* widget, Widget* slider); 261 #endif /* HAVE_GTK2 */ 245 262 void redraw(); 246 263 }; … … 250 267 { 251 268 private: 269 #ifdef HAVE_GTK2 252 270 GtkWidget* menu; 253 271 GtkWidget* item; 272 #endif /* HAVE_GTK2 */ 254 273 va_list itemlist; 255 274 … … 261 280 262 281 void addItem(char* itemName); 282 #ifdef HAVE_GTK2 263 283 static gint OptionChange (GtkWidget* widget, Widget* menu); 284 #endif /* HAVE_GTK2 */ 264 285 void redraw(); 265 286 };
Note: See TracChangeset
for help on using the changeset viewer.