15 Commits
Author SHA1 Message Date
Muse 69acefba56 Instrumentation Group G: 14/16-segment alphanumeric LED displays (12 widgets) + docs + icons + tests 2026-11-25 21:26:02 -05:00
Muse b3ed2c9b36 Instrumentation Group C: 12 illuminator/LED widgets (panel lamps, LEDs, RGB, stack light, beacon, lamp-test button) 2026-11-25 21:01:50 -05:00
Muse 3a349451c3 Instrumentation Group F: LED digit displays 1-6 + 4 analog needles (10 widgets) 2026-11-25 21:00:50 -05:00
Muse 1462f0696d Instrumentation Group A: 8 tank level widgets, driver, docs 2026-11-25 20:58:03 -05:00
Muse 52e8e1c72d Stock Market integration: single-TU build fixes for all 481 widgets
Three latent breaks surfaced the moment the registry grew past 194:
1. xframe_core.h had only #pragma once, and GCC only collapses
   identical copies written in the same second (the 194 originals
   were all written 13:16:50 Nov 25). Stock copies were written at
   scattered times, so the palette/layout TU redefined Srgb/SStyle.
   Added a real #ifndef XFRAME_CORE_H guard to all 482 copies
   (new uniform md5 26f4ee62f0970237e2f0546c0a2ded69).
2. All 250 indicator ctors took series with no default, so the
   registry factory could not 9-arg-construct them. Defaulted to
   xframe::make_seeded_series(250) in the 3 generators (same pattern
   the 8 OHLC widgets already use) and regenerated all 250 dirs.
3. Two xframe compute functions were defined twice: ind_dpo
   (IndDPO + IndDetrendedPriceOscillator -> momentum one renamed
   ind_detrended_price_oscillator) and ind_fractal_dimension
   (IndFractalDimension + IndFractalDimensionIndex -> trend one
   renamed ind_fractal_dimension_index).
4. gen_registry.py now qualifies factory classes with xframe:: when
   the header declares the class inside namespace xframe (165
   trend/volatility Ind*), detected by parsing, not by prefix.
