#include <llpanelgroup.h>


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 | |
| LLPanelGroupTab * | mCurrentTab |
| LLPanelGroupTab * | mRequestedTab |
| LLTabContainer * | mTabContainer |
| BOOL | mIgnoreTransition |
| LLButton * | mApplyBtn |
| LLTimer | mRefreshTimer |
| BOOL | mForceClose |
| std::string | mInitialTab |
| std::string | mFilename |
| LLString | mDefaultNeedsApplyMesg |
| LLString | mWantApplyMesg |
| BOOL | mAllowEdit |
| BOOL | mShowingNotifyDialog |
Definition at line 55 of file llpanelgroup.h.
| 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 132 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(), LLSingleton< LLUICtrlFactory >::getInstance(), LLSingleton< LLGroupMgr >::getInstance(), LLPanel::mFactoryMap, mFilename, and LLGroupMgrObserver::mID.

| LLPanelGroup::~LLPanelGroup | ( | ) | [virtual] |
Definition at line 170 of file llpanelgroup.cpp.
References LLSingleton< LLGroupMgr >::getInstance(), LLTabContainer::getPanelByIndex(), LLTabContainer::getTabCount(), i, mTabContainer, LLPanelGroupTab::removeObserver(), and LLGroupMgr::removeObserver().

| BOOL LLPanelGroup::postBuild | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 212 of file llpanelgroup.cpp.
References LLPanelGroupTab::activate(), LLPanelGroupTab::addObserver(), FALSE, LLTabContainer::getCurrentPanel(), LLTabContainer::getPanelByIndex(), LLPanel::getString(), LLTabContainer::getTabCount(), i, mAllowEdit, mApplyBtn, mCurrentTab, mDefaultNeedsApplyMesg, mInitialTab, mTabContainer, mWantApplyMesg, onBtnApply(), onBtnCancel(), onBtnOK(), onBtnRefresh(), onClickTab(), S32, LLTabContainer::selectFirstTab(), LLTabContainer::selectTabPanel(), LLPanelGroupTab::setAllowEdit(), LLUICtrl::setCallbackUserData(), LLButton::setClickedCallback(), LLView::setEnabled(), LLTabContainer::setTabChangeCallback(), LLTabContainer::setTabUserData(), LLView::setVisible(), TRUE, and updateTabVisibility().

| void LLPanelGroup::onBtnOK | ( | void * | user_data | ) | [static] |
Definition at line 518 of file llpanelgroup.cpp.
Referenced by postBuild().

| void LLPanelGroup::onBtnCancel | ( | void * | user_data | ) | [static] |
Definition at line 529 of file llpanelgroup.cpp.
Referenced by postBuild().

| void LLPanelGroup::onBtnApply | ( | void * | user_data | ) | [static] |
Definition at line 536 of file llpanelgroup.cpp.
Referenced by postBuild().

| void LLPanelGroup::onBtnRefresh | ( | void * | user_data | ) | [static] |
Definition at line 580 of file llpanelgroup.cpp.
Referenced by postBuild().

| void LLPanelGroup::onClickTab | ( | void * | user_data, | |
| bool | from_click | |||
| ) | [static] |
Definition at line 332 of file llpanelgroup.cpp.
Referenced by postBuild(), and selectTab().

| void LLPanelGroup::handleClickTab | ( | ) |
Definition at line 338 of file llpanelgroup.cpp.
References attemptTransition(), LLTabContainer::getCurrentPanel(), mCurrentTab, mIgnoreTransition, mRequestedTab, and mTabContainer.

| void LLPanelGroup::setGroupID | ( | const LLUUID & | group_id | ) |
Definition at line 359 of file llpanelgroup.cpp.
References LLGroupMgr::addObserver(), LLUICtrlFactory::buildPanel(), LLView::deleteAllChildren(), LLPanel::getFactoryMap(), LLSingleton< LLUICtrlFactory >::getInstance(), LLSingleton< LLGroupMgr >::getInstance(), LLView::getRect(), mFilename, LLGroupMgrObserver::mID, and LLGroupMgr::removeObserver().
Referenced by LLPanelDirBrowser::showDetailPanel().


| void LLPanelGroup::selectTab | ( | std::string | tab_name | ) |
Definition at line 377 of file llpanelgroup.cpp.
References mTabContainer, onClickTab(), LLTabContainer::selectTabPanel(), and TRUE.
Referenced by LLFloaterGroupInfo::selectTabByName().


| BOOL LLPanelGroup::canClose | ( | ) |
Definition at line 391 of file llpanelgroup.cpp.
References attemptTransition(), FALSE, LLPanelGroupTab::hasModal(), mAllowEdit, mCurrentTab, mForceClose, mRequestedTab, mShowingNotifyDialog, NULL, and TRUE.
Referenced by LLFloaterGroupInfo::canClose().


| BOOL LLPanelGroup::attemptTransition | ( | ) |
Definition at line 402 of file llpanelgroup.cpp.
References LLViewerWindow::alertXml(), FALSE, gViewerWindow, mCurrentTab, mDefaultNeedsApplyMesg, mIgnoreTransition, mRequestedTab, mShowingNotifyDialog, mTabContainer, mWantApplyMesg, LLPanelGroupTab::needsApply(), onNotifyCallback(), LLTabContainer::selectTabPanel(), transitionToTab(), and TRUE.
Referenced by canClose(), and handleClickTab().


| void LLPanelGroup::transitionToTab | ( | ) |
Definition at line 447 of file llpanelgroup.cpp.
References LLPanelGroupTab::activate(), close(), LLPanelGroupTab::deactivate(), mCurrentTab, and mRequestedTab.
Referenced by attemptTransition(), and handleNotifyCallback().


