100 Commits
Author SHA1 Message Date
cnmcdee 90880928c9 Ind* CSV series API: load_csv/set_series/clear_series on all 250 indicators
Every Ind* widget recomputes its lines from a loaded OHLCV series:
private recompute_lines() (moved out of the constructor), public
set_series()/load_csv()/clear_series()/series() matching the Stock*
chart widgets, same loader and CSV spec (StockData.h). Constructor
defaults keep the seeded 250-bar template; failed loads leave the
series untouched; clear_series() empties lines and draws clean.
Params that were constructor-only (fast/slow/period/...) are now
stored as members so a reloaded series uses the same settings.

Tests: widgets/tests/ind_csv_harness.cpp + test_ind_csv.py — 250/250
harnesses build, 250/250 numeric PASS, 39/39 screenshots PASS, 250/250
demo mains build. Docs: docs/stock-market-csv-data.md Indicators
section rewritten; all 250 cdoc pages updated (update-ind-csv.py).
2026-12-02 11:00:19 +00:00
cnmcdee 099733b27d Stock chart CSV data: loader in StockData.h, load_csv/add_series_csv on 23 widgets, docs + tests
- xframe::load_ohlcv_csv / parse_ohlcv_csv_text in StockData.h:
  date,open,high,low,close,volume, optional header matched by name
  (Massive exports load as-is), YYYY-MM-DD / ISO / epoch s-ms-ns dates,
  volume optional, malformed rows skipped + counted, error string out.
- 15 single-series widgets gain load_csv() + clear_series();
  8 comparative widgets gain add_series_csv(); failure leaves the
  series untouched. Drawing tools intentionally excluded (coordinates,
  not series); Ind* widgets take CSV only via the constructor.
- Fixtures tests/data/ohlcv_sample.csv (+ _b, 30 rows each) and
  widgets/tests/csv_unit_test.cpp + test_stock_csv.py (23/23 PASS:
  CSV shot differs from template shot, 30 items, bad path exits 2).
- docs/stock-market-csv-data.md + CSV sections in the stock group docs.
2026-12-02 10:15:50 +00:00
cnmcdee 7d7fa6cfbc Add visual regression harness for all 547 widgets (tools/visreg)
One command rebuilds every examples Widget.cpp, re-renders it under
Xvfb, and diffs the screenshot against its golden with ImageMagick
RMSE (0.5 pct threshold):

  tools/visreg/run.sh     (also: make visreg)

Reuses the cdoc docs sweep render path (same g++ flags, same
Widget - XFrame demo window capture with the root-capture fallback).
Goldens vendored from /opt/lightgui-docs/shots (Dec 2, 2026). Report goes
to tools/visreg/report/report.txt (plus report.tsv and shots/); exit code
is 0 only when every gated widget passes.

Two deliberate behaviours, both documented in tools/visreg/README.md:
- failed shots are retried 3x (transient XOpenDisplay flakes; the docs
  sweep needed a retry pass for the same four widgets)
- TTimeEdit, TDateEdit and TCalendar render the wall clock, so they are
  reported SKIP (RMSE recorded, not gated) instead of FAIL

Baseline full run (Dec 2, 2026, HEAD beec92b): 544 PASS, 3 SKIP, 0 FAIL;
max RMSE among PASS 0.0000 pct (every passing widget pixel-identical).
2026-12-02 09:38:06 +00:00
cnmcdee beec92b3ce Step debugger guide: add case-of-the-unexpected-61 exercise, Rust/Python debugger note, re-verify 8 known bugs (Dec 2) 2026-12-02 08:53:07 +00:00
cnmcdee 93d0fe94c3 InstLampTestButton example: draw and dispatch to its two panel lamps too 2026-12-02 06:08:25 +00:00
cnmcdee 1526710b14 Fix InstLampTestButton example: include the two panel-lamp headers its demo uses 2026-12-02 06:00:22 +00:00
cnmcdee 4ecf42407b Add minimal XFrame example program per widget (547) for cdoc.lightgui.com
Each examples/<Widget>.cpp is a minimal complete program: window +
widget (setup mirrors the widget demo) + standard event loop. Built,
run under Xvfb and screenshotted for the C widget docs.
2026-12-02 05:55:10 +00:00
cnmcdee 541fd842dc Task 4: route ButtonRelease, MotionNotify and KeyPress to the right widget in generated apps
Generated event loop now tracks pressed_widget (set on a handled ButtonPress) and focused_widget (click-to-focus). ButtonRelease goes to the pressed widget even if the pointer moved off it; MotionNotify goes to the pressed widget while a press is held (drag), otherwise to the topmost widget under the pointer; KeyPress goes to the focused widget only. ButtonPress hit-testing, Expose, ConfigureNotify and ClientMessage unchanged. Verified live under Xvfb with a generated 4-widget app (2 buttons + 2 entries) and an instrumented event log: keys go only to the focused entry, hover only to the widget under the pointer, drag motion and release only to the pressed button. The designer canvas does NOT share this loop (it already targets release/motion/keys by selection/hit-test), so it is unchanged.
2026-12-02 05:30:16 +00:00
cnmcdee 56a34bb1cf Task 3: placement sizes are max(bucket default, content minimum) so the outer border encloses each widget's content
27 widgets (18 dialogs, 2 calendars, 3 views, 4 choosers) get larger defaults via MIN_SIZES in widgets/tools/gen_registry.py, applied in default_size() and regenerated into widgets/common/registry.h. Verified live under Xvfb (dialogs sweep, 28 widgets, screenshots): 15 of the 18 originally-overflowing dialogs now fit at placement time (e.g. GtkAboutDialog 520x260, TPageSetupDialog 320x400, TColorDialog 520x300, picture dialogs 480x240). Three are internal draw-layout collisions, not placement size: TFindDialog Direction label overlaps Find Next, GtkFileChooserDialog Name header overlaps the path field, TFontDialog caption overlaps OK/Cancel (its lists expand to fill the dialog height).
2026-12-02 05:10:27 +00:00
cnmcdee f78a3e5ce6 Single-placement mode + code-view sync on placement
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 the placed callback -> refresh_code_view(), so the
generated code shows the new widget without pressing Generate.

