Assemble docs/instrumentation.md from the 6 group fragments (66 widget entries, 66 picture links, overview + shared InstData.h model + behaviour + full test summary). Wire the assembled doc into tools/link_widget_pics.py and tools/verify_doc_examples.py. Fix the InstLampTestButton example include (../InstPanelLampRed/... like the demo main). Fix the XFrame palette accent table (10 -> 11 entries): Instrumentation header is now amber 245,158,11, pixel-verified. README counts to 547/583; root section table synced from widgets/README.md (gen_registry only regenerates the latter). Pictures: 547/547 PASS, composite 24x23 5868x4842 0 blank. Battery: combined palette 583/583, palette 547/547, PLACE_ALL 547/547, draw 547/547, examples 547/547, build 0 warnings, seam 136 mapped / 411 unmapped, group drivers 8/8 + 12/12 + 12/12 + 38/38 + F/G ALL PASS. Attribution: XFrame.
41 KiB
CWidgets IDE — Visual Designer + 547 Hand-Drawn X11 Widgets + GDB Debugger
One repository, one IDE:
- Design a form in FDesigner (
designer/) — a C++/GTK 3 visual designer with a separate code window, a tight widget palette, and a built-in GDB stepping debugger. - Place widgets from XFrame (
widgets/) — a pure X11/Xlib hand-drawn C++17 widget library: 547 widgets (194 original + 287 Stock Market + 66 Instrumentation), drawn with raw Xlib calls. No GTK, no Qt, no toolkit at all — despite theGtk*names. - Generate compilable C++/GTK code, build it with CMake, and debug it: breakpoints in the gutter, a red paused line, and automatic variable inspection.
Read the full guide: docs/ide.md — how the IDE works, the end-to-end workflow (design → place → generate → build → debug), and troubleshooting. The designer's own design notes are in designer/DESIGN.md; the widget API reference is in docs/index.md.
Status note: the combined top-level build (
make) and the single./idelauncher are landed; the per-half builds below still work on their own. Combined tree: FDesigner round-3 (cfreeHEAD310ff34, round 3 + palette icons) + CWidgets HEADab3a2a3, integrated in this repo. See docs/ide.md for the full guide.
Quickstart
Prerequisites: a C++17 compiler (g++), CMake >= 3.20, X11 dev
headers (libx11-dev), GTK 3 dev files (libgtk-3-dev), and gdb.
Everything needs an X display — a real X server or Xvfb.
# Build both halves, then start the IDE (designer + palette + layout,
# each as its own top-level window)
make
./ide
# ./ide builds anything missing on its own; `make` alone just builds.
# `./ide --build` forces a rebuild; `./ide --no-xframe` is designer-only.
Per-half builds (verified today):
# Designer: plain Makefile — builds designer/fdesigner, zero warnings
cd designer && make
# XFrame library: CMake — all 547 demos + palette + layout, 0 warnings
cd widgets && cmake -S . -B build && cmake --build build -j"$(nproc)"
Launch each half:
./designer/fdesigner # designer + palette + code windows
./widgets/build/palette/cwidgets_palette # XFrame palette (547 widgets)
./widgets/build/layout/cwidgets_layout # XFrame layout window
Under Xvfb:
Xvfb :99 -screen 0 1920x1080x24 &
DISPLAY=:99 ./designer/fdesigner
What you get
| Piece | Where | What it does |
|---|---|---|
| Designer | designer/ |
GTK 3 canvas designer — place widgets, edit properties, Events pane, save .fdj JSON projects |
| Widget palette | designer/ (View → Widget Palette) |
Separate top-level window, 250x780, 583 entries: 36 tight FDesigner buttons (Tk set + 20 Lazarus-style widgets) + all 547 XFrame widgets in their 11 sections, each with its 16x16 icon; scrolls |
| Code window | designer/ (View → Code View) |
Separate top-level window, 1000x700 — generated C++ with line numbers, red-dot breakpoints, folding, themes, automatic variable inspection |
| Debugger | designer/ (Debug → Open Debugger…) |
Real GDB/MI stepping debugger: Run, Continue (F5), Step Over (F10), Step Into (F11), Step Out, Stop, Restart; plain / conditional / logpoint breakpoints with ignore counts and groups; locals, watches, stack |
| XFrame library | widgets/ |
547 hand-drawn X11 widgets — see below |
| XFrame palette | widgets/palette/ |
cwidgets_palette — all 547 widgets in 11 collapsible sections with 16x16 icons |
| XFrame layout | widgets/layout/ |
cwidgets_layout — live design surface for real XFrame widget instances |
The workflow, in one line: design a form → place widgets from a palette → generate C++/GTK code → build with CMake → debug it (breakpoint pause, red line, automatic variables). Full walkthrough in docs/ide.md.
XFrame — the widget library (547)
XFrame — a pure X11/Xlib hand-drawn C++17 widget library.
Every widget is drawn by hand with raw Xlib calls (XFillRectangle, XFillArc,
XDrawLine, XDrawString, ...). There is no GTK here, no Qt, no toolkit at all —
despite the Gtk* names. The Gtk* components recreate the look of GTK
widgets (GtkButton, GtkCalendar, GtkTreeView, ...) as standalone X11 classes;
the T* components are the same idea in Lazarus/Delphi style (TButton,
TMemo, TStringGrid, ...); plus XGraph and XSpreadsheet.
The 10th section is Stock Market: 287 widgets — 8 OHLC/price charts,
15 comparative-plotting and volume widgets, 14 drawing/annotation widgets,
and the top 250 technical indicators (85 trend, 85 momentum, 80 volatility/
volume/other), each a real named indicator with a real formula. They all
render from one shared xframe::OHLCVSeries type and run on deterministic
seeded synthetic data (xframe::make_seeded_series, no network, no live
market data). Full documentation: docs/stock-market.md.
The shared core is widgets/core/xframe_core.h — display/screen/window boilerplate,
the GC-as-pen drawing primitives, a Canvas class, an SStyle style manager,
and the polished-widget construction from the "Writing Your Own X-11
Framework Basics" articles on hotconfig.com (Parts 1–4).
Components (547)
- GtkAboutDialog
- GtkAccelLabel
- GtkActionBar
- GtkAppChooserButton
- GtkAppChooserDialog
- GtkAppChooserWidget
- GtkApplicationWindow
- GtkAspectFrame
- GtkAssistant
- GtkBox
- GtkButton
- GtkButtonBox
- GtkCalendar
- GtkCellView
- GtkCenterBox
- GtkCheckButton
- GtkCheckMenuItem
- GtkColorButton
- GtkColorChooserDialog
- GtkColorChooserWidget
- GtkColorDialogButton
- GtkColumnView
- GtkComboBox
- GtkComboBoxText
- GtkDialog
- GtkDrawingArea
- GtkDropDown
- GtkEditableLabel
- GtkEntry
- GtkEntryCompletion
- GtkEventBox
- GtkExpander
- GtkFileChooserButton
- GtkFileChooserDialog
- GtkFileChooserWidget
- GtkFixed
- GtkFlowBox
- GtkFontButton
- GtkFontChooserDialog
- GtkFontChooserWidget
- GtkFrame
- GtkGLArea
- GtkGrid
- GtkGridView
- GtkHeaderBar
- GtkIconView
- GtkImage
- GtkInfoBar
- GtkInscription
- GtkInvisible
- GtkLabel
- GtkLayout
- GtkLevelBar
- GtkLinkButton
- GtkListBox
- GtkListView
- GtkLockButton
- GtkMediaControls
- GtkMenu
- GtkMenuBar
- GtkMenuButton
- GtkMenuItem
- GtkMessageDialog
- GtkModelButton
- GtkNotebook
- GtkOverlay
- GtkPaned
- GtkPasswordEntry
- GtkPicture
- GtkPlacesSidebar
- GtkPopover
- GtkPrintUnixDialog
- GtkProgressBar
- GtkRadioButton
- GtkRadioMenuItem
- GtkRevealer
- GtkScale
- GtkScaleButton
- GtkScrollbar
- GtkScrolledWindow
- GtkSearchBar
- GtkSearchEntry
- GtkSeparator
- GtkSeparatorMenuItem
- GtkShortcutsWindow
- GtkSpinButton
- GtkSpinner
- GtkStack
- GtkStackSidebar
- GtkStackSwitcher
- GtkStatusbar
- GtkSwitch
- GtkTextView
- GtkToggleButton
- GtkToggleToolButton
- GtkToolButton
- GtkToolbar
- GtkTreeView
- GtkVideo
- GtkViewport
- GtkVolumeButton
- GtkWindow
- IndADX
- IndADXR
- IndALMA
- IndAPO
- IndATR
- IndAcceleratorOscillator
- IndAccumulationDistributionLine
- IndAccumulativeSwingIndex
- IndAdaptiveCyberCycle
- IndAdaptiveRSI
- IndAlligatorJaw
- IndAlligatorLips
- IndAlligatorTeeth
- IndAnchoredVWAP
- IndAroonDown
- IndAroonOscillator
- IndAroonUp
- IndAutocorrelation
- IndAwesomeOscillator
- IndBalanceOfPower
- IndBearPower
- IndBollingerBands
- IndBollingerBandwidth
- IndBollingerPercentB
- IndBullPower
- IndCCI
- IndCamarillaPivotPoints
- IndCenterOfGravity
- IndChaikinMoneyFlow
- IndChaikinOscillator
- IndChaikinVolatility
- IndChandeForecastOscillator
- IndChandeKrollStop
- IndChandeMomentumOscillator
- IndChandelierExit
- IndChandelierExitLong
- IndChandelierExitShort
- IndChikouSpan
- IndChoppinessIndex
- IndCloseVolatility
- IndConnorsRSI
- IndCoppockCurve
- IndCorrelation
- IndCorrelationCoefficient
- IndCovariance
- IndCumulativeVolumeDelta
- IndCutlerRSI
- IndCyberCycle
- IndDEMA
- IndDPO
- IndDSS
- IndDX
- IndDeMarker
- IndDecycler
- IndDemandIndex
- IndDetrendedPriceOscillator
- IndDisparityIndex
- IndDominantCycle
- IndDominantCyclePeriod
- IndDonchianChannels
- IndDonchianLower
- IndDonchianMiddle
- IndDonchianUpper
- IndDoubleStochastic
- IndDynamicMomentumIndex
- IndEMA
- IndEaseOfMovement
- IndEfficiencyRatio
- IndEhlersDecycler
- IndEhlersSmoothedRSI
- IndEhlersSuperSmoother
- IndEhlersTrendline
- IndElderForceIndex
- IndElderImpulse
- IndElderRayBear
- IndElderRayBull
- IndElderSafeZone
- IndErgodicOscillator
- IndEvenBetterSineWave
- IndFAMA
- IndFRAMA
- IndFibonacciPivotPoints
- IndFisherTransform
- IndFractalDimension
- IndFractalDimensionIndex
- IndFractalDown
- IndFractalUp
- IndGannHiLoActivator
- IndGannSwingOscillator
- IndGarmanKlassVolatility
- IndGatorOscillator
- IndGaussianMA
- IndGopalakrishnanRangeIndex
- IndGuppyMMA
- IndHMA
- IndHalfTrend
- IndHighLowRange
- IndHistoricalVolatility
- IndHurstExponent
- IndInertia
- IndIntradayIntensityIndex
- IndIntradayMomentumIndex
- IndInverseFisherTransform
- IndJurikMovingAverage
- IndJurikVelocity
- IndKAMA
- IndKDJ
- IndKST
- IndKairi
- IndKeltnerBandwidth
- IndKeltnerChannels
- IndKijunSen
- IndKlingerVolumeOscillator
- IndKurtosis
- IndLSMA
- IndLaguerreFilter
- IndLaguerreRSI
- IndLinReg
- IndLinRegAngle
- IndLinRegIntercept
- IndLinRegSlope
- IndLinearRegressionForecast
- IndLinearRegressionIntercept
- IndLinearRegressionOscillator
- IndLinearRegressionSlope
- IndMACD
- IndMACDHistogram
- IndMACDofRSI
- IndMAEnvelopeLower
- IndMAEnvelopeUpper
- IndMAMA
- IndMassIndex
- IndMcGinley
- IndMedianMA
- IndMedianPrice
- IndMinusDI
- IndMomentum
- IndMoneyFlowIndex
- IndMoneyFlowVolume
- IndMovingAverageRibbon
- IndNATR
- IndNegativeVolumeIndex
- IndNormalizedROC
- IndOBV
- IndPPO
- IndPSAR
- IndParkinsonVolatility
- IndPercentRank
- IndPercentageVolumeOscillator
- IndPercentileRank
- IndPivotPoint
- IndPlusDI
- IndPositiveVolumeIndex
- IndPrettyGoodOscillator
- IndPriceMomentumOscillator
- IndQStick
- IndRMA
- IndROC
- IndROCR
- IndRSI
- IndRSX
- IndRSquared
- IndRWIHigh
- IndRWILow
- IndRainbowOscillator
- IndRangeExpansionIndex
- IndReflex
- IndRegressionChannel
- IndRelativeMomentumIndex
- IndRelativeVigorIndex
- IndRelativeVolatilityIndex
- IndRelativeVolume
- IndRogersSatchellVolatility
- IndRoofingFilter
- IndSMA
- IndSMI
- IndSMMA
- IndSSLChannel
- IndSchaffTrendCycle
- IndSenkouSpanA
- IndSenkouSpanB
- IndShannonEntropy
- IndSineWMA
- IndSineWave
- IndSkewness
- IndSmoothedROC
- IndSpearmanRank
- IndSpecialK
- IndStandardError
- IndStandardPivotPoints
- IndStdDev
- IndStochRSI
- IndStochasticFast
- IndStochasticFull
- IndStochasticPop
- IndStochasticSlow
- IndSuperSmoother
- IndSupertrend
- IndSwenlinTradingOscillator
- IndSwingIndex
- IndT3
- IndTDSequential
- IndTEMA
- IndTRIMA
- IndTRIX
- IndTSF
- IndTSI
- IndTSMA
- IndTTMSqueeze
- IndTenkanSen
- IndTrendFlex
- IndTrendIntensityIndex
- IndTrueRange
- IndTwiggsMoneyFlow
- IndTypicalPrice
- IndUTBot
- IndUlcerIndex
- IndUltimateOscillator
- IndUpDownRatio
- IndUpDownVolumeRatio
- IndVHF
- IndVIDYA
- IndVWAP
- IndVWAPBands
- IndVWEMA
- IndVWMA
- IndVariance
- IndVolatilityRatio
- IndVolatilityStop
- IndVolumeAverage
- IndVolumeDelta
- IndVolumeOscillator
- IndVolumePriceTrend
- IndVolumeRateOfChange
- IndVolumeWeightedMovingAverage
- IndVolumeZoneOscillator
- IndVortex
- IndWMA
- IndWaveTrend
- IndWeightedClose
- IndWilderVolatilitySystem
- IndWildersMA
- IndWilliamsAccumulationDistribution
- IndWilliamsR
- IndWoodiePivotPoints
- IndYangZhangVolatility
- IndZLEMA
- IndZScore
- IndZeroLagMACD
- IndZigZag
- StockAccumulationDistribution
- StockAreaChart
- StockArrow
- StockBaselineChart
- StockBrush
- StockCandlestickChart
- StockCorrelationView
- StockEllipse
- StockFibExtension
- StockFibRetracement
- StockHeikinAshi
- StockHollowCandles
- StockHorizontalLine
- StockIndexedComparison
- StockLineChart
- StockMeasureTool
- StockMoneyFlowChart
- StockMultiSymbolChart
- StockOBVChart
- StockOHLCBarChart
- StockOverlayChart
- StockParallelChannel
- StockPitchfork
- StockPriceLabel
- StockRatioChart
- StockRectangle
- StockRelativePerformance
- StockRenko
- StockSectorComparison
- StockSpreadChart
- StockTextAnnotation
- StockTrendline
- StockVWAP
- StockVerticalLine
- StockVolumeBars
- StockVolumeCandles
- StockVolumeProfile
- TActionList
- TApplicationProperties
- TArrow
- TBevel
- TBitBtn
- TButton
- TButtonPanel
- TCalcEdit
- TCalculatorDialog
- TCalendar
- TCalendarDialog
- TCheckBox
- TCheckComboBox
- TCheckGroup
- TCheckListBox
- TColorBox
- TColorButton
- TColorDialog
- TColorListBox
- TComboBox
- TComboBoxEx
- TControlBar
- TCoolBar
- TDateEdit
- TDateTimePicker
- TDirectoryEdit
- TDrawGrid
- TEdit
- TEditButton
- TFileListBox
- TFileNameEdit
- TFilterComboBox
- TFindDialog
- TFloatSpinEdit
- TFlowPanel
- TFontDialog
- TForm
- TFrame
- TGroupBox
- THeaderControl
- TImage
- TImageList
- TLabel
- TLabeledEdit
- TListBox
- TListView
- TMainMenu
- TMaskEdit
- TMemo
- TNotebook
- TOpenDialog
- TOpenPictureDialog
- TPageControl
- TPageSetupDialog
- TPaintBox
- TPairSplitter
- TPanel
- TPopupMenu
- TPopupNotifier
- TPrintDialog
- TPrinterSetupDialog
- TProgressBar
- TRadioButton
- TRadioGroup
- TReplaceDialog
- TSaveDialog
- TSavePictureDialog
- TScrollBar
- TScrollBox
- TSelectDirectoryDialog
- TShape
- TShellListView
- TShellTreeView
- TSpeedButton
- TSpinEdit
- TSplitter
- TStaticText
- TStatusBar
- TStringGrid
- TTabControl
- TTaskDialog
- TTimeEdit
- TTimer
- TToggleBox
- TToolBar
- TTrackBar
- TTrayIcon
- TTreeView
- TUpDown
- TValueListEditor
- XGraph
- XSpreadsheet
### The shared core
All 547 per-component copies of `core/xframe_core.h` are byte-identical
(md5 `26f4ee62f0970237e2f0546c0a2ded69`, 18,828 bytes), so one canonical copy
is hoisted to top-level `widgets/core/xframe_core.h`.
**Standalone builds are NOT broken by this:** the per-component copy is kept
in every `widgets/components/<Name>/core/` exactly as shipped, and each widget
header includes `"core/xframe_core.h"` relative to its own directory, so a
component dir copied out on its own still builds with no changes. The
top-level `widgets/core/` copy is the canonical reference for the whole repo; the
top-level build uses each component's own copy (identical bytes).
### Build (widgets half)
Prerequisites: CMake >= 3.20, a C++17 compiler, X11 dev headers
(`libx11-dev` on Debian/Ubuntu).
Build all 547 demos:
```sh
cd widgets
cmake -S . -B build
cmake --build build -j"$(nproc)"
Binaries land in widgets/build/components/<Name>/<Name>.
Build a single component standalone:
cmake -S widgets/components/GtkButton -B /tmp/build-button
cmake --build /tmp/build-button
Or build just one target from the top-level tree:
cmake --build widgets/build --target GtkCalendar
Run a demo
Demos need an X display (real X server or Xvfb):
./widgets/build/components/GtkButton/GtkButton
Each demo opens an 800x600 window, draws its widget, and handles expose, key-press, mouse button press/release, pointer motion, and window-close (WM_DELETE_WINDOW). Close the window (or press a key, depending on the demo) to exit.
Under Xvfb:
Xvfb :99 -screen 0 1920x1080x24 &
DISPLAY=:99 ./widgets/build/components/GtkButton/GtkButton
Test status (widgets)
Tested Nov 26, 2026 on the VPS (Debian 12, g++ 12.2, Xvfb :99 1280x1024) with the
autonomous driver widgets/test-driver/run_tests.py — one demo at a time: open window, screenshot
to widgets/screenshots/<Name>.png, mouse sweep (hover), mousedown/mouseup at the widget centre
(click), Tab + letter (key), WM_DELETE_WINDOW (clean exit). Full table:
widgets/test-results/results.md (raw CSV:
widgets/test-results/results.csv, build log:
widgets/test-results/build.log).
Original 194 widgets (measured Nov 26, 2026 by widgets/test-driver/run_tests.py):
- All 194 demos build — clean from-scratch build, 0 errors, 0 warnings with
-Wall -Wextra - 193/194 demos draw (window opens, widget renders) — the one exception is GtkInvisible, which is non-visual by design
- 125/194 demos show a visible click response (the other 69 are display-only widgets or containers that ignore a centre click by design; none crashed or hung)
- 12/194 demos show a visible hover response — the other 182 implement
on_motionas a no-op by design (only 5 headers even declare ahovered_member) - All 194 demos survive Tab + letter keypresses
- All 194 demos exit cleanly (rc 0 on WM_DELETE_WINDOW)
- Palette self-test 547/547 selections OK; layout placement 547/547 and draw 547/547 (all 547 alive at once) —
widgets/test-results/palette_layout_results.csv - Composite contact-sheet PNG:
widgets/screenshots/all_widgets.png— the 194-demo sheet was 3428x2952, 14x14 grid, 194 labelled tiles; the 547-widget sheet (24x23 grid, ceil(sqrt(547)) columns, 5868x4842, 547 labelled tiles, 0 blank, plus one PNG per demo inwidgets/screenshots/)
Stock Market section (287 widgets, Nov 26, 2026, each group driver re-derives its counts from the fresh artifacts): OHLC 8/8, comparative/volume 15/15 (75/75 cells), drawing 14/14, trend indicators 85/85 (smoke 97/97), momentum indicators 85/85 (smoke 97/97), volatility/volume/other indicators 80/80 — every demo builds with -Wall -Wextra, 0 warnings, and draws + clicks + keys + exits cleanly under Xvfb. Full tables in widgets/test-results/.
Bugs fixed during testing (see widgets/test-results/results.md for detail): clean-exit heap
corruption in SStyle_Manager::~SStyle_Manager (XFreeFont after XCloseDisplay — crashed
all 194 original demos on exit); GtkOverlay link failure (static const int odr-use);
TPopupMenu demo never called popup() (blank window); 7 -Wall -Wextra warnings fixed.
Reproduce:
cd widgets
cmake -S . -B build && cmake --build build -j4 # 0 warnings with -Wall -Wextra
Xvfb :99 -screen 0 1280x1024x24 &
DISPLAY=:99 python3 test-driver/run_tests.py # writes test-results/results.csv
Documentation (widgets)
Full API documentation for all 547 widgets lives in docs/
— one page per section, plus the shared contract:
docs/index.md— the widget contract every widget shares (identical constructor, geometry, visibility/enabled, style, drawing, the four event handlers, signals), the minimal program skeleton, and tool summaries.docs/windows-dialogs.md— Windows & Dialogs (28)docs/containers-layout.md— Containers & Layout (34)docs/buttons.md— Buttons (24)docs/display.md— Display (33)docs/text-entry.md— Text & Entry (28)docs/choosers.md— Choosers (10)docs/views-lists.md— Views & Lists (17)docs/menus-toolbars.md— Menus & Toolbars (16)docs/misc-x.md— Misc / X (4)docs/stock-market.md— Stock Market (287): OHLC charts, comparative/volume, drawing/annotation, and the 250 indicators
Every widget gets its own subsection: what it is and what it draws, its
constructor, its widget-specific methods/properties/signals (with exact
signatures from the header), a minimal working example, and notes on
quirks. Every example in the docs compiles — all 547 were built with
g++ -std=c++17 -I widgets/components/<Name> -lX11 and are byte-identical to the
code blocks in the pages. Where the header leaves something unclear
(unnamed int constants, a signal with no call site, a return value the
header never documents), the docs say so instead of inventing an answer.
Selector palette
widgets/palette/ builds cwidgets_palette (included in the top-level build;
binary at widgets/build/palette/cwidgets_palette). It is itself a pure X11/XFrame
window listing all 547 widgets in their 11 sections, each with its 16x16
icon and name. Section headers are collapsible; scroll with the wheel or
keyboard; Up/Down moves the selection; click (or Enter) selects a widget
and writes the choice to the shared selection file
(/tmp/cwidgets-selection.txt) for the layout tool. Self-test: 547/547
selections OK. Screenshot: widgets/screenshots/palette.png.
cmake --build widgets/build --target cwidgets_palette
./widgets/build/palette/cwidgets_palette
Layout window
widgets/layout/ builds cwidgets_layout (binary at
widgets/build/layout/cwidgets_layout). It instantiates the real XFrame widget
classes via the type-erased factory in widgets/common/registry.h (generated by
widgets/tools/gen_registry.py — do not edit by hand): click to place the widget
selected in the palette, drag to move it, Delete to remove it, s to
save/load the layout from a file, q to quit. Double-click a placed
widget and 8 orange resize handles appear (corners + edges); drag a handle
to resize live; Escape dismisses the handles, Delete removes the widget.
Placement 547/547 PASS, draw 547/547 PASS, all 547 widgets alive at once.
Screenshots: widgets/screenshots/layout.png,
widgets/screenshots/layout_resize_handles.png,
widgets/screenshots/layout_all.png.
cmake --build widgets/build --target cwidgets_layout
./widgets/build/layout/cwidgets_layout
Icons
widgets/icons/<Name>.ico — one real 16x16 ICO per widget, purpose-drawn glyphs
generated by widgets/tools/gen_icons.py (70 glyph kinds, section accent colours
— not downscaled screenshots). Verified by widgets/tools/verify_icons.py:
547/547 parse as 16x16, all non-blank.
Screenshots (widgets)
widgets/screenshots/all_widgets.png— composite contact sheet (194-demo sheet was 3428x2952; 547-widget sheet, 24x23 grid, 5868x4842, 547 tiles, 0 blank)widgets/screenshots/palette.png— selector palettewidgets/screenshots/layout.png— layout windowwidgets/screenshots/layout_resize_handles.png— resize handles on GtkButtonwidgets/screenshots/layout_all.png— all 547 widgets placed at oncewidgets/screenshots/<Name>.png— one PNG per demo (547; all rendered)
The seam: XFrame layout → designer project
The two halves are genuinely connected at one seam —
widgets/tools/layout_to_fdesigner.py. Place widgets in the XFrame
layout window, save the layout (s writes /tmp/cwidgets-layout.txt),
and convert it:
python3 widgets/tools/layout_to_fdesigner.py /tmp/cwidgets-layout.txt /tmp/layout.fdj
Then open /tmp/layout.fdj in the designer (File → Open project)
and use the normal flow: File → Generate C++/GTK…, Build with
CMake, debug with the stepping debugger. 136 of the 547 XFrame
widgets map to a real GTK counterpart (35 are nearest-match
approximations, e.g. GtkCalendar → DateTimePicker); 411 — the
58 original XFrame-only widgets (dialogs, choosers, menus) plus all
287 Stock Market widgets plus all 66 Instrumentation widgets — have
no designer equivalent and are reported, never forced into a wrong type.
The generated app re-creates the widgets as GTK widgets; it does not
link XFrame classes, and layout edits do not flow back (re-run the
converter). Proved end to end by
widgets/tests/test_layout_to_fdesigner.py (make test): convert →
real .fdj load → real code generation (277 files for the 136 mapped widgets) →
CMake build of the generated project. Full honest accounting in
docs/ide.md.
FDesigner — the designer half
FDesigner is a C++/GTK 3 visual designer (designer/): place widgets
on a canvas at absolute positions, edit their properties, generate
runnable C++/GTK code. The designer itself is GTK, defined in a Glade
.ui file, and the generated code is GTK too — no Qt anywhere.
- Canvas + palette: the design window (1150x720) plus a separate
combined palette window (
FDesigner — Widgets, 250x780, 583 entries: the 36 FDesigner buttons in their grouped sections, then all 547 XFrame widgets in their 11 section groups, each with its 16x16 icon; the window scrolls). Click an FDesigner entry to add it to the canvas; drag to move, Delete to remove. Click an XFrame entry to hand it to the layout window, which places the real XFrame widget (see the seam). Widgets: the original Tk set (Button, Label, Entry, CheckButton, RadioButton, ComboBox, ListBox, Frame, Scale, Text, StockChart, Spreadsheet, Toplevel, Canvas, Scrollbar, MenuButton) plus 20 Lazarus-style widgets (Memo, GroupBox, Panel, Image, Shape, Notebook, ScrollBox, Splitter, StatusBar, ToolBar, MenuBar, SpinEdit, TrackBar, ProgressBar, DateTimePicker, ColorBox, ListView, TreeView, StringGrid, Plot).StockChartplots candle charts from CSV with 250 technical indicators, drawings, and comparisons. - Code generation: File → Generate C++/GTK… emits an all-code
project — no
.uifile — with every widget a standalone class in its own.h/.cpppair, plus aCMakeLists.txtand aMakefile(executableapp). Build a generated project with CMake (cmake -S . -B build && cmake --build build) or from the designer (File → Build with CMake… / Open CMake Project… / CMake Settings…). - Code window: View → Code View — separate 1000x700 window
with line numbers, red-dot breakpoints (click the gutter), folding
(
#region,{}blocks, comments,#ifblocks), and four colour themes (Light, Dark, Monokai, Solarized Dark — View → Color Theme…). Edit → Preferences… sets the interface and code fonts. - Debugger: Debug → Open Debugger… — a real GDB/MI stepping
debugger. Breakpoints (plain / conditional / logpoint, ignore
counts, groups) persist across runs. When it pauses, the code
window's paused line goes red (
#c00000+ white text + gutter arrow, Lazarus-style) and the automatic variable inspection pane shows the in-scope locals — refreshed on every stop/step from the one shared GDB session (200 ms poll), never stale. - Events: the Events pane connects any natural GTK signal per
widget; the generator emits a stub handler +
g_signal_connect.
Build it: cd designer && make → ./fdesigner. Self-test:
FDESIGNER_SELFTEST=1 ./fdesigner (29 items, all pass). Full design
notes: designer/DESIGN.md. Full IDE guide:
docs/ide.md.
Test status (combined IDE, re-verified in the integration pass):
make clean && make, zero warnings; self-test 29/29; debugger
console 37/37, GTK 7/7; widget tests 5/5; font tests 20/20; theme
tests 59/59; event handlers 6/6 + runtime 41/41; CMake probe 31/31,
script 4/4; code-window suite all pass; palette-window tests 16/16;
palette icons 13/13; matrix 21/21; combined palette self-test 583/583
- real-mouse place of GtkAboutDialog; palette/layout 547/547 place, 547/547 draw; seam test all pass (136 mapped, 411 unmapped, generated app window appears under X).
Screenshots (designer)
designer/screenshots/ — 16 shots at 2560x1440 under Xvfb:
01_designer.png— designer + palette,02_props_edit.png— property editing,03_codeview.png— code view (Monokai, red dot, fold),04_debugger.png— debugger window,05_dbg_settings.png— debugger settings,06_prefs.png— font preferences,07_cmake.png— CMake build,08_lazarus.png— Lazarus widgets,09_app.png— generated app,10_showcase.png— showcase,11_three_windows.png— palette + code + design windows together,12_code_paused.png— code window paused on a breakpoint (red line),13_palette.png— tight palette,14_three_windows_paused.png— all three windows + debugger paused,15_palette_icons.png— combined palette with icons,16_three_windows_icons.png— all three windows with icons.
Screenshots (combined IDE)
screenshots/ — 2560x1440 under Xvfb:
ide_all.png— all five IDE windows together,ide_designer.png— designer,ide_palette.png— combined palette (top),ide_code.png— code window,ide_xframe_palette.png— XFrame palette,ide_xframe_layout.png— XFrame layout window,combined_palette_top.png— combined palette, FDesigner section,combined_palette_xframe.png— combined palette, XFrame sections,combined_palette_layout_placed.png— GtkAboutDialog placed in the layout window from the combined palette.
Repo layout
.
├── ide # single launcher — starts the IDE
├── Makefile # top-level build: designer + widgets
├── README.md # this file
├── LICENSE # MIT, 2026 cnmcdee
├── designer/ # FDesigner (designer, code window, debugger, CMake)
│ └── src/xframe_palette.h # combined-palette data (generated, 547 XFrame entries)
├── widgets/ # XFrame library (547 widgets, palette, layout, icons, tools)
│ ├── tools/layout_to_fdesigner.py # seam: layout file -> .fdj project
│ ├── tools/gen_xframe_palette_data.py # generates designer/src/xframe_palette.h
│ └── tests/test_combined_palette.py # 583-entry palette end-to-end test
├── docs/ # ide.md + index.md + 11 widget-section pages
└── screenshots/ # combined-IDE screenshots
License
MIT — see LICENSE. Copyright (c) 2026 cnmcdee.
Palette sections (547 widgets)
Windows & Dialogs (28)
GtkAboutDialog, GtkAppChooserDialog, GtkApplicationWindow, GtkAssistant, GtkColorChooserDialog, GtkDialog, GtkFileChooserDialog, GtkFontChooserDialog, GtkMessageDialog, GtkPrintUnixDialog, GtkShortcutsWindow, GtkWindow, TCalculatorDialog, TCalendarDialog, TColorDialog, TFindDialog, TFontDialog, TForm, TOpenDialog, TOpenPictureDialog, TPageSetupDialog, TPrintDialog, TPrinterSetupDialog, TReplaceDialog, TSaveDialog, TSavePictureDialog, TSelectDirectoryDialog, TTaskDialog
Containers & Layout (34)
GtkAspectFrame, GtkBox, GtkButtonBox, GtkCenterBox, GtkExpander, GtkFixed, GtkFlowBox, GtkFrame, GtkGrid, GtkLayout, GtkNotebook, GtkOverlay, GtkPaned, GtkRevealer, GtkScrolledWindow, GtkScrollbar, GtkSeparator, GtkStack, GtkStackSidebar, GtkStackSwitcher, GtkViewport, TControlBar, TCoolBar, TFlowPanel, TFrame, TGroupBox, TNotebook, TPageControl, TPairSplitter, TPanel, TScrollBar, TScrollBox, TSplitter, TTabControl
Buttons (24)
GtkButton, GtkCheckButton, GtkColorButton, GtkColorDialogButton, GtkFileChooserButton, GtkFontButton, GtkLinkButton, GtkLockButton, GtkModelButton, GtkRadioButton, GtkSwitch, GtkToggleButton, GtkToggleToolButton, GtkToolButton, GtkVolumeButton, TBitBtn, TButton, TButtonPanel, TCheckBox, TCheckComboBox, TRadioButton, TSpeedButton, TToggleBox, TUpDown
Display (33)
GtkAccelLabel, GtkCalendar, GtkCellView, GtkDrawingArea, GtkGLArea, GtkImage, GtkInfoBar, GtkInscription, GtkInvisible, GtkLabel, GtkLevelBar, GtkMediaControls, GtkPicture, GtkProgressBar, GtkSpinner, GtkStatusbar, GtkVideo, TArrow, TBevel, TCalendar, TDateTimePicker, TImage, TImageList, TLabel, TPaintBox, TProgressBar, TShape, TStaticText, TStatusBar, TTimeEdit, TTimer, TTrayIcon, TTrackBar
Text & Entry (28)
GtkComboBox, GtkComboBoxText, GtkDropDown, GtkEditableLabel, GtkEntry, GtkEntryCompletion, GtkPasswordEntry, GtkScale, GtkScaleButton, GtkSearchBar, GtkSearchEntry, GtkSpinButton, GtkTextView, TCalcEdit, TComboBox, TComboBoxEx, TDateEdit, TDirectoryEdit, TEdit, TEditButton, TFileNameEdit, TFilterComboBox, TFloatSpinEdit, TLabeledEdit, TMaskEdit, TMemo, TSpinEdit, TValueListEditor
Choosers (10)
GtkAppChooserButton, GtkAppChooserWidget, GtkColorChooserWidget, GtkFileChooserWidget, GtkFontChooserWidget, GtkPlacesSidebar, TColorBox, TColorButton, TColorListBox, TFileListBox
Views & Lists (17)
GtkColumnView, GtkGridView, GtkIconView, GtkListBox, GtkListView, GtkTreeView, TCheckGroup, TCheckListBox, TDrawGrid, THeaderControl, TListBox, TListView, TRadioGroup, TShellListView, TShellTreeView, TStringGrid, TTreeView
Menus & Toolbars (16)
GtkActionBar, GtkCheckMenuItem, GtkHeaderBar, GtkMenu, GtkMenuBar, GtkMenuButton, GtkMenuItem, GtkPopover, GtkRadioMenuItem, GtkSeparatorMenuItem, GtkToolbar, TActionList, TMainMenu, TPopupMenu, TPopupNotifier, TToolBar
Misc / X (4)
GtkEventBox, TApplicationProperties, XGraph, XSpreadsheet
Stock Market (287)
IndADX, IndADXR, IndALMA, IndAPO, IndATR, IndAcceleratorOscillator, IndAccumulationDistributionLine, IndAccumulativeSwingIndex, IndAdaptiveCyberCycle, IndAdaptiveRSI, IndAlligatorJaw, IndAlligatorLips, IndAlligatorTeeth, IndAnchoredVWAP, IndAroonDown, IndAroonOscillator, IndAroonUp, IndAutocorrelation, IndAwesomeOscillator, IndBalanceOfPower, IndBearPower, IndBollingerBands, IndBollingerBandwidth, IndBollingerPercentB, IndBullPower, IndCCI, IndCamarillaPivotPoints, IndCenterOfGravity, IndChaikinMoneyFlow, IndChaikinOscillator, IndChaikinVolatility, IndChandeForecastOscillator, IndChandeKrollStop, IndChandeMomentumOscillator, IndChandelierExit, IndChandelierExitLong, IndChandelierExitShort, IndChikouSpan, IndChoppinessIndex, IndCloseVolatility, IndConnorsRSI, IndCoppockCurve, IndCorrelation, IndCorrelationCoefficient, IndCovariance, IndCumulativeVolumeDelta, IndCutlerRSI, IndCyberCycle, IndDEMA, IndDPO, IndDSS, IndDX, IndDeMarker, IndDecycler, IndDemandIndex, IndDetrendedPriceOscillator, IndDisparityIndex, IndDominantCycle, IndDominantCyclePeriod, IndDonchianChannels, IndDonchianLower, IndDonchianMiddle, IndDonchianUpper, IndDoubleStochastic, IndDynamicMomentumIndex, IndEMA, IndEaseOfMovement, IndEfficiencyRatio, IndEhlersDecycler, IndEhlersSmoothedRSI, IndEhlersSuperSmoother, IndEhlersTrendline, IndElderForceIndex, IndElderImpulse, IndElderRayBear, IndElderRayBull, IndElderSafeZone, IndErgodicOscillator, IndEvenBetterSineWave, IndFAMA, IndFRAMA, IndFibonacciPivotPoints, IndFisherTransform, IndFractalDimension, IndFractalDimensionIndex, IndFractalDown, IndFractalUp, IndGannHiLoActivator, IndGannSwingOscillator, IndGarmanKlassVolatility, IndGatorOscillator, IndGaussianMA, IndGopalakrishnanRangeIndex, IndGuppyMMA, IndHMA, IndHalfTrend, IndHighLowRange, IndHistoricalVolatility, IndHurstExponent, IndInertia, IndIntradayIntensityIndex, IndIntradayMomentumIndex, IndInverseFisherTransform, IndJurikMovingAverage, IndJurikVelocity, IndKAMA, IndKDJ, IndKST, IndKairi, IndKeltnerBandwidth, IndKeltnerChannels, IndKijunSen, IndKlingerVolumeOscillator, IndKurtosis, IndLSMA, IndLaguerreFilter, IndLaguerreRSI, IndLinReg, IndLinRegAngle, IndLinRegIntercept, IndLinRegSlope, IndLinearRegressionForecast, IndLinearRegressionIntercept, IndLinearRegressionOscillator, IndLinearRegressionSlope, IndMACD, IndMACDHistogram, IndMACDofRSI, IndMAEnvelopeLower, IndMAEnvelopeUpper, IndMAMA, IndMassIndex, IndMcGinley, IndMedianMA, IndMedianPrice, IndMinusDI, IndMomentum, IndMoneyFlowIndex, IndMoneyFlowVolume, IndMovingAverageRibbon, IndNATR, IndNegativeVolumeIndex, IndNormalizedROC, IndOBV, IndPPO, IndPSAR, IndParkinsonVolatility, IndPercentRank, IndPercentageVolumeOscillator, IndPercentileRank, IndPivotPoint, IndPlusDI, IndPositiveVolumeIndex, IndPrettyGoodOscillator, IndPriceMomentumOscillator, IndQStick, IndRMA, IndROC, IndROCR, IndRSI, IndRSX, IndRSquared, IndRWIHigh, IndRWILow, IndRainbowOscillator, IndRangeExpansionIndex, IndReflex, IndRegressionChannel, IndRelativeMomentumIndex, IndRelativeVigorIndex, IndRelativeVolatilityIndex, IndRelativeVolume, IndRogersSatchellVolatility, IndRoofingFilter, IndSMA, IndSMI, IndSMMA, IndSSLChannel, IndSchaffTrendCycle, IndSenkouSpanA, IndSenkouSpanB, IndShannonEntropy, IndSineWMA, IndSineWave, IndSkewness, IndSmoothedROC, IndSpearmanRank, IndSpecialK, IndStandardError, IndStandardPivotPoints, IndStdDev, IndStochRSI, IndStochasticFast, IndStochasticFull, IndStochasticPop, IndStochasticSlow, IndSuperSmoother, IndSupertrend, IndSwenlinTradingOscillator, IndSwingIndex, IndT3, IndTDSequential, IndTEMA, IndTRIMA, IndTRIX, IndTSF, IndTSI, IndTSMA, IndTTMSqueeze, IndTenkanSen, IndTrendFlex, IndTrendIntensityIndex, IndTrueRange, IndTwiggsMoneyFlow, IndTypicalPrice, IndUTBot, IndUlcerIndex, IndUltimateOscillator, IndUpDownRatio, IndUpDownVolumeRatio, IndVHF, IndVIDYA, IndVWAP, IndVWAPBands, IndVWEMA, IndVWMA, IndVariance, IndVolatilityRatio, IndVolatilityStop, IndVolumeAverage, IndVolumeDelta, IndVolumeOscillator, IndVolumePriceTrend, IndVolumeRateOfChange, IndVolumeWeightedMovingAverage, IndVolumeZoneOscillator, IndVortex, IndWMA, IndWaveTrend, IndWeightedClose, IndWilderVolatilitySystem, IndWildersMA, IndWilliamsAccumulationDistribution, IndWilliamsR, IndWoodiePivotPoints, IndYangZhangVolatility, IndZLEMA, IndZScore, IndZeroLagMACD, IndZigZag, StockAccumulationDistribution, StockAreaChart, StockArrow, StockBaselineChart, StockBrush, StockCandlestickChart, StockCorrelationView, StockEllipse, StockFibExtension, StockFibRetracement, StockHeikinAshi, StockHollowCandles, StockHorizontalLine, StockIndexedComparison, StockLineChart, StockMeasureTool, StockMoneyFlowChart, StockMultiSymbolChart, StockOBVChart, StockOHLCBarChart, StockOverlayChart, StockParallelChannel, StockPitchfork, StockPriceLabel, StockRatioChart, StockRectangle, StockRelativePerformance, StockRenko, StockSectorComparison, StockSpreadChart, StockTextAnnotation, StockTrendline, StockVWAP, StockVerticalLine, StockVolumeBars, StockVolumeCandles, StockVolumeProfile
Instrumentation (66)
InstAnalogGauge, InstBarMeter, InstBeacon, InstBezel, InstCircuitBreaker, InstControlPanel, InstDigitalReadout, InstEmergencyStop, InstFlowMeter, InstHorizontalTankLevel, InstKeySwitch, InstLampTestButton, InstLedBlue, InstLedDigits1, InstLedDigits2, InstLedDigits3, InstLedDigits4, InstLedDigits5, InstLedDigits6, InstLedGreen, InstLedRed, InstLevelColumnGauge, InstLevelTransmitter, InstManometer, InstNameplate, InstNeedleEdgewise, InstNeedleKnifeEdge, InstNeedleTapered, InstNeedleVu, InstOpenChannelLevel, InstPanelLampAmber, InstPanelLampBlue, InstPanelLampGreen, InstPanelLampRed, InstPanelLampWhite, InstPanelPlate, InstPressureGauge, InstPushButton, InstPushButtonLatching, InstRgbStatusLed, InstRockerSwitch, InstRockerSwitchDouble, InstRockerSwitchIlluminated, InstRotarySelector, InstSeg14Display1, InstSeg14Display2, InstSeg14Display3, InstSeg14Display4, InstSeg14Display5, InstSeg14Display6, InstSeg16Display1, InstSeg16Display2, InstSeg16Display3, InstSeg16Display4, InstSeg16Display5, InstSeg16Display6, InstSightGlassLevel, InstSlideSwitch, InstSphericalTankLevel, InstStackLight, InstTankLevelAlarms, InstTemperatureGauge, InstToggleSwitch, InstToggleSwitchIlluminated, InstVerticalTankLevel, InstVuMeter