PageRenderTime 454ms CodeModel.GetById 211ms app.highlight 4ms RepoModel.GetById 238ms app.codeStats 0ms

/indra/newview/llfloatermap.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 29 code | 10 blank | 28 comment | 0 complexity | a13c3e39bdfec68f594c55accb24acfa MD5 | raw file
 1/** 
 2 * @file llfloatermap.h
 3 * @brief The "mini-map" or radar in the upper right part of the screen.
 4 *
 5 * $LicenseInfo:firstyear=2001&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_LLFLOATERMAP_H
28#define LL_LLFLOATERMAP_H
29
30#include "llfloater.h"
31
32class LLNetMap;
33class LLTextBox;
34
35//
36// Classes
37//
38class LLFloaterMap : public LLFloater
39{
40public:
41	LLFloaterMap(const LLSD& key);
42	virtual ~LLFloaterMap();
43	
44	/*virtual*/ BOOL 	postBuild();
45	/*virtual*/ BOOL	handleDoubleClick( S32 x, S32 y, MASK mask );
46	/*virtual*/ void	reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
47	/*virtual*/ void	draw();
48
49private:
50	void handleZoom(const LLSD& userdata);
51	void setDirectionPos( LLTextBox* text_box, F32 rotation );
52	void updateMinorDirections();
53
54	LLTextBox*		mTextBoxEast;
55	LLTextBox*		mTextBoxNorth;
56	LLTextBox*		mTextBoxWest;
57	LLTextBox*		mTextBoxSouth;
58
59	LLTextBox*		mTextBoxSouthEast;
60	LLTextBox*		mTextBoxNorthEast;
61	LLTextBox*		mTextBoxNorthWest;
62	LLTextBox*		mTextBoxSouthWest;
63	
64	LLNetMap*		mMap;
65};
66
67#endif  // LL_LLFLOATERMAP_H