Verified live under Xvfb (9/9 in c-place-verify.sh): place-once,
Escape-cancel, toggle-cancel, re-arm, code sync, clean app log.
2026-12-02 03:08:30 +00:00
cnmcdee 0e1f672bc2 Update README designer screenshot to the current UI
Replace screenshots/01_designer.png with the newer designer shot:
canvas with Dialog/TextView/Option/TTimer, Object Inspector with
Widget properties, Bulk parameter and Colour palette, and the
Widgets palette. Same path, so the README link is unchanged.
The new shot is 1425x823 (the old one was 2560x1440).
2026-12-01 02:14:08 +00:00
cnmcdee 2b0acc296f Fix Code window gutter disappearing on click
The gutter (line numbers + fold markers) lived inside the scrolled
window, so clicking in the code let the text view scroll the whole
row horizontally: the scrolled window's hadj jumped to 76, exactly
the gutter width, and the gutter scrolled off-screen left. Resizing
did not bring it back.

Move the gutter out of the horizontal scroll: it now sits beside the
scrolled window in code_box, so it can never be scrolled away, and
only tracks the vertical scroll (on_gutter_draw shifts line positions
by the vadj value; gutter_line_at_y adds it back for fold/breakpoint
clicks; on_scroll_changed repaints). The scrolled window's shadow
is off so the first line starts exactly at the gutter's top edge.
Horizontal scrolling of long lines still works.

Verified live under Xvfb: click in the code leaves the gutter in
place; vertical scroll keeps line numbers aligned; clicking a fold
marker while scrolled collapses the region correctly.
2026-12-01 02:12:34 +00:00
cnmcdee b96e545f20 Make Inspector property rows expand to fill the panel width
The property editors in the grid sat at their natural width while
the Bulk parameter fields below filled the panel. Set hexpand on the
control in add_row so the control column takes the extra width, like
the Bulk fields. Entries, spins, combos and the entry+Pick boxes all
stretch; the label column stays narrow.
2026-12-01 01:59:43 +00:00
cnmcdee 55daf32bde Add a font picker button beside the font-name property
The font-name entry gets a Pick button (same pattern as the Color
Pick button) that opens a font chooser listing the available system
fonts. Choosing one sets font-name to the picked family; setting the
entry text fires the existing changed handler, so the pick
live-applies exactly like typing the name. Only the family is stored
(size/bold/italic stay separate properties). Added to both the GTK
and the XFrame property editors.
2026-12-01 01:57:14 +00:00
cnmcdee 5f12f0423e Install Libraries: Enter submits the sudo password dialog
Pressing Enter in the password entry did nothing (the default-widget
chain does not fire under a nested gtk_dialog_run). Wire the entry
activate signal directly to Accept so Enter submits, matching the
usual password-dialog convention.
2026-12-01 01:49:36 +00:00
cnmcdee 6568b6f882 Add Install Libraries: system-wide install from a Tools menu item
Adds Tools > Install Libraries: builds the designer as the user, then
installs system-wide as root (pkexec when present, else a GTK password
dialog feeding sudo -S). Installs the designer binary to
/usr/local/bin/lightgui, widget headers to /usr/local/include/lightgui,
designer UI + 547 palette icons to /usr/local/share/lightgui, and a
desktop entry + icon to the app menu. Headers are header-only, so no
shared libraries and no ldconfig step. The installed binary now finds
its UI and palette icons under /usr/local/share/lightgui, so it runs
from anywhere without the checkout. Install output is shown in the
scrollable log dialog.
2026-12-01 01:38:54 +00:00
cnmcdee cb95f5f73c Fix CMake build console: log area fills dialog, full log shown, scrolls to end
The build-result dialog packed its ScrolledWindow with
gtk_container_add(), which packs a GtkBox child with expand=FALSE,
so the log area stayed at its ~2-line natural height pinned to the
top and the rest of the 700x420 window was wasted space. Pack it
with gtk_box_pack_start(..., TRUE, TRUE, 0) so it fills the dialog.

Also drop the 6000-char tail truncation (the log now scrolls, so the
whole build log is visible), wrap long lines so cmake command lines
are readable without horizontal scrolling, and start scrolled to the
end of the log (via an idle callback, so the scroll happens after
realisation/allocation and lands on the true last line) where build
failures are.
2026-12-01 01:00:41 +00:00
cnmcdee 563870f9b7 Phase 4: live-apply typed rgb(...) colours (parse_hex_color)
Verification find: typing rgb(255,0,0) into a StockChart up-color row
stored the value in the model but never redrew -- parse_hex_color()
accepted only #rrggbb, while the XFrame Inspector stores the raw entry
text and the Phase 4 colour defaults/display use the rgb(...) form
(the Pick... chooser stores hex, so chooser edits worked). Extend the
parser to the same set the generator's parse_color() accepts -- named
colours, #rgb/#rrggbb, rgb(r,g,b) (clamped) -- so live-apply and
generation can never disagree on a colour again. Affects every colour
prop edited by typing, not just Stock/Inst: background, foreground,
border-color go through the same parser.
2026-11-30 15:35:34 +00:00
cnmcdee 9681fbae94 Phase 4: add caps_rs/bg_rs modes to the prop-table generator
The Rust generator needs the same capability/background tables in Rust
syntax (PHASE4_CAPS / PHASE4_BG_COLOR in crates/lightgui-gen/src/
gen.rs); the C++ modes emit C++ syntax, so add Rust-syntax modes.
2026-11-30 15:13:30 +00:00
cnmcdee 780ab0353f Phase 4: generator emits Stock/Instrumentation props
emit_widget_props gains a generic Phase 4 loop driven by the capability
table from tools/gen_phase4_props.py (caps mode): one setter call per
Inspector-table prop the widget actually has, with the arg form from the
table kind (set_value(double) for gauges, set_value("...") for Seg
displays). Pairs are emitted together (minimum/maximum -> set_range,
y-min/y-max -> set_y_range, anchor-1/2/3 -> set_anchors3 when all six
components are present, else one set_anchor per complete anchor). The
StockChart branch keeps only the NOTE for data-file/indicators/drawings/
compare-files/scale-mode; its up/down colours now come from the generic
loop. The common background prop falls back to set_bg_color for
Stock/Inst classes that have it (kPhase4BgColor, bg mode).
2026-11-30 14:34:07 +00:00
cnmcdee 10f2b74a58 Phase 4: live-apply for Stock/Instrumentation props in the canvas
xframe_core_apply_prop gains a Phase 4 block, first in the type-specific
section: for Stock*/Inst* classes, pairs apply together from the model
(minimum/maximum -> set_range, y-min/y-max -> set_y_range, anchor-N-bar/
price -> set_anchor) and every other table prop goes through the named
dispatch in registry.h (kind from find_prop). Unhandled props fall through
to the generic branches. background drives set_bg_color via
set_named_color(bg-color) for these classes, and a non-numeric value
falls back to set_value_str (Seg displays). props.h must be included before
X11 headers (Xlib.h defines Bool as int, breaking PropKind::Bool) and the
Bool kind is the else branch, never named.

