diff --git a/src/main.cpp b/src/main.cpp index b1236f5..5f1cdb1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2156,9 +2156,15 @@ static void refresh_xframe_props() { gtk_widget_set_halign(hdr, GTK_ALIGN_START); gtk_grid_attach(GTK_GRID(g_props_grid), hdr, 0, row++, 2, 1); + // Phase 4: xframe_type_key() only maps classes with a palette key + // (StockCandlestickChart -> StockChart); every other Stock*/Inst* + // class maps to "", so fall back to the exact class name -- props_for() + // has a per-class Phase 4 table for each of them (same pattern as + // events_for() in events.h). std::string key = xframe_type_key(m.type); + const std::string& t = key.empty() ? m.type : key; std::vector defs; - for (const PropDef& d : props_for(key)) defs.push_back(&d); + for (const PropDef& d : props_for(t)) defs.push_back(&d); for (const PropDef& d : common_props()) defs.push_back(&d); for (const PropDef* d : defs) add_row(row++, d->name, diff --git a/src/props.h b/src/props.h index c9ba460..cb3457c 100644 --- a/src/props.h +++ b/src/props.h @@ -489,16 +489,1352 @@ inline const std::vector& props_for(const std::string& type) { }; if (type == "Toplevel") return toplevel; if (type == "Spreadsheet") return spreadsheet; +// ---- Phase 4 (proposal 2.22 / 4.12): Stock + Instrumentation ---- +// Generated by tools/gen_phase4_props.py from widgets/components/*/*.h. +// Do not hand-edit: re-run the script after any widget-header change. + static const std::vector phase4_inst_analog_gauge = { + {"text", K::Str, ""}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"needle-line-width", K::Int, "3", 0, 100}, + {"value", K::Double, "62.0", 0, 100}, + }; + static const std::vector phase4_inst_bar_meter = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"green-color", K::Color, "rgb(0,150,0)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"horizontal", K::Bool, "false"}, + {"marker-line-width", K::Int, "3", 0, 100}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "55.0", 0, 100}, + }; + static const std::vector phase4_inst_beacon = { + {"text", K::Str, ""}, + {"beacon-color", K::Color, "rgb(230,160,20)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"flash-rate", K::Double, "2", 0, 1000}, + {"on", K::Bool, "false"}, + {"phase", K::Bool, "true"}, + }; + static const std::vector phase4_inst_bezel = { + {"text", K::Str, ""}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"panel-color", K::Color, "rgb(210,210,205)"}, + {"screw-color", K::Color, "rgb(150,150,150)"}, + {"screw-ring-color", K::Color, "rgb(40,40,40)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + }; + static const std::vector phase4_inst_circuit_breaker = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"plate-color", K::Color, "rgb(210,210,210)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"lever-line-width", K::Int, "12", 0, 100}, + }; + static const std::vector phase4_inst_control_panel = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"panel-color", K::Color, "rgb(210,210,205)"}, + {"screw-color", K::Color, "rgb(150,150,150)"}, + {"screw-ring-color", K::Color, "rgb(40,40,40)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"grid-cols", K::Int, "2", 1, 100}, + {"grid-rows", K::Int, "3", 1, 100}, + }; + static const std::vector phase4_inst_digital_readout = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"dark-color", K::Color, "rgb(30,30,30)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"segment-off-color", K::Color, "rgb(50,45,20)"}, + {"segment-on-color", K::Color, "rgb(255,176,0)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "999.9", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "123.4", 0, 999.9}, + }; + static const std::vector phase4_inst_emergency_stop = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"redlit-color", K::Color, "rgb(255,70,60)"}, + {"surround-color", K::Color, "rgb(255,220,0)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_flow_meter = { + {"text", K::Str, ""}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "40.0", 0, 100}, + }; + static const std::vector phase4_inst_horizontal_tank_level = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "13.78", 0, 100}, + }; + static const std::vector phase4_inst_key_switch = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"plate-color", K::Color, "rgb(210,210,210)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"key-in", K::Bool, "false"}, + {"pointer-line-width", K::Int, "10", 0, 100}, + {"positions", K::Int, "3", 2, 4}, + }; + static const std::vector phase4_inst_lamp_test_button = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"face-color", K::Color, "rgb(200,200,200)"}, + {"face-down-color", K::Color, "rgb(120,120,120)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + }; + static const std::vector phase4_inst_led_blue = { + {"text", K::Str, ""}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lead-color", K::Color, "rgb(120,120,120)"}, + {"lens-color", K::Color, "rgb(40,120,230)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_led_digits1 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "0", 0, 2}, + {"value", K::Double, "6.8652", 0, 9}, + }; + static const std::vector phase4_inst_led_digits2 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "1", 0, 2}, + {"value", K::Double, "7.55172", 0, 9.9}, + }; + static const std::vector phase4_inst_led_digits3 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "1", 0, 2}, + {"value", K::Double, "76.20372", 0, 99.9}, + }; + static const std::vector phase4_inst_led_digits4 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "1", 0, 2}, + {"value", K::Double, "762.72372", 0, 999.9}, + }; + static const std::vector phase4_inst_led_digits5 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "1", 0, 2}, + {"value", K::Double, "7627.92372", 0, 9999.9}, + }; + static const std::vector phase4_inst_led_digits6 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(52,14,11)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,60,35)"}, + {"decimal-places", K::Int, "1", 0, 2}, + {"value", K::Double, "76279.92372", 0, 99999.9}, + }; + static const std::vector phase4_inst_led_green = { + {"text", K::Str, ""}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lead-color", K::Color, "rgb(120,120,120)"}, + {"lens-color", K::Color, "rgb(30,200,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_led_red = { + {"text", K::Str, ""}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lead-color", K::Color, "rgb(120,120,120)"}, + {"lens-color", K::Color, "rgb(220,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_level_column_gauge = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "58.45", 0, 100}, + }; + static const std::vector phase4_inst_level_transmitter = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "30.47", 0, 100}, + }; + static const std::vector phase4_inst_manometer = { + {"text", K::Str, ""}, + {"blue-color", K::Color, "rgb(30,120,200)"}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "50", -100000, 100000}, + {"minimum", K::Double, "-50", -100000, 100000}, + {"value", K::Double, "12.0", -50, 50}, + }; + static const std::vector phase4_inst_nameplate = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"dark-color", K::Color, "rgb(30,30,30)"}, + {"engraved-color", K::Color, "rgb(240,220,160)"}, + {"grey-color", K::Color, "rgb(150,150,150)"}, + {"screw-color", K::Color, "rgb(150,150,150)"}, + {"screw-ring-color", K::Color, "rgb(40,40,40)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + }; + static const std::vector phase4_inst_needle_edgewise = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(50,50,50)"}, + {"face-color", K::Color, "rgb(250,250,248)"}, + {"needle-color", K::Color, "rgb(15,15,15)"}, + {"panel-color", K::Color, "rgb(232,232,232)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"tick-color", K::Color, "rgb(20,20,20)"}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "76.28", 0, 100}, + }; + static const std::vector phase4_inst_needle_knife_edge = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(60,60,60)"}, + {"face-color", K::Color, "rgb(252,252,252)"}, + {"mirror-color", K::Color, "rgb(200,200,200)"}, + {"needle-color", K::Color, "rgb(15,15,15)"}, + {"panel-color", K::Color, "rgb(222,222,222)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"tick-color", K::Color, "rgb(20,20,20)"}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "76.28", 0, 100}, + }; + static const std::vector phase4_inst_needle_tapered = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(40,40,40)"}, + {"face-color", K::Color, "rgb(250,246,230)"}, + {"needle-color", K::Color, "rgb(30,30,30)"}, + {"panel-color", K::Color, "rgb(228,228,228)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"tick-color", K::Color, "rgb(30,30,30)"}, + {"maximum", K::Double, "100", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"value", K::Double, "76.28", 0, 100}, + }; + static const std::vector phase4_inst_needle_vu = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(50,50,50)"}, + {"face-color", K::Color, "rgb(248,238,205)"}, + {"needle-color", K::Color, "rgb(15,15,15)"}, + {"panel-color", K::Color, "rgb(226,226,226)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"tick-color", K::Color, "rgb(20,20,20)"}, + {"maximum", K::Double, "3", -100000, 100000}, + {"minimum", K::Double, "-20", -100000, 100000}, + {"value", K::Double, "-2.4556", -20, 3}, + }; + static const std::vector phase4_inst_open_channel_level = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"surface-color", K::Color, "rgb(20,80,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "87.83", 0, 100}, + }; + static const std::vector phase4_inst_panel_lamp_amber = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lens-color", K::Color, "rgb(230,160,20)"}, + {"ring-color", K::Color, "rgb(160,160,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_panel_lamp_blue = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lens-color", K::Color, "rgb(40,120,230)"}, + {"ring-color", K::Color, "rgb(160,160,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_panel_lamp_green = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lens-color", K::Color, "rgb(30,200,60)"}, + {"ring-color", K::Color, "rgb(160,160,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_panel_lamp_red = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lens-color", K::Color, "rgb(220,30,30)"}, + {"ring-color", K::Color, "rgb(160,160,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_panel_lamp_white = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(70,70,70)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"lens-color", K::Color, "rgb(235,235,235)"}, + {"ring-color", K::Color, "rgb(160,160,160)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"brightness", K::Int, "100", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_panel_plate = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"panel-color", K::Color, "rgb(210,210,205)"}, + {"screw-color", K::Color, "rgb(150,150,150)"}, + {"screw-ring-color", K::Color, "rgb(40,40,40)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + }; + static const std::vector phase4_inst_pressure_gauge = { + {"text", K::Str, ""}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "300", -100000, 100000}, + {"minimum", K::Double, "0", -100000, 100000}, + {"needle-line-width", K::Int, "3", 0, 100}, + {"value", K::Double, "180.0", 0, 300}, + }; + static const std::vector phase4_inst_push_button = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"greenlit-color", K::Color, "rgb(60,255,90)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"redlit-color", K::Color, "rgb(255,70,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_push_button_latching = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"greenlit-color", K::Color, "rgb(60,255,90)"}, + {"redlit-color", K::Color, "rgb(255,70,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_rgb_status_led = { + {"text", K::Str, ""}, + {"blue-channel-color", K::Color, "rgb(40,120,230)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-channel-color", K::Color, "rgb(30,200,60)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"red-channel-color", K::Color, "rgb(220,30,30)"}, + {"swatch-outline-color", K::Color, "rgb(60,60,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"all-on", K::Bool, "false"}, + {"blue-on", K::Bool, "false"}, + {"brightness", K::Int, "100", 0, 100}, + {"green-on", K::Bool, "false"}, + {"red-on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_rocker_switch = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"dimred-color", K::Color, "rgb(120,30,30)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"rocker-color", K::Color, "rgb(190,190,195)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_rocker_switch_double = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"rocker-color", K::Color, "rgb(190,190,195)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"position", K::Int, "0", -1, 10}, + }; + static const std::vector phase4_inst_rocker_switch_illuminated = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"dimred-color", K::Color, "rgb(120,30,30)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"greenlit-color", K::Color, "rgb(60,255,90)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"rocker-color", K::Color, "rgb(190,190,195)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_rotary_selector = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"plate-color", K::Color, "rgb(210,210,210)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"pointer-line-width", K::Int, "8", 0, 100}, + {"position", K::Int, "0", -1, 10}, + {"positions", K::Int, "3", 2, 4}, + }; + static const std::vector phase4_inst_seg14_display1 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "A"}, + }; + static const std::vector phase4_inst_seg14_display2 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "42"}, + }; + static const std::vector phase4_inst_seg14_display3 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "ABC"}, + }; + static const std::vector phase4_inst_seg14_display4 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "HELL"}, + }; + static const std::vector phase4_inst_seg14_display5 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "HELLO"}, + }; + static const std::vector phase4_inst_seg14_display6 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "ABC123"}, + }; + static const std::vector phase4_inst_seg16_display1 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "M"}, + }; + static const std::vector phase4_inst_seg16_display2 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "MW"}, + }; + static const std::vector phase4_inst_seg16_display3 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "MWM"}, + }; + static const std::vector phase4_inst_seg16_display4 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "MWMW"}, + }; + static const std::vector phase4_inst_seg16_display5 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "MWMWM"}, + }; + static const std::vector phase4_inst_seg16_display6 = { + {"text", K::Str, ""}, + {"bezel-color", K::Color, "rgb(58,58,62)"}, + {"dim-color", K::Color, "rgb(60,42,8)"}, + {"label-color", K::Color, "rgb(170,170,170)"}, + {"lit-color", K::Color, "rgb(255,176,0)"}, + {"value", K::Str, "MWMWMW"}, + }; + static const std::vector phase4_inst_sight_glass_level = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"steel-color", K::Color, "rgb(150,150,150)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "14.58", 0, 100}, + }; + static const std::vector phase4_inst_slide_switch = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(0,180,0)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"rocker-color", K::Color, "rgb(190,190,195)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_spherical_tank_level = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "14.63", 0, 100}, + }; + static const std::vector phase4_inst_stack_light = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(230,160,20)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"green-color", K::Color, "rgb(30,200,60)"}, + {"hover-color", K::Color, "rgb(0,120,200)"}, + {"red-color", K::Color, "rgb(220,30,30)"}, + {"tier-outline-color", K::Color, "rgb(60,60,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"all-on", K::Bool, "false"}, + {"amber-brightness", K::Int, "100", 0, 100}, + {"amber-on", K::Bool, "false"}, + {"green-brightness", K::Int, "100", 0, 100}, + {"green-on", K::Bool, "false"}, + {"red-brightness", K::Int, "100", 0, 100}, + {"red-on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_tank_level_alarms = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "56.24", 0, 100}, + }; + static const std::vector phase4_inst_temperature_gauge = { + {"text", K::Str, ""}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "200", -100000, 100000}, + {"minimum", K::Double, "-20", -100000, 100000}, + {"needle-line-width", K::Int, "3", 0, 100}, + {"value", K::Double, "85.0", -20, 200}, + }; + static const std::vector phase4_inst_toggle_switch = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"greenlit-color", K::Color, "rgb(60,255,90)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"plate-color", K::Color, "rgb(210,210,210)"}, + {"redlit-color", K::Color, "rgb(255,70,60)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"lever-line-width", K::Int, "10", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_toggle_switch_illuminated = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(255,176,0)"}, + {"bezel-color", K::Color, "rgb(38,38,42)"}, + {"dark-color", K::Color, "rgb(40,40,40)"}, + {"dimred-color", K::Color, "rgb(120,30,30)"}, + {"greenlit-color", K::Color, "rgb(60,255,90)"}, + {"panel-color", K::Color, "rgb(58,58,62)"}, + {"plate-color", K::Color, "rgb(210,210,210)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"lever-line-width", K::Int, "10", 0, 100}, + {"on", K::Bool, "false"}, + }; + static const std::vector phase4_inst_vertical_tank_level = { + {"text", K::Str, ""}, + {"amber-color", K::Color, "rgb(220,150,0)"}, + {"fill-color", K::Color, "rgb(40,120,200)"}, + {"grid-color", K::Color, "rgb(210,210,210)"}, + {"hover-color", K::Color, "rgb(255,170,0)"}, + {"ink-color", K::Color, "rgb(60,60,60)"}, + {"pale-color", K::Color, "rgb(235,242,248)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"alarm-hi", K::Double, "80", 0, 100}, + {"alarm-hi-hi", K::Double, "95", 0, 100}, + {"alarm-lo", K::Double, "20", 0, 100}, + {"alarm-lo-lo", K::Double, "5", 0, 100}, + {"level", K::Double, "76.28", 0, 100}, + }; + static const std::vector phase4_inst_vu_meter = { + {"text", K::Str, ""}, + {"face-color", K::Color, "rgb(245,245,240)"}, + {"ink-color", K::Color, "rgb(40,40,40)"}, + {"red-color", K::Color, "rgb(200,30,30)"}, + {"white-color", K::Color, "rgb(255,255,255)"}, + {"maximum", K::Double, "3", -100000, 100000}, + {"minimum", K::Double, "-20", -100000, 100000}, + {"needle-line-width", K::Int, "3", 0, 100}, + {"value", K::Double, "-6.0", -20, 3}, + }; + static const std::vector phase4_stock_accumulation_distribution = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(0,150,0)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_area_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"fill-color", K::Color, "rgb(180,210,240)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_arrow = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "3", 0, 100}, + }; + static const std::vector phase4_stock_baseline_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"baseline-color", K::Color, "rgb(120,120,120)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"down-fill-color", K::Color, "rgb(240,180,180)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"up-fill-color", K::Color, "rgb(170,220,170)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"baseline", K::Double, "100", -1000000, 1000000}, + {"line-width", K::Int, "2", 0, 100}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_brush = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(200,30,200)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "4", 0, 100}, + }; + static const std::vector phase4_stock_candlestick_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_correlation_view = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"corr-color", K::Color, "rgb(0,100,200)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"scatter-color", K::Color, "rgb(200,30,30)"}, + {"zero-line-color", K::Color, "rgb(120,120,120)"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"window", K::Int, "20", 2, 100000}, + }; + static const std::vector phase4_stock_ellipse = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,140,120)"}, + {"fill-color", K::Color, "rgb(220,235,255)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_fib_extension = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(180,80,0)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"level-color", K::Color, "rgb(120,120,120)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + }; + static const std::vector phase4_stock_fib_retracement = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(180,120,0)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"level-color", K::Color, "rgb(120,120,120)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + }; + static const std::vector phase4_stock_heikin_ashi = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_hollow_candles = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_horizontal_line = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,120,200)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_indexed_comparison = { + {"text", K::Str, ""}, + {"base-line-color", K::Color, "rgb(180,180,180)"}, + {"base-value", K::Double, "100", -1000000, 1000000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_line_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_measure_tool = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,140,120)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_money_flow_chart = { + {"text", K::Str, ""}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"zero-line-color", K::Color, "rgb(120,120,120)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_multi_symbol_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_o_b_v_chart = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_o_h_l_c_bar_chart = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_overlay_chart = { + {"text", K::Str, ""}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_parallel_channel = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,120,200)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_pitchfork = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(120,60,180)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_price_label = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,120,200)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + }; + static const std::vector phase4_stock_ratio_chart = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(120,60,180)"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_rectangle = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(0,120,200)"}, + {"fill-color", K::Color, "rgb(200,220,255)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_relative_performance = { + {"text", K::Str, ""}, + {"zero-line-color", K::Color, "rgb(180,180,180)"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_renko = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"auto-y", K::Bool, "true"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"brick-size", K::Double, "1", 0.01, 100000}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + {"y-max", K::Double, "1", -1000000, 1000000}, + {"y-min", K::Double, "0", -1000000, 1000000}, + }; + static const std::vector phase4_stock_sector_comparison = { + {"text", K::Str, ""}, + {"labels", K::Str, "Tech|Tech|Energy"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_spread_chart = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"zero-line-color", K::Color, "rgb(120,120,120)"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_text_annotation = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(160,90,0)"}, + {"fill-color", K::Color, "rgb(255,248,200)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"text-color", K::Color, "rgb(20,20,20)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"annotation-text", K::Str, "Note"}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + }; + static const std::vector phase4_stock_trendline = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_v_w_a_p = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"vwap-color", K::Color, "rgb(230,126,34)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_vertical_line = { + {"text", K::Str, ""}, + {"axis-color", K::Color, "rgb(150,150,150)"}, + {"candle-down-color", K::Color, "rgb(200,120,120)"}, + {"candle-up-color", K::Color, "rgb(120,190,120)"}, + {"color", K::Color, "rgb(120,60,180)"}, + {"grid-color", K::Color, "rgb(228,228,228)"}, + {"anchor-1-bar", K::Int, "0", 0, 100000}, + {"anchor-1-price", K::Double, "100", -1000000, 1000000}, + {"anchor-2-bar", K::Int, "10", 0, 100000}, + {"anchor-2-price", K::Double, "100", -1000000, 1000000}, + {"anchor-3-bar", K::Int, "20", 0, 100000}, + {"anchor-3-price", K::Double, "100", -1000000, 1000000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"axis-width", K::Int, "56", 0, 1000}, + {"line-width", K::Int, "2", 0, 100}, + }; + static const std::vector phase4_stock_volume_bars = { + {"text", K::Str, ""}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_volume_candles = { + {"text", K::Str, ""}, + {"down-color", K::Color, "rgb(200,30,30)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + static const std::vector phase4_stock_volume_profile = { + {"text", K::Str, ""}, + {"line-color", K::Color, "rgb(0,100,200)"}, + {"poc-color", K::Color, "rgb(200,30,30)"}, + {"bins", K::Int, "20", 2, 100}, + {"symbol", K::Str, "SYM"}, + {"view-count", K::Double, "0", 0, 100000}, + {"view-first", K::Double, "0", 0, 100000}, + }; + // Dispatch: exact XFrame class names (Stock*/Inst*). + if (type == "InstAnalogGauge") return phase4_inst_analog_gauge; + if (type == "InstBarMeter") return phase4_inst_bar_meter; + if (type == "InstBeacon") return phase4_inst_beacon; + if (type == "InstBezel") return phase4_inst_bezel; + if (type == "InstCircuitBreaker") return phase4_inst_circuit_breaker; + if (type == "InstControlPanel") return phase4_inst_control_panel; + if (type == "InstDigitalReadout") return phase4_inst_digital_readout; + if (type == "InstEmergencyStop") return phase4_inst_emergency_stop; + if (type == "InstFlowMeter") return phase4_inst_flow_meter; + if (type == "InstHorizontalTankLevel") return phase4_inst_horizontal_tank_level; + if (type == "InstKeySwitch") return phase4_inst_key_switch; + if (type == "InstLampTestButton") return phase4_inst_lamp_test_button; + if (type == "InstLedBlue") return phase4_inst_led_blue; + if (type == "InstLedDigits1") return phase4_inst_led_digits1; + if (type == "InstLedDigits2") return phase4_inst_led_digits2; + if (type == "InstLedDigits3") return phase4_inst_led_digits3; + if (type == "InstLedDigits4") return phase4_inst_led_digits4; + if (type == "InstLedDigits5") return phase4_inst_led_digits5; + if (type == "InstLedDigits6") return phase4_inst_led_digits6; + if (type == "InstLedGreen") return phase4_inst_led_green; + if (type == "InstLedRed") return phase4_inst_led_red; + if (type == "InstLevelColumnGauge") return phase4_inst_level_column_gauge; + if (type == "InstLevelTransmitter") return phase4_inst_level_transmitter; + if (type == "InstManometer") return phase4_inst_manometer; + if (type == "InstNameplate") return phase4_inst_nameplate; + if (type == "InstNeedleEdgewise") return phase4_inst_needle_edgewise; + if (type == "InstNeedleKnifeEdge") return phase4_inst_needle_knife_edge; + if (type == "InstNeedleTapered") return phase4_inst_needle_tapered; + if (type == "InstNeedleVu") return phase4_inst_needle_vu; + if (type == "InstOpenChannelLevel") return phase4_inst_open_channel_level; + if (type == "InstPanelLampAmber") return phase4_inst_panel_lamp_amber; + if (type == "InstPanelLampBlue") return phase4_inst_panel_lamp_blue; + if (type == "InstPanelLampGreen") return phase4_inst_panel_lamp_green; + if (type == "InstPanelLampRed") return phase4_inst_panel_lamp_red; + if (type == "InstPanelLampWhite") return phase4_inst_panel_lamp_white; + if (type == "InstPanelPlate") return phase4_inst_panel_plate; + if (type == "InstPressureGauge") return phase4_inst_pressure_gauge; + if (type == "InstPushButton") return phase4_inst_push_button; + if (type == "InstPushButtonLatching") return phase4_inst_push_button_latching; + if (type == "InstRgbStatusLed") return phase4_inst_rgb_status_led; + if (type == "InstRockerSwitch") return phase4_inst_rocker_switch; + if (type == "InstRockerSwitchDouble") return phase4_inst_rocker_switch_double; + if (type == "InstRockerSwitchIlluminated") return phase4_inst_rocker_switch_illuminated; + if (type == "InstRotarySelector") return phase4_inst_rotary_selector; + if (type == "InstSeg14Display1") return phase4_inst_seg14_display1; + if (type == "InstSeg14Display2") return phase4_inst_seg14_display2; + if (type == "InstSeg14Display3") return phase4_inst_seg14_display3; + if (type == "InstSeg14Display4") return phase4_inst_seg14_display4; + if (type == "InstSeg14Display5") return phase4_inst_seg14_display5; + if (type == "InstSeg14Display6") return phase4_inst_seg14_display6; + if (type == "InstSeg16Display1") return phase4_inst_seg16_display1; + if (type == "InstSeg16Display2") return phase4_inst_seg16_display2; + if (type == "InstSeg16Display3") return phase4_inst_seg16_display3; + if (type == "InstSeg16Display4") return phase4_inst_seg16_display4; + if (type == "InstSeg16Display5") return phase4_inst_seg16_display5; + if (type == "InstSeg16Display6") return phase4_inst_seg16_display6; + if (type == "InstSightGlassLevel") return phase4_inst_sight_glass_level; + if (type == "InstSlideSwitch") return phase4_inst_slide_switch; + if (type == "InstSphericalTankLevel") return phase4_inst_spherical_tank_level; + if (type == "InstStackLight") return phase4_inst_stack_light; + if (type == "InstTankLevelAlarms") return phase4_inst_tank_level_alarms; + if (type == "InstTemperatureGauge") return phase4_inst_temperature_gauge; + if (type == "InstToggleSwitch") return phase4_inst_toggle_switch; + if (type == "InstToggleSwitchIlluminated") return phase4_inst_toggle_switch_illuminated; + if (type == "InstVerticalTankLevel") return phase4_inst_vertical_tank_level; + if (type == "InstVuMeter") return phase4_inst_vu_meter; + if (type == "StockAccumulationDistribution") return phase4_stock_accumulation_distribution; + if (type == "StockAreaChart") return phase4_stock_area_chart; + if (type == "StockArrow") return phase4_stock_arrow; + if (type == "StockBaselineChart") return phase4_stock_baseline_chart; + if (type == "StockBrush") return phase4_stock_brush; + if (type == "StockCandlestickChart") return phase4_stock_candlestick_chart; + if (type == "StockCorrelationView") return phase4_stock_correlation_view; + if (type == "StockEllipse") return phase4_stock_ellipse; + if (type == "StockFibExtension") return phase4_stock_fib_extension; + if (type == "StockFibRetracement") return phase4_stock_fib_retracement; + if (type == "StockHeikinAshi") return phase4_stock_heikin_ashi; + if (type == "StockHollowCandles") return phase4_stock_hollow_candles; + if (type == "StockHorizontalLine") return phase4_stock_horizontal_line; + if (type == "StockIndexedComparison") return phase4_stock_indexed_comparison; + if (type == "StockLineChart") return phase4_stock_line_chart; + if (type == "StockMeasureTool") return phase4_stock_measure_tool; + if (type == "StockMoneyFlowChart") return phase4_stock_money_flow_chart; + if (type == "StockMultiSymbolChart") return phase4_stock_multi_symbol_chart; + if (type == "StockOBVChart") return phase4_stock_o_b_v_chart; + if (type == "StockOHLCBarChart") return phase4_stock_o_h_l_c_bar_chart; + if (type == "StockOverlayChart") return phase4_stock_overlay_chart; + if (type == "StockParallelChannel") return phase4_stock_parallel_channel; + if (type == "StockPitchfork") return phase4_stock_pitchfork; + if (type == "StockPriceLabel") return phase4_stock_price_label; + if (type == "StockRatioChart") return phase4_stock_ratio_chart; + if (type == "StockRectangle") return phase4_stock_rectangle; + if (type == "StockRelativePerformance") return phase4_stock_relative_performance; + if (type == "StockRenko") return phase4_stock_renko; + if (type == "StockSectorComparison") return phase4_stock_sector_comparison; + if (type == "StockSpreadChart") return phase4_stock_spread_chart; + if (type == "StockTextAnnotation") return phase4_stock_text_annotation; + if (type == "StockTrendline") return phase4_stock_trendline; + if (type == "StockVWAP") return phase4_stock_v_w_a_p; + if (type == "StockVerticalLine") return phase4_stock_vertical_line; + if (type == "StockVolumeBars") return phase4_stock_volume_bars; + if (type == "StockVolumeCandles") return phase4_stock_volume_candles; + if (type == "StockVolumeProfile") return phase4_stock_volume_profile; + // Phase 4: StockChart is the candlestick chart (xframe_type_key maps + // StockCandlestickChart -> StockChart), so its table is the legacy + // data/indicator props PLUS the candlestick chart's own Phase 4 + // colours/params -- the same values as phase4_stock_candlestick_chart. + // up/down defaults are the widget's real defaults (0,150,0)/(200,30,30); + // the legacy (0,200,0)/(220,0,0) did not match the widget. static const std::vector stockchart = { {"data-file", K::Str, ""}, - {"up-color", K::Color, "rgb(0,200,0)"}, - {"down-color", K::Color, "rgb(220,0,0)"}, + {"up-color", K::Color, "rgb(0,150,0)"}, + {"down-color", K::Color, "rgb(200,30,30)"}, {"max-candles", K::Int, "120", 1, 5000}, {"indicators", K::Str, ""}, {"scale-mode", K::Enum, "0", 0, 0, "Price|Percent", kScaleModeValues}, {"compare-files", K::Str, ""}, {"drawings", K::Str, ""}, + {"text", K::Str, ""}, + {"grid-color", K::Color, "rgb(225,225,225)"}, + {"axis-width", K::Int, "56", 0, 1000}, + {"axis-height", K::Int, "20", 0, 1000}, + {"view-first", K::Double, "0", 0, 100000}, + {"view-count", K::Double, "0", 0, 100000}, + {"auto-y", K::Bool, "true"}, + {"y-min", K::Double, "0", -1000000, 1000000}, + {"y-max", K::Double, "1", -1000000, 1000000}, }; if (type == "StockChart") return stockchart; return none; // Canvas: common props only