Changeset 3287 in orxonox.OLD for orxonox/branches/updater/src/gui/orxonox_gui_gtk.h
- Timestamp:
- Dec 26, 2004, 3:07:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/src/gui/orxonox_gui_gtk.h
r3281 r3287 3 3 \brief Contains all th different Widgets. 4 4 */ 5 6 5 #ifndef _ORXONOX_GUI_GTK_H 7 6 #define _ORXONOX_GUI_GTK_H … … 35 34 36 35 #ifdef HAVE_GTK2 37 bool initGTK(int argc, char *argv[]);36 bool initGTK(int argc, char* argv[]); 38 37 bool mainloopGTK(void); 39 38 #endif /* HAVE_GTK2 */ … … 59 58 char* label; //!< The name of the Widget. Some do display it, Options need it to save; 60 59 #ifdef HAVE_GTK2 61 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *));62 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, Widget *));63 gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEvent*, void *));64 gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void *));60 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void* )); 61 gulong connectSignal (char* event, gint (*signal)(GtkWidget*, Widget* )); 62 gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEvent*, void* )); 63 gulong connectSignal (char* event, void* extObj, gint (*signal)(GtkWidget*, GdkEventKey*, void* )); 65 64 void disconnectSignal (gulong signalID); 66 65 #endif /* HAVE_GTK2 */ … … 68 67 void hide (); 69 68 void setSize(int width, int height); 69 virtual void setTitle(char* title) = 0; 70 70 71 71 void walkThrough (void (*function)(Widget*)); … … 74 74 75 75 #ifdef HAVE_GTK2 76 static gint doNothingSignal (GtkWidget *widget, GdkEvent* event, void* nothing);76 static gint doNothingSignal (GtkWidget* widget, GdkEvent* event, void* nothing); 77 77 #endif /* HAVE_GTK2 */ 78 78 }; … … 88 88 void setGroupName (char* name); 89 89 char* getGroupName (void); 90 91 virtual void fill (Widget* lowerWidget) = 0; 90 92 }; 91 93 … … 106 108 // void setBorderWidth (int borderwidth); 107 109 // virtual void setTitle (char* title) = 0; 108 void fill (Widget *lowerWidget);110 void fill (Widget* lowerWidget); 109 111 }; 110 112 … … 122 124 static void addWindow(Window* windowToAdd); 123 125 124 Window 125 Window 126 void init 127 128 void setTitle 129 void showall ();130 void open( );131 void close( );132 133 #ifdef HAVE_GTK2 134 static gint windowOpen (GtkWidget *widget, GdkEvent* event, void* window);135 static gint windowClose (GtkWidget *widget, GdkEvent* event, void* window);136 static gint orxonox_gui_quit (GtkWidget *widget, GdkEvent *event, gpointer data);126 Window(void); 127 Window(char* windowName); 128 void init(); 129 130 void setTitle(char* title); 131 void showall(void); 132 void open(void); 133 void close(void); 134 135 #ifdef HAVE_GTK2 136 static gint windowOpen(GtkWidget* widget, GdkEvent* event, void* window); 137 static gint windowClose(GtkWidget* widget, GdkEvent* event, void* window); 138 static gint orxonox_gui_quit(GtkWidget* widget, GdkEvent* event, gpointer data); 137 139 #endif /* HAVE_GTK2 */ 138 140 }; … … 150 152 void init(void); 151 153 152 void setTitle 154 void setTitle(char* title); 153 155 }; 154 156 … … 164 166 void init(void); 165 167 166 void setTitle 168 void setTitle(char* title); 167 169 }; 168 170 … … 179 181 Box (char boxtype); 180 182 void init(char boxtype); 181 183 182 184 void fill (Widget* lowerWidget); 183 185 184 }; 185 186 //! Image is the keeper of one Image 187 /** 188 * Images are mighty cool. 189 * Images can help you lighten up the Programming process, and will give everyone a better impression of the Software. 190 */ 191 class Image : public Widget 192 { 193 public: 194 Image (char* imgaename); 195 void init(void); 186 void setTitle(char* title); 196 187 }; 197 188 … … 203 194 { 204 195 public: 205 //virtual gint OptionChange (GtkWidget *widget, GdkEvent *event, gpointer data);196 //virtual gint OptionChange (GtkWidget* widget, GdkEvent* event, gpointer data); 206 197 void init(void); 207 198 … … 314 305 void init(void); 315 306 316 void setT ext(char* text);307 void setTitle(char* text); 317 308 char* getText (); 318 309 }; … … 326 317 ~ProgressBar (); 327 318 void init (void); 328 319 320 void setTitle(char* title); 321 329 322 void setProgress (double progress); 330 323 void setTotalSize (double totalSize); … … 339 332 }; 340 333 341 //gint orxonox_gui_quit (GtkWidget *widget, GdkEvent *event, gpointer data); 334 //! Image is the keeper of one Image 335 /** 336 * Images are mighty cool. 337 * Images can help you lighten up the Programming process, and will give everyone a better impression of the Software. 338 */ 339 class Image : public Widget 340 { 341 public: 342 Image (char* imgaename); 343 void init(void); 344 345 void setTitle(char* title); 346 }; 347 348 //gint orxonox_gui_quit (GtkWidget* widget, GdkEvent* event, gpointer data); 342 349 343 350 #endif /* _ORXONOX_GUI_GTK_H */
Note: See TracChangeset
for help on using the changeset viewer.