Also fixes -Wmisleading-indentation in StockSectorComparison::set_labels_text.
2026-11-30 14:29:48 +00:00
cnmcdee e68fd2557d Phase 4: per-widget Inspector tables for Stock/Instrumentation + dispatch
src/props.h gains the generated Phase 4 tables (103 classes, 1008 props)
from tools/gen_phase4_props.py, dispatched on the exact XFrame class name.
The StockChart table is the legacy 8 props plus the candlestick chart's
own Phase 4 props; its up/down defaults are corrected to the widget's
real defaults rgb(0,150,0)/rgb(200,30,30) (the legacy rgb(0,200,0)/
rgb(220,0,0) did not match the widget). src/main.cpp refresh_xframe_props
falls back to the exact class name when xframe_type_key() returns "" so
every Stock*/Inst* class shows its own table, not just common props.
2026-11-30 14:08:12 +00:00
cnmcdee 05a85ddf8a Phase 4: named live-apply dispatch in registry.h; repair gen_registry.py
registry.h gains 8 Phase 4 IWidget virtuals (set_named_color/double/int/
bool/string, set_y_range, set_anchor, set_value_str), one SFINAE trait per
distinct Stock/Instrumentation setter, and Holder overrides with if-chains
over (prop -> setter). The named dispatch keeps the virtual count flat
while covering all 116 Phase 4 prop names.

