aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexturectrl.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltexturectrl.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/linden/indra/newview/lltexturectrl.cpp b/linden/indra/newview/lltexturectrl.cpp
index b5c1ace..6602096 100644
--- a/linden/indra/newview/lltexturectrl.cpp
+++ b/linden/indra/newview/lltexturectrl.cpp
@@ -119,7 +119,8 @@ public:
119 119
120 // LLFloater overrides 120 // LLFloater overrides
121 virtual void onClose(bool app_quitting); 121 virtual void onClose(bool app_quitting);
122 122 virtual BOOL postBuild();
123
123 // New functions 124 // New functions
124 void setImageID( const LLUUID& image_asset_id); 125 void setImageID( const LLUUID& image_asset_id);
125 void updateImageStats(); 126 void updateImageStats();
@@ -163,6 +164,8 @@ protected:
163 LLUUID mSpecialCurrentImageAssetID; // Used when the asset id has no corresponding texture in the user's inventory. 164 LLUUID mSpecialCurrentImageAssetID; // Used when the asset id has no corresponding texture in the user's inventory.
164 LLUUID mOriginalImageAssetID; 165 LLUUID mOriginalImageAssetID;
165 166
167 std::string mLabel;
168
166 LLTextBox* mTentativeLabel; 169 LLTextBox* mTentativeLabel;
167 LLTextBox* mResolutionLabel; 170 LLTextBox* mResolutionLabel;
168 171
@@ -197,6 +200,7 @@ LLFloaterTexturePicker::LLFloaterTexturePicker(
197 mImageAssetID( owner->getImageAssetID() ), 200 mImageAssetID( owner->getImageAssetID() ),
198 mWhiteImageAssetID( gSavedSettings.getString( "UIImgWhiteUUID" ) ), 201 mWhiteImageAssetID( gSavedSettings.getString( "UIImgWhiteUUID" ) ),
199 mOriginalImageAssetID(owner->getImageAssetID()), 202 mOriginalImageAssetID(owner->getImageAssetID()),
203 mLabel(label),
200 mTentativeLabel(NULL), 204 mTentativeLabel(NULL),
201 mResolutionLabel(NULL), 205 mResolutionLabel(NULL),
202 mIsDirty( FALSE ), 206 mIsDirty( FALSE ),
@@ -456,6 +460,21 @@ void LLFloaterTexturePicker::onClose(bool app_quitting)
456} 460}
457 461
458// virtual 462// virtual
463BOOL LLFloaterTexturePicker::postBuild()
464{
465 LLFloater::postBuild();
466
467 if (!mLabel.empty())
468 {
469 std::string pick = childGetText("pick title");
470
471 setTitle(pick + mLabel);
472 }
473
474 return TRUE;
475}
476
477// virtual
459void LLFloaterTexturePicker::draw() 478void LLFloaterTexturePicker::draw()
460{ 479{
461 if (mOwner) 480 if (mOwner)