161 Commits
Author SHA1 Message Date
cnmcdee 394a7c8636 Getter/setter pass Group B Text & Entry: expose hardcoded draw colours as Srgb properties + missing state accessors (28 widgets, 107 colours, 12 state accessors) 2026-11-29 22:02:11 +00:00
cnmcdee 2117f8edd3 Getter/setter pass Group B Display: expose hardcoded draw colours as Srgb properties + missing state accessors (28 widgets, 111 colours, 3 state accessors) 2026-11-29 21:56:10 +00:00
cnmcdee be975f54d0 Group C getters/setters (pilot): IndADX, IndAPO, IndATR, IndBollingerBands, IndDecycler
One widget per draw template; each gains bg/grid/axis colour, line
width, grid divisions, per-line colour and view/period accessors with
defaults preserving the pre-pass render (verified pixel-identical vs
pristine headers, setters exercised by harness).
2026-11-29 21:55:53 +00:00
cnmcdee 9813b60339 Getter/setter pass Group D (Instrumentation) batch 7/7: StackLight, TankLevelAlarms, TemperatureGauge, ToggleSwitch, ToggleSwitchIlluminated, VerticalTankLevel, VuMeter
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); tier colours for
StackLight draw_tier(); needle line width for TemperatureGauge/VuMeter;
lever line widths for ToggleSwitch/ToggleSwitchIlluminated. Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change. Group D (66 Instrumentation widgets) complete.
2026-11-29 21:54:18 +00:00
cnmcdee 7e3e0986ca Getter/setter pass Group D (Instrumentation) batch 6/7: Seg16Display1-6, SightGlassLevel, SlideSwitch, SphericalTankLevel
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged). Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change.
2026-11-29 21:53:56 +00:00
cnmcdee 44511a10d5 Getter/setter pass Group D (Instrumentation) batch 5/7: RockerSwitchDouble, RockerSwitchIlluminated, RotarySelector, Seg14Display1-6
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); pointer line
width for RotarySelector. Dead colour locals that draw() never used are
removed. Setters mutate state only, matching every existing setter in the
codebase; the host redraws after a state change.
2026-11-29 21:53:28 +00:00
cnmcdee f7a27ad95a Getter/setter pass Group D (Instrumentation) batch 4/7: PanelLampBlue, PanelLampGreen, PanelLampRed, PanelLampWhite, PanelPlate, PressureGauge, PushButton, PushButtonLatching, RgbStatusLed, RockerSwitch
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colours for
the lamp_colour() helpers; RGB channel + swatch-outline colours for
RgbStatusLed; needle line width for PressureGauge; set_on for PushButton
(on_ previously had no setter). Dead colour locals that draw() never used
are removed. Setters mutate state only, matching every existing setter in
the codebase; the host redraws after a state change.
2026-11-29 21:53:00 +00:00
cnmcdee a300568df3 Getter/setter pass Group D (Instrumentation) batch 3/7: LevelColumnGauge, LevelTransmitter, Manometer, Nameplate, NeedleEdgewise, NeedleKnifeEdge, NeedleTapered, NeedleVu, OpenChannelLevel, PanelLampAmber
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colour for
the PanelLamp lamp_colour() helper; engraved brass text colour (Nameplate),
water surface colour (OpenChannelLevel). Dead colour locals that draw()
never used are removed. Setters mutate state only, matching every existing
setter in the codebase; the host redraws after a state change.
2026-11-29 21:52:33 +00:00
cnmcdee f956fc723d Getter/setter pass Group D (Instrumentation) batch 2/7: KeySwitch, LampTestButton, LedBlue, LedDigits1-6, LedGreen, LedRed
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); lens colour for
the lamp_colour() helpers; pointer line width for KeySwitch. Dead colour
locals that draw() never used are removed. Setters mutate state only,
matching every existing setter in the codebase; the host redraws after a
state change.
2026-11-29 21:52:07 +00:00
cnmcdee a2f7f889ee Getter/setter pass Group D (Instrumentation) batch 1/7: AnalogGauge, BarMeter, Beacon, Bezel, CircuitBreaker, ControlPanel, DigitalReadout, EmergencyStop, FlowMeter, HorizontalTankLevel
Expose draw colours as Srgb members with get_<name>_color/set_<name>_color
(defaults are the original literals, rendering unchanged); needle/marker/
lever line widths as int members; set_on for EmergencyStop (latched_) and
PushButton-family gap. Dead colour locals that draw() never used are removed.
Setters mutate state only, matching every existing setter in the codebase
(set_level/set_value/...); the host redraws after a state change.
2026-11-29 21:51:33 +00:00
cnmcdee e94bf62034 README: make the two launch points explicit (ide launcher vs lightgui binary) 2026-11-29 20:03:34 +00:00
cnmcdee 0fae25f216 Tests: kill the spin test binary (and its gdb) on exit
- code_window_tests.sh and debugger_tests.sh launch a spin binary
  (loops forever for the step debugger) and never killed it; two
  spins were left at ~100% CPU each, 80+ minutes after their tests
  finished.
