aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfloater.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llfloater.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/linden/indra/llui/llfloater.cpp b/linden/indra/llui/llfloater.cpp
index defe200..e667bd4 100644
--- a/linden/indra/llui/llfloater.cpp
+++ b/linden/indra/llui/llfloater.cpp
@@ -691,11 +691,11 @@ void LLFloater::applyTitle()
691 691
692 if (isMinimized() && !mShortTitle.empty()) 692 if (isMinimized() && !mShortTitle.empty())
693 { 693 {
694 mDragHandle->setTitle( mShortTitle ); 694 mDragHandle->setTitle( mShortTitle.getString() );
695 } 695 }
696 else 696 else
697 { 697 {
698 mDragHandle->setTitle ( mTitle ); 698 mDragHandle->setTitle ( mTitle.getString() );
699 } 699 }
700} 700}
701 701
@@ -706,7 +706,7 @@ const std::string& LLFloater::getCurrentTitle() const
706 706
707void LLFloater::setTitle( const std::string& title ) 707void LLFloater::setTitle( const std::string& title )
708{ 708{
709 mTitle = title; 709 mTitle.assign(title);
710 applyTitle(); 710 applyTitle();
711} 711}
712 712
@@ -718,13 +718,13 @@ std::string LLFloater::getTitle()
718 } 718 }
719 else 719 else
720 { 720 {
721 return mTitle; 721 return mTitle.getString();
722 } 722 }
723} 723}
724 724
725void LLFloater::setShortTitle( const std::string& short_title ) 725void LLFloater::setShortTitle( const std::string& short_title )
726{ 726{
727 mShortTitle = short_title; 727 mShortTitle.assign(short_title);
728 applyTitle(); 728 applyTitle();
729} 729}
730 730
@@ -736,11 +736,25 @@ std::string LLFloater::getShortTitle()
736 } 736 }
737 else 737 else
738 { 738 {
739 return mShortTitle; 739 return mShortTitle.getString();
740 } 740 }
741} 741}
742 742
743 743
744BOOL LLFloater::setTitleArg( const std::string& key, const LLStringExplicit& text )
745{
746 mTitle.setArg(key, text);
747 applyTitle();
748 return TRUE;
749}
750
751BOOL LLFloater::setShortTitleArg( const std::string& key, const LLStringExplicit& text )
752{
753 mShortTitle.setArg(key, text);
754 applyTitle();
755 return TRUE;
756}
757
744 758
745BOOL LLFloater::canSnapTo(const LLView* other_view) 759BOOL LLFloater::canSnapTo(const LLView* other_view)
746{ 760{