- Timestamp:
- Jun 21, 2004, 2:42:52 AM (20 years ago)
- Location:
- orxonox/branches/gui/guicc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/guicc/orxonox_gui.cc
r1996 r1997 7 7 #include "orxonox_gui_flags.h" 8 8 9 Window* orxonoxGUI; 10 OrxonoxGuiVideo* video; 11 OrxonoxGuiAudio* audio; 12 OrxonoxGuiExec* exec; 13 OrxonoxGuiFlags* flags; 9 14 10 15 int main( int argc, char *argv[] ) … … 23 28 gtk_init (&argc, &argv); 24 29 25 Window* orxonoxGUI = new Window("Graphical Orxonox Launcher"); 30 31 orxonoxGUI = new Window("Graphical Orxonox Launcher"); 26 32 orxonoxGUI->connectSignal ("destroy", orxonoxGUI->orxonox_gui_quit); 27 33 orxonoxGUI->connectSignal ("delete_event", orxonoxGUI->orxonox_gui_quit); … … 31 37 Box* avBox = new Box ('h'); 32 38 33 OrxonoxGuiVideo*video = new OrxonoxGuiVideo ();39 video = new OrxonoxGuiVideo (); 34 40 avBox->fill (video->getFrame ()); 35 OrxonoxGuiAudio*audio = new OrxonoxGuiAudio ();41 audio = new OrxonoxGuiAudio (); 36 42 avBox->fill (audio->getFrame ()); 37 43 38 44 windowBox->fill (avBox); 39 45 40 OrxonoxGuiExec*exec = new OrxonoxGuiExec (orxonoxGUI);46 exec = new OrxonoxGuiExec (orxonoxGUI); 41 47 windowBox->fill (exec->getFrame ()); 42 48 43 OrxonoxGuiFlags*flags = new OrxonoxGuiFlags (orxonoxGUI);49 flags = new OrxonoxGuiFlags (orxonoxGUI); 44 50 windowBox->fill (flags->getFrame ()); 45 51 … … 361 367 */ 362 368 static_cast<CheckButton*>(checkbutton)->value = (int)gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON ((CheckButton*)checkbutton->widget)); 369 flags->setTextFromFlags(orxonoxGUI); 363 370 cout << static_cast<CheckButton*>(checkbutton)->option_name << " set to: " << static_cast<CheckButton*>(checkbutton)->value << endl; 364 371 } … … 389 396 */ 390 397 static_cast<Slider*>(slider)->value = (int)gtk_range_get_value (GTK_RANGE ((Slider*)slider->widget)); 398 flags->setTextFromFlags(orxonoxGUI); 391 399 cout << static_cast<Slider*>(slider)->option_name << " set to: "<< static_cast<Slider*>(slider)->value << endl; 392 400 } … … 428 436 */ 429 437 static_cast<Menu*>(menu)->value = (int)gtk_option_menu_get_history (GTK_OPTION_MENU (menu->widget)); 438 flags->setTextFromFlags(orxonoxGUI); 430 439 cout << static_cast<Menu*>(menu)->option_name << " changed to : " << static_cast<Menu*>(menu)->value << endl; 431 440 } … … 436 445 next = NULL; 437 446 widget = gtk_label_new (""); 447 gtk_widget_set_usize (widget, 260, 60); 448 gtk_label_set_line_wrap (GTK_LABEL(widget), TRUE); 438 449 } 439 450 Label::~Label () -
orxonox/branches/gui/guicc/orxonox_gui.h
r1996 r1997 17 17 #include <gtk/gtklabel.h> 18 18 19 20 19 class OrxonoxGui 21 20 { … … 23 22 OrxonoxGui (int argc, char *argv[]); 24 23 ~OrxonoxGui (); 24 25 25 }; 26 26 -
orxonox/branches/gui/guicc/orxonox_gui_video.cc
r1996 r1997 9 9 10 10 fullscreen = new CheckButton ("Fullscreen-mode"); 11 fullscreen->setFlagName (" fullscreen", "f", 1);11 fullscreen->setFlagName ("windowed", "q", 1); 12 12 videoBox->fill (fullscreen); 13 13 wireframe = new CheckButton ("WireFrame-mode");
Note: See TracChangeset
for help on using the changeset viewer.