aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloatereditui.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llfloatereditui.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloatereditui.cpp34
1 files changed, 8 insertions, 26 deletions
diff --git a/linden/indra/newview/llfloatereditui.cpp b/linden/indra/newview/llfloatereditui.cpp
index b68f696..83c69b5 100644
--- a/linden/indra/newview/llfloatereditui.cpp
+++ b/linden/indra/newview/llfloatereditui.cpp
@@ -273,32 +273,14 @@ void LLFloaterEditUI::refreshCore()
273 mWidthSpin->set(width); 273 mWidthSpin->set(width);
274 mHeightSpin->set(height); 274 mHeightSpin->set(height);
275 275
276 EWidgetType widget_type = view->getWidgetType(); 276 LLButton* buttonp = dynamic_cast<LLButton*>(view);
277 switch (widget_type) 277 if (buttonp)
278 { 278 {
279 default:
280 case WIDGET_TYPE_VIEW:
281 refreshView(view);
282 break;
283 case WIDGET_TYPE_BUTTON:
284 refreshButton(view); 279 refreshButton(view);
285 break; 280 }
286 case WIDGET_TYPE_CHECKBOX: 281 else
287 case WIDGET_TYPE_COLOR_SWATCH: 282 {
288 case WIDGET_TYPE_COMBO_BOX:
289 case WIDGET_TYPE_LINE_EDITOR:
290 case WIDGET_TYPE_SCROLL_LIST:
291 case WIDGET_TYPE_NAME_LIST:
292 case WIDGET_TYPE_SLIDER:
293 case WIDGET_TYPE_VOLUME_SLIDER:
294 case WIDGET_TYPE_SPINNER:
295 case WIDGET_TYPE_TEXT_EDITOR:
296 case WIDGET_TYPE_TEXTURE_PICKER:
297 case WIDGET_TYPE_TEXT_BOX:
298 case WIDGET_TYPE_RADIO_GROUP:
299 case WIDGET_TYPE_ICON:
300 refreshView(view); 283 refreshView(view);
301 break;
302 } 284 }
303} 285}
304 286
@@ -327,7 +309,7 @@ void LLFloaterEditUI::show(void*)
327} 309}
328 310
329// static 311// static
330BOOL LLFloaterEditUI::handleKeyEditUI(KEY key, MASK mask) 312BOOL LLFloaterEditUI::processKeystroke(KEY key, MASK mask)
331{ 313{
332 if (!LLView::sEditingUIView) return FALSE; 314 if (!LLView::sEditingUIView) return FALSE;
333 315
@@ -400,9 +382,9 @@ void LLFloaterEditUI::onCommitLabel(LLUICtrl* ctrl, void* data)
400 382
401 LLLineEditor* line = (LLLineEditor*)ctrl; 383 LLLineEditor* line = (LLLineEditor*)ctrl;
402 const LLString& text = line->getText(); 384 const LLString& text = line->getText();
403 if (view->getWidgetType() == WIDGET_TYPE_BUTTON) 385 LLButton* btn = dynamic_cast<LLButton*>(view);
386 if (btn)
404 { 387 {
405 LLButton* btn = (LLButton*)view;
406 btn->setLabelUnselected(text); 388 btn->setLabelUnselected(text);
407 btn->setLabelSelected(text); 389 btn->setLabelSelected(text);
408 } 390 }