//workaround for lineeditor dumbness in regards to control_name void LLPanelEmerald::onCommitApplyControl(LLUICtrl* caller, void* user_data) { LLLineEditor* line = (LLLineEditor*)caller; if(line) { LLControlVariable *var = line->findControl(line->getControlName()); if(var)var->setValue(line->getValue()); } }
void LLFloaterPostProcess::onSaveEffect(void* userData) { LLLineEditor* editBox = static_cast<LLLineEditor*>(userData); std::string effectName(editBox->getValue().asString()); if (gPostProcess->mAllEffects.has(effectName)) { LLSD payload; payload["effect_name"] = effectName; LLNotificationsUtil::add("PPSaveEffectAlert", LLSD(), payload, &LLFloaterPostProcess::saveAlertCallback); } else { gPostProcess->saveEffect(effectName); sPostProcess->syncMenu(); } }