gen_registry.py was stale: regenerating it deleted the hand-added Phase 2
colour virtuals and the whole Phase 3 block. tools/port_registry_blocks.py
ports those 60 virtuals/traits/overrides back into the template (verified:
regeneration is a byte-identical no-op) and inserts the Phase 4 blocks, so
registry.h is generated again, not hand-edited.
2026-11-30 14:07:19 +00:00
cnmcdee 7ff8b38128 Phase 4: per-component setters the Inspector needs + prop-table generator
8 tank widgets gain set_alarm_hi_hi/hi/lo/lo_lo (member bands_);
StockSectorComparison gains set_labels_text (pipe-separated labels);
InstControlPanel gains set_grid_rows/set_grid_cols. tools/gen_phase4_props.py
parses the C headers and emits the per-widget Inspector tables (C++ and
Rust) plus the generator capability table from one source of truth.
2026-11-30 14:03:06 +00:00
cnmcdee ddaf4bd5ad Phase 4 flag 13: guard StockParallelChannel/StockPitchfork draw() against 2-anchor state
set_anchors() leaves only 2 anchors, but draw() indexed anchors_[2]
unconditionally (abort under _GLIBCXX_DEBUG; stale slot read otherwise).
ParallelChannel now falls back to the midline for the outer line and
draws only the anchors present; Pitchfork falls back to a trendline
through the two anchors (tines need the third anchor).
2026-11-30 14:01:57 +00:00
cnmcdee 58e01603e8 Phase 3: generator emits set_items string form for ToolBar/MenuBar (fixes case 03 ambiguity) 2026-11-30 13:05:42 +00:00
cnmcdee 1f2c2c9cb4 Phase 3 fixes: xframe_type_key aliases (Calendar/ColorButton/Paned/XSpreadsheet/Canvas/Toplevel/StockChart/ScrollBox/Plot); selftest Shape/ProgressBar expectations 2026-11-30 12:28:00 +00:00
cnmcdee 31e180c2b2 Phase 3: root Inspector window rows + SELFTEST Phase 7c + gen_matrix Phase 3 enum cases 2026-11-30 11:57:57 +00:00
cnmcdee 5135985b93 Phase 3: generator emits new props (Shape as TShape, ToggleButton, root window position/state/border-style) 2026-11-30 11:57:56 +00:00
cnmcdee bf430db324 Phase 3: ToggleButton type, window-level Project fields (border-style, icon, position, window-state), Lazarus togglebutton events 2026-11-30 11:57:55 +00:00
cnmcdee af5af872bd Phase 3: live-apply new Inspector props on the canvas (xframe_core_apply_prop) 2026-11-30 11:57:53 +00:00
cnmcdee 5a5420637a Phase 3: Inspector prop tables for containers and remaining families (Frame, Image, ProgressBar, SpinEdit, Calendar, ColorBox, ListView, TreeView, Notebook, ToggleButton, Splitter, StatusBar, ToolBar, Shape, StringGrid, Toplevel) 2026-11-30 11:57:48 +00:00
cnmcdee b79e44b97d Phase 3: IWidget virtuals for new Inspector setters (49 + 11 rgb colour virtuals) 2026-11-30 11:57:47 +00:00
cnmcdee 6cb1b3d2f2 Phase 3: widget setters for Inspector props (ProgressBar, SpinEdit, Calendar, Image, Notebook, ToggleButton, ListView, TreeView, Splitter, StatusBar, ToolBar, ColorButton, Shape, Spreadsheet, Window) 2026-11-30 11:57:42 +00:00
cnmcdee 751786618b Phase 2 GTK apply_prop fix + SELFTEST 7b + gen_matrix enum fix (C): legacy GTK apply_prop maps Entry password/show-password/alignment and Scale/TrackBar range, remaining Phase 2 props model-only (kills all 78 GLib warnings incl. 2 pre-existing password ones); SELFTEST Phase 7b places one widget of each Phase 2 type, live-applies props, checks stored values and generated setters/stubs; gen_matrix case 03 enum loop now takes the last value (values arrays are not 0-terminated) and case 04 covers every Phase 2 enum value 2026-11-30 11:20:48 +00:00
cnmcdee d3c93d8564 Phase 2 CheckListBox type entry (C): kTypes gains CheckListBox (180x110, phase1) so it is placeable; gen_matrix cases 02/03 cover it automatically 2026-11-30 11:20:48 +00:00
cnmcdee 5ffcc269c6 Phase 2 per-widget props (C): Inspector tables for Button/Entry/Label/CheckBox/RadioButton/ComboBox/ListBox/ScrollBar/Scale/TrackBar/Text/Memo + CheckListBox; live-apply in xframe_core_apply_prop (kind syncs label/modal-result, active syncs ComboBox text only, integral-height snap, scale marks from tick-marks/frequency); generator emits all new setters incl. radio_group vectors, CheckListBox branch, scale marks 2026-11-30 11:20:48 +00:00
cnmcdee 5c10871d15 Phase 2 widget setters (C++): Button default/cancel/kind/modal-result/layout with default ring and kind text; Entry alignment/char-case/numbers-only/hide-selection/auto-select with live filtering and max-length truncation; Label transparent/show-accel-char/focus-control with & stripping; CheckBox allow-grayed/alignment/value-checked/unchecked with right-box draw; RadioButton group-id; ComboBox style/drop-down-count/width/sorted/read-only/max-length/auto-complete/char-case; ListBox sorted; Scale show-sel-range/sel-start/sel-end with range draw; TextView/Memo max-length/alignment/scroll-bars/want-tabs/want-returns/hide-selection with Memo editable/cursor-visible; CheckListBox set_items/set_checked_items/selected-row/sorted; 35 new IWidget virtuals via SFINAE 2026-11-30 09:43:25 +00:00
cnmcdee c4057ced85 Phase 2 Flag 10: Lazarus event names (OnClick, OnChange, OnMouseDown, ...) in the Inspector Events pane; raw pointer/keyboard/double-click events wired through Holder IWidget callbacks (450ms double-click rule); generator find_map/event_callback normalise class names via xframe_type_key so event toggles reach generated code; cursor-changed on Spreadsheet/StringGrid wires on_select_cell (fixes generated XSpreadsheet compile error) 2026-11-30 09:24:07 +00:00
cnmcdee e4d8c985c6 C6: wrap the Inspector props grid in a GtkScrolledWindow
The Inspector window had no scrolled window: props_grid sat directly
in props_box, so every row below the window bottom edge was built but
unreachable -- no scrolling was possible at all. Phase 1 added ~15
rows to the common set (constraints, margins, autosize, tag, anchors,
align), so the lower half of the generic set and the Events section
were invisible and uneditable. The grid now lives in a vertically
scrolling window (verified live: tag, anchor-top/left/right/bottom,
align and Events all reachable).
2026-11-30 08:16:32 +00:00
cnmcdee 4912457fd3 C5: XLFD font resolution skips two-byte fonts; labels no longer vanish at size 16
A wildcard XLFD pattern can match a two-byte font first (e.g. a JIS
fixed font at size 16, which has no misc twin). XDrawString with
1-byte Latin text draws nothing with such a font, so widget labels
vanished whenever the font size resolved to one (size 16 confirmed:
JIS min_byte1=33; Sony and misc 1-byte fonts render fine). Both
font-resolution paths now list every match per pattern and return
the full XLFD name of the first single-byte font
(min_byte1 == max_byte1 == 0): font_xlfd_for (designer canvas) and
the emitted lightgui_pick_font helper (generated apps). Also silences
the -Wmissing-field-initializers warning on the Placed aggregate init
and adds the missing <cstdio> include to the shared core header.
2026-11-30 08:08:49 +00:00
cnmcdee de855e3ebe Phase 1 C4 fix: (void) guards in the generated apply_anchors lambda
05_menus failed the matrix with -Wunused-parameter: a menubar-only
design uses new_w alone, so new_h is unused (and a bottom-only
anchor set would leave new_w unused). The generator now emits
(void)new_w; / (void)new_h; when the lambda body does not use that
size.
2026-11-30 06:23:19 +00:00
cnmcdee 50bc54e530 Phase 1 C4: generic Inspector property set + generator + GTK guard
props.h: common_props gains enabled, visible, font-name/size/bold/
italic/underline/strikeout, hint, show-hint, cursor, tab-order,
tab-stop, min/max-width/height, margin-*/around, autosize, tag,
anchor-top/left/right/bottom and align (None|Top|Bottom|Left|Right|
Client); Entry visibility replaced by password + show-password
(generator still honours legacy visibility=false).

generator.cpp: Anchors/effective_anchors (align maps to anchor
sets), lightgui_pick_font helper (XLFD candidate chain, emitted
only when a widget has a custom font) + conditional <cctype>,
apply_autosize helper (emitted only when a widget has autosize),
per-widget font into emit_widget_styles, Entry password/
show-password, Listbox selection-mode 3 -> set_multi_select,
Menubutton direction, Scrollbar lower/page-increment, Text
cursor-visible, enabled/visible via the IWidget virtuals, a
model-only NOTE comment (hint, tooltip-text, tag, cursor,
tab-order, tab-stop, margins, show-hint, font-underline/
strikeout), the apply_anchors resize lambda (Flag 1) called from
ConfigureNotify, and an apply_autosize call per autosize widget.
New props emit only when non-default, so 02_all_types stays
byte-identical.

