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 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'linden/indra/newview/llfloatercustomize.cpp') 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); + } + } }; ///////////////////////////////////////////////////////////////////// -- cgit v1.1