LLPanelGroup Class Reference

#include <llpanelgroup.h>

Inheritance diagram for LLPanelGroup:

Inheritance graph
[legend]
Collaboration diagram for LLPanelGroup:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLPanelGroup (const std::string &filename, const std::string &name, const LLUUID &group_id, const std::string &initial_tab_selected=std::string())
virtual ~LLPanelGroup ()
virtual BOOL postBuild ()
void handleClickTab ()
void setGroupID (const LLUUID &group_id)
void selectTab (std::string tab_name)
BOOL canClose ()
BOOL attemptTransition ()
void transitionToTab ()
void updateTabVisibility ()
void handleNotifyCallback (S32 option)
bool apply ()
void refreshData ()
void close ()
void draw ()
virtual void changed (LLGroupChange gc)
virtual void tabChanged ()
void setAllowEdit (BOOL v)
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 onBtnOK (void *)
static void onBtnCancel (void *)
static void onBtnApply (void *)
static void onBtnRefresh (void *)
static void onClickTab (void *, bool)
static void onNotifyCallback (S32 option, void *user_data)

Protected Attributes

LLPanelGroupTabmCurrentTab
LLPanelGroupTabmRequestedTab
LLTabContainerCommonmTabContainer
BOOL mIgnoreTransition
LLButtonmApplyBtn
LLTimer mRefreshTimer
BOOL mForceClose
std::string mInitialTab
std::string mFilename
LLString mDefaultNeedsApplyMesg
LLString mWantApplyMesg
BOOL mAllowEdit
BOOL mShowingNotifyDialog

Detailed Description

Definition at line 55 of file llpanelgroup.h.


Constructor & Destructor Documentation

LLPanelGroup::LLPanelGroup ( const std::string &  filename,
const std::string &  name,
const LLUUID group_id,
const std::string &  initial_tab_selected = std::string() 
)

Definition at line 140 of file llpanelgroup.cpp.

References LLGroupMgr::addObserver(), LLUICtrlFactory::buildPanel(), LLPanelGroupActionsSubTab::createTab(), LLPanelGroupRolesSubTab::createTab(), LLPanelGroupMembersSubTab::createTab(), LLPanelGroupLandMoney::createTab(), LLPanelGroupVoting::createTab(), LLPanelGroupNotices::createTab(), LLPanelGroupRoles::createTab(), LLPanelGroupGeneral::createTab(), LLPanel::getFactoryMap(), gGroupMgr, gUICtrlFactory, LLPanel::mFactoryMap, mFilename, and LLGroupMgrObserver::mID.

LLPanelGroup::~LLPanelGroup (  )  [virtual]

Definition at line 178 of file llpanelgroup.cpp.

References LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getTabCount(), gGroupMgr, i, mTabContainer, and LLGroupMgr::removeObserver().


Member Function Documentation

bool LLPanelGroup::apply (  ) 

Definition at line 563 of file llpanelgroup.cpp.

References LLViewerWindow::alertXml(), LLPanelGroupTab::apply(), LLTabContainerCommon::getCurrentPanel(), gViewerWindow, mTabContainer, and LLPanelGroupTab::needsApply().

Referenced by handleNotifyCallback().

BOOL LLPanelGroup::attemptTransition (  ) 

Definition at line 423 of file llpanelgroup.cpp.

References LLViewerWindow::alertXml(), FALSE, gViewerWindow, mCurrentTab, mDefaultNeedsApplyMesg, mIgnoreTransition, mRequestedTab, mShowingNotifyDialog, mTabContainer, mWantApplyMesg, LLPanelGroupTab::needsApply(), onNotifyCallback(), LLTabContainerCommon::selectTabPanel(), transitionToTab(), and TRUE.

Referenced by canClose(), and handleClickTab().

BOOL LLPanelGroup::canClose (  ) 

Definition at line 412 of file llpanelgroup.cpp.

References attemptTransition(), FALSE, LLPanelGroupTab::hasModal(), mAllowEdit, mCurrentTab, mForceClose, mRequestedTab, mShowingNotifyDialog, NULL, and TRUE.

Referenced by LLFloaterGroupInfo::canClose().

void LLPanelGroup::changed ( LLGroupChange  gc  )  [virtual]

Implements LLGroupMgrObserver.

Definition at line 328 of file llpanelgroup.cpp.

References LLTabContainerCommon::getCurrentPanel(), mTabContainer, LLPanelGroupTab::update(), and updateTabVisibility().

