PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/indra/newview/llpanelplacestab.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 68 lines | 31 code | 11 blank | 26 comment | 0 complexity | 4c4c850de722aa9d7643b4ed9178e3be MD5 | raw file
 1/** 
 2 * @file llpanelplacestab.h
 3 * @brief Tabs interface for Side Bar "Places" panel
 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_LLPANELPLACESTAB_H
28#define LL_LLPANELPLACESTAB_H
29
30#include "llpanel.h"
31
32class LLPanelPlaces;
33
34class LLPanelPlacesTab : public LLPanel
35{
36public:
37	LLPanelPlacesTab() : LLPanel() {}
38	virtual ~LLPanelPlacesTab() {}
39
40	virtual void onSearchEdit(const std::string& string) = 0;
41	virtual void updateVerbs() = 0;		// Updates buttons at the bottom of Places panel
42	virtual void onShowOnMap() = 0;
43	virtual void onShowProfile() = 0;
44	virtual void onTeleport() = 0;
45	virtual bool isSingleItemSelected() = 0;
46
47	bool isTabVisible(); // Check if parent TabContainer is visible.
48
49	void setPanelPlacesButtons(LLPanelPlaces* panel);
50	void onRegionResponse(const LLVector3d& landmark_global_pos,
51										U64 region_handle,
52										const std::string& url,
53										const LLUUID& snapshot_id,
54										bool teleport);
55
56	const std::string& getFilterSubString() { return sFilterSubString; }
57	void setFilterSubString(const std::string& string) { sFilterSubString = string; }
58
59protected:
60	LLButton*				mTeleportBtn;
61	LLButton*				mShowOnMapBtn;
62	LLButton*				mShowProfile;
63
64	// Search string for filtering landmarks and teleport history locations
65	static std::string		sFilterSubString;
66};
67
68#endif //LL_LLPANELPLACESTAB_H