LLPanel::Params::Params() : has_border("border", false), border(""), background_visible("background_visible", false), background_opaque("background_opaque", false), bg_opaque_color("bg_opaque_color"), bg_alpha_color("bg_alpha_color"), bg_opaque_image_overlay("bg_opaque_image_overlay"), bg_alpha_image_overlay("bg_alpha_image_overlay"), bg_opaque_image("bg_opaque_image"), bg_alpha_image("bg_alpha_image"), min_width("min_width", 100), min_height("min_height", 100), strings("string"), filename("filename"), class_name("class"), help_topic("help_topic"), visible_callback("visible_callback"), accepts_badge("accepts_badge") { name = "panel"; addSynonym(background_visible, "bg_visible"); addSynonym(has_border, "border_visible"); addSynonym(label, "title"); }
LLUICtrl::ControlVisibility::ControlVisibility() : visible("visibility_control"), invisible("invisibility_control") { addSynonym(visible, "visiblity_control"); addSynonym(invisible, "invisiblity_control"); }
// // LLLayoutPanel // LLLayoutPanel::Params::Params() : expanded_min_dim("expanded_min_dim", 0), min_dim("min_dim", -1), user_resize("user_resize", false), auto_resize("auto_resize", true) { addSynonym(min_dim, "min_width"); addSynonym(min_dim, "min_height"); }
LLViewBorder::Params::Params() : bevel_style("bevel_style", BEVEL_OUT), render_style("border_style", STYLE_LINE), border_thickness("border_thickness"), highlight_light_color("highlight_light_color"), highlight_dark_color("highlight_dark_color"), shadow_light_color("shadow_light_color"), shadow_dark_color("shadow_dark_color") { addSynonym(border_thickness, "thickness"); addSynonym(render_style, "style"); name = "view_border"; mouse_opaque = false; follows.flags = FOLLOWS_ALL; }
LLUICtrl::CallbackParam::CallbackParam() : name("name"), function_name("function"), parameter("parameter"), control_name("control") // Shortcut to control -> "control_name" for backwards compatability { addSynonym(parameter, "userdata"); }
void TaxonomyVertex :: LoadLabel ( SaveLoadManager& m ) { // note that sample is already loaded unsigned int size = m.loadUInt(); for ( unsigned int j = 0; j < size; ++j ) addSynonym(static_cast<ClassifiableEntry*>(m.loadEntry())); }
LLButton::Params::Params() : label_selected("label_selected"), // requires is_toggle true label_shadow("label_shadow", true), auto_resize("auto_resize", false), use_ellipses("use_ellipses", false), image_unselected("image_unselected"), image_selected("image_selected"), image_hover_selected("image_hover_selected"), image_hover_unselected("image_hover_unselected"), image_disabled_selected("image_disabled_selected"), image_disabled("image_disabled"), image_pressed("image_pressed"), image_pressed_selected("image_pressed_selected"), image_overlay("image_overlay"), image_overlay_alignment("image_overlay_alignment", std::string("center")), image_top_pad("image_top_pad"), image_bottom_pad("image_bottom_pad"), imgoverlay_label_space("imgoverlay_label_space", 1), label_color("label_color"), label_color_selected("label_color_selected"), // requires is_toggle true label_color_disabled("label_color_disabled"), label_color_disabled_selected("label_color_disabled_selected"), image_color("image_color"), image_color_disabled("image_color_disabled"), image_overlay_color("image_overlay_color", LLColor4::white % 0.75f), image_overlay_disabled_color("image_overlay_disabled_color", LLColor4::white % 0.3f), image_overlay_selected_color("image_overlay_selected_color", LLColor4::white), flash_color("flash_color"), pad_right("pad_right", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")), pad_left("pad_left", LLUI::sSettingGroups["config"]->getS32("ButtonHPad")), pad_bottom("pad_bottom"), click_callback("click_callback"), mouse_down_callback("mouse_down_callback"), mouse_up_callback("mouse_up_callback"), mouse_held_callback("mouse_held_callback"), is_toggle("is_toggle", false), scale_image("scale_image", true), hover_glow_amount("hover_glow_amount"), commit_on_return("commit_on_return", true), display_pressed_state("display_pressed_state", true), use_draw_context_alpha("use_draw_context_alpha", true), badge("badge"), handle_right_mouse("handle_right_mouse"), held_down_delay("held_down_delay"), button_flash_enable("button_flash_enable", false), button_flash_count("button_flash_count"), // <FS:Zi> Add checkbox control toggle //button_flash_rate("button_flash_rate") button_flash_rate("button_flash_rate"), checkbox_control("checkbox_control") // </FS:Zi> { addSynonym(is_toggle, "toggle"); changeDefault(initial_value, LLSD(false)); }
LLRadioGroup::Params::Params() : allow_deselect("allow_deselect"), items("item") { addSynonym(items, "radio_item"); name = "radio_group"; mouse_opaque = true; follows.flags = FOLLOWS_LEFT | FOLLOWS_TOP; // radio items are not tabbable until they are selected tab_stop = false; }
ParamValue<const LLFontGL*>::ParamValue(const LLFontGL* fontp) : super_t(fontp), name("name"), size("size"), style("style") { if (!fontp) { updateValue(LLFontGL::getFontDefault()); } addSynonym(name, ""); updateBlockFromValue(false); }
LLComboBox::Params::Params() : allow_text_entry("allow_text_entry", false), allow_new_values("allow_new_values", false), show_text_as_tentative("show_text_as_tentative", true), max_chars("max_chars", 20), list_position("list_position", BELOW), items("item"), combo_button("combo_button"), combo_list("combo_list"), combo_editor("combo_editor"), drop_down_button("drop_down_button") { addSynonym(items, "combo_item"); }
LLLayoutStack::Params::Params() : orientation("orientation"), animate("animate", true), save_sizes("save_sizes", false), // <FS:Zi> Save sizes to settings clip("clip", true), open_time_constant("open_time_constant", 0.02f), close_time_constant("close_time_constant", 0.03f), resize_bar_overlap("resize_bar_overlap", 1), border_size("border_size", LLCachedControl<S32>(*LLUI::sSettingGroups["config"], "UIResizeBarHeight", 0)), show_drag_handle("show_drag_handle", false), drag_handle_first_indent("drag_handle_first_indent", 0), drag_handle_second_indent("drag_handle_second_indent", 0), drag_handle_thickness("drag_handle_thickness", 5), drag_handle_shift("drag_handle_shift", 2) { addSynonym(border_size, "drag_handle_gap"); }
LLButton::Params::Params() : label_selected("label_selected"), // requires is_toggle true label_shadow("label_shadow", true), auto_resize("auto_resize", false), use_ellipses("use_ellipses", false), image_unselected("image_unselected"), image_selected("image_selected"), image_hover_selected("image_hover_selected"), image_hover_unselected("image_hover_unselected"), image_disabled_selected("image_disabled_selected"), image_disabled("image_disabled"), image_pressed("image_pressed"), image_pressed_selected("image_pressed_selected"), image_overlay("image_overlay"), image_overlay_alignment("image_overlay_alignment", std::string("center")), image_top_pad("image_top_pad"), image_bottom_pad("image_bottom_pad"), imgoverlay_label_space("imgoverlay_label_space", 1), label_color("label_color"), label_color_selected("label_color_selected"), // requires is_toggle true label_color_disabled("label_color_disabled"), label_color_disabled_selected("label_color_disabled_selected"), highlight_color("highlight_color"), image_color("image_color"), image_color_disabled("image_color_disabled"), image_overlay_color("image_overlay_color", LLColor4::white), flash_color("flash_color"), pad_bottom("pad_bottom"), click_callback("click_callback"), mouse_down_callback("mouse_down_callback"), mouse_up_callback("mouse_up_callback"), mouse_held_callback("mouse_held_callback"), is_toggle("is_toggle", false), scale_image("scale_image", true), hover_glow_amount("hover_glow_amount"), commit_on_return("commit_on_return", true) { static LLUICachedControl<S32> ButtonHPad ("ButtonHPad", 0); pad_right = ButtonHPad; pad_left = ButtonHPad; addSynonym(is_toggle, "toggle"); held_down_delay.seconds = 0.5f; initial_value.set(LLSD(false), false); }
LLUICtrl::Params::Params() : tab_stop("tab_stop", true), chrome("chrome", false), label("label"), initial_value("value"), init_callback("init_callback"), commit_callback("commit_callback"), validate_callback("validate_callback"), mouseenter_callback("mouseenter_callback"), mouseleave_callback("mouseleave_callback"), control_name("control_name"), font("font", LLFontGL::getFontSansSerif()), font_halign("halign"), font_valign("valign"), length("length"), // ignore LLXMLNode cruft type("type") // ignore LLXMLNode cruft { addSynonym(initial_value, "initial_value"); }
bool DigestionEnzyme::setValueFromFile(const String& key, const String& value) { if (key.hasSuffix(":Name")) { setName(value); return true; } if (key.hasSuffix(":RegEx")) { setRegEx(value); return true; } if (key.hasSuffix(":RegExDescription")) { setRegExDescription(value); return true; } if (key.hasSubstring(":Synonyms:")) { addSynonym(value); return true; } return false; }
LLRadioGroup::ItemParams::ItemParams() : value("value") { addSynonym(value, "initial_value"); }