main.cpp: GTK apply_prop guard -- the new generic props never reach
g_object_set with unknown names (enabled -> set_sensitive, tab-stop
-> can-focus, min-width/height -> size request, hint -> tooltip,
margin-around -> margin; the rest model-only in the GTK designer).
XFrame Inspector handlers sync the geometry spins after apply
(autosize / constraint clamping can resize the widget).
2026-11-30 05:55:06 +00:00
cnmcdee b74ad1660c Phase 1 C1 fix: draw_triangle_left in the MenuButton demo core copy
The GtkMenuButton standalone demo includes the component-local
(core/xframe_core.h) copy first, which lacked xf::draw_triangle_left
that the direction work (C1) calls -- the demo build failed while
the designer build worked (registry.h includes another component
first, whose core include resolves to the shared copy, and the
include guard then skips this copy). Mirror of draw_triangle_right
in this file.
2026-11-30 05:54:59 +00:00
cnmcdee 2df40841ac Phase 1 C2 fix: placeholder detector uses the callable pattern
GtkEntry::set_placeholder_text takes std::string BY VALUE, so the
exact-signature static_cast detector never matched it and the
Holder set_placeholder_text was a silent no-op. The detector now
uses the callable pattern
decltype(std::declval<T&>().set_placeholder_text(std::declval<std::string>())).
registry.h regenerated; verified by the standalone registry test
(set_placeholder_text now resolves and returns true).
2026-11-30 05:54:57 +00:00
cnmcdee 5d6f4e4456 Phase 1 C3: full C Inspector live-apply in the XFrame canvas core
rebuild_widget_style builds a per-widget w{id}_style (background,
foreground, border-width/color/radius, per-widget font via an XLFD
candidate chain probed with XListFonts) on the placement border style
when one exists; the w style always owns its font so delete_style is
safe, and the border_<id> style is never deleted. Background also
drives set_fill_color on the classes whose draw overrides style fill
(Entry/TextView/Memo/PasswordEntry/SearchEntry). Full apply_prop
dispatch for the generic set plus value/range/step/page/lower/upper/
fraction/digits/active/items/password/direction/cursor-visible/
selection-mode/orientation/draw-value/editable/max-length/placeholder/
wrap/xalign/selectable/inconsistent/show-heading/show-day-names/color,
autosize (resize to fit caption/text, measured with the resolved
style font) and min/max constraint clamping in resize paths and
handle drags. Model-only props (anchors, align, tab order, cursor,
tag, margins, hints, font underline/strikeout) are stored only.
2026-11-30 05:30:59 +00:00
cnmcdee ca9abcc189 Phase 1 C2: IWidget live-apply virtuals for the generic property set
Adds set_value, set_active, set_active_index, set_items,
set_fill_color, set_range, set_digits, set_fraction, set_draw_value,
set_editable, set_max_length, set_placeholder_text, set_wrap,
set_wrap_mode, set_xalign, set_selectable, set_inconsistent,
set_show_heading, set_show_day_names, set_color_rgb,
set_orientation_vertical, set_page_size, set_upper, set_step,
set_lower, set_page_increment, set_password, set_show_password,
set_direction, set_cursor_visible, set_multi_select, and get_text.
Default no-op (false / empty), Holder overrides via SFINAE with
exact-signature static_cast member pointers, so a bool never matches
set_active(int) and a double never matches set_value(int). registry.h
is generated from gen_registry.py; the diff is additions only.
2026-11-30 05:30:57 +00:00
cnmcdee c03f16374c Phase 1 C1: widget setters for Inspector live-apply
ComboBox/ComboBoxText/ListBox set_items (pipe-separated, live canvas
only; generator keeps emitting per-item calls); ListBox multi-select
(set_multi_select, toggle on click, draw highlights the set);
Scrollbar lower_ + page_increment_ (clamp/thumb/Home/End honour lower,
PgUp/PgDn use page-increment); Entry password_ + show_password_ (masked
with * unless revealed); MenuButton direction_ (0=Up 1=Down 2=Left
3=Right 4=None, arrow zone moves to the matching side); TextView
cursor_visible_ (gates the caret). Shared core gains
SStyle_Manager::add_widget_style (per-widget style clone that owns its
font, so delete_style is safe on it; unlike add_border_style, which
shares the base font) and xf::draw_triangle_left.
2026-11-30 05:30:51 +00:00
cnmcdee 37d53180cb Fix 6: Inspector tracks XFrame canvas selection
The Inspector read g_selected, a GTK Item* that real palette placements
never create, so it always showed Window (Root). The canvas now notifies
the designer on selection change (xframe_canvas_set_selection_callback,
fired after press/key/place/select/delete); the Inspector mirrors the
selected widget into g_xframe_sel with geometry spins, property editors
(mapped to the GTK prop/event tables), events and delete, and Inspector
edits live-apply (text/label/caption, enabled, visible via SFINAE
setters on IWidget/Holder) and persist to codegen through per-widget
props/signals stored in the core and copied by snapshot_project().
Also syncs the generator template (gen_registry.py) with the
hand-edited registry.h, verified by byte-identical regeneration.
2026-11-30 04:55:09 +00:00
cnmcdee 127035101e Blank-lines guard test for the generator
The reported symptom (a blank line after every line of generated
source) was investigated Nov 29, 2026 and does NOT reproduce in the
current generator: all 16 gen_matrix cases measure a
blank-after-content ratio of 0.01-0.06 (section separators only),
while double-spaced output scores ~1.0. This guard pins the clean
output so a regression fails loudly: tests/blank_lines_guard.py
checks every generated .cpp/.h under tests/out/ for a
blank-after-content ratio >= 0.20, and run_matrix.sh runs it right
after generation. Scope is source files only (README/Makefile are
short files whose paragraph/rule breaks legitimately score 0.25-0.34).
Verified: PASS on clean output (16 files); FAILs a double-spaced
file at ratio 0.99. Matrix: all 16 cases + guard pass.
2026-11-30 04:21:02 +00:00
cnmcdee 780853bdf2 make install + generator references installed headers
Widgets are header-only (common/ + core/ + components/, 1100
headers), so make install copies them to
PREFIX/include/lightgui (default /usr/local/include/lightgui).
The generator now emits that as the default WIDGETS_DIR /
LIGHTGUI_WIDGETS_DIR instead of the hardcoded /opt/lightgui/widgets;
the -DLIGHTGUI_WIDGETS_DIR / make WIDGETS_DIR override still works.
Verified: make install puts 1100 headers in place; a generated
project builds with -I/usr/local/include/lightgui only and its
Makefile/CMakeLists contain no /opt/lightgui reference.
2026-11-30 03:29:52 +00:00
cnmcdee b66bc2fbf8 Fix -Wunused-parameter in window widgets after drag removal
The drag removal left on_button_release with an unused button
parameter in GtkWindow and GtkApplicationWindow. Add (void)button.
TForm uses button, so it needed no change. Build is 0 warnings.
2026-11-30 03:29:52 +00:00
cnmcdee e126946ac1 Generated app: window widgets can no longer be dragged
Root cause: GtkWindow, TForm and GtkApplicationWindow implemented
title-bar drag-to-move (drag_/dragging_ set on title-bar press,
on_motion moved the whole widget). In the generated app that let the
user drag a window widget around by its title bar -- widgets behaved
like design objects. Verified: dragging Toplevel_001 (GtkWindow) by
its title bar moved it before this change; after, it stays put.
Regular widgets (Button etc.) never moved -- only the three window
widgets had drag code. Removed the drag-to-move from all three
(members, press-to-start-drag, motion move, release clear). The
designer canvas still moves widgets via its own set_bounds path, so
design-time moving is unaffected. The Rust repo shares these widget
headers (/opt/lightgui/widgets), so Rust-generated apps get the fix
too.
2026-11-30 03:15:06 +00:00
cnmcdee 4c079ad6e2 Handles 16px -> 13px, grab area stays generous
Visual handle square kHandleSize 16 -> 13; hit pad stays 8px so the
grab target is 13+2*8 = 29px (was 32px) -- still easy to grab.
Verified: Xvfb screenshot shows 8 handles, 11px orange interior +
1px dark border = 13px total (was 14px interior / 16px total);
SELFTEST PASS.
2026-11-30 02:57:45 +00:00
cnmcdee 035a4f84ae Canvas follows the top-level window on resize
The XFrame canvas (GtkFixed + DrawingArea in the scrolled window)
kept its fixed 800x600 size request when the designer window was
resized, leaving the dark viewport background visible as a border
around it. A size-allocate handler on the viewport now resizes the
canvas (and the project, which shares its size) to the viewport
allocation. The resize is deferred to an idle callback: the
size-allocate signal fires after the viewport has already allocated
its child for this pass, so resizing inside the handler lagged one
resize behind.

