Commit Graph
3 Commits
Author SHA1 Message Date
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