PageRenderTime 131ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llpanellandmarkinfo.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 80 lines | 34 code | 17 blank | 29 comment | 0 complexity | 44993c5cacdfac600c2d1c4aacfa30a3 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llpanellandmarkinfo.h
  3. * @brief Displays landmark info in Side Tray.
  4. *
  5. * $LicenseInfo:firstyear=2009&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_LLPANELLANDMARKINFO_H
  27. #define LL_LLPANELLANDMARKINFO_H
  28. #include "llpanelplaceinfo.h"
  29. class LLComboBox;
  30. class LLLineEditor;
  31. class LLTextEditor;
  32. class LLPanelLandmarkInfo : public LLPanelPlaceInfo
  33. {
  34. public:
  35. LLPanelLandmarkInfo();
  36. /*virtual*/ ~LLPanelLandmarkInfo();
  37. /*virtual*/ BOOL postBuild();
  38. /*virtual*/ void resetLocation();
  39. /*virtual*/ void setInfoType(EInfoType type);
  40. /*virtual*/ void processParcelInfo(const LLParcelData& parcel_data);
  41. // Displays landmark owner, creator and creation date info.
  42. void displayItemInfo(const LLInventoryItem* pItem);
  43. void toggleLandmarkEditMode(BOOL enabled);
  44. const std::string& getLandmarkTitle() const;
  45. const std::string getLandmarkNotes() const;
  46. const LLUUID getLandmarkFolder() const;
  47. // Select current landmark folder in combobox.
  48. BOOL setLandmarkFolder(const LLUUID& id);
  49. // Create a landmark for the current location
  50. // in a folder specified by folder_id.
  51. void createLandmark(const LLUUID& folder_id);
  52. static std::string getFullFolderName(const LLViewerInventoryCategory* cat);
  53. private:
  54. void populateFoldersList();
  55. LLTextBox* mOwner;
  56. LLTextBox* mCreator;
  57. LLTextBox* mCreated;
  58. LLTextBox* mLandmarkTitle;
  59. LLLineEditor* mLandmarkTitleEditor;
  60. LLTextEditor* mNotesEditor;
  61. LLComboBox* mFolderCombo;
  62. };
  63. #endif // LL_LLPANELLANDMARKINFO_H