- kill_spin() (path-scoped to the test's own WORK/spin, via
  /proc/<pid>/exe, so an unrelated spin is never touched) kills the
  spin, waits for its gdb parent to exit, and kills the gdb if it
  lingers. Wired into kill_app() and the EXIT trap, plus a pre-test
  cleanup that kills stale spins from aborted runs.
- Verified: code_window_tests.sh run twice, ALL PASS both times, no
  spin/gdb/lightgui/Xvfb left afterwards; the 41-minute stale spin
  from the earlier run was cleaned up by the pre-test cleanup.
- debugger_tests.sh ALL PASS, no spin/gdb left.
2026-11-29 19:54:09 +00:00
cnmcdee 3f319d5a55 Makefile: parallel build by default, wildcard sources
- Compile each src/*.cpp to its own .o (pattern rule) then link, so
  the designer build parallelises under -j.
- MAKEFLAGS += -j$(NPROC) makes parallelism the default: plain make /
  make lightgui / make all use all 8 cores with no -j to remember.
- SRCS := $(wildcard src/*.cpp) so a .cpp added later is compiled as
  its own .o automatically, with no Makefile edit.
- widgets target clears MAKEFLAGS for its submake to avoid the
  -j forced in submake jobserver warning (cmake still gets -j).
- clean now also removes the .o files. Same flags, same
  -DLIGHTGUI_GIT_HASH, same binary name and targets.
- Verified: clean make lightgui 36s (was 83s single-core), max 8
  concurrent cc1plus, SELFTEST PASS, dummy new.cpp picked up
  automatically, full make clean, widgets target still works.
2026-11-29 19:54:09 +00:00
cnmcdee 3ed3f57151 XFrame border: per-widget border style via the place file
- SStyle_Manager::add_border_style clones the base style and overrides
  only the border fields (line colour, radius, line width) when set;
  unset fields keep the style defaults (radius 6, 1px dark-grey
  outline), so existing widgets look identical.
- IWidget::set_style_name (pure virtual, forwarded by Holder<T>) lets
  the layout give a placed widget its own border style.
- Place file extended (backwards compatible): x y [width color radius];
  a bare old-format x y still places with the default border.
- Placed records the border; write_state reports border=<w> <color> <r>.
- Designer: the XFrame placement border is set in the Inspector Window
  (Root) view (the designer cannot show an XFrame widget in its
  Inspector) and written into the place file on canvas click.
- Verified: place file 512 360 3 #ff0000 10 -> layout state
  border=3 #ff0000 10, 1072 red pixels drawn.
2026-11-29 19:54:09 +00:00
cnmcdee fbfab38e41 Designer: poll shared XFrame selection, editable ComboBox/Listbox items, Scrollbar adjustment, Text text, Memo preview, border props
- 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).
2026-11-29 19:53:40 +00:00
cnmcdee 75470266f3 XFrame placement, 16px handles, About, menu to Code window, tabbed editor
- XFrame placement: layout raises+activates itself via EWMH
  (_NET_ACTIVE_WINDOW + XRaiseWindow + XSetInputFocus) on every new
  palette selection, and the designer forwards a canvas click to the
  layout via a place-request file (/tmp/lightgui-place.txt,
  $LIGHTGUI_PLACE) when an XFrame widget is selected, so placement
  works even when the click lands on the designer canvas. Verified
  under openbox (real WM): selection raises the layout, place file
  centres the widget on the click.
- Resize handles: 16px drawn (was 12px), 32x32 grab target (8px hit
  pad around each handle centre). All 8 handles verified by real
  mouse drags under openbox: SE corner resizes both axes exactly,
  N edge height-only, W edge width-only; handles drawn last
  (foreground) so they are always on top.
- Help -> About: GtkAboutDialog with the git commit hash baked in
  at build time (Makefile -DLIGHTGUI_GIT_HASH) and the build date.
- Menu bar moved out of the main designer window into the LightGUI
  Code window (reparented from root_box at startup); the layout
  window is now just the layout manager. Ctrl+E on the main window
  toggles the Code window back in when it is hidden.
- Tabbed multi-file editor in the Code window: GtkNotebook, one
  codeview per tab, File -> Open File in Code... opens a file in a
  new tab, per-tab dirty flag / Ctrl+S save / close button (asks
  before dropping unsaved edits), Variables pane + splitter and
  //region folding kept per tab. Debugger opens the stopped file in
  its own tab instead of overwriting the current one; refresh shows
  generated code in its own tab and never clobbers a hand-opened file.
- tests/code_window_tests.sh: reopen check now uses Ctrl+E.
2026-11-29 17:51:24 +00:00
cnmcdee 90d72a82b3 Add Flatpak packaging (com.hotconfig.LightGUI)
Flatpak manifest (GNOME Platform 48, GTK 3) + launcher, desktop file,
metainfo and app icon. Builds the designer plus the XFrame palette and
layout windows, installs them under /app/share/lightgui/ mirroring the
repo layout, and launches the combined IDE via the ide script.
build-flatpak.sh builds the Flatpak and a single-file bundle.
2026-11-29 15:07:37 +00:00
cnmcdee d48d49f60c UI Theme editor: Dracula preset, canvas follows theme
- Fifth built-in preset: Dracula (#282a36 bg, #ff79c6 keyword), same
  colours in both designers.
- The canvas background now follows the UI theme when the project has
  no window background of its own (project background still wins);
  View -> Color Theme Apply repaints code view + canvas, and the saved
  theme is applied to the canvas at startup.
- Theme tests + selftest updated to 5 built-ins with Dracula checks.
- Verified: make 0 warnings, SELFTEST PASS 29, theme tests 60/0,
  palette self-test 583/583; all five presets + a custom colour
  applied live under Xvfb and persisted across a restart.
2026-11-29 14:56:07 +00:00
cnmcdee e7d35b6d9b Fix XFrame placement, resize handles, palette width lock, Variables splitter, //region folding
- 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.
2026-11-29 14:29:16 +00:00
cnmcdee 21a48f8d01 Add step-by-step debugger guide with real screenshots 2026-11-29 13:30:07 +00:00
cnmcdee 0206b69211 Make the code editor editable with Ctrl+S save
The code window was deliberately read-only (set_editable FALSE, no
cursor), so the user could not type in it at all. The view is now
editable with a visible cursor, a Save (Ctrl+S) button and a status
line at the bottom of the code window.

- codeview_new(): set_editable/set_cursor_visible TRUE; new status
  bar with Save button + dirty indicator; Ctrl+S handled on the code
  view box; buffer changed marks the view dirty.
- codeview_save(): writes the buffer back to the file the view is
  showing (atomic tmp+rename); re-scans folds and highlighting from
  the saved text; includes hidden (folded) lines in the save.
- Guards so edits are not silently lost: refresh_code_view() and the
  debugger-stop file switch both skip reloading while the view is
  dirty; the test dump now reports dirty=0/1.
- Honest limit, stated in code and in the post-save status line: the
  file is generated code, so the next Generate overwrites it and wipes
  hand edits — there is no merge-back into the designer model.

Verified: build 0 errors/warnings, SELFTEST PASS, code-window tests
ALL PASS, seam test ALL PASS, Xvfb xdotool typing confirmed (dirty
flag + Ctrl+S writes the typed text to disk).
2026-11-29 12:55:57 +00:00
cnmcdee eb0b5fc91a Docs for LightGUI: 547 widgets, 583-entry palette, Object Inspector window
README: 547 XFrame widgets in 11 sections, combined palette 583, Object
Inspector as its own top-level window, make builds lightgui + all 547
demos, ./ide launcher, make test seam test, repo tree, lightgui.com link.
docs/ide.md + docs/index.md: all totals 481 -> 547 (517 -> 583 palette),
11 sections (Instrumentation 66 added to the tables), repo-root paths
(no designer/ subdir), make lightgui target, seam 136 mapped / 411
unmapped, six top-level windows, Nov 29 test status.
2026-11-29 04:50:11 +00:00
cnmcdee a80fedb026 Fix flaky/wrong test harnesses; fix IndVortex off-by-one abort
- palette_window/palette_icons tests: newer ImageMagick prints
  1526 (0.0138727) for compare -metric AE, so the integer -gt test
  failed on a passing diff; strip to the bare count. Palette window
  suite now 16/16.
- code_window test: View -> Code View reopen used F10 menu navigation
  (does not fire under bare Xvfb here) and fallback clicks at (130,12)
  that hit Debug, not View (View spans x 80-128); click the measured
  positions instead (108,12 then 162,37). Suite now ALL PASS.
- chart_pro render test: the resize-allocation check raced the Xvfb
  configure event (same binary passed 1/3 runs); wait boundedly for
  the allocation to shrink instead of a single pump().
- IndVortex: off-by-one in ind_vortex() aborted the layout on place
  (series[k-1] with k=0 when i=period-1); guard is now i < period.
  Pre-existing in the CWidgets source, fixed here in lightgui only.
  Placement test now 547/547 place, 547/547 draw, 0 failures.
Regenerated screenshots + palette_layout_results.csv from the passing
runs.
2026-11-29 04:50:01 +00:00
cnmcdee 6e9e7b5fe3 Fix malformed 16px ICOs so all 547 palette icons load
Pillow writes 16px ICOs with unpadded 2-byte AND-mask rows (840 B vs spec
872 B, biSizeImage 768 vs 832); Ubuntu 26.04 glycin rejects them, so 0
icons attached to the palette. New widgets/tools/fix_icons.py pads each
mask row to 4 bytes and corrects the size fields (XOR pixels identical
547/547); gen_icons.py now calls it after every save; stale 32bpp
comments corrected to 24bpp. Glycin loads 547/547, ico.h harness 547/547,
palette self-test 583/583.
2026-11-29 04:49:52 +00:00
cnmcdee adda0c7e3b Object Inspector is its own top-level window; fix -Wunused-result warnings
props_box moves out of main_window into a new top-level inspector_window
(LightGUI - Object Inspector, 300x700); the canvas now fills the main
window. Mirrors the palette-window pattern: show/hide, delete-event hides,
View -> Object Inspector toggles, startup cascade parks it right of the
palette (main -> palette -> inspector -> code). Canvas no longer shares
space with the inspector, and the inspector no longer shares space with
the layout window: 6 distinct top-level windows, verified under Xvfb.
Also capture return values of fscanf/system/write (4 pre-existing
-Wunused-result warnings); designer rebuilds with 0 warnings.
2026-11-29 04:49:46 +00:00
cnmcdee 77a5edfe2c Merge expanded widget set: 547 XFrame widgets, combined palette (583), layout, docs 2026-11-29 03:38:35 +00:00
cnmcdee 800883b024 Rename FDesigner/cfree to LightGUI (binary lightgui, all docs) 2026-11-29 03:35:48 +00:00
cnmcdee 115a3a2772 Merge lightgui remote LICENSE-only commit 2026-11-29 03:35:08 +00:00
cnmcdee cefaea482b Initial commit 2026-11-28 22:20:07 -05:00
cnmcdee ca220ccd92 README: per-distro install scripts, tested in LXC on 6 distros
Add install-<distro>.sh for Ubuntu, Debian, Fedora, Arch, Mint and
ParrotOS, each verified end to end in its own LXC container
(update/upgrade, install toolchain, git clone, make, fdesigner built):
- Ubuntu 24.04 / Debian 13: plain README apt command works as-is
- Fedora 43: dnf + gtk3-devel / gcc-c++ names
- Arch rolling: pacman-key --init/--populate first (empty keyring
  in the LXC image), then pkgconf + gtk3
- Mint 22.3: same apt command as Ubuntu, older GTK 3.24.33
- ParrotOS: no native LXC image, tested on Debian 13 stand-in;
  backports suite is echo-backports, NOT trixie-backports

Also correct the Troubleshooting backports line (it wrongly said
ParrotOS uses trixie-backports) and note the lxcbr0 IPv4 FORWARD
fix needed on the test host.
2026-11-28 17:09:26 -05:00
cnmcdee 6d8b86076a README: add troubleshooting for libgtk-3-dev dependency conflicts (backports vs stable) 2026-11-28 15:29:55 -05:00
cnmcdee ccf1c75526 README: frame install as a bare-system, from-scratch setup (ParrotOS/Debian) 2026-11-28 15:26:09 -05:00
cnmcdee 2c7c0f05fe README: clarify build-essential provides make and g++ 2026-11-28 15:25:44 -05:00
cnmcdee 3c0c87f9d9 README: clarify libgtk-3-dev is GTK 3 itself (pulls in the runtime) 2026-11-28 15:25:32 -05:00
cnmcdee 2c36572401 README: add usage, apt install requirements, build/run and features 2026-11-28 15:23:46 -05:00
Muse 6884c53568 Remove personal attribution from design doc 2026-11-25 17:47:06 -05:00
Muse 310ff34c47 Palette icons: 16x16 glyph on every widget button
- tools/gen_palette_icons.py draws all 36 glyphs (PIL, same style as
  CWidgets icons: ink + section accent, white turned transparent) into
  icons/<Key>.png; tools/verify_palette_icons.py checks 36/36 distinct.
- src/main.cpp: palette_attach_icons() puts a GtkImage left of each
  button label (icons/ with ../icons/ fallback, text-only if missing);
  self-test asserts 36/36 icons, palette 250x780, no scrolling.
- Fixed the round-3 tight CSS, which never applied: the builder id is
  not the widget name (it stayed GtkWindow), and the per-widget style
  provider never reached the buttons. Name is now set explicitly and
  the provider is screen-wide (selector still scopes it to the palette);
  button labels 9pt so icon + label fit the 250-wide window.
- tests/palette_icons_tests.sh (13 checks) + Memo click coordinate fix
  in tests/palette_window_tests.sh for the shorter rows.
- screenshots 15 (palette with icons) + 16 (three windows with icons).
2026-11-25 15:56:35 -05:00
Muse 1e2e6f8692 Round 3 screenshots: three top-level windows together, paused code window, palette grid
11_three_windows.png — 2560x1440 desktop: design window (Button/Label/
Memo placed on canvas) + palette window + code window, side by side.
12_code_paused.png — code window stopped at prog.c:16: red paused-line
background + white arrow + red breakpoint dot, inspection pane with
main() scope (a=42, msg=hello, r=0).
13_palette.png — palette window alone: tight 2-column Lazarus-style grid,
all 36 buttons, no scrolling.
14_three_windows_paused.png — full desktop while paused: debugger window
open (Stopped, breakpoint-hit, locals) + design + palette + code windows.
2026-11-25 15:19:15 -05:00
Muse e171fa9946 Round 3 integration fixes: park code window beside palette/designer, fix codewin Xvfb race
- open_code_view() now parks the code window on first creation: right
  of the palette window when visible (2560x1440: design 0..1150, palette
  1162..1412, code 1424..2424), else right of / below the design window,
  else a small cascade offset. Previously it opened at 0,0 exactly over
  the design window, hiding the canvas and menu bar, so palette clicks
  and the View menu could not reach the designer (palette-places-widgets
  and palette-reopens-from-view-menu failed on the merged tree).
- Startup order: palette window opens before the code window so the
  parking geometry can read the palette position.
- tests/code_window_tests.sh: wait for any previous :99 server (the
  self-test xvfb-run -a instance) to go quiet before starting our own
  Xvfb, wait for the display to answer, and verify our Xvfb survived
  startup; fixes the flaky cannot-open-display failure.
2026-11-25 14:54:38 -05:00
Muse e280653c45 Merge branch palette-window: widget palette in its own top-level window, tight Lazarus-style grid
Integration of round 3: code-window (f30b285) + palette-window.
Conflict in src/main.cpp startup block resolved additively: both the
code window (open_code_view + 200 ms debugger poll) and the palette
window (tight CSS + park beside design window) open at startup.
ui/designer.ui merged cleanly (both top-level windows + both View
menu items). Build: make clean && make, 0 warnings.
2026-11-25 14:33:07 -05:00
Muse f30b285b00 Merge branch code-window: separate top-level code window with red paused line + automatic variable inspection 2026-11-25 14:31:43 -05:00
Muse 8f00f9096b Palette window: widget palette in its own top-level window, tight Lazarus-style grid
- Move the palette out of main_paned into a new top-level GtkWindow
  (palette_window, title FDesigner — Widgets), opened with the designer
  and parked beside the design window (left if room, else right).
- Plain top-level window, never transient/modal; delete-event hides it
  instead of destroying it, View -> Widget Palette (check item) toggles
  it back, state stays in sync.
- Tight Lazarus-style packing: palette_box is now a 2-column GtkGrid
  (row/column spacing 2, 2px margins), buttons compact via USER-priority
  CSS (min-height 20px, 1px vertical padding); all 36 buttons + 5
  section labels render, all 24 grid rows fit without scrolling.
- New tests/palette_window_tests.sh (16 checks: separate windows,
  not transient, beside-main placement, palette clicks place widgets,
  WM_DELETE hide + app survives, View-menu reopen, clean log).

Tests (VPS, Xvfb): make 0 warnings; matrix 21/0 (re-run; first run 20/1
on the known flaky chart-pro-render pixel check, no code change);
debugger console 37/37 + GTK 7/7; widget 5/5 (+40/40 markers);
font ALL PASS; theme ALL PASS; event 6/6 + runtime 41/41;
cmake probe 31/31 + script 4/4; self-test 29 PASS;
palette_window_tests 16/16.
2026-11-25 14:30:41 -05:00
Muse 4c998e7888 Code window: separate top-level window, red paused line, automatic variable inspection
- The code view is now its own top-level window (FDesigner — Code),
  opened together with the designer at startup; View -> Code View
  toggles it. Closing hides it (app keeps running); reopening
  restores it with fresh content.
- Automatic variable inspection pane at the bottom of the code
  window: on every debugger stop it shows the current scope
  (function — file:line (reason)) and the frame locals
  (name/type/value) from the SAME shared GdbSession (200 ms poll
  in main; no second gdb). While running it shows a running state
  and never presents stale values; on exit it shows the exit code.
  On stop the stopped file is loaded into the code view if needed
  and any fold hiding the paused line is unfolded.
- Paused line: solid red (#c00000) full-line background with white
  text, plus a white gutter arrow — Lazarus-style execution-point
  marking (ahaExecutionPoint: full-line background + gutter arrow,
  distinct from the red-dot breakpoint marker), adapted to the
  user-requested red. The paused tag outranks the current-line tag
  and syntax tags; it clears on resume and moves on step.
- Debugger window: F5 Continue / F10 Step Over / F11 Step Into
  shortcuts (tooltips already promised them); new accessors for the
  code-window poll (poll_events, session_state, stop_seq,
  last_stop, locals, refresh_on_stop) and a debugger_autorun test
  hook; GdbSession gains a stop_seq() accessor.
- Tests: tests/code_window_tests.sh drives the real app under Xvfb
  (separate window, stop + locals in two scopes, red-band pixels,
  step moves the band, resume clears it, running state, gutter
  click stages/removes a breakpoint in the backend, close/reopen)
  plus self-test checks for the paused tag colours/priority and the
  inspection API. FDESIGNER_DEBUG_TARGET/BREAK and
  FDESIGNER_CODEWIN_DUMP hooks support it.
2026-11-25 14:12:54 -05:00
Muse 087fa9fd01 Add 10 hi-res screenshots of the feature round (designer, code view, debugger, settings, CMake build, Lazarus widgets, generated apps) 2026-11-25 13:30:35 -05:00
Muse fb125d0b28 Fix: persisted breakpoints split file:line so the code-view gutter shows them 2026-11-25 12:58:03 -05:00
Muse 3d0c07ae09 Fix: code view folds // #region markers the generator emits 2026-11-25 12:48:44 -05:00
Muse 053f1004b9 Integration fixes: event tests link cmake_build.cpp; cmake script phase label 2026-11-25 12:34:22 -05:00
Muse 5e116660a0 Merge color-themes (ad0cd68): themes + code view gutter and folding 2026-11-25 12:16:06 -05:00
Muse 5870b56075 Merge breakpoint-handlers (b71ba03): conditional, ignore-count, logpoint 2026-11-25 12:13:40 -05:00
Muse 23425a4dfd Merge event-handlers (0492137): signal table, Events pane, generated stubs 2026-11-25 12:13:38 -05:00