5 Commits
Author SHA1 Message Date
Muse 9e6f882575 Regen data tables from lightgui e474894: kTypes 36->38, EventDef lazarus
- tools/extract_palette.py: kTypes expectation 36->38 (ToggleButton and
  CheckListBox added in C); palette total 598->600
- tools/extract_events.py: parse 6th EventDef field `lazarus` (Flag 10
  Lazarus Object Inspector name); scope table/dispatch parsing to
  events_for() (raw_events_for() has its own `raw` table, deliberately
  excluded); dispatch now tests the normalised key `t`, not `type`
- data/*.json regenerated via `make regen`: registry default sizes per
  the C rule (incl. the 15 monitor widgets' hand-written sizes),
  palette Misc/X order per C xframe_palette.h, props 37 types / 270
  props / 25 enum tables / 35 common props, events 29 types with
  lazarus names; indicators provenance head only
- crates/xframe-common: palette asserts 598->600, LightGUI 36->38
- crates/xframe-widgets: *_gen.rs regenerated; gen_data.py opt_f now
  emits float literals for Option<f64> lo/hi (pre-existing latent bug:
  running it on the old data also emitted Some(0)); stale eb0b5fc /
  547 / 9 / 35 / 27 counts updated to e474894 / 562 / 25 / 37 / 29

make check: all 5 tables OK. cargo build warning-free. cargo test
--workspace --no-fail-fast: all suites green except 5 pre-existing
environmental failures, verified identical on HEAD: lightgui-debug
console (37) + gtk (7) need /usr/bin/gdb (not installed on dallas),
lightgui-support font/theme need a display (gtk::init fails), and
lightgui-gen fixtures is stale vs the Task 4 event routing in gen.rs.
2026-12-05 19:20:00 +00:00
Muse 76fad722d9 Add 15 XFrame monitor widgets (registry 547 -> 562)
New Archetype::Monitor (MonitorWidget, kind-dispatched draw) for
XHistoryGraph, XCoreGrid, XNetGraph, XTempHistory, XUsageBar,
XStackBar, XVerticalBar, XTachometer, XArcGauge, XDonutGauge,
XProcessList, XLoadBadge, XMonitorButton, XMonitorGrid, XSysBox.

- data/registry.json + data/palette.json: 15 entries, registry kept
  in sorted order (the C extractor requires it); palette Misc/X
  group re-sorted, other sections untouched, registry_index
  refreshed (XGraph 545->548, XSpreadsheet 546->555).
- crates/xframe-widgets/src/monitor.rs: stdlib-only live checks
  (/proc scan, systemctl is-active, TcpStream::connect_timeout),
  poll()/update() with a 2s staleness guard, deterministic demo
  seeding; unit tests incl. headless Canvas draw for all kinds.
- Placeholder 16x16 icons (assets/PROVENANCE.md notes they are
  placeholders pending the C port) + 15 demo examples + README
  monitor-family section (547 -> 562).
- xframe-common ico test tolerates the 15 monitor icons as
  pending until the C icons land (matched by name, not index).

cargo build --workspace: clean, warning-free. xframe-common lib
8/8, xframe-widgets lib 28/28, widget_tests 24/24, demo smoke
3/3, designer palette/seam 4/4 + 4/4 pass.
2026-12-05 17:30:17 +00:00
cnmcdee 8178513e4e Extract indicator catalog (250) from src/indicators.h
data/indicators.json: the catalog only - name, formula family (the
defs_* group), plot kind, style, kPalette colour index, default
parameters, and the C++ compute-function name. Formulas are NOT
ported here; the function name lets the later pure-function port
find each formula in the header.

Groups: averages 32, bands 28, momentum 52, volume 20, volatility
43, patterns 66, final 9 = 250. Every referenced function verified
defined in the header (246 distinct fns; 4 shared), all names unique,
all defaults numeric-or-empty, all colour indices inside the
14-entry kPalette. The 3 extra v.push_back hits a naive grep finds
are pivot-point code inside a formula body, not registry entries.
2026-11-29 05:46:20 +00:00
cnmcdee f5b24ee484 Extract palette, property and event tables from lightgui sources
- data/palette.json: 583 entries (36 LightGUI types from src/model.h
  kTypes + 547 XFrame entries from src/xframe_palette.h), each XFrame
  entry cross-checked against the registry (name set, index, section).
- data/props.json: 6 PropKinds, 9 enum value tables, 35 per-type
  tables (99 props) + common props from src/props.h; lo/hi clamping
  ranges preserved exactly. Canvas has no table by design.
- data/events.json: 10 EventKinds, 27 per-type tables (32 events),
  9 no-events notes from src/events.h. Coverage verified against all
  36 kTypes keys.

Correction to the survey: EventKind has 10 variants, not 11 as
PORTING_PLAN.md states (Simple, SwitchPage, RowActivated, RowSelected,
BufferChanged, DeleteEvent, Draw, ItemClicked, ItemActivate,
CellChanged). The extractors record what the header defines.
2026-11-29 05:46:11 +00:00
cnmcdee fb152b6e39 Extract widget registry (547 widgets) from lightgui sources
Data, not hand-written code: tools/extract_registry.py reads
widgets/common/registry.h and cross-checks it three ways - the
on-disk widgets/components/ dirs, widgets/tools/sections.py, and the
default_size() rule from gen_registry.py - failing on any drift.

Re-derived counts (lightgui eb0b5fc): 547 widgets, 11 sections;
families Gtk 102, Ind 250, Inst 66, Stock 37, T 90, X 2.
The survey Stock 38 / Inst 67 counted the shared non-widget
headers StockData.h / InstData.h; XGraph/XSpreadsheet form a sixth
family X (2) the survey family table omitted.

Includes the extraction harness: tools/common.py, extract_all.py,
check.py (make check re-derives tables from the C++ sources and
fails on drift), tools/README.md, and the top-level Makefile.
2026-11-29 05:46:02 +00:00