void LLPanelGroup::close (  ) 

Definition at line 636 of file llpanelgroup.cpp.

References LLFloater::close(), LLView::getParent(), LLView::getWidgetType(), mForceClose, TRUE, and WIDGET_TYPE_FLOATER.

Referenced by LLFloaterGroupInfo::closeGroup(), and transitionToTab().

void LLPanelGroup::draw (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 608 of file llpanelgroup.cpp.

References LLPanel::childEnable(), LLPanel::childSetEnabled(), LLPanel::draw(), LLTimer::hasExpired(), mCurrentTab, mRefreshTimer, LLPanelGroupTab::needsApply(), and LLTimer::stop().

void LLPanelGroup::handleClickTab (  ) 

Definition at line 359 of file llpanelgroup.cpp.

References attemptTransition(), LLTabContainerCommon::getCurrentPanel(), mCurrentTab, mIgnoreTransition, mRequestedTab, and mTabContainer.

void LLPanelGroup::handleNotifyCallback ( S32  option  ) 

Definition at line 499 of file llpanelgroup.cpp.

References app_abort_quit(), apply(), LLPanelGroupTab::cancel(), FALSE, mCurrentTab, mIgnoreTransition, mRequestedTab, mShowingNotifyDialog, mTabContainer, LLTabContainerCommon::selectTabPanel(), transitionToTab(), and TRUE.

void LLPanelGroup::onBtnApply ( void  )  [static]

Definition at line 557 of file llpanelgroup.cpp.

Referenced by postBuild().

void LLPanelGroup::onBtnCancel ( void  )  [static]

Definition at line 550 of file llpanelgroup.cpp.

Referenced by postBuild().

void LLPanelGroup::onBtnOK ( void  )  [static]

Definition at line 539 of file llpanelgroup.cpp.

Referenced by postBuild().

void LLPanelGroup::onBtnRefresh ( void  )  [static]

Definition at line 601 of file llpanelgroup.cpp.

Referenced by postBuild().

void LLPanelGroup::onClickTab ( void ,
bool   
) [static]

Definition at line 353 of file llpanelgroup.cpp.

Referenced by postBuild(), and selectTab().

void LLPanelGroup::onNotifyCallback ( S32  option,
void user_data 
) [static]

Definition at line 490 of file llpanelgroup.cpp.

Referenced by attemptTransition().

BOOL LLPanelGroup::postBuild (  )  [virtual]

Reimplemented from LLPanel.

Definition at line 220 of file llpanelgroup.cpp.

References LLPanelGroupTab::activate(), LLPanelGroupTab::addObserver(), FALSE, LLPanel::getChildByName(), LLTabContainerCommon::getCurrentPanel(), LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getTabCount(), LLTextBox::getText(), i, mAllowEdit, mApplyBtn, mCurrentTab, mDefaultNeedsApplyMesg, mInitialTab, mTabContainer, mWantApplyMesg, onBtnApply(), onBtnCancel(), onBtnOK(), onBtnRefresh(), onClickTab(), LLView::removeChild(), S32, LLTabContainerCommon::selectFirstTab(), LLTabContainerCommon::selectTabPanel(), LLPanelGroupTab::setAllowEdit(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLView::setEnabled(), LLTabContainerCommon::setTabChangeCallback(), LLTabContainerCommon::setTabUserData(), LLView::setVisible(), TRUE, and updateTabVisibility().

void LLPanelGroup::refreshData (  ) 

Definition at line 625 of file llpanelgroup.cpp.

References LLPanelGroupTab::activate(), LLPanel::childDisable(), LLGroupMgr::clearGroupData(), LLGroupMgrObserver::getID(), gGroupMgr, mCurrentTab, mRefreshTimer, LLTimer::setTimerExpirySec(), and LLTimer::start().

Referenced by LLFloaterGroupInfo::refreshGroup(), and LLFloaterDirectory::refreshGroup().

void LLPanelGroup::selectTab ( std::string  tab_name  ) 

Definition at line 398 of file llpanelgroup.cpp.

References LLPanel::getChildByName(), mTabContainer, onClickTab(), LLTabContainerCommon::selectTabPanel(), and TRUE.

Referenced by LLFloaterGroupInfo::selectTabByName().

void LLPanelGroup::setAllowEdit ( BOOL  v  )  [inline]

Definition at line 104 of file llpanelgroup.h.

References mAllowEdit.

void LLPanelGroup::setGroupID ( const LLUUID group_id  ) 

Definition at line 380 of file llpanelgroup.cpp.

References LLGroupMgr::addObserver(), LLUICtrlFactory::buildPanel(), LLView::deleteAllChildren(), LLPanel::getFactoryMap(), LLView::getRect(), gGroupMgr, gUICtrlFactory, mFilename, LLGroupMgrObserver::mID, and LLGroupMgr::removeObserver().

Referenced by LLPanelDirBrowser::showDetailPanel().

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

Definition at line 652 of file llpanelgroup.cpp.

References LLView::getName(), inventory_offer_callback(), IOR_DECLINE, mCurrentTab, and LLPanelGroupNotices::showNotice().

Referenced by LLFloaterGroupInfo::showNotice().

void LLPanelGroup::tabChanged (  )  [virtual]

Implements LLPanelGroupTabObserver.

Definition at line 341 of file llpanelgroup.cpp.

References mApplyBtn, mCurrentTab, LLPanelGroupTab::needsApply(), and LLView::setEnabled().

void LLPanelGroup::transitionToTab (  ) 

Definition at line 468 of file llpanelgroup.cpp.

References LLPanelGroupTab::activate(), close(), LLPanelGroupTab::deactivate(), mCurrentTab, and mRequestedTab.

Referenced by attemptTransition(), and handleNotifyCallback().

void LLPanelGroup::updateTabVisibility (  ) 

Definition at line 194 of file llpanelgroup.cpp.

References LLTabContainerCommon::enableTabButton(), gAgent, LLTabContainerCommon::getCurrentPanel(), LLTabContainerCommon::getPanelByIndex(), LLTabContainerCommon::getTabCount(), i, mCurrentTab, mTabContainer, S32, and LLTabContainerCommon::selectPrevTab().

Referenced by changed(), and postBuild().


Member Data Documentation

BOOL LLPanelGroup::mAllowEdit [protected]

Definition at line 129 of file llpanelgroup.h.

Referenced by canClose(), postBuild(), and setAllowEdit().

LLButton* LLPanelGroup::mApplyBtn [protected]

Definition at line 117 of file llpanelgroup.h.

Referenced by postBuild(), and tabChanged().

LLPanelGroupTab* LLPanelGroup::mCurrentTab [protected]

Definition at line 112 of file llpanelgroup.h.

Referenced by attemptTransition(), canClose(), draw(), handleClickTab(), handleNotifyCallback(), postBuild(), refreshData(), showNotice(), tabChanged(), transitionToTab(), and updateTabVisibility().

LLString LLPanelGroup::mDefaultNeedsApplyMesg [protected]

Definition at line 126 of file llpanelgroup.h.

Referenced by attemptTransition(), and postBuild().

std::string LLPanelGroup::mFilename [protected]

Definition at line 124 of file llpanelgroup.h.

Referenced by LLPanelGroup(), and setGroupID().

BOOL LLPanelGroup::mForceClose [protected]

Definition at line 121 of file llpanelgroup.h.

Referenced by canClose(), and close().

BOOL LLPanelGroup::mIgnoreTransition [protected]

Definition at line 115 of file llpanelgroup.h.

Referenced by attemptTransition(), handleClickTab(), and handleNotifyCallback().

std::string LLPanelGroup::mInitialTab [protected]

Definition at line 123 of file llpanelgroup.h.

Referenced by postBuild().

LLTimer LLPanelGroup::mRefreshTimer [protected]

Definition at line 119 of file llpanelgroup.h.

Referenced by draw(), and refreshData().

LLPanelGroupTab* LLPanelGroup::mRequestedTab [protected]

Definition at line 113 of file llpanelgroup.h.

Referenced by attemptTransition(), canClose(), handleClickTab(), handleNotifyCallback(), and transitionToTab().

BOOL LLPanelGroup::mShowingNotifyDialog [protected]

Definition at line 130 of file llpanelgroup.h.

Referenced by attemptTransition(), canClose(), and handleNotifyCallback().

LLTabContainerCommon* LLPanelGroup::mTabContainer [protected]

Definition at line 114 of file llpanelgroup.h.

Referenced by apply(), attemptTransition(), changed(), handleClickTab(), handleNotifyCallback(), postBuild(), selectTab(), updateTabVisibility(), and ~LLPanelGroup().

LLString LLPanelGroup::mWantApplyMesg [protected]

Definition at line 127 of file llpanelgroup.h.

Referenced by attemptTransition(), and postBuild().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:36 2010 for Second Life Viewer by  doxygen 1.4.7