aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatertools.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/newview/llfloatertools.h
parentREADME.txt (diff)
downloadmeta-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 '')
-rw-r--r--linden/indra/newview/llfloatertools.h188
1 files changed, 188 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloatertools.h b/linden/indra/newview/llfloatertools.h
new file mode 100644
index 0000000..343a898
--- /dev/null
+++ b/linden/indra/newview/llfloatertools.h
@@ -0,0 +1,188 @@
1/**
2 * @file llfloatertools.h
3 * @brief The edit tools, including move, position, land, etc.
4 *
5 * Copyright (c) 2002-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_LLFLOATERTOOLS_H
29#define LL_LLFLOATERTOOLS_H
30
31#include "llfloater.h"
32#include "llcoord.h"
33
34class LLButton;
35class LLTextBox;
36class LLTool;
37class LLCheckBoxCtrl;
38class LLTabContainer;
39class LLPanelPermissions;
40class LLPanelObject;
41class LLPanelVolume;
42class LLPanelContents;
43class LLPanelFace;
44class LLPanelLandInfo;
45class LLComboBox;
46class LLVolumeSliderCtrl;
47
48class LLFloaterTools
49: public LLFloater
50{
51public:
52 virtual BOOL postBuild();
53 static void* createPanelPermissions(void* vdata);
54 static void* createPanelObject(void* vdata);
55 static void* createPanelVolume(void* vdata);
56 static void* createPanelFace(void* vdata);
57 static void* createPanelContents(void* vdata);
58 static void* createPanelContentsInventory(void* vdata);
59 static void* createPanelLandInfo(void* vdata);
60
61 LLFloaterTools();
62 virtual ~LLFloaterTools();
63
64 virtual void onClose(bool app_quitting);
65 virtual BOOL canClose();
66
67 // call this once per frame to handle visibility, rect location,
68 // button highlights, etc.
69 void updatePopup(LLCoordGL center, MASK mask);
70
71 // When the floater is going away, reset any options that need to be
72 // cleared.
73 void resetToolState();
74
75 enum EInfoPanel
76 {
77 PANEL_GENERAL=0,
78 PANEL_OBJECT,
79 PANEL_FEATURES,
80 PANEL_FACE,
81 PANEL_CONTENTS,
82 PANEL_COUNT
83 };
84
85 /*virtual*/ void draw();
86
87 void dirty();
88 void showMore(BOOL show_more);
89 void showPanel(EInfoPanel panel);
90
91 void setStatusText(const LLString& text);
92 virtual void onFocusReceived();
93 static void setEditTool(void* data);
94 void saveLastTool();
95private:
96 static void setObjectType( void* data );
97
98 void refresh();
99
100 static void onClickGridOptions(void* data);
101
102public:
103
104 LLButton *mBtnFocus;
105 LLButton *mBtnMove;
106 LLButton *mBtnEdit;
107 LLButton *mBtnCreate;
108 LLButton *mBtnLand;
109
110 LLTextBox *mTextStatus;
111
112 // Focus buttons
113 LLCheckBoxCtrl *mRadioOrbit;
114 LLCheckBoxCtrl *mRadioZoom;
115 LLCheckBoxCtrl *mRadioPan;
116 LLVolumeSliderCtrl *mSliderZoom;
117
118 // Move buttons
119 LLCheckBoxCtrl *mRadioMove;
120 LLCheckBoxCtrl *mRadioLift;
121 LLCheckBoxCtrl *mRadioSpin;
122
123 // Edit buttons
124 LLCheckBoxCtrl *mRadioPosition;
125 LLCheckBoxCtrl *mRadioRotate;
126 LLCheckBoxCtrl *mRadioStretch;
127 LLCheckBoxCtrl *mRadioSelectFace;
128
129 LLCheckBoxCtrl *mCheckSelectIndividual;
130
131 LLCheckBoxCtrl* mCheckSnapToGrid;
132 LLButton* mBtnGridOptions;
133 LLTextBox* mTextGridMode;
134 LLComboBox* mComboGridMode;
135 LLCheckBoxCtrl* mCheckStretchUniform;
136 LLCheckBoxCtrl* mCheckStretchTexture;
137
138 LLButton *mBtnRotateLeft;
139 LLButton *mBtnRotateReset;
140 LLButton *mBtnRotateRight;
141
142 LLButton *mBtnDelete;
143 LLButton *mBtnDuplicate;
144 LLButton *mBtnDuplicateInPlace;
145
146 // Create buttons
147 LLCheckBoxCtrl *mCheckSticky;
148 LLCheckBoxCtrl *mCheckCopySelection;
149 LLCheckBoxCtrl *mCheckCopyCenters;
150 LLCheckBoxCtrl *mCheckCopyRotates;
151
152 // Land buttons
153// LLCheckBoxCtrl *mRadioEditLand;
154 LLCheckBoxCtrl *mRadioSelectLand;
155
156 LLCheckBoxCtrl *mRadioDozerFlatten;
157 LLCheckBoxCtrl *mRadioDozerRaise;
158 LLCheckBoxCtrl *mRadioDozerLower;
159 LLCheckBoxCtrl *mRadioDozerSmooth;
160 LLCheckBoxCtrl *mRadioDozerNoise;
161 LLCheckBoxCtrl *mRadioDozerRevert;
162
163 LLComboBox *mComboDozerSize;
164 LLButton *mBtnApplyToSelection;
165 LLCheckBoxCtrl *mCheckShowOwners;
166
167 std::vector<LLButton*> mButtons;//[ 15 ];
168
169 LLTabContainerCommon *mTab;
170 LLPanelPermissions *mPanelPermissions;
171 LLPanelObject *mPanelObject;
172 LLPanelVolume *mPanelVolume;
173 LLPanelContents *mPanelContents;
174 LLPanelFace *mPanelFace;
175 LLPanelLandInfo *mPanelLandInfo;
176
177 LLTabContainer* mTabLand;
178 LLTool* mLastTool;
179
180private:
181 BOOL mDirty;
182 S32 mSmallHeight;
183 S32 mLargeHeight;
184};
185
186extern LLFloaterTools *gFloaterTools;
187
188#endif