From 9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b Mon Sep 17 00:00:00 2001
From: McCabe Maxsted
Date: Mon, 12 Oct 2009 02:51:57 -0700
Subject: Added check/uncheck all buttons for make outfit from Meerkat viewer
---
linden/indra/newview/llfloatercustomize.cpp | 22 ++++++++++++++++++++++
.../xui/en-us/floater_new_outfit_dialog.xml | 6 ++++++
2 files changed, 28 insertions(+)
(limited to 'linden')
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:
childSetAction("Save", onSave, this );
childSetAction("Cancel", onCancel, this );
+ childSetAction("Check All", onCheckAll, this );
+ childSetAction("Uncheck All", onUncheckAll, this );
}
BOOL getRenameClothing()
@@ -325,6 +327,26 @@ public:
LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
self->close(); // destroys this object
}
+
+ static void onCheckAll( void* userdata )
+ {
+ LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
+ for( S32 i = 0; i < (S32)(self->mCheckBoxList.size()); i++)
+ {
+ std::string name = self->mCheckBoxList[i].first;
+ if(self->childIsEnabled(name))self->childSetValue(name,TRUE);
+ }
+ }
+
+ static void onUncheckAll( void* userdata )
+ {
+ LLMakeOutfitDialog* self = (LLMakeOutfitDialog*) userdata;
+ for( S32 i = 0; i < (S32)(self->mCheckBoxList.size()); i++)
+ {
+ std::string name = self->mCheckBoxList[i].first;
+ if(self->childIsEnabled(name))self->childSetValue(name,FALSE);
+ }
+ }
};
/////////////////////////////////////////////////////////////////////
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.
width="489">
Items to include in outfit:
+
+