Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2006, 11:34:38 PM (18 years ago)
Author:
bensch
Message:

gui: more Signals

File:
1 edited

Legend:

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

    r7985 r7997  
    5252  }
    5353
     54  void GLGuiCheckButton::setActivity(bool bActive)
     55  {
     56    this->bActive = bActive;
     57    emit(this->toggled(this->bActive));
     58  }
    5459
    5560  void GLGuiCheckButton::toggleActiveState()
    5661  {
    57     this->bActive = !this->bActive;
     62    this->setActivity(!this->isActive());
    5863  }
    5964
     
    7075  void GLGuiCheckButton::releasing(const Vector2D& pos)
    7176  {
    72     printf("%s released\n", this->getLabel().c_str());
    7377    GLGuiButton::releasing(pos);
    7478    this->toggleActiveState();
Note: See TracChangeset for help on using the changeset viewer.