diff options
Diffstat (limited to 'linden/indra/newview/llpanelgroup.cpp')
-rw-r--r-- | linden/indra/newview/llpanelgroup.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/linden/indra/newview/llpanelgroup.cpp b/linden/indra/newview/llpanelgroup.cpp index 84f6594..9ced1bb 100644 --- a/linden/indra/newview/llpanelgroup.cpp +++ b/linden/indra/newview/llpanelgroup.cpp | |||
@@ -112,10 +112,10 @@ void LLPanelGroupTab::onClickHelp(void* user_data) | |||
112 | void LLPanelGroupTab::handleClickHelp() | 112 | void LLPanelGroupTab::handleClickHelp() |
113 | { | 113 | { |
114 | // Display the help text. | 114 | // Display the help text. |
115 | LLString help_text( getHelpText() ); | 115 | std::string help_text( getHelpText() ); |
116 | if ( !help_text.empty() ) | 116 | if ( !help_text.empty() ) |
117 | { | 117 | { |
118 | LLString::format_map_t args; | 118 | LLStringUtil::format_map_t args; |
119 | args["[MESSAGE]"] = help_text; | 119 | args["[MESSAGE]"] = help_text; |
120 | LLAlertDialog* dialogp = gViewerWindow->alertXml("GenericAlert", args); | 120 | LLAlertDialog* dialogp = gViewerWindow->alertXml("GenericAlert", args); |
121 | if (dialogp) | 121 | if (dialogp) |
@@ -193,7 +193,7 @@ void LLPanelGroup::updateTabVisibility() | |||
193 | LLPanelGroupTab* panelp = | 193 | LLPanelGroupTab* panelp = |
194 | (LLPanelGroupTab*) mTabContainer->getPanelByIndex(i); | 194 | (LLPanelGroupTab*) mTabContainer->getPanelByIndex(i); |
195 | 195 | ||
196 | BOOL visible = panelp->isVisibleByAgent(&gAgent); | 196 | BOOL visible = panelp->isVisibleByAgent(&gAgent) || gAgent.isGodlike(); |
197 | mTabContainer->enableTabButton(i, visible); | 197 | mTabContainer->enableTabButton(i, visible); |
198 | 198 | ||
199 | if ( !visible && mCurrentTab == panelp ) | 199 | if ( !visible && mCurrentTab == panelp ) |
@@ -323,7 +323,7 @@ void LLPanelGroup::tabChanged() | |||
323 | //based on if they need an apply | 323 | //based on if they need an apply |
324 | if ( mApplyBtn ) | 324 | if ( mApplyBtn ) |
325 | { | 325 | { |
326 | LLString mesg; | 326 | std::string mesg; |
327 | mApplyBtn->setEnabled(mCurrentTab->needsApply(mesg)); | 327 | mApplyBtn->setEnabled(mCurrentTab->needsApply(mesg)); |
328 | } | 328 | } |
329 | } | 329 | } |
@@ -402,7 +402,7 @@ BOOL LLPanelGroup::canClose() | |||
402 | BOOL LLPanelGroup::attemptTransition() | 402 | BOOL LLPanelGroup::attemptTransition() |
403 | { | 403 | { |
404 | // Check if the current tab needs to be applied. | 404 | // Check if the current tab needs to be applied. |
405 | LLString mesg; | 405 | std::string mesg; |
406 | if (mCurrentTab && mCurrentTab->needsApply(mesg)) | 406 | if (mCurrentTab && mCurrentTab->needsApply(mesg)) |
407 | { | 407 | { |
408 | // If no message was provided, give a generic one. | 408 | // If no message was provided, give a generic one. |
@@ -411,7 +411,7 @@ BOOL LLPanelGroup::attemptTransition() | |||
411 | mesg = mDefaultNeedsApplyMesg; | 411 | mesg = mDefaultNeedsApplyMesg; |
412 | } | 412 | } |
413 | // Create a notify box, telling the user about the unapplied tab. | 413 | // Create a notify box, telling the user about the unapplied tab. |
414 | LLString::format_map_t args; | 414 | LLStringUtil::format_map_t args; |
415 | args["[NEEDS_APPLY_MESSAGE]"] = mesg; | 415 | args["[NEEDS_APPLY_MESSAGE]"] = mesg; |
416 | args["[WANT_APPLY_MESSAGE]"] = mWantApplyMesg; | 416 | args["[WANT_APPLY_MESSAGE]"] = mWantApplyMesg; |
417 | gViewerWindow->alertXml("PanelGroupApply", args, | 417 | gViewerWindow->alertXml("PanelGroupApply", args, |
@@ -547,7 +547,7 @@ bool LLPanelGroup::apply() | |||
547 | LLPanelGroupTab* panelp = (LLPanelGroupTab*) mTabContainer->getCurrentPanel(); | 547 | LLPanelGroupTab* panelp = (LLPanelGroupTab*) mTabContainer->getCurrentPanel(); |
548 | if (!panelp) return false; | 548 | if (!panelp) return false; |
549 | 549 | ||
550 | LLString mesg; | 550 | std::string mesg; |
551 | if ( !panelp->needsApply(mesg) ) | 551 | if ( !panelp->needsApply(mesg) ) |
552 | { | 552 | { |
553 | // We don't need to apply anything. | 553 | // We don't need to apply anything. |
@@ -557,7 +557,7 @@ bool LLPanelGroup::apply() | |||
557 | 557 | ||
558 | // Ignore the needs apply message. | 558 | // Ignore the needs apply message. |
559 | // Try to do the actual apply. | 559 | // Try to do the actual apply. |
560 | LLString apply_mesg; | 560 | std::string apply_mesg; |
561 | if ( panelp->apply( apply_mesg ) ) | 561 | if ( panelp->apply( apply_mesg ) ) |
562 | { | 562 | { |
563 | // Everything worked. We're done. | 563 | // Everything worked. We're done. |
@@ -568,7 +568,7 @@ bool LLPanelGroup::apply() | |||
568 | // Inform the user. | 568 | // Inform the user. |
569 | if ( !apply_mesg.empty() ) | 569 | if ( !apply_mesg.empty() ) |
570 | { | 570 | { |
571 | LLString::format_map_t args; | 571 | LLStringUtil::format_map_t args; |
572 | args["[MESSAGE]"] = apply_mesg; | 572 | args["[MESSAGE]"] = apply_mesg; |
573 | gViewerWindow->alertXml("GenericAlert", args); | 573 | gViewerWindow->alertXml("GenericAlert", args); |
574 | } | 574 | } |
@@ -595,7 +595,7 @@ void LLPanelGroup::draw() | |||
595 | } | 595 | } |
596 | if (mCurrentTab) | 596 | if (mCurrentTab) |
597 | { | 597 | { |
598 | LLString mesg; | 598 | std::string mesg; |
599 | childSetEnabled("btn_apply", mCurrentTab->needsApply(mesg)); | 599 | childSetEnabled("btn_apply", mCurrentTab->needsApply(mesg)); |
600 | } | 600 | } |
601 | 601 | ||
@@ -627,11 +627,11 @@ void LLPanelGroup::close() | |||
627 | } | 627 | } |
628 | } | 628 | } |
629 | 629 | ||
630 | void LLPanelGroup::showNotice(const char* subject, | 630 | void LLPanelGroup::showNotice(const std::string& subject, |
631 | const char* message, | 631 | const std::string& message, |
632 | const bool& has_inventory, | 632 | const bool& has_inventory, |
633 | const char* inventory_name, | 633 | const std::string& inventory_name, |
634 | LLOfferInfo* inventory_offer) | 634 | LLOfferInfo* inventory_offer) |
635 | { | 635 | { |
636 | if (mCurrentTab->getName() != "notices_tab") | 636 | if (mCurrentTab->getName() != "notices_tab") |
637 | { | 637 | { |