5 Commits
Author SHA1 Message Date
cnmcdee 800883b024 Rename FDesigner/cfree to LightGUI (binary lightgui, all docs) 2026-11-29 03:35:48 +00: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
root cd5f07f619 CMake handling: generate CMakeLists.txt, build with CMake from the designer, open/build existing CMake projects
- 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.
2026-11-25 06:59:14 -05:00
Muse 671293e68f Add GDB stepping debugger with breakpoints, variable inspection, settings
Separate debugger window (Debug menu) driving real gdb over the MI
protocol: breakpoints (file:line / function, enable/disable/list,
persisted), step over/into/out, continue/run/stop/kill/restart,
locals + watch expressions + stack frames, target stdout/stderr pane.
Settings button and Debug > Debugger sub-menu (gdb path, break on
main, stop on entry, pretty-print) persisted to
~/.config/fdesigner/debugger.conf. Tests: tests/debugger_tests.sh —
31 console + 5 GTK headless cases plus a GUI smoke test, all passing.
2026-11-25 03:29:12 -05:00
Muse 9c94d93ae5 Import FDesigner C++/GTK3 designer with StockChart Pro
GUI designer (C++/GTK3, Glade .ui, code generator) plus indicator/drawing
libraries, chart tests and test matrix.
2026-11-25 02:35:23 -05:00