//static bool LLAlertDialog::onNewNotification(const LLSD& notify, bool is_modal) { LLNotificationPtr notification = LLNotifications::instance().find(notify["id"].asUUID()); if(notification) { if (notify["sigtype"].asString() == "add" || notify["sigtype"].asString() == "load") { LLAlertDialog* dialog = new LLAlertDialog(notification, is_modal); dialog->show(); } else if (notify["sigtype"].asString() == "change") { LLAlertDialog* dialog = getInstance(notification->getID()); if (dialog) { dialog->show(); } else { LLAlertDialog* dialog = new LLAlertDialog(notification, is_modal); dialog->show(); } } } return false; }
//static LLAlertDialog* LLAlertDialog::showCritical( const LLString& desc, alert_callback_t callback, void *user_data) { LLAlertDialogTemplate xml_template; LLString::format_map_t args; xml_template.mTitle = "Critical Error"; xml_template.mMessage = desc; xml_template.mModal = TRUE; xml_template.mOptions.push_back("Quit"); LLAlertDialog* dialog = new LLAlertDialog( &xml_template, args, callback, user_data); return dialog && dialog->show() ? dialog : NULL; }
//static LLAlertDialog* LLAlertDialog::showXml( const LLString& xml_desc, const LLString::format_map_t& args, alert_callback_t callback, void *user_data) { LLAlertDialog* dialog = createXml(xml_desc, args, callback, user_data); return dialog && dialog->show() ? dialog : NULL; }