aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltexturectrl.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltexturectrl.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltexturectrl.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/linden/indra/newview/lltexturectrl.h b/linden/indra/newview/lltexturectrl.h
index 36f6ea2..24cde30 100644
--- a/linden/indra/newview/lltexturectrl.h
+++ b/linden/indra/newview/lltexturectrl.h
@@ -81,7 +81,7 @@ public:
81 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask, 81 virtual BOOL handleDragAndDrop(S32 x, S32 y, MASK mask,
82 BOOL drop, EDragAndDropType cargo_type, void *cargo_data, 82 BOOL drop, EDragAndDropType cargo_type, void *cargo_data,
83 EAcceptance *accept, 83 EAcceptance *accept,
84 LLString& tooltip_msg); 84 std::string& tooltip_msg);
85 virtual BOOL handleHover(S32 x, S32 y, MASK mask); 85 virtual BOOL handleHover(S32 x, S32 y, MASK mask);
86 virtual BOOL handleUnicodeCharHere(llwchar uni_char); 86 virtual BOOL handleUnicodeCharHere(llwchar uni_char);
87 87
@@ -103,8 +103,8 @@ public:
103 103
104 // LLTextureCtrl interface 104 // LLTextureCtrl interface
105 void showPicker(BOOL take_focus); 105 void showPicker(BOOL take_focus);
106 void setLabel(const LLString& label); 106 void setLabel(const std::string& label);
107 const LLString& getLabel() const { return mLabel; } 107 const std::string& getLabel() const { return mLabel; }
108 108
109 void setAllowNoTexture( BOOL b ) { mAllowNoTexture = b; } 109 void setAllowNoTexture( BOOL b ) { mAllowNoTexture = b; }
110 bool getAllowNoTexture() const { return mAllowNoTexture; } 110 bool getAllowNoTexture() const { return mAllowNoTexture; }
@@ -116,10 +116,10 @@ public:
116 116
117 void setDefaultImageAssetID( const LLUUID& id ) { mDefaultImageAssetID = id; } 117 void setDefaultImageAssetID( const LLUUID& id ) { mDefaultImageAssetID = id; }
118 118
119 const LLString& getDefaultImageName() const { return mDefaultImageName; } 119 const std::string& getDefaultImageName() const { return mDefaultImageName; }
120 const LLUUID& getDefaultImageAssetID() const { return mDefaultImageAssetID; } 120 const LLUUID& getDefaultImageAssetID() const { return mDefaultImageAssetID; }
121 121
122 void setCaption(const LLString& caption); 122 void setCaption(const std::string& caption);
123 void setCanApplyImmediately(BOOL b); 123 void setCanApplyImmediately(BOOL b);
124 124
125 void setImmediateFilterPermMask(PermissionMask mask) 125 void setImmediateFilterPermMask(PermissionMask mask)
@@ -147,6 +147,8 @@ public:
147 147
148 void setOnSelectCallback(LLUICtrlCallback cb) { mOnSelectCallback = cb; } 148 void setOnSelectCallback(LLUICtrlCallback cb) { mOnSelectCallback = cb; }
149 149
150 void setShowLoadingPlaceholder(BOOL showLoadingPlaceholder);
151
150private: 152private:
151 BOOL allowDrop(LLInventoryItem* item); 153 BOOL allowDrop(LLInventoryItem* item);
152 BOOL doDrop(LLInventoryItem* item); 154 BOOL doDrop(LLInventoryItem* item);
@@ -161,11 +163,11 @@ private:
161 LLUUID mImageItemID; 163 LLUUID mImageItemID;
162 LLUUID mImageAssetID; 164 LLUUID mImageAssetID;
163 LLUUID mDefaultImageAssetID; 165 LLUUID mDefaultImageAssetID;
164 LLString mDefaultImageName; 166 std::string mDefaultImageName;
165 LLHandle<LLFloater> mFloaterHandle; 167 LLHandle<LLFloater> mFloaterHandle;
166 LLTextBox* mTentativeLabel; 168 LLTextBox* mTentativeLabel;
167 LLTextBox* mCaption; 169 LLTextBox* mCaption;
168 LLString mLabel; 170 std::string mLabel;
169 BOOL mAllowNoTexture; // If true, the user can select "none" as an option 171 BOOL mAllowNoTexture; // If true, the user can select "none" as an option
170 LLCoordGL mLastFloaterLeftTop; 172 LLCoordGL mLastFloaterLeftTop;
171 PermissionMask mImmediateFilterPermMask; 173 PermissionMask mImmediateFilterPermMask;
@@ -175,6 +177,8 @@ private:
175 LLViewBorder* mBorder; 177 LLViewBorder* mBorder;
176 BOOL mValid; 178 BOOL mValid;
177 BOOL mDirty; 179 BOOL mDirty;
180 BOOL mShowLoadingPlaceholder;
181 std::string mLoadingPlaceholderString;
178}; 182};
179 183
180// XUI HACK: When floaters converted, switch this file to lltexturepicker.h/cpp 184// XUI HACK: When floaters converted, switch this file to lltexturepicker.h/cpp