/indra/newview/llpanelwearing.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 80 lines · 30 code · 17 blank · 33 comment · 0 complexity · 747485eb4da6f12d4bd345c3d5592b66 MD5 · raw file

  1. /**
  2. * @file llpanelwearing.h
  3. * @brief List of agent's worn items.
  4. *
  5. * $LicenseInfo:firstyear=2010&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLPANELWEARING_H
  27. #define LL_LLPANELWEARING_H
  28. #include "llpanel.h"
  29. // newview
  30. #include "llpanelappearancetab.h"
  31. class LLInventoryCategoriesObserver;
  32. class LLListContextMenu;
  33. class LLWearableItemsList;
  34. class LLWearingGearMenu;
  35. /**
  36. * @class LLPanelWearing
  37. *
  38. * A list of agents's currently worn items represented by
  39. * a flat list view.
  40. * Starts fetching necessary inventory content on first opening.
  41. */
  42. class LLPanelWearing : public LLPanelAppearanceTab
  43. {
  44. public:
  45. LLPanelWearing();
  46. virtual ~LLPanelWearing();
  47. /*virtual*/ BOOL postBuild();
  48. /*virtual*/ void onOpen(const LLSD& info);
  49. /*virtual*/ void setFilterSubString(const std::string& string);
  50. /*virtual*/ bool isActionEnabled(const LLSD& userdata);
  51. /*virtual*/ void getSelectedItemsUUIDs(uuid_vec_t& selected_uuids) const;
  52. /*virtual*/ void copyToClipboard();
  53. boost::signals2::connection setSelectionChangeCallback(commit_callback_t cb);
  54. bool hasItemSelected();
  55. private:
  56. void onWearableItemsListRightClick(LLUICtrl* ctrl, S32 x, S32 y);
  57. LLInventoryCategoriesObserver* mCategoriesObserver;
  58. LLWearableItemsList* mCOFItemsList;
  59. LLWearingGearMenu* mGearMenu;
  60. LLListContextMenu* mContextMenu;
  61. bool mIsInitialized;
  62. };
  63. #endif //LL_LLPANELWEARING_H