Verified geometrically under Xvfb/openbox: canvas X window tracks
the viewport exactly (1150x683 @ 1150x720, 1400x863 @ 1400x900,
900x563 @ 900x600); unfixed build stayed 800x600 at all sizes.
SELFTEST PASS.
2026-11-30 02:27:32 +00:00
cnmcdee 0eed6016c7 codegen: emit alloc_rgb only when a background is set; GtkTreeView Column/Node public
alloc_rgb was emitted unconditionally and warned as unused under
-Wall -Wextra when the project has no background. It is now emitted
only when has_bg. GtkTreeView Column/Node are public because
set_columns/set_roots/get_roots expose them in public signatures.
Rust fixtures were regenerated from this fixed gen_matrix.
2026-11-30 01:58:52 +00:00
cnmcdee f2effa0544 Step 4: rewrite codegen to emit XFrame code
Replace the C++/GTK generator with one that emits a self-contained
XFrame app: XOpenDisplay/XCreateSimpleWindow, SStyle_Manager, one
lg::Holder<T> per placed widget with getter/setter properties, X event
loop dispatching via IWidget (contains/on_button_press/on_key/...),
WM_DELETE_WINDOW close. Output is main.cpp + CMakeLists.txt + Makefile
+ README.md (no indicators.h/drawings.h, no GTK).

Colours: background via verified direct setters where they exist, else
per-widget style clone; foreground ALWAYS via the style clone, because
the widgets set_text_color_rgb only affects the DISABLED text (every
draw() gates it on !enabled_) while enabled text comes from the style.
Class names are namespace-qualified from the registry create_widget()
spelling (165 xframe:: classes, e.g. IndADX; 85 Ind* classes are global).

Verified: make 0 warnings, SELFTEST PASS, palette 547/547,
code_window_tests ALL PASS, make test (547-widget generate + CMake
build) SEAM TEST ALL PASS, demo app renders under Xvfb with colour
proof (button bg red 6051px vs plain 0; label fg blue 185px).
2026-11-30 00:50:19 +00:00
cnmcdee b2b5d01931 Drag threshold 3px -> 8px in the XFrame canvas
Motion below the threshold no longer moves a widget, so a human
double-click (which jiggles a few px) is not swallowed by a drag.
The double-click check already ran before any drag logic (the dbl
branch returns before dragging=true is set); verified, not
restructured. Comments updated to 8px.
2026-11-30 00:42:22 +00:00
cnmcdee e4dda4da5f Step 6: simplify ide to a single process, delete the layout process
ide just launches ./lightgui (builds only with --build via plain make;
the redundant cmake re-build is gone). Delete widgets/layout/ (the
standalone layout executable) and drop it from widgets/CMakeLists.txt.
The file-based IPC header widgets/common/ipc.h is KEPT: it is still
referenced by widgets/palette/main_palette.cpp, which is now dead code
(ide no longer launches the palette process) but was not authorized
for deletion in this step.
2026-11-30 00:42:16 +00:00
cnmcdee c31b4b6a8b Step 5: cut .fdj to XFrame-only, drop the GTK palette (547 XFrame entries)
Palette is XFrame-only: the 36 GTK widgets are gone from designer.ui
and main.cpp (547 entries from xframe_palette.h). .fdj holds only
XFrame widgets; on load a GTK/unknown type is skipped with a clear
message, never migrated. snapshot/load now go through the embedded
XFrame canvas; the GTK Item machinery stays only as selftest
scaffolding (legacy_gtk_snapshot) until it is removed in a follow-up.
Selftest phases 3-8 rewritten for the step-4 XFrame generator (4
files, lg::Holder markers, file-level + XFrame round-trips, GTK skip
rule, bad-file rejection). Palette/converter tests updated to 547;
xframe_palette.h regenerated (one stale comment line). Docs updated.
Also: selftest cleans scratch generation dirs first, and the cleanup
call assigns its return value (void cast does not silence
-Wunused-result for system() on this toolchain).
2026-11-30 00:42:10 +00:00
cnmcdee 54e31d9c45 Step 1: unified XFrame-native canvas (GtkDrawingArea) in the designer
Embed the XFrame canvas in the designer window: a GtkDrawingArea
(double-buffered FALSE) in the GtkFixed canvas area, with the pure-X11
core (xframe_canvas_core) drawing placed widgets on its X window and
the DrawingArea GTK signals (draw, button-press/release, motion,
key-press) driving place/move/resize/delete/select. Palette selection
is wired in-process (no selection/place files); the core owns the
Placed vector and exposes accessors for later save/codegen steps.
Ports the standalone layout interaction (16px handles, 8px hit pad,
450ms double-click rule, Delete/BackSpace/Escape) without modifying
widgets/layout/main_layout.cpp.

