/indra/newview/llpanelplaceprofile.h

https://bitbucket.org/lindenlab/viewer-beta/ · C++ Header · 121 lines · 69 code · 21 blank · 31 comment · 0 complexity · 4bcf187311037259f48f6456b8562198 MD5 · raw file

  1. /**
  2. * @file llpanelplaceprofile.h
  3. * @brief Displays place profile 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_LLPANELPLACEPROFILE_H
  27. #define LL_LLPANELPLACEPROFILE_H
  28. #include "llpanelplaceinfo.h"
  29. class LLAccordionCtrl;
  30. class LLIconCtrl;
  31. class LLTextEditor;
  32. class LLPanelPlaceProfile : public LLPanelPlaceInfo
  33. {
  34. public:
  35. LLPanelPlaceProfile();
  36. /*virtual*/ ~LLPanelPlaceProfile();
  37. /*virtual*/ BOOL postBuild();
  38. /*virtual*/ void resetLocation();
  39. /*virtual*/ void setInfoType(EInfoType type);
  40. /*virtual*/ void processParcelInfo(const LLParcelData& parcel_data);
  41. /*virtual*/ void handleVisibilityChange(BOOL new_visibility);
  42. // Displays information about the currently selected parcel
  43. // without sending a request to the server.
  44. // If is_current_parcel true shows "You Are Here" banner.
  45. void displaySelectedParcelInfo(LLParcel* parcel,
  46. LLViewerRegion* region,
  47. const LLVector3d& pos_global,
  48. bool is_current_parcel);
  49. void updateEstateName(const std::string& name);
  50. void updateEstateOwnerName(const std::string& name);
  51. void updateCovenantText(const std::string &text);
  52. private:
  53. void onForSaleBannerClick();
  54. static void updateYouAreHereBanner(void*);// added to gIdleCallbacks
  55. /**
  56. * Holds last displayed parcel. Needed for YouAreHere banner.
  57. */
  58. S32 mSelectedParcelID;
  59. LLUUID mLastSelectedRegionID;
  60. LLPanel* mForSalePanel;
  61. LLPanel* mYouAreHerePanel;
  62. LLTextBox* mParcelOwner;
  63. LLIconCtrl* mParcelRatingIcon;
  64. LLTextBox* mParcelRatingText;
  65. LLIconCtrl* mVoiceIcon;
  66. LLTextBox* mVoiceText;
  67. LLIconCtrl* mFlyIcon;
  68. LLTextBox* mFlyText;
  69. LLIconCtrl* mPushIcon;
  70. LLTextBox* mPushText;
  71. LLIconCtrl* mBuildIcon;
  72. LLTextBox* mBuildText;
  73. LLIconCtrl* mScriptsIcon;
  74. LLTextBox* mScriptsText;
  75. LLIconCtrl* mDamageIcon;
  76. LLTextBox* mDamageText;
  77. LLIconCtrl* mSeeAVsIcon;
  78. LLTextBox* mSeeAVsText;
  79. LLTextBox* mRegionNameText;
  80. LLTextBox* mRegionTypeText;
  81. LLIconCtrl* mRegionRatingIcon;
  82. LLTextBox* mRegionRatingText;
  83. LLTextBox* mRegionOwnerText;
  84. LLTextBox* mRegionGroupText;
  85. LLTextBox* mEstateNameText;
  86. LLTextBox* mEstateRatingText;
  87. LLTextBox* mEstateOwnerText;
  88. LLTextEditor* mCovenantText;
  89. LLTextBox* mSalesPriceText;
  90. LLTextBox* mAreaText;
  91. LLTextBox* mTrafficText;
  92. LLTextBox* mPrimitivesText;
  93. LLTextBox* mParcelScriptsText;
  94. LLTextBox* mTerraformLimitsText;
  95. LLTextEditor* mSubdivideText;
  96. LLTextEditor* mResaleText;
  97. LLTextBox* mSaleToText;
  98. LLAccordionCtrl* mAccordionCtrl;
  99. };
  100. #endif // LL_LLPANELPLACEPROFILE_H