3 Commits
Author SHA1 Message Date
cnmcdee 1eabec03f5 Add Install Libraries: system-wide install from a Tools menu item
Adds Tools > Install Libraries: builds the designer as the user
(cargo build -p lightgui-designer), then installs system-wide as root
(pkexec when present, else a GTK password dialog feeding sudo -S).
Installs the designer binary to /usr/local/bin/lightgui-designer,
widget headers to /usr/local/include/lightgui (from the sibling C
repo, passed as LIGHTGUI_SRC since pkexec strips env), palette icons
to /usr/local/share/lightgui/icons, and a desktop entry + icon to the
app menu. Headers are header-only, so no shared libraries and no
ldconfig step. The .ui is embedded in the binary, so no UI file is
installed. Install output is shown in the scrollable log dialog.
Dialogs are hidden (not closed) after run(), and Enter in the
password entry submits via its activate signal.
2026-12-01 01:49:41 +00:00
cnmcdee 1ae85cd6c3 make install + generator references installed headers
Mirror of the C fix: the Rust generator emits the same XFrame C++
code, so it now defaults WIDGETS_DIR / LIGHTGUI_WIDGETS_DIR to
/usr/local/include/lightgui instead of the hardcoded
/opt/lightgui/widgets. Added a make install target (installs the
1100 header-only widget headers from the C repo,
$(LIGHTGUI_SRC)/widgets, to PREFIX/include/lightgui).
Fixtures regenerated from the fixed C++ gen_matrix output
(all 16 cases: Makefile/CMakeLists.txt/README.md now reference the
installed location; main.cpp unchanged). Fixture test passes.
2026-11-30 03:29:58 +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