LLPanelGroupNotices Class Reference

#include <llpanelgroupnotices.h>

Inheritance diagram for LLPanelGroupNotices:

Inheritance graph
[legend]
Collaboration diagram for LLPanelGroupNotices:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLPanelGroupNotices (const std::string &name, const LLUUID &group_id)
virtual ~LLPanelGroupNotices ()
virtual void activate ()
virtual BOOL postBuild ()
virtual BOOL isVisibleByAgent (LLAgent *agentp)
void setItem (LLPointer< LLInventoryItem > inv_item)
void showNotice (const char *subject, const char *message, const bool &has_inventory, const char *inventory_name, LLOfferInfo *inventory_offer)

Static Public Member Functions

static void * createTab (void *data)
static void processGroupNoticesListReply (LLMessageSystem *msg, void **data)

Private Types

enum  ENoticeView { VIEW_PAST_NOTICE, CREATE_NEW_NOTICE }

Private Member Functions

void processNotices (LLMessageSystem *msg)
void arrangeNoticeView (ENoticeView view_type)

Static Private Member Functions

static void onClickRemoveAttachment (void *data)
static void onClickOpenAttachment (void *data)
static void onClickSendMessage (void *data)
static void onClickNewMessage (void *data)
static void onClickRefreshNotices (void *data)
static void onSelectNotice (LLUICtrl *ctrl, void *data)

Private Attributes

LLPointer< LLInventoryItemmInventoryItem
LLLineEditormCreateSubject
LLLineEditormCreateInventoryName
LLTextEditormCreateMessage
LLLineEditormViewSubject
LLLineEditormViewInventoryName
LLTextEditormViewMessage
LLButtonmBtnSendMessage
LLButtonmBtnNewMessage
LLButtonmBtnRemoveAttachment
LLButtonmBtnOpenAttachment
LLButtonmBtnGetPastNotices
LLPanelmPanelCreateNotice
LLPanelmPanelViewNotice
LLIconCtrlmCreateInventoryIcon
LLIconCtrlmViewInventoryIcon
LLScrollListCtrlmNoticesList
std::string mNoNoticesStr
LLOfferInfomInventoryOffer

Static Private Attributes

static std::map< LLUUID,
LLPanelGroupNotices * > 
sInstances


Detailed Description

Definition at line 46 of file llpanelgroupnotices.h.


Member Enumeration Documentation

Enumerator:
VIEW_PAST_NOTICE 
CREATE_NEW_NOTICE 

Definition at line 82 of file llpanelgroupnotices.h.


Constructor & Destructor Documentation

LLPanelGroupNotices::LLPanelGroupNotices ( const std::string &  name,
const LLUUID group_id 
)

Definition at line 182 of file llpanelgroupnotices.cpp.

References sInstances.

Referenced by createTab().

Here is the caller graph for this function:

LLPanelGroupNotices::~LLPanelGroupNotices (  )  [virtual]

Definition at line 191 of file llpanelgroupnotices.cpp.

References inventory_offer_callback(), IOR_DECLINE, LLPanelGroupTab::mGroupID, mInventoryOffer, NULL, and sInstances.

Here is the call graph for this function:


Member Function Documentation

void * LLPanelGroupNotices::createTab ( void *  data  )  [static]

Reimplemented from LLPanelGroupTab.

Definition at line 204 of file llpanelgroupnotices.cpp.

References LLPanelGroupNotices().

Referenced by LLPanelGroup::LLPanelGroup().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelGroupNotices::activate (  )  [virtual]

BOOL LLPanelGroupNotices::postBuild ( void   )  [virtual]

BOOL LLPanelGroupNotices::isVisibleByAgent ( LLAgent agentp  )  [virtual]

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.

Here is the call graph for this function:

void LLPanelGroupNotices::setItem ( LLPointer< LLInventoryItem inv_item  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelGroupNotices::showNotice ( const char *  subject,
const char *  message,
const bool &  has_inventory,
const char *  inventory_name,
LLOfferInfo inventory_offer 
)

void LLPanelGroupNotices::onClickRemoveAttachment ( void *  data  )  [static, private]

Definition at line 334 of file llpanelgroupnotices.cpp.

References FALSE, and NULL.

Referenced by onClickNewMessage(), onClickSendMessage(), and postBuild().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLPanelGroupNotices::processNotices ( LLMessageSystem msg  )  [private]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 90 of file llpanelgroupnotices.h.

Referenced by setItem().

Definition at line 92 of file llpanelgroupnotices.h.

Referenced by postBuild().

Definition at line 93 of file llpanelgroupnotices.h.

Referenced by activate(), postBuild(), and setItem().

Definition at line 94 of file llpanelgroupnotices.h.

Referenced by postBuild().

Definition at line 96 of file llpanelgroupnotices.h.

Referenced by postBuild(), and showNotice().

Definition at line 97 of file llpanelgroupnotices.h.

Referenced by activate(), postBuild(), and showNotice().

Definition at line 98 of file llpanelgroupnotices.h.

Referenced by postBuild(), and showNotice().

Definition at line 100 of file llpanelgroupnotices.h.

Referenced by postBuild().

Definition at line 101 of file llpanelgroupnotices.h.

Referenced by postBuild().

Definition at line 102 of file llpanelgroupnotices.h.

Referenced by postBuild(), and setItem().

Definition at line 103 of file llpanelgroupnotices.h.

Referenced by arrangeNoticeView(), postBuild(), and showNotice().

Definition at line 104 of file llpanelgroupnotices.h.

Referenced by postBuild().

Definition at line 106 of file llpanelgroupnotices.h.

Referenced by activate(), arrangeNoticeView(), and postBuild().

Definition at line 107 of file llpanelgroupnotices.h.

Referenced by activate(), arrangeNoticeView(), and postBuild().

Definition at line 109 of file llpanelgroupnotices.h.

Referenced by postBuild(), and setItem().

Definition at line 110 of file llpanelgroupnotices.h.

Referenced by postBuild(), and showNotice().

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().

Definition at line 116 of file llpanelgroupnotices.h.

Referenced by showNotice(), and ~LLPanelGroupNotices().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:56:59 2008 for SecondLife by  doxygen 1.5.5