Changeset 1962 in orxonox.OLD for orxonox/branches/gui/guicc/orxonox_gui.cc
- Timestamp:
- Jun 17, 2004, 12:52:36 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/guicc/orxonox_gui.cc
r1895 r1962 10 10 Frame* Frametest = new Frame ("Test"); 11 11 orxonoxGUI->fill((Frame*) Frametest); 12 Frame* test = (Frame*) orxonoxGUI->down; 13 test->setTitle("shit"); 12 Box* box = new Box ('v'); 13 Frametest->fill(box); 14 15 CheckButton* button = new CheckButton("test"); 16 button->connectSignal ("clicked", orxonoxGUI->orxonox_gui_quit); 17 box->fill(button); 18 Slider* slider = new Slider("testslider", 0, 100); 19 box->fill(slider); 20 14 21 orxonoxGUI->showall (); 15 22 … … 30 37 } 31 38 32 39 /* CONTAINERS*/ 33 40 34 41 void Container::fill (Widget *lowerWidget) … … 40 47 // gtk_container_set_border_width (GTK_CONTAINER (widget), 5); 41 48 42 49 /* WINDOW */ 43 50 44 51 Window::Window (void) … … 76 83 77 84 78 85 /* FRAME */ 79 86 80 87 Frame::Frame (void) … … 96 103 97 104 98 105 /* BOX */ 99 106 100 107 Box::Box (void) … … 121 128 gtk_box_pack_start (GTK_BOX(this->widget), lowerWidget->widget, TRUE, TRUE, 0); 122 129 } 130 131 132 /* OPTION */ 133 134 /* BUTTON */ 135 Button::Button(char* buttonname) 136 { 137 widget = gtk_button_new_with_label(buttonname); 138 } 139 140 /* CHECKBUTTON */ 141 CheckButton::CheckButton(char* buttonname) 142 { 143 widget = gtk_check_button_new_with_label(buttonname); 144 } 145 146 /* SLIDER */ 147 Slider::Slider (char * slidername,int start, int end) 148 { 149 widget = gtk_hscale_new_with_range (start, end, 5); 150 }
Note: See TracChangeset
for help on using the changeset viewer.