diff options
author | McCabe Maxsted | 2009-10-12 02:51:57 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-10-12 03:11:44 -0700 |
commit | 9ced46508d934ee507ddd3f8e036bbc9e6bc4d9b (patch) | |
tree | 5e36e73a32d1914923e38dcb5a2ef98ae87ffd53 /linden/indra/newview/llfloatercustomize.cpp | |
parent | Merge branch '1.2.0-avheight' into 1.2.0-customize (diff) | |
download | meta-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/llfloatercustomize.cpp')
-rw-r--r-- | linden/indra/newview/llfloatercustomize.cpp | 22 |
1 files changed, 22 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 | ///////////////////////////////////////////////////////////////////// |