#include <llpanelgroupnotices.h>
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 182 of file llpanelgroupnotices.cpp.
References sInstances.
Referenced by createTab().
LLPanelGroupNotices::~LLPanelGroupNotices | ( | ) | [virtual] |
Definition at line 191 of file llpanelgroupnotices.cpp.
References inventory_offer_callback(), IOR_DECLINE, LLPanelGroupTab::mGroupID, mInventoryOffer, NULL, and sInstances.
void * LLPanelGroupNotices::createTab | ( | void * | data | ) | [static] |
Reimplemented from LLPanelGroupTab.
Definition at line 204 of file llpanelgroupnotices.cpp.
References LLPanelGroupNotices().
Referenced by LLPanelGroup::LLPanelGroup().
void LLPanelGroupNotices::activate | ( | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 290 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().
BOOL LLPanelGroupNotices::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanelGroupTab.
Definition at line 216 of file llpanelgroupnotices.cpp.
References LLView::addChild(), arrangeNoticeView(), FALSE, gAgent, LLPanel::getString(), 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(), LLView::setEnabled(), LLUICtrl::setTabStop(), LLView::setVisible(), TRUE, and VIEW_PAST_NOTICE.
Reimplemented from LLPanelGroupTab.
Definition at line 210 of file llpanelgroupnotices.cpp.
References GP_NOTICES_RECEIVE, GP_NOTICES_SEND, LLAgent::hasPowerInGroup(), LLPanelGroupTab::mAllowEdit, and LLPanelGroupTab::mGroupID.
void LLPanelGroupNotices::setItem | ( | LLPointer< LLInventoryItem > | inv_item | ) |
Definition at line 309 of file llpanelgroupnotices.cpp.
References FALSE, get_item_icon_name(), 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::processGroupNoticesListReply | ( | LLMessageSystem * | msg, | |
void ** | data | |||
) | [static] |
Definition at line 418 of file llpanelgroupnotices.cpp.
References LLMessageSystem::getUUID(), llendl, llinfos, processNotices(), and sInstances.
Referenced by register_viewer_callbacks().
void LLPanelGroupNotices::showNotice | ( | const char * | subject, | |
const char * | message, | |||
const bool & | has_inventory, | |||
const char * | inventory_name, | |||
LLOfferInfo * | inventory_offer | |||
) |
Definition at line 525 of file llpanelgroupnotices.cpp.
References arrangeNoticeView(), LLLineEditor::clear(), FALSE, get_item_icon_name(), 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().
void LLPanelGroupNotices::onClickRemoveAttachment | ( | void * | data | ) | [static, private] |
Definition at line 334 of file llpanelgroupnotices.cpp.
Referenced by onClickNewMessage(), onClickSendMessage(), and postBuild().
void LLPanelGroupNotices::onClickOpenAttachment | ( | void * | data | ) | [static, private] |
Definition at line 344 of file llpanelgroupnotices.cpp.
References FALSE, inventory_offer_callback(), IOR_ACCEPT, and NULL.
Referenced by postBuild().
void LLPanelGroupNotices::onClickSendMessage | ( | void * | data | ) | [static, private] |
Definition at line 353 of file llpanelgroupnotices.cpp.
References LLViewerWindow::alertXml(), gViewerWindow, onClickRefreshNotices(), onClickRemoveAttachment(), send_group_notice(), and VIEW_PAST_NOTICE.
Referenced by postBuild().
void LLPanelGroupNotices::onClickNewMessage | ( | void * | data | ) | [static, private] |
Definition at line 379 of file llpanelgroupnotices.cpp.
References CREATE_NEW_NOTICE, inventory_offer_callback(), IOR_DECLINE, NULL, onClickRemoveAttachment(), and TRUE.
Referenced by postBuild().
void LLPanelGroupNotices::onClickRefreshNotices | ( | void * | data | ) | [static, private] |
Definition at line 397 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().
void LLPanelGroupNotices::processNotices | ( | LLMessageSystem * | msg | ) | [private] |
Definition at line 442 of file llpanelgroupnotices.cpp.
References ADD_BOTTOM, LLScrollListCtrl::addCommentText(), LLScrollListCtrl::addElement(), build_notice_date(), FALSE, get_item_icon_name(), 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 LLScrollListCtrl::sortItems().
Referenced by processGroupNoticesListReply().
void LLPanelGroupNotices::onSelectNotice | ( | LLUICtrl * | ctrl, | |
void * | data | |||
) | [static, private] |
Definition at line 505 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().
void LLPanelGroupNotices::arrangeNoticeView | ( | ENoticeView | view_type | ) | [private] |
Definition at line 568 of file llpanelgroupnotices.cpp.
References CREATE_NEW_NOTICE, FALSE, mBtnOpenAttachment, mPanelCreateNotice, mPanelViewNotice, LLView::setEnabled(), LLView::setVisible(), and TRUE.
Referenced by postBuild(), and showNotice().
LLLineEditor* LLPanelGroupNotices::mCreateSubject [private] |
Definition at line 93 of file llpanelgroupnotices.h.
Referenced by activate(), postBuild(), and setItem().
LLTextEditor* LLPanelGroupNotices::mCreateMessage [private] |
LLLineEditor* LLPanelGroupNotices::mViewSubject [private] |
Definition at line 97 of file llpanelgroupnotices.h.
Referenced by activate(), postBuild(), and showNotice().
LLTextEditor* LLPanelGroupNotices::mViewMessage [private] |
LLButton* LLPanelGroupNotices::mBtnSendMessage [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::mBtnGetPastNotices [private] |
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 112 of file llpanelgroupnotices.h.
Referenced by postBuild(), and processNotices().
std::string LLPanelGroupNotices::mNoNoticesStr [private] |
Definition at line 114 of file llpanelgroupnotices.h.
Referenced by postBuild(), and processNotices().
LLOfferInfo* LLPanelGroupNotices::mInventoryOffer [private] |
Definition at line 116 of file llpanelgroupnotices.h.
Referenced by showNotice(), and ~LLPanelGroupNotices().
std::map< LLUUID, LLPanelGroupNotices * > LLPanelGroupNotices::sInstances [static, private] |
Definition at line 118 of file llpanelgroupnotices.h.
Referenced by LLPanelGroupNotices(), processGroupNoticesListReply(), and ~LLPanelGroupNotices().