| void LLPanelGroup::updateTabVisibility | ( | ) |
Definition at line 186 of file llpanelgroup.cpp.
References LLTabContainer::enableTabButton(), gAgent, LLTabContainer::getCurrentPanel(), LLTabContainer::getPanelByIndex(), LLTabContainer::getTabCount(), i, LLPanelGroupTab::isVisibleByAgent(), mCurrentTab, mTabContainer, S32, and LLTabContainer::selectPrevTab().
Referenced by changed(), and postBuild().


| void LLPanelGroup::onNotifyCallback | ( | S32 | option, | |
| void * | user_data | |||
| ) | [static] |
Definition at line 469 of file llpanelgroup.cpp.
Referenced by attemptTransition().

| void LLPanelGroup::handleNotifyCallback | ( | S32 | option | ) |
Definition at line 478 of file llpanelgroup.cpp.
References LLAppViewer::abortQuit(), apply(), LLPanelGroupTab::cancel(), FALSE, LLAppViewer::instance(), mCurrentTab, mIgnoreTransition, mRequestedTab, mShowingNotifyDialog, mTabContainer, LLTabContainer::selectTabPanel(), transitionToTab(), and TRUE.

| bool LLPanelGroup::apply | ( | ) |
Definition at line 542 of file llpanelgroup.cpp.
References LLViewerWindow::alertXml(), LLPanelGroupTab::apply(), LLTabContainer::getCurrentPanel(), gViewerWindow, mTabContainer, and LLPanelGroupTab::needsApply().
Referenced by handleNotifyCallback().


| void LLPanelGroup::refreshData | ( | ) |
Definition at line 604 of file llpanelgroup.cpp.
References LLPanelGroupTab::activate(), LLPanel::childDisable(), LLGroupMgr::clearGroupData(), LLGroupMgrObserver::getID(), LLSingleton< LLGroupMgr >::getInstance(), mCurrentTab, mRefreshTimer, LLTimer::setTimerExpirySec(), and LLTimer::start().
Referenced by LLFloaterGroupInfo::refreshGroup(), and LLFloaterDirectory::refreshGroup().


| void LLPanelGroup::close | ( | ) |
Definition at line 615 of file llpanelgroup.cpp.
References LLFloater::close(), LLView::getParent(), mForceClose, and TRUE.
Referenced by LLFloaterGroupInfo::closeGroup(), and transitionToTab().


| void LLPanelGroup::draw | ( | void | ) | [virtual] |
Reimplemented from LLPanel.
Definition at line 587 of file llpanelgroup.cpp.
References LLPanel::childEnable(), LLPanel::childSetEnabled(), LLPanel::draw(), LLTimer::hasExpired(), mCurrentTab, mRefreshTimer, LLPanelGroupTab::needsApply(), and LLTimer::stop().

| void LLPanelGroup::changed | ( | LLGroupChange | gc | ) | [virtual] |
Implements LLGroupMgrObserver.
Definition at line 307 of file llpanelgroup.cpp.
References LLTabContainer::getCurrentPanel(), mTabContainer, LLPanelGroupTab::update(), and updateTabVisibility().

| void LLPanelGroup::tabChanged | ( | ) | [virtual] |
Implements LLPanelGroupTabObserver.
Definition at line 320 of file llpanelgroup.cpp.
References mApplyBtn, mCurrentTab, LLPanelGroupTab::needsApply(), and LLView::setEnabled().

| void LLPanelGroup::setAllowEdit | ( | BOOL | v | ) | [inline] |
| void LLPanelGroup::showNotice | ( | const char * | subject, | |
| const char * | message, | |||
| const bool & | has_inventory, | |||
| const char * | inventory_name, | |||
| LLOfferInfo * | inventory_offer | |||
| ) |
Definition at line 630 of file llpanelgroup.cpp.
References LLView::getName(), inventory_offer_callback(), IOR_DECLINE, mCurrentTab, and LLPanelGroupNotices::showNotice().
Referenced by LLFloaterGroupInfo::showNotice().


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().
LLPanelGroupTab* LLPanelGroup::mRequestedTab [protected] |
Definition at line 113 of file llpanelgroup.h.
Referenced by attemptTransition(), canClose(), handleClickTab(), handleNotifyCallback(), and transitionToTab().
LLTabContainer* LLPanelGroup::mTabContainer [protected] |
Definition at line 114 of file llpanelgroup.h.
Referenced by apply(), attemptTransition(), changed(), handleClickTab(), handleNotifyCallback(), postBuild(), selectTab(), updateTabVisibility(), and ~LLPanelGroup().
BOOL LLPanelGroup::mIgnoreTransition [protected] |
Definition at line 115 of file llpanelgroup.h.
Referenced by attemptTransition(), handleClickTab(), and handleNotifyCallback().
LLButton* LLPanelGroup::mApplyBtn [protected] |
LLTimer LLPanelGroup::mRefreshTimer [protected] |
BOOL LLPanelGroup::mForceClose [protected] |
std::string LLPanelGroup::mInitialTab [protected] |
std::string LLPanelGroup::mFilename [protected] |
LLString LLPanelGroup::mDefaultNeedsApplyMesg [protected] |
LLString LLPanelGroup::mWantApplyMesg [protected] |
BOOL LLPanelGroup::mAllowEdit [protected] |
Definition at line 129 of file llpanelgroup.h.
Referenced by canClose(), postBuild(), and setAllowEdit().
BOOL LLPanelGroup::mShowingNotifyDialog [protected] |
Definition at line 130 of file llpanelgroup.h.
Referenced by attemptTransition(), canClose(), and handleNotifyCallback().
1.5.5