- Placement hole: the designer only set g_xframe_selected from its own
combined palette, so a widget chosen in the separate XFrame palette
never placed (on_canvas_press saw an empty selection). Poll the
shared selection file (same path rule as xframe_selection_path) on
the 200ms timer and at the start of on_canvas_press, so either
palette works. Verified under openbox: separate-palette flow now
places (GtkButton 0->1), combined-palette flow still places (1->2).
- ComboBox/Listbox: new editable items prop (pipe-separated, default
Item 1|Item 2|Item 3); preview rebuilds from it, generator emits one
append/insert per item. active / selection-mode unchanged.
- Scrollbar: editable lower/upper/step-increment/page-increment/
page-size; preview reconfigures the adjustment, generator emits them.
value/inverted unchanged; defaults preserve 0-100/1/10/10.
- Text: new text prop (same as Memo); preview and generator use it,
falling back to the widget name when empty.
- Memo: preview now uses the text prop (was hardcoded to the name);
added cursor-visible (same as Text).
- Border (GTK): border-width/border-color/border-radius in the common
prop set; preview and generator emit border + border-radius CSS.
Defaults (0/empty/0) preserve the current appearance.
- Tests: SELFTEST 35 items, widget_tests 58 passed, widget_tests.sh
5 passed. Border CSS verified in generated code; XFrame border
verified in the layout (1072 red pixels, state border=3 #ff0000 10).
- XFrame placement: layout window now raises itself (XRaiseWindow) when a
palette selection arrives, so it no longer stays buried behind the
designer and the click lands on the layout window instead of the
designer canvas. Verified: palette click + layout click places the
widget (GtkAboutDialog 362 250 300 220).
- Resize handles: 9px -> 12px, hit padding 2 -> 4 (grab target ~20x20),
and a 3px drag threshold so a double-click does not shift the widget
out from under the second press. Verified: double-click shows 8
orange handles; SE drag +40,+30 resizes 300x220 -> 340x250 exact.
- Palette window: fixed width via gtk_window_set_geometry_hints
(min=max=250, height 200..10000). Verified under openbox: side-edge
drag leaves width at 250, top/bottom drag changes height.
- Variables in scope pane: now a GtkPaned (vertical orientation =
horizontal divider bar, dragged up/down) between the code area and
the pane, replacing the fixed-size packing. Verified live: dragging
the divider up grows the Variables pane; split_pos reported in the
codewin dump for testing.
- Region folding: recognise //region / //endregion (and // region)
in addition to #region / // #region (kept for compat); generator now
emits //region / //endregion. Verified: fold test (4 regions, 3
region folds, //region inside a string opens no fold) and live
collapse of a //region block in the code view.
- src/events.h (new): natural GTK signal per widget type for all 36
types (27 with signals, 9 with an explicit no-events note); kinds
cover simple, switch-page, row-activated, row-selected, text-buffer,
delete-event, draw, per-item toolbar/menu, and spreadsheet cells.
- Generator emits a stub handler + g_signal_connect for every
connected signal (Widget.signals); Shape/Plot/StockChart draw stays
wired exactly once. Stubs print an EVENT trace line under
FDESIGNER_EVENT_TRACE (test harness only).
- Designer: Events section in the property pane — one check button
per signal, builtin draw shown as always-connected, no-event types
show the reason. Connections persist in .fdj as "signals".
- Self-test Phase 8: UI check-button toggle, all-signal generation
checks, .fdj round-trip.
- tests/event_handler_tests.sh/.cpp + event_handler_runtime.cpp:
36/36 generation markers, warning-free generated build, 41/41
runtime triggers under Xvfb.
- Generator emits CMakeLists.txt alongside Makefile (cmake_minimum_required
3.10, project(<Class> CXX), C++17, PkgConfig gtk+-3.0, explicit source
list, add_executable(app ...), GTK include/link wiring); exe named app
to match the Makefile target.
- New src/cmake_build.h/.cpp: cmake_lists_text, cmake_build_project
(configure + build, captured output), cmake_project_exists,
CMakeSettings persisted to ~/.config/fdesigner/cmake.conf
(FDESIGNER_CMAKE_CONF override for tests).
- Designer File menu: Build with CMake... (last generated project, or
pick a folder), Open CMake Project... (any dir with a CMakeLists.txt),
CMake Settings...; Generate now offers Build with CMake (the default
build path for generated projects) and reports the log + exe path.
- Self-test gains a CMake phase (settings round-trip, CMakeLists.txt
markers, real console build, broken-file failure, cmake build of the
generated GTK project); file count 4+2N -> 5+2N.
- New tests/cmake_tests.sh + tests/cmake_probe.cpp (31 checks); matrix
and widget test harnesses link cmake_build.cpp; tests/out/ gitignored.
- DESIGN.md: CMake handling section.