Color themes (src/theme.h/.cpp): four built-ins (Light, Dark, Monokai,
Solarized Dark) colouring keywords, types, strings, comments, numbers,
preprocessor lines, background/foreground and the current line. View ->
Color Theme... opens the picker (built-in combo + per-role colour
buttons); the choice persists to ~/.config/fdesigner/theme.conf
(FDESIGNER_THEME_CONF overrides). Deliberately separate from the
font-settings branch settings.conf so the two merge cleanly.
Code view (src/codeview.h/.cpp): View -> Code View shows the generated
C++ with a gutter (line numbers, red-dot breakpoints, [-]/[+] fold
toggles) and themed highlighting. Gutter clicks toggle breakpoints
through the real debugger backend (debugger_toggle_breakpoint() in
debugger_ui, new GdbSession::remove_staged_breakpoint() for the
not-yet-live case) and persist to debugger_bps.conf.
Folding covers #region/#endregion, every matched-brace span
(functions, if/else, loops, classes, structs, namespaces,
initializers), multi-line /* */ comments and #if...#endif blocks,
nested in all directions. Braces in strings/chars/raw strings/comments
are ignored; unbalanced input fails gracefully (extra } ignored,
unclosed {/region/#if at EOF produces no fold). Folded lines hide via
an invisible tag (proven to collapse to zero height), so file line
numbers stay exact.
Tests: tests/theme_tests.sh (harness 57 checks) + self-test Phase 8 +
xdotool smoke tests for the code view window and theme dialog.
Clean build, zero warnings; matrix 21/0; debugger 31/31 + 5/5;
widget 40/40 + 5/5.
Backend (src/debugger.h/.cpp): Breakpoint gains kind (plain/conditional/
logpoint), condition (-break-condition), ignore_count (-break-after),
log_message and group. Logpoints are gdb dprintf breakpoints created via
-interpreter-exec console; the message template supports {expr} (%d),
{s:expr} (%s), {f:expr} (%f), {x:expr} (%#x), {p:expr} (%p) via
logpoint_to_printf(). New API: stage/add_breakpoint_opts(),
update_breakpoint() (live: delete + re-insert, new id in out; staged:
in place). refresh_breakpoints() reads type/cond/ignore/times from
-break-list and merges the log template/group back from our records;
start() re-applies saved breakpoints with full handler options. Bad
conditions are rejected and the breakpoint rolled back. Persistence
format extends to location|enabled|kind|condition|ignore|log_message|
group with backslash escaping; old two-field lines still load as plain.
UI (src/debugger_ui.cpp): breakpoint list shows Type, Condition,
Ignore and Message columns; Add... / Edit... open a handler dialog
(type, condition, ignore spin, log message, group); staged entries
are toggled/removed/edited by list position (they share id 0).
Tests (tests/debugger/dbg_harness.cpp): console 31 -> 37
(conditional fires only at i==2 with hits==1; ignore=2 skips to i==2
with hits==3; logpoint prints LOG i=0/1/2 and never stops; template
conversion incl. % escaping and bad-template rejection; live
plain->conditional update; persistence round-trip incl. | escaping
and old-format load; bad condition rejected with no bp left).
GTK 5 -> 7 (logpoint in callback prints, never stops; conditional
in callback fires). Full debugger_tests.sh ALL PASS, matrix 20/1
(chart-pro-render known Xvfb pixel flake), self-test 29 PASS.
- 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.
Interface font + code/text-view font picked with GtkFontButton
widgets, persisted to ~/.config/fdesigner/settings.conf (font=,
code_font=, Pango descriptions; FDESIGNER_SETTINGS_CONF overrides
the path for tests), applied live at startup and on Apply via
screen-wide CSS providers (interface font) and a textview CSS rule
(code font, so Text/Memo views use it). Sizes clamp to 6-48 pt;
empty/invalid values fall back to defaults.
New: src/preferences.h/.cpp, tests/font_tests.{cpp,sh} (20-check
harness + self-test + Preferences dialog smoke/Apply test).
Wired: Edit menu + mi_preferences in ui/designer.ui, menu hook,
startup apply, FDESIGNER_OPEN_PREFERENCES test hook and a font
block in the self-test (src/main.cpp); Makefile build line;
DESIGN.md section.
- 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.