Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8669 in orxonox.OLD


Ignore:
Timestamp:
Jun 21, 2006, 2:11:21 PM (18 years ago)
Author:
bensch
Message:

orxonox/gui: slider behaves as expected

Location:
branches/gui/src/lib/gui/gl
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/gui/gl/glgui_checkbutton.cc

    r8667 r8669  
    8181  {
    8282    GLGuiButton::releasing(pos, focused);
    83     this->toggleActiveState();
     83    if (focused)
     84      this->toggleActiveState();
    8485  }
    8586
  • branches/gui/src/lib/gui/gl/glgui_handler.cc

    r8667 r8669  
    210210  {
    211211    // do not change if we already clicked into a Widget.
    212     if (GLGuiWidget::selected() != NULL && GLGuiWidget::selected()->pushed())
    213       return ;
     212    // if (GLGuiWidget::selected() != NULL && GLGuiWidget::selected()->pushed())
     213    //      return ;
    214214
    215215    this->checkFocus();
  • branches/gui/src/lib/gui/gl/glgui_pushbutton.cc

    r8667 r8669  
    8484  {
    8585    printf("%s released\n", this->label().c_str());
    86     GLGuiButton::releasing(pos, focused);
     86    if (focused)
     87      GLGuiButton::releasing(pos, focused);
    8788  }
    8889
  • branches/gui/src/lib/gui/gl/glgui_slider.cc

    r8667 r8669  
    202202  {
    203203    GLGuiWidget::removedFocus();
    204     this->grabbed = false;
    205204  }
    206205
  • branches/gui/src/lib/gui/gl/glgui_widget.cc

    r8667 r8669  
    174174  void GLGuiWidget::breakMouseFocus()
    175175  {
     176    printf("TESTING UNFOCUSING\n");
    176177    if (GLGuiWidget::_mouseFocused == this)
    177178    {
    178179      GLGuiWidget::_mouseFocused = NULL;
    179       this->_pushed = false;
    180180
    181181      if (GLGuiWidget::_selected != this)
Note: See TracChangeset for help on using the changeset viewer.