PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 4ms RepoModel.GetById 16ms 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
 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
27#ifndef LL_LLPANELLANDMARKINFO_H
28#define LL_LLPANELLANDMARKINFO_H
29
30#include "llpanelplaceinfo.h"
31
32class LLComboBox;
33class LLLineEditor;
34class LLTextEditor;
35
36class LLPanelLandmarkInfo : public LLPanelPlaceInfo
37{
38public:
39	LLPanelLandmarkInfo();
40	/*virtual*/ ~LLPanelLandmarkInfo();
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	// Displays landmark owner, creator and creation date info.
51	void displayItemInfo(const LLInventoryItem* pItem);
52
53	void toggleLandmarkEditMode(BOOL enabled);
54
55	const std::string& getLandmarkTitle() const;
56	const std::string getLandmarkNotes() const;
57	const LLUUID getLandmarkFolder() const;
58
59	// Select current landmark folder in combobox.
60	BOOL setLandmarkFolder(const LLUUID& id);
61
62	// Create a landmark for the current location
63	// in a folder specified by folder_id.
64	void createLandmark(const LLUUID& folder_id);
65
66	static std::string getFullFolderName(const LLViewerInventoryCategory* cat);
67
68private:
69	void populateFoldersList();
70
71	LLTextBox*			mOwner;
72	LLTextBox*			mCreator;
73	LLTextBox*			mCreated;
74	LLTextBox*			mLandmarkTitle;
75	LLLineEditor*		mLandmarkTitleEditor;
76	LLTextEditor*		mNotesEditor;
77	LLComboBox*			mFolderCombo;
78};
79
80#endif // LL_LLPANELLANDMARKINFO_H