//LLEventListener //virtual bool LLPanelGroups::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) { if (event->desc() == "new group") { reset(); return true; } return false; }
bool LLControlBase::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) { if (event->desc() == "value_changed") { setValue(((LLValueChangedEvent*)(LLEvent*)event)->mValue); return TRUE; } return TRUE; }
// virtual bool LLGroupList::handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata) { // Why is "new group" sufficient? if (event->desc() == "new group") { setDirty(); return true; } return false; }