Changeset 2586 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui.h
- Timestamp:
- Oct 16, 2004, 6:47:41 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui.h
r2584 r2586 29 29 class Widget 30 30 { 31 private: 31 32 public: 32 33 Widget* next; 33 34 GtkWidget* widget; 35 virtual void init(void); 34 36 int is_option; 35 37 36 //virtual void create ();37 // void addWidget ();38 38 void connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *)); 39 39 void connectSignal (char* event, gint (*signal)(GtkWidget*, Widget *)); … … 57 57 58 58 public: 59 void init(void); 59 60 Widget* down; 60 61 void setBorderWidth (int borderwidth); … … 69 70 Window (void); 70 71 ~Window (); 72 void init (); 71 73 72 74 void setTitle (char* title); … … 81 83 Frame (void); 82 84 ~Frame (); 85 void init(void); 83 86 84 87 void setTitle (char* title); … … 91 94 EventBox (void); 92 95 ~EventBox (); 93 96 void init(void); 97 94 98 void setTitle (char* title); 95 99 }; … … 101 105 Box (char boxtype); 102 106 ~Box (void); 107 void init(char boxtype); 103 108 104 109 Widget* down; … … 112 117 Image (char* imgaename); 113 118 ~Image (); 119 void init(void); 114 120 }; 115 121 … … 118 124 public: 119 125 //virtual gint OptionChange (GtkWidget *widget, GdkEvent *event, gpointer data); 120 126 void init(void); 127 121 128 int value; 122 129 char* option_name; … … 135 142 Button (char* buttonname); 136 143 ~Button (void); 144 void init(void); 145 146 void setTitle(char* title); 137 147 138 148 void redraw(); … … 145 155 ~CheckButton (void); 146 156 static gint OptionChange (GtkWidget* widget, Widget* checkbutton); 157 158 void init(void); 159 void setTitle(char* title); 160 147 161 void redraw (); 148 162 }; … … 153 167 Slider (char* slidername,int start, int end); 154 168 ~Slider (); 169 void init(int start, int end); 170 171 void setTitle(char* title); 172 void setValue(int value); 173 155 174 static gint OptionChange (GtkWidget* widget, Widget* slider); 156 175 void redraw(); … … 162 181 Menu (char* menuname, ...); 163 182 ~Menu (); 183 void init(void); /// HAS TO BE IMPLEMENTED!! most difficult :-) 164 184 165 185 static gint OptionChange (GtkWidget* widget, Widget* menu); … … 173 193 Label (char* text); 174 194 ~Label (); 195 void init(void); 175 196 176 197 void setText (char * text);
Note: See TracChangeset
for help on using the changeset viewer.