Definition at line 51 of file llpanelgroupvoting.cpp.
LLPanelGroupVoting::impl::impl | ( | LLPanelGroupVoting & | panel, | |
const LLUUID & | group_id | |||
) |
Definition at line 153 of file llpanelgroupvoting.cpp.
References mBtnAbstain, mBtnCreateProposal, mBtnNo, mBtnSubmitProposal, mBtnViewHistoryItem, mBtnViewHistoryList, mBtnViewProposalItem, mBtnViewProposalList, mBtnYes, mDuration, mDurationLbl, mDurationText, mEndDate, mEndLbl, mHistoryColumnWidths, mHistoryTransID, mMajority, mMajorityLbl, mNumGroupMembers, mProposalColumnWidths, mProposals, mProposalText, mProposalTransID, mQuorum, mQuorumLbl, mStartDate, mStartLbl, mVoteHistoryText, mVoteHistoryTextLbl, mVotesHistory, mVotesHistoryLbl, NULL, LLUUID::null, and sGroupIDs.
LLPanelGroupVoting::impl::~impl | ( | ) |
void LLPanelGroupVoting::impl::addNoActiveScrollListItem | ( | EAddPosition | pos | ) |
Definition at line 712 of file llpanelgroupvoting.cpp.
References LLScrollListCtrl::addElement(), and mProposals.
void LLPanelGroupVoting::impl::addNoHistoryScrollListItem | ( | EAddPosition | pos | ) |
Definition at line 720 of file llpanelgroupvoting.cpp.
References LLScrollListCtrl::addElement(), and mVotesHistory.
void LLPanelGroupVoting::impl::addPendingActiveScrollListItem | ( | unsigned int | current, | |
unsigned int | expected, | |||
EAddPosition | pos | |||
) |
Definition at line 697 of file llpanelgroupvoting.cpp.
References LLScrollListCtrl::addElement(), and mProposals.
Referenced by sendGroupProposalsRequest().
void LLPanelGroupVoting::impl::addPendingHistoryScrollListItem | ( | unsigned int | current, | |
unsigned int | expected, | |||
EAddPosition | pos | |||
) |
Definition at line 728 of file llpanelgroupvoting.cpp.
References LLScrollListCtrl::addElement(), and mVotesHistory.
Referenced by sendGroupVoteHistoryRequest().
Definition at line 1133 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1178 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1092 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1116 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1150 of file llpanelgroupvoting.cpp.
References LLViewerWindow::alertXml(), LLPanel::childSetText(), gFocusMgr, gViewerWindow, NULL, and LLFocusMgr::setKeyboardFocus().
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1237 of file llpanelgroupvoting.cpp.
References LLViewerWindow::alertXml(), LLScrollListItem::getColumn(), and gViewerWindow.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1257 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1197 of file llpanelgroupvoting.cpp.
References LLViewerWindow::alertXml(), LLScrollListItem::getColumn(), and gViewerWindow.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1189 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1099 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1227 of file llpanelgroupvoting.cpp.
References NULL.
Referenced by LLPanelGroupVoting::postBuild().
Definition at line 1217 of file llpanelgroupvoting.cpp.
References NULL.
Referenced by LLPanelGroupVoting::postBuild().
void LLPanelGroupVoting::impl::processGroupActiveProposalItemReply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) | [static] |
Definition at line 749 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_AlreadyVoted, _PREHASH_EndDateTime, _PREHASH_GroupID, _PREHASH_Majority, _PREHASH_ProposalData, _PREHASH_ProposalText, _PREHASH_Quorum, _PREHASH_StartDateTime, _PREHASH_TerseDateID, _PREHASH_TotalNumItems, _PREHASH_TransactionData, _PREHASH_TransactionID, _PREHASH_VoteCast, _PREHASH_VoteID, _PREHASH_VoteInitiator, ADD_BOTTOM, ADD_SORTED, DB_DATETIME_BUF_SIZE, DB_TERSE_DATETIME_BUF_SIZE, DB_VOTE_RESULT_BUF_SIZE, DB_VOTE_TEXT_BUF_SIZE, DB_VOTE_TYPE_BUF_SIZE, end, FALSE, gAgent, get_if_there(), LLMessageSystem::getBOOLFast(), LLMessageSystem::getF32Fast(), LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), i, llendl, llwarns, NULL, S32, sGroupIDs, LLSD::size(), LLUUID::toString(), TRUE, and UUID_STR_LENGTH.
Referenced by LLPanelGroupVoting::postBuild().
void LLPanelGroupVoting::impl::processGroupVoteHistoryItemReply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) | [static] |
Definition at line 910 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_EndDateTime, _PREHASH_GroupID, _PREHASH_HistoryItemData, _PREHASH_Majority, _PREHASH_NumVotes, _PREHASH_ProposalText, _PREHASH_Quorum, _PREHASH_StartDateTime, _PREHASH_TerseDateID, _PREHASH_TotalNumItems, _PREHASH_TransactionData, _PREHASH_TransactionID, _PREHASH_VoteCast, _PREHASH_VoteID, _PREHASH_VoteInitiator, _PREHASH_VoteItem, _PREHASH_VoteResult, _PREHASH_VoteType, ADD_BOTTOM, ADD_SORTED, DB_DATETIME_BUF_SIZE, DB_VOTE_RESULT_BUF_SIZE, DB_VOTE_TEXT_BUF_SIZE, DB_VOTE_TYPE_BUF_SIZE, end, FALSE, gAgent, LLMessageSystem::getF32Fast(), LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), i, llendl, llwarns, MAX_STRING, S32, sGroupIDs, LLSD::size(), LLStringBase< char >::stripNonprintable(), and TRUE.
Referenced by LLPanelGroupVoting::postBuild().
void LLPanelGroupVoting::impl::sendGroupProposalBallot | ( | const char * | vote | ) |
Definition at line 636 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupID, _PREHASH_GroupProposalBallot, _PREHASH_ProposalData, _PREHASH_ProposalID, _PREHASH_SessionID, _PREHASH_VoteCast, LLMessageSystem::addStringFast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, GP_PROPOSAL_VOTE, LLAgent::hasPowerInGroup(), mGroupID, mProposalID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().
Definition at line 561 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupActiveProposalsRequest, _PREHASH_GroupData, _PREHASH_GroupID, _PREHASH_SessionID, _PREHASH_TransactionData, _PREHASH_TransactionID, ADD_BOTTOM, addPendingActiveScrollListItem(), LLMessageSystem::addUUIDFast(), LLScrollListCtrl::deleteAllItems(), FALSE, gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLAgent::isInGroup(), mActiveReceived, mGroupID, mProposals, mProposalTransID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and LLScrollListCtrl::setCanSelect().
Referenced by LLPanelGroupVoting::update().
Definition at line 656 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_GroupData, _PREHASH_GroupID, _PREHASH_GroupVoteHistoryRequest, _PREHASH_SessionID, _PREHASH_TransactionData, _PREHASH_TransactionID, ADD_BOTTOM, addPendingHistoryScrollListItem(), LLMessageSystem::addUUIDFast(), LLScrollListCtrl::deleteAllItems(), FALSE, gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLAgent::isInGroup(), mGroupID, mHistoryReceived, mHistoryTransID, mVotesHistory, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and LLScrollListCtrl::setCanSelect().
Referenced by LLPanelGroupVoting::update().
void LLPanelGroupVoting::impl::sendStartGroupProposal | ( | ) |
Definition at line 596 of file llpanelgroupvoting.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_Duration, _PREHASH_GroupID, _PREHASH_Majority, _PREHASH_ProposalData, _PREHASH_ProposalText, _PREHASH_Quorum, _PREHASH_SessionID, _PREHASH_StartGroupProposal, f, gAgent, LLSpinCtrl::get(), LLAgent::getID(), LLRadioGroup::getSelectedIndex(), LLAgent::getSessionID(), LLTextEditor::getText(), gMessageSystem, GP_PROPOSAL_START, LLAgent::hasPowerInGroup(), llfloor(), mDuration, mGroupID, mMajority, mProposalText, mQuorum, LLMessageSystem::newMessageFast(), S32, and LLAgent::sendReliableMessage().
void LLPanelGroupVoting::impl::setEnableCreateProposal | ( | ) |
Definition at line 440 of file llpanelgroupvoting.cpp.
References LLPanel::childGetText(), LLPanel::childSetText(), LLPanel::childSetVisible(), FALSE, gAgent, LLSpinCtrl::get(), GP_PROPOSAL_START, LLAgent::hasPowerInGroup(), mBtnAbstain, mBtnCancelProposal, mBtnCreateProposal, mBtnNo, mBtnSubmitProposal, mBtnViewProposalItem, mBtnViewProposalList, mBtnYes, mDuration, mDurationLbl, mDurationText, mEndDate, mEndLbl, mGroupID, mMajority, mMajorityLbl, mNumGroupMembers, mPanel, mProposals, mProposalText, mQuorum, mQuorumLbl, mStartDate, mStartLbl, LLStringBase< char >::null, LLSpinCtrl::set(), LLRadioGroup::setEnabled(), LLSpinCtrl::setEnabled(), LLView::setEnabled(), LLTextEditor::setEnabled(), LLSpinCtrl::setMaxValue(), LLTextEditor::setText(), LLView::setVisible(), and TRUE.
void LLPanelGroupVoting::impl::setEnableHistoryItem | ( | ) |
Definition at line 523 of file llpanelgroupvoting.cpp.
References FALSE, gAgent, LLScrollListItem::getColumn(), LLScrollListCtrl::getFirstSelected(), LLScrollListCell::getText(), LLAgent::isInGroup(), mBtnViewHistoryItem, mBtnViewHistoryList, mGroupID, mVoteHistoryText, mVoteHistoryTextLbl, mVotesHistory, mVotesHistoryLbl, LLView::setEnabled(), LLTextEditor::setEnabled(), LLTextEditor::setText(), LLView::setVisible(), and TRUE.
void LLPanelGroupVoting::impl::setEnableHistoryList | ( | ) |
Definition at line 497 of file llpanelgroupvoting.cpp.
References FALSE, gAgent, LLAgent::isInGroup(), mBtnViewHistoryItem, mBtnViewHistoryList, mGroupID, mVoteHistoryText, mVoteHistoryTextLbl, mVotesHistory, mVotesHistoryLbl, LLView::setEnabled(), LLScrollListCtrl::setEnabled(), LLView::setVisible(), and TRUE.
Referenced by LLPanelGroupVoting::activate().
void LLPanelGroupVoting::impl::setEnableListProposals | ( | ) |
Definition at line 221 of file llpanelgroupvoting.cpp.
References LLPanel::childGetText(), LLPanel::childSetText(), LLPanel::childSetVisible(), FALSE, gAgent, gColors, LLControlGroup::getColor(), GP_PROPOSAL_START, LLAgent::hasPowerInGroup(), LLAgent::isInGroup(), mBtnAbstain, mBtnCancelProposal, mBtnCreateProposal, mBtnNo, mBtnSubmitProposal, mBtnViewProposalItem, mBtnViewProposalList, mBtnYes, mDuration, mDurationLbl, mDurationText, mEndDate, mEndLbl, mGroupID, mMajority, mMajorityLbl, mPanel, mProposals, mProposalText, mQuorum, mQuorumLbl, mStartDate, mStartLbl, LLScrollListCtrl::setBgSelectedColor(), LLRadioGroup::setEnabled(), LLSpinCtrl::setEnabled(), LLView::setEnabled(), LLView::setVisible(), and TRUE.
Referenced by LLPanelGroupVoting::activate().
void LLPanelGroupVoting::impl::setEnableVoteProposal | ( | ) |
Definition at line 285 of file llpanelgroupvoting.cpp.
References LLPanel::childGetText(), LLPanel::childSetText(), LLPanel::childSetVisible(), f, FALSE, gAgent, LLScrollListItem::getColumn(), LLScrollListCtrl::getFirstSelected(), LLUIString::getString(), LLScrollListCell::getText(), LLScrollListItem::getUUID(), GP_PROPOSAL_VOTE, LLAgent::hasPowerInGroup(), mBtnAbstain, mBtnCancelProposal, mBtnCreateProposal, mBtnNo, mBtnSubmitProposal, mBtnViewProposalItem, mBtnViewProposalList, mBtnYes, mDuration, mDurationLbl, mDurationText, mEndDate, mEndLbl, mGroupID, mMajority, mMajorityLbl, mPanel, mProposalID, mProposals, mProposalText, mQuorum, mQuorumLbl, mStartDate, mStartLbl, LLSpinCtrl::set(), LLUIString::setArg(), LLRadioGroup::setEnabled(), LLSpinCtrl::setEnabled(), LLTextEditor::setEnabled(), LLView::setEnabled(), LLRadioGroup::setSelectedIndex(), LLTextBox::setText(), LLTextEditor::setText(), LLView::setVisible(), and TRUE.
void LLPanelGroupVoting::impl::updateQuorumText | ( | ) |
Definition at line 692 of file llpanelgroupvoting.cpp.
References LLPanel::childSetTextArg(), llformat(), mNumGroupMembers, and mPanel.
Referenced by LLPanelGroupVoting::postBuild(), and LLPanelGroupVoting::update().
std::vector<LLSD> LLPanelGroupVoting::impl::mActiveReceived |
Definition at line 118 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 124 of file llpanelgroupvoting.cpp.
Referenced by LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 122 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 117 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 123 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 133 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableHistoryItem(), and setEnableHistoryList().
Definition at line 132 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableHistoryItem(), and setEnableHistoryList().
Definition at line 126 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 125 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 116 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 106 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), sendStartGroupProposal(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 107 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 108 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 114 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 112 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 99 of file llpanelgroupvoting.cpp.
Referenced by sendGroupProposalBallot(), sendGroupProposalsRequest(), sendGroupVoteHistoryRequest(), sendStartGroupProposal(), setEnableCreateProposal(), setEnableHistoryItem(), setEnableHistoryList(), setEnableListProposals(), setEnableVoteProposal(), and ~impl().
std::vector<LLSD> LLPanelGroupVoting::impl::mHistoryReceived |
Definition at line 144 of file llpanelgroupvoting.cpp.
Referenced by impl(), and sendGroupVoteHistoryRequest().
Definition at line 109 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), sendStartGroupProposal(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 110 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 135 of file llpanelgroupvoting.cpp.
Referenced by impl(), setEnableCreateProposal(), LLPanelGroupVoting::update(), and updateQuorumText().
Definition at line 102 of file llpanelgroupvoting.cpp.
Referenced by setEnableCreateProposal(), setEnableListProposals(), setEnableVoteProposal(), and updateQuorumText().
Definition at line 100 of file llpanelgroupvoting.cpp.
Referenced by sendGroupProposalBallot(), and setEnableVoteProposal().
Definition at line 120 of file llpanelgroupvoting.cpp.
Referenced by addNoActiveScrollListItem(), addPendingActiveScrollListItem(), impl(), LLPanelGroupVoting::postBuild(), sendGroupProposalsRequest(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 121 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), sendStartGroupProposal(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 143 of file llpanelgroupvoting.cpp.
Referenced by impl(), and sendGroupProposalsRequest().
Definition at line 104 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), sendStartGroupProposal(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 105 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 113 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 111 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableCreateProposal(), setEnableListProposals(), and setEnableVoteProposal().
Definition at line 130 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableHistoryItem(), and setEnableHistoryList().
Definition at line 131 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableHistoryItem(), and setEnableHistoryList().
Definition at line 128 of file llpanelgroupvoting.cpp.
Referenced by addNoHistoryScrollListItem(), addPendingHistoryScrollListItem(), impl(), LLPanelGroupVoting::postBuild(), sendGroupVoteHistoryRequest(), setEnableHistoryItem(), and setEnableHistoryList().
Definition at line 129 of file llpanelgroupvoting.cpp.
Referenced by impl(), LLPanelGroupVoting::postBuild(), setEnableHistoryItem(), and setEnableHistoryList().
std::map< LLUUID, LLPanelGroupVoting::impl * > LLPanelGroupVoting::impl::sGroupIDs [static] |
Definition at line 146 of file llpanelgroupvoting.cpp.
Referenced by impl(), processGroupActiveProposalItemReply(), processGroupVoteHistoryItemReply(), and ~impl().