diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llfloatereditui.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloatereditui.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/linden/indra/newview/llfloatereditui.cpp b/linden/indra/newview/llfloatereditui.cpp index dfb0571..a95126c 100644 --- a/linden/indra/newview/llfloatereditui.cpp +++ b/linden/indra/newview/llfloatereditui.cpp | |||
@@ -110,7 +110,7 @@ void LLFloaterEditUI::navigateHierarchyButtonPressed(void* data) | |||
110 | } | 110 | } |
111 | 111 | ||
112 | LLFloaterEditUI::LLFloaterEditUI() | 112 | LLFloaterEditUI::LLFloaterEditUI() |
113 | : LLFloater("floater_ui_editor", LLRect(0, 200, 200, 0), "Edit User Interface"), | 113 | : LLFloater(std::string("floater_ui_editor"), LLRect(0, 200, 200, 0), std::string("Edit User Interface")), |
114 | mLastView(NULL), | 114 | mLastView(NULL), |
115 | mLabelLine(NULL), | 115 | mLabelLine(NULL), |
116 | mWidthSpin(NULL), | 116 | mWidthSpin(NULL), |
@@ -129,16 +129,16 @@ LLFloaterEditUI::LLFloaterEditUI() | |||
129 | LLButton* button = NULL; | 129 | LLButton* button = NULL; |
130 | 130 | ||
131 | 131 | ||
132 | text = new LLTextBox("Selected UI Widget:", LLRect(x, y+16, x+100, y)); | 132 | text = new LLTextBox(std::string("Selected UI Widget:"), LLRect(x, y+16, x+100, y)); |
133 | addChild(text); | 133 | addChild(text); |
134 | y -= VPAD + 16; | 134 | y -= VPAD + 16; |
135 | 135 | ||
136 | text = new LLTextBox("Label:", LLRect(x, y+16, x+40, y)); | 136 | text = new LLTextBox(std::string("Label:"), LLRect(x, y+16, x+40, y)); |
137 | addChild(text); | 137 | addChild(text); |
138 | x = R1; | 138 | x = R1; |
139 | 139 | ||
140 | line = new LLLineEditor("label_line", LLRect(x, y+20, x+100, y), | 140 | line = new LLLineEditor(std::string("label_line"), LLRect(x, y+20, x+100, y), |
141 | "", | 141 | LLStringUtil::null, |
142 | NULL, | 142 | NULL, |
143 | 254, | 143 | 254, |
144 | onCommitLabel, | 144 | onCommitLabel, |
@@ -151,8 +151,8 @@ LLFloaterEditUI::LLFloaterEditUI() | |||
151 | x = HPAD; | 151 | x = HPAD; |
152 | y -= VPAD + 20; | 152 | y -= VPAD + 20; |
153 | 153 | ||
154 | spin = new LLSpinCtrl("height_spin", LLRect(x, y+20, x+100, y), | 154 | spin = new LLSpinCtrl(std::string("height_spin"), LLRect(x, y+20, x+100, y), |
155 | "Height:", LLFontGL::sSansSerifSmall, | 155 | std::string("Height:"), LLFontGL::sSansSerifSmall, |
156 | onCommitHeight, | 156 | onCommitHeight, |
157 | this, | 157 | this, |
158 | 0.f, | 158 | 0.f, |
@@ -165,8 +165,8 @@ LLFloaterEditUI::LLFloaterEditUI() | |||
165 | 165 | ||
166 | y -= VPAD + 20; | 166 | y -= VPAD + 20; |
167 | 167 | ||
168 | spin = new LLSpinCtrl("width_spin", LLRect(x, y+20, x+100, y), | 168 | spin = new LLSpinCtrl(std::string("width_spin"), LLRect(x, y+20, x+100, y), |
169 | "Width:", LLFontGL::sSansSerifSmall, | 169 | std::string("Width:"), LLFontGL::sSansSerifSmall, |
170 | onCommitWidth, | 170 | onCommitWidth, |
171 | this, | 171 | this, |
172 | 0.f, | 172 | 0.f, |
@@ -179,31 +179,31 @@ LLFloaterEditUI::LLFloaterEditUI() | |||
179 | 179 | ||
180 | y -= VPAD + 20; | 180 | y -= VPAD + 20; |
181 | 181 | ||
182 | text = new LLTextBox("XML Name:", LLRect(x, y+16, x+60, y)); | 182 | text = new LLTextBox(std::string("XML Name:"), LLRect(x, y+16, x+60, y)); |
183 | addChild(text); | 183 | addChild(text); |
184 | x+=60; | 184 | x+=60; |
185 | text = new LLTextBox("xml_name", LLRect(x, y+16, x+100, y)); | 185 | text = new LLTextBox(std::string("xml_name"), LLRect(x, y+16, x+100, y)); |
186 | addChild(text); | 186 | addChild(text); |
187 | x-=50; | 187 | x-=50; |
188 | 188 | ||
189 | y -= VPAD + 20; | 189 | y -= VPAD + 20; |
190 | 190 | ||
191 | x += 40; | 191 | x += 40; |
192 | button = new LLButton("up",LLRect(x, y+16, x+32, y)); | 192 | button = new LLButton(std::string("up"),LLRect(x, y+16, x+32, y)); |
193 | addChild(button); | 193 | addChild(button); |
194 | x -= 40; | 194 | x -= 40; |
195 | y -= VPAD + 20; | 195 | y -= VPAD + 20; |
196 | button = new LLButton("<<",LLRect(x, y+16, x+32, y)); | 196 | button = new LLButton(std::string("<<"),LLRect(x, y+16, x+32, y)); |
197 | addChild(button); | 197 | addChild(button); |
198 | x += 40; | 198 | x += 40; |
199 | button = new LLButton("rfrsh",LLRect(x, y+16, x+32, y)); | 199 | button = new LLButton(std::string("rfrsh"),LLRect(x, y+16, x+32, y)); |
200 | addChild(button); | 200 | addChild(button); |
201 | x += 40; | 201 | x += 40; |
202 | button = new LLButton(">>",LLRect(x, y+16, x+32, y)); | 202 | button = new LLButton(std::string(">>"),LLRect(x, y+16, x+32, y)); |
203 | addChild(button); | 203 | addChild(button); |
204 | x -= 40; | 204 | x -= 40; |
205 | y -= VPAD + 20; | 205 | y -= VPAD + 20; |
206 | button = new LLButton("dn",LLRect(x, y+16, x+32, y)); | 206 | button = new LLButton(std::string("dn"),LLRect(x, y+16, x+32, y)); |
207 | addChild(button); | 207 | addChild(button); |
208 | 208 | ||
209 | childSetAction("up",navigateHierarchyButtonPressed,(void*)0); | 209 | childSetAction("up",navigateHierarchyButtonPressed,(void*)0); |
@@ -240,7 +240,7 @@ void LLFloaterEditUI::refresh() | |||
240 | if (!view) | 240 | if (!view) |
241 | { | 241 | { |
242 | mLastView = NULL; | 242 | mLastView = NULL; |
243 | mLabelLine->setText(LLString::null); | 243 | mLabelLine->setText(LLStringUtil::null); |
244 | mLabelLine->setEnabled(FALSE); | 244 | mLabelLine->setEnabled(FALSE); |
245 | mWidthSpin->set(0.f); | 245 | mWidthSpin->set(0.f); |
246 | mWidthSpin->setEnabled(FALSE); | 246 | mWidthSpin->setEnabled(FALSE); |
@@ -291,14 +291,14 @@ void LLFloaterEditUI::refreshCore() | |||
291 | void LLFloaterEditUI::refreshView(LLView* view) | 291 | void LLFloaterEditUI::refreshView(LLView* view) |
292 | { | 292 | { |
293 | mLabelLine->setEnabled(FALSE); | 293 | mLabelLine->setEnabled(FALSE); |
294 | mLabelLine->setText(LLString::null); | 294 | mLabelLine->setText(LLStringUtil::null); |
295 | childSetText("xml_name",view->getName()); | 295 | childSetText("xml_name",view->getName()); |
296 | } | 296 | } |
297 | 297 | ||
298 | void LLFloaterEditUI::refreshButton(LLView* view) | 298 | void LLFloaterEditUI::refreshButton(LLView* view) |
299 | { | 299 | { |
300 | LLButton* btn = (LLButton*)view; | 300 | LLButton* btn = (LLButton*)view; |
301 | LLString label = btn->getLabelUnselected(); | 301 | std::string label = btn->getLabelUnselected(); |
302 | mLabelLine->setEnabled(TRUE); | 302 | mLabelLine->setEnabled(TRUE); |
303 | mLabelLine->setText(label); | 303 | mLabelLine->setText(label); |
304 | childSetText("xml_name",view->getName()); | 304 | childSetText("xml_name",view->getName()); |
@@ -385,7 +385,7 @@ void LLFloaterEditUI::onCommitLabel(LLUICtrl* ctrl, void* data) | |||
385 | if (!view) return; | 385 | if (!view) return; |
386 | 386 | ||
387 | LLLineEditor* line = (LLLineEditor*)ctrl; | 387 | LLLineEditor* line = (LLLineEditor*)ctrl; |
388 | const LLString& text = line->getText(); | 388 | const std::string& text = line->getText(); |
389 | LLButton* btn = dynamic_cast<LLButton*>(view); | 389 | LLButton* btn = dynamic_cast<LLButton*>(view); |
390 | if (btn) | 390 | if (btn) |
391 | { | 391 | { |