PageRenderTime 17ms CodeModel.GetById 10ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelvolumepulldown.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 23 code | 9 blank | 26 comment | 0 complexity | 15caa97bb63a59c17de85e37ff6f12aa MD5 | raw file
 1/** 
 2 * @file llpanelvolumepulldown.h
 3 * @author Tofu Linden
 4 * @brief A panel showing the master volume pull-down
 5 *
 6 * $LicenseInfo:firstyear=2008&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28#ifndef LL_LLPANELVOLUMEPULLDOWN_H
29#define LL_LLPANELVOLUMEPULLDOWN_H
30
31#include "linden_common.h"
32
33#include "llpanel.h"
34
35class LLFrameTimer;
36
37class LLPanelVolumePulldown : public LLPanel
38{
39 public:
40	LLPanelVolumePulldown();
41	/*virtual*/ void draw();
42	/*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask);
43	/*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask);
44	/*virtual*/ void onTopLost();
45	/*virtual*/ void handleVisibilityChange ( BOOL new_visibility );
46	/*virtual*/ BOOL postBuild();
47	
48 private:
49	void setControlFalse(const LLSD& user_data);
50	void onAdvancedButtonClick(const LLSD& user_data);
51
52	LLFrameTimer mHoverTimer;
53	static const F32 sAutoCloseFadeStartTimeSec;
54	static const F32 sAutoCloseTotalTimeSec;
55};
56
57
58#endif // LL_LLPANELVOLUMEPULLDOWN_H