da84fba814bfab25c67201736824063087feb5bf
Task 1: placing a widget now disarms placement mode — the next canvas click places nothing until another palette widget is selected. Escape (canvas or palette window) and clicking the selected palette entry again also cancel an armed placement. Previously sel_type persisted across placements, so every click placed another fresh widget. Task 2: placing a widget refreshes the Code window at once (Lazarus-style) via refresh_code_view() after place_widget(), so the generated code shows the new widget without pressing Generate. Verified live under Xvfb (9/9 in r-place-verify.sh): place-once, Escape-cancel, toggle-cancel, re-arm, code sync, clean app log.
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.
Languages
Rust
92.6%
Python
6.6%
Shell
0.5%
C++
0.2%
Makefile
0.1%