PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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