4 Commits
Author SHA1 Message Date
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 84348fd378 Stock charts: OHLCV CSV loading for all 23 data-plotting kinds
- New csv.rs: parse_ohlcv_csv (date,open,high,low,close[,volume],
  header optional, errors name the line) + derived series (VWAP, OBV,
  accumulation/distribution, money flow, Heikin-Ashi, Renko, volume
  profile).
- XGraph: load_*_csv loaders (candles, OHLC bars, close line, indexed
  closes, VWAP over candles, OBV, A/D, money flow, Heikin-Ashi, Renko,
  volume bars/candles/profile), add_ohlc_csv + add_ratio_line /
  add_spread_line for two-symbol compare, clear_data, SeriesKind::Bars
  (volume bars from the zero line; y range forced to contain 0).
- ChartWidget::populate_from_csv picks the series per kind; the 14
  drawing/annotation kinds reject CSV with an error. Widget trait gains
  load_csv_data (default: rejects); XGraph loads candles.
- xframe-demo: run_widget_with_csv + --csv flag; csv-chart-shots
  example renders all 23 kinds headlessly and diffs vs the blank
  template; 30-row sample CSV in examples/data/.
- docs/stock-charts-csv.md: audit (no template data ships inside the
  widget), CSV spec, per-kind table, worked examples, limits. Also
  corrects the stale gen.rs comment about a seeded preview series.
- 13 new tests in csv_tests.rs (parser, derived math, per-kind
  population, clear/populate, ratio/spread, headless renders).
2026-12-02 10:00:27 +00:00
cnmcdee 5490802120 lightgui-gen: emit XFrame C++ (unified canvas treatment)
Rewrite the generator to emit XFrame code (transliteration of the C
generator): single main.cpp with lg::Holder<T> widgets, XFrame styles,
menubar and X event loop, plus CMakeLists/Makefile/README. GTK output
is gone: chart_template.rs, cmake.rs and embedded/ deleted. Fixtures
regenerated from the C gen_matrix (16 cases x 4 files) and byte-identical
to the C generator; all 16 compile warning-free under -Wall -Wextra
and run under Xvfb.
2026-11-30 01:48:38 +00:00
cnmcdee 6cd492ba83 Add lightgui-core: model/props/events/project_io/canonicalize port 2026-11-29 05:52:07 +00:00