#include <llpanelgroupvoting.h>
Public Types | |
enum | ResponseType { START_VOTE, BALLOT } |
Public Member Functions | |
LLPanelGroupVoting (const std::string &name, const LLUUID &group_id) | |
virtual | ~LLPanelGroupVoting () |
virtual BOOL | postBuild () |
virtual BOOL | isVisibleByAgent (LLAgent *agentp) |
virtual void | activate () |
virtual bool | needsApply (LLString &mesg) |
virtual bool | apply (LLString &mesg) |
virtual void | update (LLGroupChange gc) |
Static Public Member Functions | |
static void * | createTab (void *data) |
static void | handleResponse (const LLUUID &group_id, ResponseType response, bool succes=true) |
static void | handleFailure (const LLUUID &group_id) |
Protected Attributes | |
impl * | mImpl |
Classes | |
class | impl |
Definition at line 37 of file llpanelgroupvoting.h.
LLPanelGroupVoting::LLPanelGroupVoting | ( | const std::string & | name, | |
const LLUUID & | group_id | |||
) |
Definition at line 1440 of file llpanelgroupvoting.cpp.
References mImpl.
Referenced by createTab().
LLPanelGroupVoting::~LLPanelGroupVoting | ( | ) | [virtual] |
void * LLPanelGroupVoting::createTab | ( | void * | data | ) | [static] |
Reimplemented from LLPanelGroupTab.
Definition at line 1434 of file llpanelgroupvoting.cpp.
References LLPanelGroupVoting().
Referenced by LLPanelGroup::LLPanelGroup().
BOOL LLPanelGroupVoting::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1458 of file llpanelgroupvoting.cpp.
References _PREHASH_GroupActiveProposalItemReply, _PREHASH_GroupVoteHistoryItemReply, gMessageSystem, LLPanelGroupVoting::impl::mBtnAbstain, LLPanelGroupVoting::impl::mBtnCancelProposal, LLPanelGroupVoting::impl::mBtnCreateProposal, LLPanelGroupVoting::impl::mBtnNo, LLPanelGroupVoting::impl::mBtnSubmitProposal, LLPanelGroupVoting::impl::mBtnViewHistoryItem, LLPanelGroupVoting::impl::mBtnViewHistoryList, LLPanelGroupVoting::impl::mBtnViewProposalItem, LLPanelGroupVoting::impl::mBtnViewProposalList, LLPanelGroupVoting::impl::mBtnYes, LLPanelGroupVoting::impl::mDuration, LLPanelGroupVoting::impl::mDurationLbl, LLPanelGroupVoting::impl::mDurationText, LLPanelGroupVoting::impl::mEndDate, LLPanelGroupVoting::impl::mEndLbl, mImpl, LLPanelGroupVoting::impl::mMajority, LLPanelGroupVoting::impl::mMajorityLbl, LLPanelGroupVoting::impl::mProposals, LLPanelGroupVoting::impl::mProposalText, LLPanelGroupVoting::impl::mQuorum, LLPanelGroupVoting::impl::mQuorumLbl, LLPanelGroupVoting::impl::mStartDate, LLPanelGroupVoting::impl::mStartLbl, LLPanelGroupVoting::impl::mVoteHistoryText, LLPanelGroupVoting::impl::mVoteHistoryTextLbl, LLPanelGroupVoting::impl::mVotesHistory, LLPanelGroupVoting::impl::mVotesHistoryLbl, LLPanelGroupVoting::impl::onClickAbstain(), LLPanelGroupVoting::impl::onClickCancelProposal(), LLPanelGroupVoting::impl::onClickCreateProposal(), LLPanelGroupVoting::impl::onClickNo(), LLPanelGroupVoting::impl::onClickSubmitProposal(), LLPanelGroupVoting::impl::onClickViewHistoryItem(), LLPanelGroupVoting::impl::onClickViewHistoryList(), LLPanelGroupVoting::impl::onClickViewProposalItem(), LLPanelGroupVoting::impl::onClickViewProposalList(), LLPanelGroupVoting::impl::onClickYes(), LLPanelGroupVoting::impl::onDoubleClickHistoryItem(), LLPanelGroupVoting::impl::onDoubleClickProposal(), LLPanelGroupTab::postBuild(), LLPanelGroupVoting::impl::processGroupActiveProposalItemReply(), LLPanelGroupVoting::impl::processGroupVoteHistoryItemReply(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLScrollListCtrl::setDoubleClickCallback(), LLMessageSystem::setHandlerFuncFast(), and LLPanelGroupVoting::impl::updateQuorumText().
Reimplemented from LLPanelGroupTab.
Definition at line 1452 of file llpanelgroupvoting.cpp.
References LLAgent::isInGroup(), LLPanelGroupTab::mAllowEdit, and LLPanelGroupTab::mGroupID.
void LLPanelGroupVoting::activate | ( | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1590 of file llpanelgroupvoting.cpp.
References GC_ALL, LLSingleton< LLGroupMgr >::getInstance(), LLPanelGroupTab::mGroupID, mImpl, LLGroupMgr::sendGroupPropertiesRequest(), LLPanelGroupVoting::impl::setEnableHistoryList(), LLPanelGroupVoting::impl::setEnableListProposals(), and update().
bool LLPanelGroupVoting::needsApply | ( | LLString & | mesg | ) | [virtual] |
bool LLPanelGroupVoting::apply | ( | LLString & | mesg | ) | [virtual] |
void LLPanelGroupVoting::update | ( | LLGroupChange | gc | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 1609 of file llpanelgroupvoting.cpp.
References LLGroupMgr::getGroupData(), LLSingleton< LLGroupMgr >::getInstance(), LLPanelGroupTab::mGroupID, mImpl, LLGroupMgrGroupData::mMemberCount, LLPanelGroupVoting::impl::mNumGroupMembers, NULL, S32, LLPanelGroupVoting::impl::sendGroupProposalsRequest(), LLPanelGroupVoting::impl::sendGroupVoteHistoryRequest(), and LLPanelGroupVoting::impl::updateQuorumText().
Referenced by activate().
void LLPanelGroupVoting::handleResponse | ( | const LLUUID & | group_id, | |
ResponseType | response, | |||
bool | succes = true | |||
) | [static] |
Definition at line 608 of file llpanelgroupvoting.cpp.
References BALLOT, NULL, LLPanelGroupVoting::impl::sGroupIDs, and LLNotifyBox::showXml().
Referenced by LLGroupProposalBallotResponder::result(), and LLStartGroupVoteResponder::result().
void LLPanelGroupVoting::handleFailure | ( | const LLUUID & | group_id | ) | [static] |
Definition at line 653 of file llpanelgroupvoting.cpp.
References NULL, and LLPanelGroupVoting::impl::sGroupIDs.
Referenced by LLGroupProposalBallotResponder::error(), and LLStartGroupVoteResponder::error().
impl* LLPanelGroupVoting::mImpl [protected] |
Definition at line 65 of file llpanelgroupvoting.h.
Referenced by activate(), LLPanelGroupVoting(), postBuild(), update(), and ~LLPanelGroupVoting().