PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpaneloutfitsinventory.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 105 lines | 54 code | 17 blank | 34 comment | 0 complexity | 21157b9873a64f617ba7a0c395d0b454 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpaneloutfitsinventory.h
  3. * @brief Outfits inventory panel
  4. * class definition
  5. *
  6. * $LicenseInfo:firstyear=2009&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLPANELOUTFITSINVENTORY_H
  28. #define LL_LLPANELOUTFITSINVENTORY_H
  29. #include "llpanel.h"
  30. class LLOutfitsList;
  31. class LLOutfitListGearMenu;
  32. class LLPanelAppearanceTab;
  33. class LLPanelWearing;
  34. class LLMenuGL;
  35. class LLSidepanelAppearance;
  36. class LLTabContainer;
  37. class LLSaveOutfitComboBtn;
  38. class LLPanelOutfitsInventory : public LLPanel
  39. {
  40. LOG_CLASS(LLPanelOutfitsInventory);
  41. public:
  42. LLPanelOutfitsInventory();
  43. virtual ~LLPanelOutfitsInventory();
  44. /*virtual*/ BOOL postBuild();
  45. /*virtual*/ void onOpen(const LLSD& key);
  46. void onSearchEdit(const std::string& string);
  47. void onSave();
  48. bool onSaveCommit(const LLSD& notification, const LLSD& response);
  49. static LLSidepanelAppearance* getAppearanceSP();
  50. static LLPanelOutfitsInventory* findInstance();
  51. protected:
  52. void updateVerbs();
  53. private:
  54. LLTabContainer* mAppearanceTabs;
  55. std::string mFilterSubString;
  56. std::auto_ptr<LLSaveOutfitComboBtn> mSaveComboBtn;
  57. //////////////////////////////////////////////////////////////////////////////////
  58. // tab panels //
  59. protected:
  60. void initTabPanels();
  61. void onTabChange();
  62. bool isCOFPanelActive() const;
  63. private:
  64. LLPanelAppearanceTab* mActivePanel;
  65. LLOutfitsList* mMyOutfitsPanel;
  66. LLPanelWearing* mCurrentOutfitPanel;
  67. // tab panels //
  68. //////////////////////////////////////////////////////////////////////////////////
  69. //////////////////////////////////////////////////////////////////////////////////
  70. // List Commands //
  71. protected:
  72. void initListCommandsHandlers();
  73. void updateListCommands();
  74. void onWearButtonClick();
  75. void showGearMenu();
  76. void onTrashButtonClick();
  77. bool isActionEnabled(const LLSD& userdata);
  78. void setWearablesLoading(bool val);
  79. void onWearablesLoaded();
  80. void onWearablesLoading();
  81. private:
  82. LLPanel* mListCommands;
  83. LLMenuGL* mMenuAdd;
  84. // List Commands //
  85. //////////////////////////////////////////////////////////////////////////////////
  86. bool mInitialized;
  87. };
  88. #endif //LL_LLPANELOUTFITSINVENTORY_H