void LLPanelGroupLandMoney::update(LLGroupChange gc) { if (gc != GC_ALL) return; //Don't update if it's the wrong panel! LLTabContainer* tabp = getChild<LLTabContainer>("group_money_tab_container"); if ( tabp ) { LLPanel* panelp; LLGroupMoneyTabEventHandler* eh; panelp = tabp->getCurrentPanel(); //now pull the event handler associated with that L$ tab if ( panelp ) { eh = get_if_there(LLGroupMoneyTabEventHandler::sTabsToHandlers, panelp, (LLGroupMoneyTabEventHandler*)NULL); if ( eh ) eh->onClickTab(); } } mImplementationp->requestGroupLandInfo(); mImplementationp->setYourContributionTextField(mImplementationp->getStoredContribution()); }
//static void LLPanelGroupLandMoney::processGroupAccountSummaryReply(LLMessageSystem* msg, void** data) { LLUUID agent_id; msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id ); if (gAgent.getID() != agent_id) { // <FS:AW opensim currency support> // llwarns << "Got group L$ history reply for another agent!" << llendl; llwarns << Tea::wrapCurrency("Got group L$ history reply for another agent!") << llendl; // </FS:AW opensim currency support> return; } LLUUID request_id; msg->getUUIDFast(_PREHASH_MoneyData, _PREHASH_RequestID, request_id ); LLGroupMoneyTabEventHandler* self; self = LLGroupMoneyTabEventHandler::sInstanceIDs.getIfThere(request_id); if (!self) { // <FS:AW opensim currency support> // llwarns << "GroupAccountSummary recieved for non-existent group L$ planning tab." << llendl; llwarns << Tea::wrapCurrency("GroupAccountSummary recieved for non-existent group L$ planning tab.") << llendl; // </FS:AW opensim currency support> return; } self->processReply(msg, data); }
//static void LLPanelGroupLandMoney::processGroupAccountTransactionsReply(LLMessageSystem* msg, void** data) { LLUUID agent_id; msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id ); if (gAgent.getID() != agent_id) { llwarns << "Got group L$ history reply for another agent!" << llendl; return; } LLUUID request_id; msg->getUUIDFast(_PREHASH_MoneyData, _PREHASH_RequestID, request_id ); LLGroupMoneyTabEventHandler* self; self = LLGroupMoneyTabEventHandler::sInstanceIDs.getIfThere(request_id); if (!self) { llwarns << "GroupAccountTransactions received for non-existent group panel." << llendl; return; } self->processReply(msg, data); }
//static void LLPanelGroupLandMoney::processGroupAccountSummaryReply(LLMessageSystem* msg, void** data) { LLUUID agent_id; msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id ); if (gAgent.getID() != agent_id) { llwarns << "Got group " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << " history reply for another agent!" << llendl; return; } LLUUID request_id; msg->getUUIDFast(_PREHASH_MoneyData, _PREHASH_RequestID, request_id ); LLGroupMoneyTabEventHandler* self; self = LLGroupMoneyTabEventHandler::sInstanceIDs.getIfThere(request_id); if (!self) { llwarns << "GroupAccountSummary recieved for non-existent group " << gHippoGridManager->getConnectedGrid()->getCurrencySymbol() << " planning tab." << llendl; return; } self->processReply(msg, data); }
//static void LLGroupMoneyTabEventHandler::clickLaterCallback(void* data) { LLGroupMoneyTabEventHandler* selfp = (LLGroupMoneyTabEventHandler*) data; if ( selfp ) selfp->onClickLater(); }
//static void LLGroupMoneyTabEventHandler::clickTabCallback(void* data, bool from_click) { LLGroupMoneyTabEventHandler* selfp = (LLGroupMoneyTabEventHandler*) data; if ( selfp ) selfp->onClickTab(); }