Files
Muse 43903a71c4 Combined palette: 36 FDesigner + 194 XFrame entries, 230 total (part 5)
The combined IDE palette (FDesigner — Widgets, still its own
top-level window) now lists the 36 FDesigner widgets in their 5
groups AND all 194 XFrame widgets in their 9 section groups.
- designer/src/xframe_palette.h (generated by
  widgets/tools/gen_xframe_palette_data.py from sections.py +
  registry.h): 194 entries with section + registry index.
- designer/src/main.cpp: palette_build_xframe_sections() appends
  the 9 sections below the FDesigner grid — bold header per section,
  one full-width button per widget (16x16 .ico icon + name, same
  tight 20px rows via the existing #palette_window CSS). A long
  section header is 9pt + ellipsized so the grid never widens past
  the 250px window (the first attempt failed the self-test
  horizontal no-scroll check on the header width; fixed).
- Clicking an XFrame entry writes the shared selection file
  (name + registry index, same format as the CWidgets palette),
  so the layout window places the REAL XFrame widget class —
  no placeholders. FDesigner entries place GTK widgets as before.
- Test hooks FDESIGNER_PALETTE_DUMP (entries + window coords) and
  FDESIGNER_PALETTE_SELFTEST (every button through its real clicked
  handler); widgets/tests/test_combined_palette.py proves presence
  (exact section counts 28/34/24/33/28/10/17/16/4, registry indices),
  230/230 selection, and a real-mouse select + place through ./ide.
- Self-test updated: the FDesigner section still fits the 250x780
  window with no scrolling (vertical), XFrame sections scroll
  (expected for 230 entries); 194/194 XFrame icons asserted.
Test: test_combined_palette.py ALL PASS; designer self-test 29/29.
2026-11-25 16:16:44 -05:00

18 lines
1.1 KiB
Makefile

CXX ?= g++
CXXFLAGS ?= -O2 -Wall -Wextra -std=c++17
GTKFLAGS := $(shell pkg-config --cflags gtk+-3.0)
GTKLIBS := $(shell pkg-config --libs gtk+-3.0)
fdesigner: src/main.cpp src/generator.cpp src/cmake_build.cpp src/project_io.cpp src/debugger.cpp src/debugger_ui.cpp src/preferences.cpp src/theme.cpp src/codeview.cpp src/model.h src/props.h src/events.h src/generator.h src/cmake_build.h src/project_io.h src/debugger.h src/debugger_ui.h src/preferences.h src/theme.h src/codeview.h src/xframe_palette.h src/indicators.h src/indicators_embedded.h src/drawings.h src/drawings_embedded.h ui/designer.ui
$(CXX) $(CXXFLAGS) -o $@ src/main.cpp src/generator.cpp src/cmake_build.cpp src/project_io.cpp src/debugger.cpp src/debugger_ui.cpp src/preferences.cpp src/theme.cpp src/codeview.cpp $(GTKFLAGS) $(GTKLIBS)
src/indicators_embedded.h: src/indicators.h tools/embed_indicators.sh
sh tools/embed_indicators.sh src/indicators.h $@
src/drawings_embedded.h: src/drawings.h tools/embed_drawings.sh
sh tools/embed_drawings.sh src/drawings.h $@
clean:
rm -f fdesigner
.PHONY: clean