PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 4ms RepoModel.GetById 36ms app.codeStats 0ms

/indra/newview/llscrollingpanelparambase.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 62 lines | 27 code | 9 blank | 26 comment | 0 complexity | 6eaa3480c1d788c4d56ef17b0a7eeaf9 MD5 | raw file
 1/** 
 2 * @file llscrollingpanelparam.h
 3 * @brief the scrolling panel containing a list of visual param 
 4 *  	  panels
 5 *
 6 * $LicenseInfo:firstyear=2009&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_SCROLLINGPANELPARAMBASE_H
29#define LL_SCROLLINGPANELPARAMBASE_H
30
31#include "llpanel.h"
32#include "llscrollingpanellist.h"
33
34class LLViewerJointMesh;
35class LLViewerVisualParam;
36class LLWearable;
37class LLVisualParamHint;
38class LLViewerVisualParam;
39class LLJoint;
40
41class LLScrollingPanelParamBase : public LLScrollingPanel
42{
43public:
44	LLScrollingPanelParamBase( const LLPanel::Params& panel_params,
45				   LLViewerJointMesh* mesh, LLViewerVisualParam* param, BOOL allow_modify, LLWearable* wearable, LLJoint* jointp, BOOL use_hints = FALSE );
46	virtual ~LLScrollingPanelParamBase();
47
48	virtual void		updatePanel(BOOL allow_modify);
49
50	static void			onSliderMoved(LLUICtrl* ctrl, void* userdata);
51
52	F32					weightToPercent( F32 weight );
53	F32					percentToWeight( F32 percent );
54
55public:
56	LLViewerVisualParam* mParam;
57protected:
58	BOOL mAllowModify;
59	LLWearable *mWearable;
60}; 
61
62#endif