hbfloatermakenewoutfit.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**
  2. * @file hbfloatermakenewoutfit.h
  3. * @brief The Make New Outfit floater - header file
  4. *
  5. * $LicenseInfo:firstyear=2011&license=viewergpl$
  6. *
  7. * Copyright (c) 2011-2015 Henri Beauchamp
  8. *
  9. * Second Life Viewer Source Code
  10. * The source code in this file ("Source Code") is provided by Linden Lab
  11. * to you under the terms of the GNU General Public License, version 2.0
  12. * ("GPL"), unless you have obtained a separate licensing agreement
  13. * ("Other License"), formally executed by you and Linden Lab. Terms of
  14. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  15. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  16. *
  17. * There are special exceptions to the terms and conditions of the GPL as
  18. * it is applied to this Source Code. View the full text of the exception
  19. * in the file doc/FLOSS-exception.txt in this software distribution, or
  20. * online at
  21. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  22. *
  23. * By copying, modifying or distributing this software, you acknowledge
  24. * that you have read and understood your obligations described above,
  25. * and agree to abide by those obligations.
  26. *
  27. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  28. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  29. * COMPLETENESS OR PERFORMANCE.
  30. * $/LicenseInfo$
  31. */
  32. #ifndef LL_HBFLOATERMAKENEWOUTFIT_H
  33. #define LL_HBFLOATERMAKENEWOUTFIT_H
  34. #include "llfloater.h"
  35. class LLButton;
  36. class LLCheckBoxCtrl;
  37. class LLScrollListCtrl;
  38. class HBFloaterMakeNewOutfit final
  39. : public LLFloater, public LLFloaterSingleton<HBFloaterMakeNewOutfit>
  40. {
  41. friend class LLUISingleton<HBFloaterMakeNewOutfit,
  42. VisibilityPolicy<LLFloater> >;
  43. protected:
  44. LOG_CLASS(HBFloaterMakeNewOutfit);
  45. public:
  46. ~HBFloaterMakeNewOutfit() override;
  47. void getIncludedItems(uuid_vec_t& wearables_to_include,
  48. uuid_vec_t& attachments_to_include);
  49. static void setDirty();
  50. private:
  51. // Open only via LLFloaterSingleton interface, i.e. showInstance() or
  52. // toggleInstance().
  53. HBFloaterMakeNewOutfit(const LLSD&);
  54. bool postBuild() override;
  55. void draw() override;
  56. bool hasCheckedItems();
  57. static void onCommitWearableList(LLUICtrl* ctrl, void* user_data);
  58. static void onCommitCheckBox(LLUICtrl*, void* user_data);
  59. static void onCommitCheckBoxLinkAll(LLUICtrl* ctrl, void* user_data);
  60. static void onButtonSave(void* user_data);
  61. static void onButtonCancel(void* user_data);
  62. private:
  63. LLButton* mSaveButton;
  64. LLCheckBoxCtrl* mShapeCheck;
  65. LLCheckBoxCtrl* mSkinCheck;
  66. LLCheckBoxCtrl* mHairCheck;
  67. LLCheckBoxCtrl* mEyesCheck;
  68. LLCheckBoxCtrl* mUseAllLinksCheck;
  69. LLCheckBoxCtrl* mUseClothesLinksCheck;
  70. LLCheckBoxCtrl* mUseNoCopyLinksCheck;
  71. LLCheckBoxCtrl* mRenameCheck;
  72. LLScrollListCtrl* mAttachmentsList;
  73. LLScrollListCtrl* mWearablesList;
  74. bool mIsDirty;
  75. bool mSaveStatusDirty;
  76. static uuid_list_t sFetchingRequests;
  77. static uuid_list_t sUnderpants;
  78. static uuid_list_t sUndershirts;
  79. };
  80. #endif // LL_HBFLOATERMAKENEWOUTFIT_H