diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llpanelobject.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/newview/llpanelobject.h')
-rw-r--r-- | linden/indra/newview/llpanelobject.h | 166 |
1 files changed, 166 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelobject.h b/linden/indra/newview/llpanelobject.h new file mode 100644 index 0000000..c4f10c5 --- /dev/null +++ b/linden/indra/newview/llpanelobject.h | |||
@@ -0,0 +1,166 @@ | |||
1 | /** | ||
2 | * @file llpanelobject.h | ||
3 | * @brief Object editing (position, scale, etc.) in the tools floater | ||
4 | * | ||
5 | * Copyright (c) 2004-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLPANELOBJECT_H | ||
29 | #define LL_LLPANELOBJECT_H | ||
30 | |||
31 | #include "v3math.h" | ||
32 | #include "llpanel.h" | ||
33 | #include "llmemory.h" | ||
34 | #include "llvolume.h" | ||
35 | |||
36 | class LLSpinCtrl; | ||
37 | class LLCheckBoxCtrl; | ||
38 | class LLTextBox; | ||
39 | class LLUICtrl; | ||
40 | class LLButton; | ||
41 | class LLViewerObject; | ||
42 | class LLComboBox; | ||
43 | class LLPanelInventory; | ||
44 | class LLColorSwatchCtrl; | ||
45 | |||
46 | class LLPanelObject : public LLPanel | ||
47 | { | ||
48 | public: | ||
49 | LLPanelObject(const std::string& name); | ||
50 | virtual ~LLPanelObject(); | ||
51 | |||
52 | virtual BOOL postBuild(); | ||
53 | virtual void draw(); | ||
54 | virtual void clearCtrls(); | ||
55 | |||
56 | void refresh(); | ||
57 | |||
58 | static BOOL precommitValidate(LLUICtrl* ctrl,void* userdata); | ||
59 | |||
60 | static void onCommitLock(LLUICtrl *ctrl, void *data); | ||
61 | static void onCommitPosition( LLUICtrl* ctrl, void* userdata); | ||
62 | static void onCommitScale( LLUICtrl* ctrl, void* userdata); | ||
63 | static void onCommitRotation( LLUICtrl* ctrl, void* userdata); | ||
64 | static void onCommitPhysics( LLUICtrl* ctrl, void* userdata); | ||
65 | static void onCommitTemporary( LLUICtrl* ctrl, void* userdata); | ||
66 | static void onCommitPhantom( LLUICtrl* ctrl, void* userdata); | ||
67 | static void onCommitCastShadows( LLUICtrl* ctrl, void* userdata); | ||
68 | |||
69 | static void onCommitParametric(LLUICtrl* ctrl, void* userdata); | ||
70 | |||
71 | static void onCommitMaterial( LLUICtrl* ctrl, void* userdata); | ||
72 | |||
73 | protected: | ||
74 | void getState(); | ||
75 | |||
76 | void sendRotation(); | ||
77 | void sendScale(); | ||
78 | void sendPosition(); | ||
79 | void sendIsPhysical(); | ||
80 | void sendIsTemporary(); | ||
81 | void sendIsPhantom(); | ||
82 | void sendCastShadows(); | ||
83 | |||
84 | void getVolumeParams(LLVolumeParams& volume_params); | ||
85 | |||
86 | protected: | ||
87 | S32 mComboMaterialItemCount; | ||
88 | |||
89 | LLTextBox* mLabelMaterial; | ||
90 | LLComboBox* mComboMaterial; | ||
91 | |||
92 | // Per-object options | ||
93 | LLTextBox* mLabelBaseType; | ||
94 | LLComboBox* mComboBaseType; | ||
95 | |||
96 | LLTextBox* mLabelCut; | ||
97 | LLSpinCtrl* mSpinCutBegin; | ||
98 | LLSpinCtrl* mSpinCutEnd; | ||
99 | |||
100 | LLTextBox* mLabelHollow; | ||
101 | LLSpinCtrl* mSpinHollow; | ||
102 | |||
103 | LLTextBox* mLabelHoleType; | ||
104 | LLComboBox* mComboHoleType; | ||
105 | |||
106 | LLTextBox* mLabelTwist; | ||
107 | LLSpinCtrl* mSpinTwist; | ||
108 | LLSpinCtrl* mSpinTwistBegin; | ||
109 | |||
110 | LLSpinCtrl* mSpinScaleX; | ||
111 | LLSpinCtrl* mSpinScaleY; | ||
112 | |||
113 | LLTextBox* mLabelSkew; | ||
114 | LLSpinCtrl* mSpinSkew; | ||
115 | |||
116 | LLTextBox* mLabelShear; | ||
117 | LLSpinCtrl* mSpinShearX; | ||
118 | LLSpinCtrl* mSpinShearY; | ||
119 | |||
120 | // Advanced Path | ||
121 | LLSpinCtrl* mCtrlPathBegin; | ||
122 | LLSpinCtrl* mCtrlPathEnd; | ||
123 | |||
124 | LLTextBox* mLabelTaper; | ||
125 | LLSpinCtrl* mSpinTaperX; | ||
126 | LLSpinCtrl* mSpinTaperY; | ||
127 | |||
128 | LLTextBox* mLabelRadiusOffset; | ||
129 | LLSpinCtrl* mSpinRadiusOffset; | ||
130 | |||
131 | LLTextBox* mLabelRevolutions; | ||
132 | LLSpinCtrl* mSpinRevolutions; | ||
133 | |||
134 | LLTextBox* mLabelPosition; | ||
135 | LLSpinCtrl* mCtrlPosX; | ||
136 | LLSpinCtrl* mCtrlPosY; | ||
137 | LLSpinCtrl* mCtrlPosZ; | ||
138 | |||
139 | LLTextBox* mLabelSize; | ||
140 | LLSpinCtrl* mCtrlScaleX; | ||
141 | LLSpinCtrl* mCtrlScaleY; | ||
142 | LLSpinCtrl* mCtrlScaleZ; | ||
143 | |||
144 | LLTextBox* mLabelRotation; | ||
145 | LLSpinCtrl* mCtrlRotX; | ||
146 | LLSpinCtrl* mCtrlRotY; | ||
147 | LLSpinCtrl* mCtrlRotZ; | ||
148 | |||
149 | LLCheckBoxCtrl *mCheckLock; | ||
150 | LLCheckBoxCtrl *mCheckPhysics; | ||
151 | LLCheckBoxCtrl *mCheckTemporary; | ||
152 | LLCheckBoxCtrl *mCheckPhantom; | ||
153 | LLCheckBoxCtrl *mCheckCastShadows; | ||
154 | |||
155 | LLVector3 mCurEulerDegrees; // to avoid sending rotation when not changed | ||
156 | BOOL mIsPhysical; // to avoid sending "physical" when not changed | ||
157 | BOOL mIsTemporary; // to avoid sending "temporary" when not changed | ||
158 | BOOL mIsPhantom; // to avoid sending "phantom" when not changed | ||
159 | BOOL mCastShadows; // to avoid sending "cast shadows" when not changed | ||
160 | S32 mSelectedType; // So we know what selected type we last were | ||
161 | |||
162 | LLPointer<LLViewerObject> mObject; | ||
163 | LLPointer<LLViewerObject> mRootObject; | ||
164 | }; | ||
165 | |||
166 | #endif | ||