Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1962 in orxonox.OLD for orxonox/branches/gui/guicc/orxonox_gui.cc


Ignore:
Timestamp:
Jun 17, 2004, 12:52:36 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/gui/guicc: added option-classes, typo, code-design. Framework is still far from being finished

File:
1 edited

Legend:

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

    r1895 r1962  
    1010    Frame* Frametest = new Frame ("Test");
    1111    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
    1421    orxonoxGUI->showall ();
    1522
     
    3037}
    3138
    32  /* CONTAINERS*/
     39/* CONTAINERS*/
    3340
    3441void Container::fill (Widget *lowerWidget)
     
    4047// gtk_container_set_border_width (GTK_CONTAINER (widget), 5);
    4148
    42   /* WINDOW */
     49/* WINDOW */
    4350
    4451Window::Window (void)
     
    7683
    7784
    78    /* FRAME */
     85/* FRAME */
    7986
    8087Frame::Frame (void)
     
    96103
    97104
    98  /* BOX */
     105/* BOX */
    99106
    100107Box::Box (void)
     
    121128  gtk_box_pack_start (GTK_BOX(this->widget), lowerWidget->widget, TRUE, TRUE, 0);
    122129}
     130
     131
     132/* OPTION */
     133
     134/* BUTTON */
     135Button::Button(char* buttonname)
     136{
     137  widget = gtk_button_new_with_label(buttonname);
     138}
     139
     140/* CHECKBUTTON */
     141CheckButton::CheckButton(char* buttonname)
     142{
     143  widget = gtk_check_button_new_with_label(buttonname);
     144}
     145
     146/* SLIDER */
     147Slider::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.