PageRenderTime 36ms CodeModel.GetById 29ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llpanelvolume.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 123 lines | 58 code | 21 blank | 44 comment | 0 complexity | 7ba7b7da8342f07424fe9c83a7922c05 MD5 | raw file
  1/** 
  2 * @file llpanelvolume.h
  3 * @brief Object editing (position, scale, etc.) in the tools floater
  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_LLPANELVOLUME_H
 28#define LL_LLPANELVOLUME_H
 29
 30#include "v3math.h"
 31#include "llpanel.h"
 32#include "llpointer.h"
 33#include "llvolume.h"
 34
 35class LLSpinCtrl;
 36class LLCheckBoxCtrl;
 37class LLTextBox;
 38class LLUICtrl;
 39class LLButton;
 40class LLViewerObject;
 41class LLComboBox;
 42class LLColorSwatchCtrl;
 43
 44class LLPanelVolume : public LLPanel
 45{
 46public:
 47	LLPanelVolume();
 48	virtual ~LLPanelVolume();
 49
 50	virtual void	draw();
 51	virtual void 	clearCtrls();
 52
 53	virtual BOOL	postBuild();
 54
 55	void			refresh();
 56
 57	void			sendIsLight();
 58	void			sendIsFlexible();
 59
 60	static bool		precommitValidate(const LLSD& data);
 61	
 62	static void 	onCommitIsLight(		LLUICtrl* ctrl, void* userdata);
 63	static void 	onCommitLight(			LLUICtrl* ctrl, void* userdata);
 64	static void 	onCommitIsFlexible(		LLUICtrl* ctrl, void* userdata);
 65	static void 	onCommitFlexible(		LLUICtrl* ctrl, void* userdata);
 66	static void     onCommitPhysicsParam(       LLUICtrl* ctrl, void* userdata);
 67	static void 	onCommitMaterial(		LLUICtrl* ctrl, void* userdata);
 68
 69	void		onLightCancelColor(const LLSD& data);
 70	void		onLightSelectColor(const LLSD& data);
 71
 72	void		onLightCancelTexture(const LLSD& data); 
 73	void		onLightSelectTexture(const LLSD& data);
 74
 75
 76protected:
 77	void			getState();
 78	void			refreshCost();
 79
 80protected:
 81	void            sendPhysicsShapeType(LLUICtrl* ctrl, void* userdata);
 82	void            sendPhysicsGravity(LLUICtrl* ctrl, void* userdata);
 83	void            sendPhysicsFriction(LLUICtrl* ctrl, void* userdata);
 84	void            sendPhysicsRestitution(LLUICtrl* ctrl, void* userdata);
 85	void            sendPhysicsDensity(LLUICtrl* ctrl, void* userdata);
 86
 87/*
 88	LLTextBox*		mLabelSelectSingleMessage;
 89	// Light
 90	LLCheckBoxCtrl*	mCheckLight;
 91	LLCheckBoxCtrl*	mCheckFlexible1D;
 92	LLTextBox*		mLabelColor;
 93	LLColorSwatchCtrl* mLightColorSwatch;
 94	LLSpinCtrl*		mLightIntensity;
 95	LLSpinCtrl*		mLightRadius;
 96	LLSpinCtrl*		mLightFalloff;
 97	LLSpinCtrl*		mLightCutoff;
 98	// Flexibile
 99	LLSpinCtrl*		mSpinSections;
100	LLSpinCtrl*		mSpinGravity;
101	LLSpinCtrl*		mSpinTension;
102	LLSpinCtrl*		mSpinFriction;
103	LLSpinCtrl*		mSpinWind;
104	LLSpinCtrl*		mSpinForce[3];
105*/
106
107	S32			mComboMaterialItemCount;
108	LLComboBox*		mComboMaterial;
109	
110
111	LLColor4		mLightSavedColor;
112	LLUUID			mLightSavedTexture;
113	LLPointer<LLViewerObject> mObject;
114	LLPointer<LLViewerObject> mRootObject;
115
116	LLComboBox*     mComboPhysicsShapeType;
117	LLSpinCtrl*     mSpinPhysicsGravity;
118	LLSpinCtrl*     mSpinPhysicsFriction;
119	LLSpinCtrl*     mSpinPhysicsDensity;
120	LLSpinCtrl*     mSpinPhysicsRestitution;
121};
122
123#endif