Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1997 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Jun 21, 2004, 2:42:52 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/gui/guicc: flags now have the ability to update. (Main-Variables maid global to orxonox_gui)

Location:
orxonox/branches/gui/guicc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/gui/guicc/orxonox_gui.cc

    r1996 r1997  
    77#include "orxonox_gui_flags.h"
    88
     9  Window* orxonoxGUI;
     10  OrxonoxGuiVideo* video;
     11  OrxonoxGuiAudio* audio;
     12  OrxonoxGuiExec* exec;
     13  OrxonoxGuiFlags* flags; 
    914
    1015int main( int argc, char *argv[] )
     
    2328  gtk_init (&argc, &argv);
    2429
    25   Window* orxonoxGUI = new Window("Graphical Orxonox Launcher");
     30
     31  orxonoxGUI = new Window("Graphical Orxonox Launcher");
    2632  orxonoxGUI->connectSignal ("destroy", orxonoxGUI->orxonox_gui_quit);
    2733  orxonoxGUI->connectSignal ("delete_event", orxonoxGUI->orxonox_gui_quit);
     
    3137  Box* avBox = new Box ('h');
    3238
    33   OrxonoxGuiVideo* video = new OrxonoxGuiVideo ();
     39  video = new OrxonoxGuiVideo ();
    3440  avBox->fill (video->getFrame ());
    35   OrxonoxGuiAudio* audio = new OrxonoxGuiAudio ();
     41  audio = new OrxonoxGuiAudio ();
    3642  avBox->fill (audio->getFrame ());
    3743     
    3844  windowBox->fill (avBox);
    3945   
    40   OrxonoxGuiExec* exec = new OrxonoxGuiExec (orxonoxGUI);
     46  exec = new OrxonoxGuiExec (orxonoxGUI);
    4147  windowBox->fill (exec->getFrame ());
    4248
    43   OrxonoxGuiFlags* flags = new OrxonoxGuiFlags (orxonoxGUI);
     49  flags = new OrxonoxGuiFlags (orxonoxGUI);
    4450  windowBox->fill (flags->getFrame ());
    4551 
     
    361367   */
    362368  static_cast<CheckButton*>(checkbutton)->value = (int)gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON ((CheckButton*)checkbutton->widget));
     369  flags->setTextFromFlags(orxonoxGUI);
    363370  cout << static_cast<CheckButton*>(checkbutton)->option_name << " set to: " << static_cast<CheckButton*>(checkbutton)->value << endl;
    364371}
     
    389396   */
    390397  static_cast<Slider*>(slider)->value = (int)gtk_range_get_value (GTK_RANGE ((Slider*)slider->widget));
     398  flags->setTextFromFlags(orxonoxGUI);
    391399  cout << static_cast<Slider*>(slider)->option_name << " set to: "<< static_cast<Slider*>(slider)->value << endl;
    392400}
     
    428436   */
    429437  static_cast<Menu*>(menu)->value = (int)gtk_option_menu_get_history (GTK_OPTION_MENU (menu->widget));
     438  flags->setTextFromFlags(orxonoxGUI);
    430439  cout << static_cast<Menu*>(menu)->option_name << " changed to : " << static_cast<Menu*>(menu)->value << endl;
    431440}
     
    436445  next = NULL;
    437446  widget = gtk_label_new ("");
     447  gtk_widget_set_usize (widget, 260, 60);
     448  gtk_label_set_line_wrap (GTK_LABEL(widget), TRUE);
    438449}
    439450Label::~Label ()
  • orxonox/branches/gui/guicc/orxonox_gui.h

    r1996 r1997  
    1717#include <gtk/gtklabel.h>
    1818
    19 
    2019class OrxonoxGui
    2120{
     
    2322  OrxonoxGui (int argc, char *argv[]);
    2423  ~OrxonoxGui ();
     24
    2525};
    2626
  • orxonox/branches/gui/guicc/orxonox_gui_video.cc

    r1996 r1997  
    99 
    1010  fullscreen = new CheckButton ("Fullscreen-mode");
    11   fullscreen->setFlagName ("fullscreen", "f", 1);
     11  fullscreen->setFlagName ("windowed", "q", 1);
    1212  videoBox->fill (fullscreen);
    1313  wireframe = new CheckButton ("WireFrame-mode");
Note: See TracChangeset for help on using the changeset viewer.