cnmcdee 0c127d4355 Add CMake build console dialog to the Rust designer
The Rust designer had no CMake build UI at all: File -> Build with
CMake, Open CMake Project and CMake Settings all just posted an
unowned_note (CMake build lives in lightgui-support). Wire the first
two to lightgui-support now, mirroring the C++ designer:

- show_build_result(): modal 700x420 dialog with the full build log
  in a read-only monospace TextView. The log area is packed expanding
  (pack_start expand=true) so it fills the dialog instead of sitting
  at its ~2-line natural height at the top — the C console bug, fixed
  here by construction. Long lines wrap; the view starts scrolled to
  the end of the log (idle callback, so the scroll happens after
  allocation and lands on the true last line).
- cmake_build_dir(): error dialog when there is no CMakeLists.txt,
  otherwise configure + build with the saved settings and show the
  result dialog.
- on_cmake_build(): rebuilds the last generated project, or asks for
  a folder when there is none yet.
- on_cmake_open(): choose any CMakeLists.txt folder and build it.
- App.last_cmake_dir records the last generated/opened project
  (set by Generate too), mirroring C++ g_last_generated_dir.

CMake Settings… stays an unowned note: no settings dialog, out of
scope for this change.
2026-12-01 01:08:12 +00:00

lightgui_rust — LightGUI ported to Rust

Rust port of LightGUI (HEAD eb0b5fc): an XFrame-native form designer with 547 XFrame widgets. See PORTING_PLAN.md for the survey and module map.

Workspace

Crate C++ source Status
crates/lightgui-core src/model.h, src/props.h, src/events.h, src/project_io.cpp, canonicalize() in src/main.cpp done
crates/lightgui-gen src/generator.cpp / src/generator.h (emits C++/XFrame, byte-identical) done
crates/lightgui-debug src/debugger.cpp / src/debugger.h (GDB/MI) in progress
crates/lightgui-support data extraction (registry, palette, indicators) in progress

probe/ is the step-0 crates.io probe (standalone, excluded from the workspace). data/ / tools/ are generated data + extraction tooling.

Build / test

cargo test    # workspace; rustc/cargo are login-shell-only: use `bash -lc`
cargo build   # must be warning-free (the C++ build was zero-warning)

Rust 1.100.1 stable, GTK 3.24 (gtk-rs 0.18), serde/serde_json 1.0.

S
Description
No description provided
Readme
2.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 92.6%
Python 6.6%
Shell 0.5%
C++ 0.2%
Makefile 0.1%