PageRenderTime 32ms CodeModel.GetById 24ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 1ms

/indra/newview/lloverlaybar.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 95 lines | 51 code | 16 blank | 28 comment | 1 complexity | 63efe3ec2e84b8780bc11c415df8c05e MD5 | raw file
 1/** 
 2 * @file lloverlaybar.h
 3 * @brief LLOverlayBar class definition
 4 *
 5 * $LicenseInfo:firstyear=2002&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_LLOVERLAYBAR_H
28#define LL_LLOVERLAYBAR_H
29
30#include "llpanel.h"
31
32// "Constants" loaded from settings.xml at start time
33extern S32 STATUS_BAR_HEIGHT;
34
35class LLButton;
36class LLLineEditor;
37class LLMediaRemoteCtrl;
38class LLMessageSystem;
39class LLTextBox;
40class LLTextEditor;
41class LLUICtrl;
42class LLUUID;
43class LLFrameTimer;
44class LLStatGraph;
45class LLSlider;
46class LLVoiceRemoteCtrl;
47
48class LLOverlayBar
49:	public LLPanel
50{
51public:
52	LLOverlayBar();
53	~LLOverlayBar();
54
55	/*virtual*/ void refresh();
56	/*virtual*/ void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
57	/*virtual*/ BOOL postBuild();
58
59	void layoutButtons();
60
61	// helpers for returning desired state
62	BOOL musicPlaying() { return mMusicState == PLAYING; }
63	
64	static void onClickSetNotBusy(void* data);
65	static void onClickMouselook(void* data);
66	static void onClickStandUp(void* data);
67	static void onClickResetView(void* data);
68 	static void onClickFlycam(void* data);
69
70	//static media helper functions
71	static void toggleMediaPlay(void*);
72	static void toggleMusicPlay(void*);
73	static void musicPause(void*);
74	static void musicStop(void*);
75	static void mediaStop(void*);
76
77	static void toggleAudioVolumeFloater(void*);
78
79protected:	
80	static void* createMediaRemote(void* userdata);
81	static void* createVoiceRemote(void* userdata);
82
83	void enableMediaButtons();
84
85protected:
86	LLMediaRemoteCtrl*	mMediaRemote;
87	LLVoiceRemoteCtrl*	mVoiceRemote;
88	bool mBuilt;	// dialog constructed yet?
89	enum { STOPPED=0, PLAYING=1, PAUSED=2 };
90	S32 mMusicState;
91};
92
93extern LLOverlayBar* gOverlayBar;
94
95#endif