#include <llpanelgroupnotices.h>
Inheritance diagram for LLPanelGroupNotices:
Definition at line 46 of file llpanelgroupnotices.h.
enum LLPanelGroupNotices::ENoticeView [private] |
LLPanelGroupNotices::LLPanelGroupNotices | ( | const std::string & | name, | |
const LLUUID & | group_id | |||
) |
Definition at line 194 of file llpanelgroupnotices.cpp.
References sInstances.
Referenced by createTab().
LLPanelGroupNotices::~LLPanelGroupNotices | ( | ) | [virtual] |
Definition at line 203 of file llpanelgroupnotices.cpp.
References inventory_offer_callback(), IOR_DECLINE, LLPanelGroupTab::mGroupID, mInventoryOffer, NULL, and sInstances.
void LLPanelGroupNotices::activate | ( | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 307 of file llpanelgroupnotices.cpp.
References FALSE, gAgent, GP_NOTICES_RECEIVE, GP_NOTICES_SEND, LLAgent::hasPowerInGroup(), mCreateInventoryName, LLPanelGroupTab::mGroupID, mPanelCreateNotice, mPanelViewNotice, mViewInventoryName, onClickRefreshNotices(), LLLineEditor::setEnabled(), and LLView::setEnabled().
void LLPanelGroupNotices::arrangeNoticeView | ( | ENoticeView | view_type | ) | [private] |
Definition at line 583 of file llpanelgroupnotices.cpp.
References CREATE_NEW_NOTICE, FALSE, mBtnOpenAttachment, mPanelCreateNotice, mPanelViewNotice, LLView::setEnabled(), LLView::setVisible(), and TRUE.
Referenced by postBuild(), and showNotice().
Reimplemented from LLPanelGroupTab.
Definition at line 216 of file llpanelgroupnotices.cpp.
References LLPanelGroupNotices().
Referenced by LLPanelGroup::LLPanelGroup().
Reimplemented from LLPanelGroupTab.
Definition at line 222 of file llpanelgroupnotices.cpp.
References GP_NOTICES_RECEIVE, GP_NOTICES_SEND, LLAgent::hasPowerInGroup(), LLPanelGroupTab::mAllowEdit, and LLPanelGroupTab::mGroupID.
Definition at line 396 of file llpanelgroupnotices.cpp.
References CREATE_NEW_NOTICE, inventory_offer_callback(), IOR_DECLINE, NULL, onClickRemoveAttachment(), and TRUE.
Referenced by postBuild().
Definition at line 361 of file llpanelgroupnotices.cpp.
References FALSE, inventory_offer_callback(), IOR_ACCEPT, and NULL.
Referenced by postBuild().
Definition at line 414 of file llpanelgroupnotices.cpp.
References LLMessageSystem::addUUID(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, lldebugs, llendl, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().
Referenced by activate(), onClickSendMessage(), and postBuild().
Definition at line 351 of file llpanelgroupnotices.cpp.
Referenced by onClickNewMessage(), onClickSendMessage(), and postBuild().
Definition at line 370 of file llpanelgroupnotices.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, onClickRefreshNotices(), onClickRemoveAttachment(), send_group_notice(), and VIEW_PAST_NOTICE.
Referenced by postBuild().
Definition at line 520 of file llpanelgroupnotices.cpp.
References LLMessageSystem::addUUID(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), LLScrollListItem::getUUID(), gMessageSystem, lldebugs, llendl, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().
Referenced by postBuild().
BOOL LLPanelGroupNotices::postBuild | ( | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 228 of file llpanelgroupnotices.cpp.
References LLView::addChild(), arrangeNoticeView(), FALSE, gAgent, LLPanel::getChildByName(), LLView::getRect(), LLTextBox::getText(), LLView::getToolTip(), GP_NOTICES_SEND, LLAgent::hasPowerInGroup(), mBtnGetPastNotices, mBtnNewMessage, mBtnOpenAttachment, mBtnRemoveAttachment, mBtnSendMessage, mCreateInventoryIcon, mCreateInventoryName, mCreateMessage, mCreateSubject, LLPanelGroupTab::mGroupID, mNoNoticesStr, mNoticesList, mPanelCreateNotice, mPanelViewNotice, mViewInventoryIcon, mViewInventoryName, mViewMessage, mViewSubject, onClickNewMessage(), onClickOpenAttachment(), onClickRefreshNotices(), onClickRemoveAttachment(), onClickSendMessage(), onSelectNotice(), LLPanelGroupTab::postBuild(), LLView::removeChild(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLUICtrl::setCommitCallback(), LLScrollListCtrl::setCommitOnSelectionChange(), LLLineEditor::setEnabled(), LLView::setEnabled(), LLUICtrl::setTabStop(), LLView::setVisible(), target, TRUE, and VIEW_PAST_NOTICE.
void LLPanelGroupNotices::processGroupNoticesListReply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) | [static] |
Definition at line 435 of file llpanelgroupnotices.cpp.
References LLMessageSystem::getUUID(), llendl, llinfos, processNotices(), and sInstances.
Referenced by register_viewer_callbacks().
void LLPanelGroupNotices::processNotices | ( | LLMessageSystem * | msg | ) | [private] |
Definition at line 459 of file llpanelgroupnotices.cpp.
References ADD_BOTTOM, ADD_SORTED, LLScrollListCtrl::addElement(), LLScrollListCtrl::addSimpleItem(), build_notice_date(), count, FALSE, get_item_icon_uuid(), LLMessageSystem::getBOOL(), LLMessageSystem::getNumberOfBlocks(), LLMessageSystem::getString(), LLMessageSystem::getU32(), LLMessageSystem::getU8(), LLMessageSystem::getUUID(), i, LLInventoryType::IT_NONE, MAX_STRING, mNoNoticesStr, mNoticesList, NOTICE_DATE_STRING_SIZE, S32, LLScrollListCtrl::setEnabled(), and t.
Referenced by processGroupNoticesListReply().
void LLPanelGroupNotices::setItem | ( | LLPointer< LLInventoryItem > | inv_item | ) |
Definition at line 326 of file llpanelgroupnotices.cpp.
References FALSE, get_item_icon(), LLViewerImage::getID(), LLInventoryItem::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS, mBtnRemoveAttachment, mCreateInventoryIcon, mCreateInventoryName, mInventoryItem, LLView::setEnabled(), LLIconCtrl::setImage(), LLLineEditor::setText(), LLView::setVisible(), and TRUE.
Referenced by LLGroupDropTarget::handleDragAndDrop().
void LLPanelGroupNotices::showNotice | ( | const char * | subject, | |
const char * | message, | |||
const bool & | has_inventory, | |||
const char * | inventory_name, | |||
LLOfferInfo * | inventory_offer | |||
) |
Definition at line 540 of file llpanelgroupnotices.cpp.
References arrangeNoticeView(), LLLineEditor::clear(), FALSE, get_item_icon(), LLViewerImage::getID(), inventory_offer_callback(), IOR_DECLINE, LLInventoryType::IT_TEXTURE, mBtnOpenAttachment, mInventoryOffer, LLOfferInfo::mType, mViewInventoryIcon, mViewInventoryName, mViewMessage, mViewSubject, NULL, LLView::setEnabled(), LLIconCtrl::setImage(), LLTextEditor::setText(), LLLineEditor::setText(), LLView::setVisible(), TRUE, and VIEW_PAST_NOTICE.
Referenced by LLPanelGroup::showNotice().
LLButton* LLPanelGroupNotices::mBtnGetPastNotices [private] |
LLButton* LLPanelGroupNotices::mBtnNewMessage [private] |
LLButton* LLPanelGroupNotices::mBtnOpenAttachment [private] |
Definition at line 103 of file llpanelgroupnotices.h.
Referenced by arrangeNoticeView(), postBuild(), and showNotice().
LLButton* LLPanelGroupNotices::mBtnSendMessage [private] |
Definition at line 93 of file llpanelgroupnotices.h.
Referenced by activate(), postBuild(), and setItem().
LLTextEditor* LLPanelGroupNotices::mCreateMessage [private] |
LLLineEditor* LLPanelGroupNotices::mCreateSubject [private] |
LLOfferInfo* LLPanelGroupNotices::mInventoryOffer [private] |
Definition at line 116 of file llpanelgroupnotices.h.
Referenced by showNotice(), and ~LLPanelGroupNotices().
std::string LLPanelGroupNotices::mNoNoticesStr [private] |
Definition at line 114 of file llpanelgroupnotices.h.
Referenced by postBuild(), and processNotices().
Definition at line 112 of file llpanelgroupnotices.h.
Referenced by postBuild(), and processNotices().
LLPanel* LLPanelGroupNotices::mPanelCreateNotice [private] |
Definition at line 106 of file llpanelgroupnotices.h.
Referenced by activate(), arrangeNoticeView(), and postBuild().
LLPanel* LLPanelGroupNotices::mPanelViewNotice [private] |
Definition at line 107 of file llpanelgroupnotices.h.
Referenced by activate(), arrangeNoticeView(), and postBuild().
Definition at line 97 of file llpanelgroupnotices.h.
Referenced by activate(), postBuild(), and showNotice().
LLTextEditor* LLPanelGroupNotices::mViewMessage [private] |
LLLineEditor* LLPanelGroupNotices::mViewSubject [private] |
std::map< LLUUID, LLPanelGroupNotices * > LLPanelGroupNotices::sInstances [static, private] |
Definition at line 118 of file llpanelgroupnotices.h.
Referenced by LLPanelGroupNotices(), processGroupNoticesListReply(), and ~LLPanelGroupNotices().