|
6 | 6 | #include "effects/paletteeffect.h" |
7 | 7 | #include "effects/colorwaveeffect.h" |
8 | 8 | #include "effects/starfield.h" |
| 9 | +#include "effects/stockbannereffect.h" |
9 | 10 | #include "effects/bouncingballeffect.h" |
10 | 11 | #include "effects/fireworkseffect.h" |
11 | 12 | #include "effects/videoeffect.h" |
@@ -85,6 +86,25 @@ nlohmann::json CreateEffectCatalogJson() |
85 | 86 | {{"path", "starCount"}, {"label", "Star Count"}, {"input", "number"}, {"step", 1}, {"min", 1}} |
86 | 87 | })} |
87 | 88 | }, |
| 89 | + { |
| 90 | + {"type", typeid(StockBanner).name()}, |
| 91 | + {"label", "Stock Banner"}, |
| 92 | + {"defaults", json{ |
| 93 | + {"stockServerHost", "localhost"}, |
| 94 | + {"stockServerPort", 8888}, |
| 95 | + {"minQuoteWidth", 64}, |
| 96 | + {"compactQuoteWidth", 96}, |
| 97 | + {"refreshSeconds", 60} |
| 98 | + }}, |
| 99 | + {"fields", json::array({ |
| 100 | + {{"path", "symbols"}, {"label", "Symbols"}, {"input", "json"}}, |
| 101 | + {{"path", "stockServerHost"}, {"label", "Stock Server Host"}, {"input", "text"}}, |
| 102 | + {{"path", "stockServerPort"}, {"label", "Stock Server Port"}, {"input", "number"}, {"step", 1}, {"min", 1}}, |
| 103 | + {{"path", "minQuoteWidth"}, {"label", "Min Quote Width"}, {"input", "number"}, {"step", 1}, {"min", 32}}, |
| 104 | + {{"path", "compactQuoteWidth"}, {"label", "Compact Width"}, {"input", "number"}, {"step", 1}, {"min", 64}}, |
| 105 | + {{"path", "refreshSeconds"}, {"label", "Refresh Seconds"}, {"input", "number"}, {"step", 1}, {"min", 15}} |
| 106 | + })} |
| 107 | + }, |
88 | 108 | { |
89 | 109 | {"type", typeid(BouncingBallEffect).name()}, |
90 | 110 | {"label", "Bouncing Balls"}, |
|
0 commit comments