The canvas is deliberately NOT a GtkSocket + raw X child window: that
design rendered and interacted correctly but killed the whole app with
an untrapped XInputExtension BadWindow error (GDK X error handler
calls _exit(1)) whenever another toplevel (e.g. the code window) was
closed. Bisected against the parent binary (survives) and a socket
with no child (survives); removing the foreign GdkWindow, setting the
event mask with raw XSelectInput, and forwarding all canvas events to
gtk_main_do_event did not fix it, and without a foreign window GDK
drops canvas events entirely. A GtkDrawingArea keeps the canvas a
normal GDK-managed window (verified with /tmp/proto_da.c). Also fixes
a latent -Wmaybe-uninitialized in GtkInfoBar.h (bx/by/bw/bh).
2026-11-29 23:11:52 +00:00
cnmcdee 4d62bb33d1 Group C getters/setters (Stock) batch 3: StockRelativePerformance StockRenko StockSectorComparison StockSpreadChart StockTextAnnotation StockTrendline StockVerticalLine StockVolumeBars StockVolumeCandles StockVolumeProfile
Expose draw() colours/constants as properties (bg/grid/axis, up/down, line/fill, candle colours, line width) plus view/axis/state accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:39:48 +00:00
cnmcdee 45c915ef61 Group C getters/setters (Stock) batch 2: StockLineChart StockMeasureTool StockMoneyFlowChart StockMultiSymbolChart StockOBVChart StockOHLCBarChart StockOverlayChart StockParallelChannel StockPitchfork StockPriceLabel StockRatioChart StockRectangle
Expose draw() colours/constants as properties (bg/grid/axis, up/down, line/fill, candle colours, line width) plus view/axis/state accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:38:40 +00:00
cnmcdee 9c264c7e63 Group C getters/setters (Stock) batch 1: StockAccumulationDistribution StockBaselineChart StockBrush StockCandlestickChart StockCorrelationView StockEllipse StockFibExtension StockFibRetracement StockHeikinAshi StockHollowCandles StockHorizontalLine StockIndexedComparison
Expose draw() colours/constants as properties (bg/grid/axis, up/down, line/fill, candle colours, line width) plus view/axis/state accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:37:34 +00:00
cnmcdee 2f4726cb61 Group C getters/setters (Stock pilot): StockArrow, StockAreaChart, StockVWAP
Tool + area-chart + VWAP templates: bg/grid/axis colours, candle colours,
line width, line/fill/up/down colours and view/axis accessors with defaults
preserving the pre-pass render (verified pixel-identical vs pristine headers,
setters exercised by harness).
2026-11-29 22:36:02 +00:00
cnmcdee 75b623aaeb Group C getters/setters batch 17: IndYangZhangVolatility IndZLEMA IndZScore IndZeroLagMACD IndZigZag
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:30:46 +00:00
cnmcdee f4f1845308 Group C getters/setters batch 16: IndVolumeDelta IndVolumeOscillator IndVolumePriceTrend IndVolumeRateOfChange IndVolumeWeightedMovingAverage IndVolumeZoneOscillator IndVortex IndWMA IndWaveTrend IndWeightedClose IndWilderVolatilitySystem IndWildersMA IndWilliamsAccumulationDistribution IndWilliamsR IndWoodiePivotPoints
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:30:14 +00:00
cnmcdee 7f1b9d14cf Group C getters/setters batch 15: IndUTBot IndUlcerIndex IndUltimateOscillator IndUpDownRatio IndUpDownVolumeRatio IndVHF IndVIDYA IndVWAP IndVWAPBands IndVWEMA IndVWMA IndVariance IndVolatilityRatio IndVolatilityStop IndVolumeAverage
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:28:50 +00:00
cnmcdee 7d7fc7afe7 Group C getters/setters batch 14: IndT3 IndTDSequential IndTEMA IndTRIMA IndTRIX IndTSF IndTSI IndTSMA IndTTMSqueeze IndTenkanSen IndTrendFlex IndTrendIntensityIndex IndTrueRange IndTwiggsMoneyFlow IndTypicalPrice
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:27:21 +00:00
cnmcdee a11967b68f Group C getters/setters batch 13: IndSmoothedROC IndSpearmanRank IndSpecialK IndStandardError IndStandardPivotPoints IndStdDev IndStochRSI IndStochasticFast IndStochasticFull IndStochasticPop IndStochasticSlow IndSuperSmoother IndSupertrend IndSwenlinTradingOscillator IndSwingIndex
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:22:14 +00:00
cnmcdee f15299eeff Getter/setter pass Group B Misc / X: expose hardcoded draw colours as Srgb properties + missing state accessors (3 widgets, 12 colours, 10 state accessors; TApplicationProperties already fully exposed) 2026-11-29 22:21:47 +00:00
cnmcdee 81b4fc8fa3 Group C getters/setters batch 12: IndRelativeVolatilityIndex IndRelativeVolume IndRogersSatchellVolatility IndRoofingFilter IndSMA IndSMI IndSMMA IndSSLChannel IndSchaffTrendCycle IndSenkouSpanA IndSenkouSpanB IndShannonEntropy IndSineWMA IndSineWave IndSkewness
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:20:49 +00:00
cnmcdee 5fd2314718 Group C getters/setters batch 11: IndQStick IndRMA IndROC IndROCR IndRSI IndRSX IndRSquared IndRWIHigh IndRWILow IndRainbowOscillator IndRangeExpansionIndex IndReflex IndRegressionChannel IndRelativeMomentumIndex IndRelativeVigorIndex
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:19:13 +00:00
cnmcdee 9f989ab359 Getter/setter pass Group B Menus & Toolbars: expose hardcoded draw colours as Srgb properties + missing state accessors (16 widgets, 32 colours, 16 state accessors) 2026-11-29 22:18:14 +00:00
cnmcdee 409ebea011 Group C getters/setters batch 10: IndNATR IndNegativeVolumeIndex IndNormalizedROC IndOBV IndPPO IndPSAR IndParkinsonVolatility IndPercentRank IndPercentageVolumeOscillator IndPercentileRank IndPivotPoint IndPlusDI IndPositiveVolumeIndex IndPrettyGoodOscillator IndPriceMomentumOscillator
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:17:46 +00:00
cnmcdee 671c904f43 Group C getters/setters batch 9: IndMACD IndMACDHistogram IndMACDofRSI IndMAEnvelopeLower IndMAEnvelopeUpper IndMAMA IndMassIndex IndMcGinley IndMedianMA IndMedianPrice IndMinusDI IndMomentum IndMoneyFlowIndex IndMoneyFlowVolume IndMovingAverageRibbon
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:16:13 +00:00
cnmcdee 0cd5c5f034 Group C getters/setters batch 8: IndKeltnerChannels IndKijunSen IndKlingerVolumeOscillator IndKurtosis IndLSMA IndLaguerreFilter IndLaguerreRSI IndLinReg IndLinRegAngle IndLinRegIntercept IndLinRegSlope IndLinearRegressionForecast IndLinearRegressionIntercept IndLinearRegressionOscillator IndLinearRegressionSlope
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:14:32 +00:00
cnmcdee 9492afc9bd Getter/setter pass Group B Views & Lists: expose hardcoded draw colours as Srgb properties + missing state accessors (17 widgets, 54 colours, 33 state accessors) 2026-11-29 22:14:09 +00:00
cnmcdee 26c4a8fc02 Group C getters/setters batch 7: IndHalfTrend IndHighLowRange IndHistoricalVolatility IndHurstExponent IndInertia IndIntradayIntensityIndex IndIntradayMomentumIndex IndInverseFisherTransform IndJurikMovingAverage IndJurikVelocity IndKAMA IndKDJ IndKST IndKairi IndKeltnerBandwidth
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:13:07 +00:00
cnmcdee 9586ccdc79 Group C getters/setters batch 6: IndFRAMA IndFibonacciPivotPoints IndFisherTransform IndFractalDimension IndFractalDimensionIndex IndFractalDown IndFractalUp IndGannHiLoActivator IndGannSwingOscillator IndGarmanKlassVolatility IndGatorOscillator IndGaussianMA IndGopalakrishnanRangeIndex IndGuppyMMA IndHMA
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:11:36 +00:00
cnmcdee 83d278f5e0 Getter/setter pass Group B Choosers: expose hardcoded draw colours as Srgb properties + missing state accessors (10 widgets, 31 colours, 17 state accessors) 2026-11-29 22:10:23 +00:00
cnmcdee e0a515a9f0 Group C getters/setters batch 5: IndEMA IndEaseOfMovement IndEfficiencyRatio IndEhlersDecycler IndEhlersSmoothedRSI IndEhlersSuperSmoother IndEhlersTrendline IndElderForceIndex IndElderImpulse IndElderRayBear IndElderRayBull IndElderSafeZone IndErgodicOscillator IndEvenBetterSineWave IndFAMA
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:10:10 +00:00
cnmcdee 2716a0098a Group C getters/setters batch 4: IndDPO IndDSS IndDX IndDeMarker IndDemandIndex IndDetrendedPriceOscillator IndDisparityIndex IndDominantCycle IndDominantCyclePeriod IndDonchianChannels IndDonchianLower IndDonchianMiddle IndDonchianUpper IndDoubleStochastic IndDynamicMomentumIndex
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:08:41 +00:00
cnmcdee 2c38905b8a Group C getters/setters batch 3: IndChandelierExit IndChandelierExitLong IndChandelierExitShort IndChikouSpan IndChoppinessIndex IndCloseVolatility IndConnorsRSI IndCoppockCurve IndCorrelation IndCorrelationCoefficient IndCovariance IndCumulativeVolumeDelta IndCutlerRSI IndCyberCycle IndDEMA
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:06:57 +00:00
cnmcdee 389875c8e1 Getter/setter pass Group A Buttons: expose hardcoded draw colours as Srgb properties + geometry accessors (24 widgets, 55 colours, 6 state accessors) 2026-11-29 22:05:09 +00:00
cnmcdee 72f2480b14 Getter/setter pass Group A Containers & Layout: expose hardcoded draw colours as Srgb properties + geometry accessors (34 widgets, 88 colours, 20 state accessors) 2026-11-29 22:05:09 +00:00
cnmcdee 60427589ca Getter/setter pass Group A Windows & Dialogs: expose hardcoded draw colours as Srgb properties + missing state accessors (26 widgets, 128 colours, 14 state accessors) 2026-11-29 22:05:08 +00:00
cnmcdee 997357a9cd Group C getters/setters batch 2: IndAwesomeOscillator IndBalanceOfPower IndBearPower IndBollingerBandwidth IndBollingerPercentB IndBullPower IndCCI IndCamarillaPivotPoints IndCenterOfGravity IndChaikinMoneyFlow IndChaikinOscillator IndChaikinVolatility IndChandeForecastOscillator IndChandeKrollStop IndChandeMomentumOscillator
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:04:57 +00:00
cnmcdee d7ae2b9f65 Group C getters/setters batch 1: IndADXR IndALMA IndAcceleratorOscillator IndAccumulationDistributionLine IndAccumulativeSwingIndex IndAdaptiveCyberCycle IndAdaptiveRSI IndAlligatorJaw IndAlligatorLips IndAlligatorTeeth IndAnchoredVWAP IndAroonDown IndAroonOscillator IndAroonUp IndAutocorrelation
Expose draw() colours/constants as properties (bg/grid/axis, line width, grid divisions, candle colours, per-line colour) plus view/period accessors; defaults preserve the pre-pass render (verified pixel-identical vs pristine headers, setters exercised).
2026-11-29 22:03:28 +00:00
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