Commit Graph
4 Commits
Author SHA1 Message Date
cnmcdee eeccee6c9a Phase 2: property tables (props.py) generated from C props.h
- tools/gen_props.py parses /opt/lightgui/src/props.h (common_props +
  props_for tables, enum labels/values) and the 547-kind palette,
  emitting lightgui/props.py; REQUIRED spot-checks enforce the
  proposal SS2.1-SS2.10 lists against the C tables.
- Every kind gets the 43-prop generic set (Name, geometry, Color,
  Font Name/Size/Color/Style, Border, Enabled, Visible, Hint,
  ShowHint, Cursor, TabOrder, TabStop, Constraints, BorderSpacing,
  AutoSize, Tag, Align, Anchors); 38 family custom tables cover the
  generic widgets. Stock/Instrumentation get the generic set only
  (Phase 6 adds theirs via register_custom_table()).
- Lazarus display names + model_only flags (stored, generator
  comments, no live canvas effect); validate() canonicalises
  bool/int/double/enum/color or raises ValueError.
2026-12-01 02:35:39 +00:00
cnmcdee ff1cadbd80 Phase 1 fixes: import cairo for the draw signal, Gdk version, hint wrap
- canvas.py imports cairo so the draw signal marshalling works
  (needs python3-gi-cairo on the server; installed 3.56.2-1)
- app.py: gi.require_version Gdk + hint label wraps in the palette pane
- README: python3-gi-cairo is a required package
2026-12-01 02:28:36 +00:00
cnmcdee cef7988a84 Phase 1: XFrame core + canvas + palette data + project model
- xframe/core.py: Widget base, 14 archetype draw classes (Cairo),
  registry over all 547 kinds; 13px handles, 8px grab pad, 450ms
  double-click, 8px drag threshold, 24x16 resize floor (C/Rust)
- xframe/canvas.py: CanvasState state machine (display-free, tested)
  + Gtk.DrawingArea shell; placement, selection, double-click
  handles, drag, handle resize, Delete/Escape, viewport tracking
- xframe/palette.py: generated from Rust registry_gen.rs, cross-checked
  vs C xframe_palette.h; 547 entries in 11 sections + 36 legacy
  model.h type keys as LEGACY_TYPES (583 total in the Rust data file)
- model.py: Project + .fdj save/load byte-compatible with the C writer
- app.py: main window with filterable palette list + canvas + status bar
- tests/: 62 stdlib unittest tests
2026-12-01 02:23:54 +00:00
cnmcdee e2ee6f8bc3 Phase 0 skeleton: PyGObject/GTK IDE chrome, XFrame-native canvas (Python port) 2026-12-01 02:16:44 +00:00