//LLEventListener
//virtual
bool LLPanelGroups::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
	if (event->desc() == "new group")
	{
		reset();
		return true;
	}
	return false;
}
Esempio n. 2
0
bool LLControlBase::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
	if (event->desc() == "value_changed")
	{
		setValue(((LLValueChangedEvent*)(LLEvent*)event)->mValue);
		return TRUE;
	}
	return TRUE;
}
Esempio n. 3
0
// 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;
}