Verified: palette+layout build 0 errors; icons 481/481; palette
self-test 481/481; PLACE_ALL 481/481; draw 481/481. Attribution: XFrame.
2026-11-25 19:35:44 -05:00
Muse aa554fee9d Stock Market indicators: momentum group, 85 widgets 2026-11-25 18:46:41 -05:00
Muse dd980f61c6 Stock Market indicators: trend group, 85 named (81 dirs verified; 4 blocked on momentum collision)
Trend indicators for the XFrame Stock Market section: moving averages
and trend systems, each its own widget with a named real formula.
HurstExponent, EfficiencyRatio and RSquared yielded to the volatility
group and replaced by EhlersSuperSmoother, VWEMA and ElderSafeZone.
AroonOscillator, GatorOscillator, TRIX and QStick are claimed in this
list but their dirs currently hold the momentum worker versions and
were not overwritten; they need coordinator resolution. Generator
refuses to emit into foreign dirs and refuses volatility-list names.
Tests: driver 81/85 pass (4 blocked, foreign dirs); the 81 owned
widgets pass build/draw/click/key/exit/smoke with 0 warnings.
2026-11-25 18:30:59 -05:00
Muse 67169e1cbc Derive the XFrame widget count from the registry instead of hard-coding 194
New shared helper widgets/tools/widget_count.py parses the canonical
widget list from widgets/common/registry.h (kWidgetNames, with the
\#include lines as fallback); every driver, composite tool, palette /
layout check and test now derives the count from it, so the tooling
keeps working as the Stock Market section lands instead of breaking
the composite grid, palette counts and PLACE_ALL.

- sections.py: new 10th section Stock Market (teal), assigned by
  Stock*/Ind* prefix rule derived from the component dirs, so it
  grows as widgets land with no hand-maintained list.
- build/verify_composite.py: tiles are the widget screenshots on
  disk; grid is ceil(sqrt(n)) columns, spare slots allowed; fails
  only if tiles are fewer than registry widgets.
- gen_registry.py / gen_xframe_palette_data.py / verify_icons.py /
  gen_icons.py: counts derived; registry generator filters to real
  widget dirs (excludes the shared StockData.h header, which is not
  a widget); palette-data generator keeps sections.py order and
  skips widgets not yet in the registry.
- palette/main_palette.cpp: window title from kWidgetCount; section
  accent table unsized with a fallback instead of a hard-coded [9].
- designer/src/main.cpp: self-test counts use kXFramePaletteCount.
- tests + run_tests.py: all expectations derived (palette 194/194,
  PLACE_ALL 194/194, combined 36+194=230 today, seam 136/58).
- all_widgets.png re-rendered: 223 tiles (194 registry + 29 Stock
  screenshots ahead of the registry) on a 15x15 grid.
- verify_composite: label-bar check is majority-dark (white label
  text occupies the rest); GtkInvisible is blank by design.

Registry itself is intentionally NOT regenerated here: it stays at
194 until phase-2 integration lands icons/screenshots for all new
widgets, at which point every derived check follows automatically.
2026-11-25 18:18:38 -05:00
Muse 0c67dd81f1 Stock Market indicators: volatility + volume + other (80 widgets) 2026-11-25 18:17:31 -05:00
Muse 21da19af94 Stock Market: comparative plotting + volume widgets (15)
Comparative: StockOverlayChart, StockMultiSymbolChart,
StockRelativePerformance, StockSpreadChart, StockRatioChart,
StockCorrelationView, StockIndexedComparison, StockSectorComparison.
Volume: StockVolumeBars, StockVWAP, StockVolumeProfile, StockOBVChart,
StockVolumeCandles, StockAccumulationDistribution, StockMoneyFlowChart.
All header-only X11 classes on seeded OHLCV data from StockData.h.
Tests: widgets/tests/test_stock_compare_volume.py 15/15 widgets,
75/75 cells PASS under Xvfb :92 (build/draw/click/key/exit), 0 warnings.
Docs: docs/stock-market-compare-volume.md.
2026-11-25 17:59:52 -05:00
Muse 064a9610da Stock Market drawing group: 14 annotation widgets + driver + docs 2026-11-25 17:58:07 -05:00
Muse a7f6e7f954 Stock Market OHLC group: 8 price-chart widgets + driver + docs
StockCandlestickChart, StockOHLCBarChart, StockLineChart, StockAreaChart,
StockHeikinAshi, StockRenko, StockHollowCandles, StockBaselineChart.
Each renders from xframe::OHLCVSeries (seeded synthetic data only),
axes + grid, crosshair, drag-pan, wheel zoom, key pan/zoom/reset.
Driver widgets/tests/test_stock_ohlc.py: 8/8 build/draw/hover/click/
key/exit PASS, 0 warnings (-Wall -Wextra), StockData determinism OK.
Docs: docs/stock-market-ohlc.md.
2026-11-25 17:55:37 -05:00
Muse 43903a71c4 Combined palette: 36 FDesigner + 194 XFrame entries, 230 total (part 5)
The combined IDE palette (FDesigner — Widgets, still its own
top-level window) now lists the 36 FDesigner widgets in their 5
groups AND all 194 XFrame widgets in their 9 section groups.
- designer/src/xframe_palette.h (generated by
  widgets/tools/gen_xframe_palette_data.py from sections.py +
  registry.h): 194 entries with section + registry index.
- designer/src/main.cpp: palette_build_xframe_sections() appends
  the 9 sections below the FDesigner grid — bold header per section,
  one full-width button per widget (16x16 .ico icon + name, same
  tight 20px rows via the existing #palette_window CSS). A long
  section header is 9pt + ellipsized so the grid never widens past
  the 250px window (the first attempt failed the self-test
  horizontal no-scroll check on the header width; fixed).
- Clicking an XFrame entry writes the shared selection file
  (name + registry index, same format as the CWidgets palette),
  so the layout window places the REAL XFrame widget class —
  no placeholders. FDesigner entries place GTK widgets as before.
- Test hooks FDESIGNER_PALETTE_DUMP (entries + window coords) and
  FDESIGNER_PALETTE_SELFTEST (every button through its real clicked
  handler); widgets/tests/test_combined_palette.py proves presence
  (exact section counts 28/34/24/33/28/10/17/16/4, registry indices),
  230/230 selection, and a real-mouse select + place through ./ide.
- Self-test updated: the FDesigner section still fits the 250x780
  window with no scrolling (vertical), XFrame sections scroll
  (expected for 230 entries); 194/194 XFrame icons asserted.
Test: test_combined_palette.py ALL PASS; designer self-test 29/29.
2026-11-25 16:16:44 -05:00
Muse 9b60708f8e Combined IDE: top-level build, ./ide launcher, layout->FDesigner seam (part 3)
- Top-level Makefile builds both halves (designer + widgets CMake);
  .gitignore no longer ignores a hand-written top-level Makefile.
- ./ide launcher: starts designer + XFrame palette + layout as
  separate top-level windows on one display (--build, --no-xframe).
- widgets/ path fixes for the move: palette icon search candidates
  and ipc.h default now point at widgets/icons; test-driver, palette/
  layout test, composite scripts derive paths from __file__; docgen
  scripts re-pointed at widgets/components + docs via REPO_ROOT;
  gen_registry tolerates a missing widgets README.
- Seam: widgets/tools/layout_to_fdesigner.py converts a layout file
  (Name x y w h) to a .fdj project the designer opens: 136/194 XFrame
  widgets map to a real GTK counterpart (35 marked approximate),
  58 (dialogs/choosers/menus/...) have none and are reported, never
  forced. widgets/tests/test_layout_to_fdesigner.py proves it end to
  end: convert -> real project_io load -> real generator (277 files)
  -> CMake build of the generated project -> app binary.
  Seam test: ALL PASS.
2026-11-25 15:50:30 -05:00
Muse 7ba66af59d Restructure: move XFrame tree under widgets/ (combined IDE, part 1)
CWidgets library (components, core, palette, layout, common, icons,
tools, test-results, test-driver, tests, screenshots) moves under
widgets/ so the repo root can hold the combined IDE: designer/ +
widgets/ + docs/. Pure git mv, no content changes.
2026-11-25 15:45:12 -05:00