PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llfloateropenobject.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 90 lines | 44 code | 17 blank | 29 comment | 0 complexity | b64f7d96caf0b8d85fcf9e8d5ee670a6 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llfloateropenobject.h
  3. * @brief LLFloaterOpenObject class definition
  4. *
  5. * $LicenseInfo:firstyear=2004&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. /*
  27. * Shows the contents of an object and their permissions when you
  28. * click "Buy..." on an object with "Sell Contents" checked.
  29. */
  30. #ifndef LL_LLFLOATEROPENOBJECT_H
  31. #define LL_LLFLOATEROPENOBJECT_H
  32. #include "llfloater.h"
  33. class LLObjectSelection;
  34. class LLPanelObjectInventory;
  35. class LLFloaterOpenObject
  36. : public LLFloater
  37. {
  38. friend class LLFloaterReg;
  39. public:
  40. void dirty();
  41. class LLCategoryCreate
  42. {
  43. public:
  44. LLCategoryCreate(LLUUID object_id, bool wear) : mObjectID(object_id), mWear(wear) {}
  45. public:
  46. LLUUID mObjectID;
  47. bool mWear;
  48. };
  49. struct LLCatAndWear
  50. {
  51. LLUUID mCatID;
  52. bool mWear;
  53. bool mFolderResponded;
  54. };
  55. protected:
  56. /*virtual*/ BOOL postBuild();
  57. void refresh();
  58. void draw();
  59. virtual void onOpen(const LLSD& key);
  60. void moveToInventory(bool wear);
  61. void onClickMoveToInventory();
  62. void onClickMoveAndWear();
  63. static void callbackCreateInventoryCategory(const LLSD& result, void* data);
  64. static void callbackMoveInventory(S32 result, void* data);
  65. private:
  66. LLFloaterOpenObject(const LLSD& key);
  67. ~LLFloaterOpenObject();
  68. protected:
  69. LLPanelObjectInventory* mPanelInventoryObject;
  70. LLSafeHandle<LLObjectSelection> mObjectSelection;
  71. BOOL mDirty;
  72. };
  73. #endif