aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-12 02:51:57 -0700
committerMcCabe Maxsted2009-10-12 03:11:44 -0700
commit9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b (patch)
tree5e36e73a32d1914923e38dcb5a2ef98ae87ffd53 /linden/indra/newview
parentMerge branch '1.2.0-avheight' into 1.2.0-customize (diff)
downloadmeta-impy-9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b.zip
meta-impy-9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b.tar.gz
meta-impy-9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b.tar.bz2
meta-impy-9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b.tar.xz
Added check/uncheck all buttons for make outfit from Meerkat viewer
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llfloatercustomize.cpp22
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/floater_new_outfit_dialog.xml6
2 files changed, 28 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatercustomize.cpp b/linden/indra/newview/llfloatercustomize.cpp
index 7d88a0f..432af73 100644
--- a/linden/indra/newview/llfloatercustomize.cpp
+++ b/linden/indra/newview/llfloatercustomize.cpp
@@ -245,6 +245,8 @@ public:
245 245
246 childSetAction("Save", onSave, this ); 246 childSetAction("Save", onSave, this );
247 childSetAction("Cancel", onCancel, this ); 247 childSetAction("Cancel", onCancel, this );
248 childSetAction("Check All", onCheckAll, this );
249 childSetAction("Uncheck All", onUncheckAll, this );
248 } 250 }
249 251
250 BOOL getRenameClothing() 252 BOOL getRenameClothing()
@@ -325,6 +327,26 @@ public:
325 LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata; 327 LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
326 self->close(); // destroys this object 328 self->close(); // destroys this object
327 } 329 }
330
331 static void onCheckAll( void* userdata )
332 {
333 LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
334 for( S32 i = 0; i < (S32)(self->mCheckBoxList.size()); i++)
335 {
336 std::string name = self->mCheckBoxList[i].first;
337 if(self->childIsEnabled(name))self->childSetValue(name,TRUE);
338 }
339 }
340
341 static void onUncheckAll( void* userdata )
342 {
343 LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
344 for( S32 i = 0; i < (S32)(self->mCheckBoxList.size()); i++)
345 {
346 std::string name = self->mCheckBoxList[i].first;
347 if(self->childIsEnabled(name))self->childSetValue(name,FALSE);
348 }
349 }
328}; 350};
329 351
330///////////////////////////////////////////////////////////////////// 352/////////////////////////////////////////////////////////////////////
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_new_outfit_dialog.xml b/linden/indra/newview/skins/default/xui/en-us/floater_new_outfit_dialog.xml
index 568f155..27a08c1 100644
--- a/linden/indra/newview/skins/default/xui/en-us/floater_new_outfit_dialog.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/floater_new_outfit_dialog.xml
@@ -225,6 +225,12 @@ now wearing into it.
225 width="489"> 225 width="489">
226 Items to include in outfit: 226 Items to include in outfit:
227 </text> 227 </text>
228 <button bottom_delta="0" enabled="true" font="SansSerif" halign="center" height="20"
229 label="Check All" left_delta="200" mouse_opaque="true"
230 name="Check All" scale_image="true" width="90" />
231 <button bottom_delta="0" enabled="true" font="SansSerif" halign="center" height="20"
232 label="Uncheck All" left_delta="100" mouse_opaque="true"
233 name="Uncheck All" scale_image="true" width="90" />
228 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" 234 <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false"
229 bottom="-196" drop_shadow_visible="true" enabled="true" follows="left|top" 235 bottom="-196" drop_shadow_visible="true" enabled="true" follows="left|top"
230 font="SansSerifSmall" h_pad="0" halign="left" height="14" left="13" 236 font="SansSerifSmall" h_pad="0" halign="left" height="14" left="13"