Files
Muse 78236e55dd Instrumentation integration: docs, pictures, screenshots, test results (547 widgets)
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.
2026-11-25 22:20:52 -05:00

41 KiB
Raw Permalink Blame History

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 the Gtk* 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 ./ide launcher are landed; the per-half builds below still work on their own. Combined tree: FDesigner round-3 (cfree HEAD 310ff34, round 3 + palette icons) + CWidgets HEAD ab3a2a3, 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)

  1. GtkAboutDialog
  2. GtkAccelLabel
  3. GtkActionBar
  4. GtkAppChooserButton
  5. GtkAppChooserDialog
  6. GtkAppChooserWidget
  7. GtkApplicationWindow
  8. GtkAspectFrame
  9. GtkAssistant
  10. GtkBox
  11. GtkButton
  12. GtkButtonBox
  13. GtkCalendar
  14. GtkCellView
  15. GtkCenterBox
  16. GtkCheckButton
  17. GtkCheckMenuItem
  18. GtkColorButton
  19. GtkColorChooserDialog
  20. GtkColorChooserWidget
  21. GtkColorDialogButton
  22. GtkColumnView
  23. GtkComboBox
  24. GtkComboBoxText
  25. GtkDialog
  26. GtkDrawingArea
  27. GtkDropDown
  28. GtkEditableLabel
  29. GtkEntry
  30. GtkEntryCompletion
  31. GtkEventBox
  32. GtkExpander
  33. GtkFileChooserButton
  34. GtkFileChooserDialog
  35. GtkFileChooserWidget
  36. GtkFixed
  37. GtkFlowBox
  38. GtkFontButton
  39. GtkFontChooserDialog
  40. GtkFontChooserWidget
  41. GtkFrame
  42. GtkGLArea
  43. GtkGrid
  44. GtkGridView
  45. GtkHeaderBar
  46. GtkIconView
  47. GtkImage
  48. GtkInfoBar
  49. GtkInscription
  50. GtkInvisible
  51. GtkLabel
  52. GtkLayout
  53. GtkLevelBar
  54. GtkLinkButton
  55. GtkListBox
  56. GtkListView
  57. GtkLockButton
  58. GtkMediaControls
  59. GtkMenu
  60. GtkMenuBar
  61. GtkMenuButton
  62. GtkMenuItem
  63. GtkMessageDialog
  64. GtkModelButton
  65. GtkNotebook
  66. GtkOverlay
  67. GtkPaned
  68. GtkPasswordEntry
  69. GtkPicture
  70. GtkPlacesSidebar
  71. GtkPopover
  72. GtkPrintUnixDialog
  73. GtkProgressBar
  74. GtkRadioButton
  75. GtkRadioMenuItem
  76. GtkRevealer
  77. GtkScale
  78. GtkScaleButton
  79. GtkScrollbar
  80. GtkScrolledWindow
  81. GtkSearchBar
  82. GtkSearchEntry
  83. GtkSeparator
  84. GtkSeparatorMenuItem
  85. GtkShortcutsWindow
  86. GtkSpinButton
  87. GtkSpinner
  88. GtkStack
  89. GtkStackSidebar
  90. GtkStackSwitcher
  91. GtkStatusbar
  92. GtkSwitch
  93. GtkTextView
  94. GtkToggleButton
  95. GtkToggleToolButton
  96. GtkToolButton
  97. GtkToolbar
  98. GtkTreeView
  99. GtkVideo
  100. GtkViewport
  101. GtkVolumeButton
  102. GtkWindow
  103. IndADX
  104. IndADXR
  105. IndALMA
  106. IndAPO
  107. IndATR
  108. IndAcceleratorOscillator
  109. IndAccumulationDistributionLine
  110. IndAccumulativeSwingIndex
  111. IndAdaptiveCyberCycle
  112. IndAdaptiveRSI
  113. IndAlligatorJaw
  114. IndAlligatorLips
  115. IndAlligatorTeeth
  116. IndAnchoredVWAP
  117. IndAroonDown
  118. IndAroonOscillator
  119. IndAroonUp
  120. IndAutocorrelation
  121. IndAwesomeOscillator
  122. IndBalanceOfPower
  123. IndBearPower
  124. IndBollingerBands
  125. IndBollingerBandwidth
  126. IndBollingerPercentB
  127. IndBullPower
  128. IndCCI
  129. IndCamarillaPivotPoints
  130. IndCenterOfGravity
  131. IndChaikinMoneyFlow
  132. IndChaikinOscillator
  133. IndChaikinVolatility
  134. IndChandeForecastOscillator
  135. IndChandeKrollStop
  136. IndChandeMomentumOscillator
  137. IndChandelierExit
  138. IndChandelierExitLong
  139. IndChandelierExitShort
  140. IndChikouSpan
  141. IndChoppinessIndex
  142. IndCloseVolatility
  143. IndConnorsRSI
  144. IndCoppockCurve
  145. IndCorrelation
  146. IndCorrelationCoefficient
  147. IndCovariance
  148. IndCumulativeVolumeDelta
  149. IndCutlerRSI
  150. IndCyberCycle
  151. IndDEMA
  152. IndDPO
  153. IndDSS
  154. IndDX
  155. IndDeMarker
  156. IndDecycler
  157. IndDemandIndex
  158. IndDetrendedPriceOscillator
  159. IndDisparityIndex
  160. IndDominantCycle
  161. IndDominantCyclePeriod
  162. IndDonchianChannels
  163. IndDonchianLower
  164. IndDonchianMiddle
  165. IndDonchianUpper
  166. IndDoubleStochastic
  167. IndDynamicMomentumIndex
  168. IndEMA
  169. IndEaseOfMovement
  170. IndEfficiencyRatio
  171. IndEhlersDecycler
  172. IndEhlersSmoothedRSI
  173. IndEhlersSuperSmoother
  174. IndEhlersTrendline
  175. IndElderForceIndex
  176. IndElderImpulse
  177. IndElderRayBear
  178. IndElderRayBull
  179. IndElderSafeZone
  180. IndErgodicOscillator
  181. IndEvenBetterSineWave
  182. IndFAMA
  183. IndFRAMA
  184. IndFibonacciPivotPoints
  185. IndFisherTransform
  186. IndFractalDimension
  187. IndFractalDimensionIndex
  188. IndFractalDown
  189. IndFractalUp
  190. IndGannHiLoActivator
  191. IndGannSwingOscillator
  192. IndGarmanKlassVolatility
  193. IndGatorOscillator
  194. IndGaussianMA
  195. IndGopalakrishnanRangeIndex
  196. IndGuppyMMA
  197. IndHMA
  198. IndHalfTrend
  199. IndHighLowRange
  200. IndHistoricalVolatility
  201. IndHurstExponent
  202. IndInertia
  203. IndIntradayIntensityIndex
  204. IndIntradayMomentumIndex
  205. IndInverseFisherTransform
  206. IndJurikMovingAverage
  207. IndJurikVelocity
  208. IndKAMA
  209. IndKDJ
  210. IndKST
  211. IndKairi
  212. IndKeltnerBandwidth
  213. IndKeltnerChannels
  214. IndKijunSen
  215. IndKlingerVolumeOscillator
  216. IndKurtosis
  217. IndLSMA
  218. IndLaguerreFilter
  219. IndLaguerreRSI
  220. IndLinReg
  221. IndLinRegAngle
  222. IndLinRegIntercept
  223. IndLinRegSlope
  224. IndLinearRegressionForecast
  225. IndLinearRegressionIntercept
  226. IndLinearRegressionOscillator
  227. IndLinearRegressionSlope
  228. IndMACD
  229. IndMACDHistogram
  230. IndMACDofRSI
  231. IndMAEnvelopeLower
  232. IndMAEnvelopeUpper
  233. IndMAMA
  234. IndMassIndex
  235. IndMcGinley
  236. IndMedianMA
  237. IndMedianPrice
  238. IndMinusDI
  239. IndMomentum
  240. IndMoneyFlowIndex
  241. IndMoneyFlowVolume
  242. IndMovingAverageRibbon
  243. IndNATR
  244. IndNegativeVolumeIndex
  245. IndNormalizedROC
  246. IndOBV
  247. IndPPO
  248. IndPSAR
  249. IndParkinsonVolatility
  250. IndPercentRank
  251. IndPercentageVolumeOscillator
  252. IndPercentileRank
  253. IndPivotPoint
  254. IndPlusDI
  255. IndPositiveVolumeIndex
  256. IndPrettyGoodOscillator
  257. IndPriceMomentumOscillator
  258. IndQStick
  259. IndRMA
  260. IndROC
  261. IndROCR
  262. IndRSI
  263. IndRSX
  264. IndRSquared
  265. IndRWIHigh
  266. IndRWILow
  267. IndRainbowOscillator
  268. IndRangeExpansionIndex
  269. IndReflex
  270. IndRegressionChannel
  271. IndRelativeMomentumIndex
  272. IndRelativeVigorIndex
  273. IndRelativeVolatilityIndex
  274. IndRelativeVolume
  275. IndRogersSatchellVolatility
  276. IndRoofingFilter
  277. IndSMA
  278. IndSMI
  279. IndSMMA
  280. IndSSLChannel
  281. IndSchaffTrendCycle
  282. IndSenkouSpanA
  283. IndSenkouSpanB
  284. IndShannonEntropy
  285. IndSineWMA
  286. IndSineWave
  287. IndSkewness
  288. IndSmoothedROC
  289. IndSpearmanRank
  290. IndSpecialK
  291. IndStandardError
  292. IndStandardPivotPoints
  293. IndStdDev
  294. IndStochRSI
  295. IndStochasticFast
  296. IndStochasticFull
  297. IndStochasticPop
  298. IndStochasticSlow
  299. IndSuperSmoother
  300. IndSupertrend
  301. IndSwenlinTradingOscillator
  302. IndSwingIndex
  303. IndT3
  304. IndTDSequential
  305. IndTEMA
  306. IndTRIMA
  307. IndTRIX
  308. IndTSF
  309. IndTSI
  310. IndTSMA
  311. IndTTMSqueeze
  312. IndTenkanSen
  313. IndTrendFlex
  314. IndTrendIntensityIndex
  315. IndTrueRange
  316. IndTwiggsMoneyFlow
  317. IndTypicalPrice
  318. IndUTBot
  319. IndUlcerIndex
  320. IndUltimateOscillator
  321. IndUpDownRatio
  322. IndUpDownVolumeRatio
  323. IndVHF
  324. IndVIDYA
  325. IndVWAP
  326. IndVWAPBands
  327. IndVWEMA
  328. IndVWMA
  329. IndVariance
  330. IndVolatilityRatio
  331. IndVolatilityStop
  332. IndVolumeAverage
  333. IndVolumeDelta
  334. IndVolumeOscillator
  335. IndVolumePriceTrend
  336. IndVolumeRateOfChange
  337. IndVolumeWeightedMovingAverage
  338. IndVolumeZoneOscillator
  339. IndVortex
  340. IndWMA
  341. IndWaveTrend
  342. IndWeightedClose
  343. IndWilderVolatilitySystem
  344. IndWildersMA
  345. IndWilliamsAccumulationDistribution
  346. IndWilliamsR
  347. IndWoodiePivotPoints
  348. IndYangZhangVolatility
  349. IndZLEMA
  350. IndZScore
  351. IndZeroLagMACD
  352. IndZigZag
  353. StockAccumulationDistribution
  354. StockAreaChart
  355. StockArrow
  356. StockBaselineChart
  357. StockBrush
  358. StockCandlestickChart
  359. StockCorrelationView
  360. StockEllipse
  361. StockFibExtension
  362. StockFibRetracement
  363. StockHeikinAshi
  364. StockHollowCandles
  365. StockHorizontalLine
  366. StockIndexedComparison
  367. StockLineChart
  368. StockMeasureTool
  369. StockMoneyFlowChart
  370. StockMultiSymbolChart
  371. StockOBVChart
  372. StockOHLCBarChart
  373. StockOverlayChart
  374. StockParallelChannel
  375. StockPitchfork
  376. StockPriceLabel
  377. StockRatioChart
  378. StockRectangle
  379. StockRelativePerformance
  380. StockRenko
  381. StockSectorComparison
  382. StockSpreadChart
  383. StockTextAnnotation
  384. StockTrendline
  385. StockVWAP
  386. StockVerticalLine
  387. StockVolumeBars
  388. StockVolumeCandles
  389. StockVolumeProfile
  390. TActionList
  391. TApplicationProperties
  392. TArrow
  393. TBevel
  394. TBitBtn
  395. TButton
  396. TButtonPanel
  397. TCalcEdit
  398. TCalculatorDialog
  399. TCalendar
  400. TCalendarDialog
  401. TCheckBox
  402. TCheckComboBox
  403. TCheckGroup
  404. TCheckListBox
  405. TColorBox
  406. TColorButton
  407. TColorDialog
  408. TColorListBox
  409. TComboBox
  410. TComboBoxEx
  411. TControlBar
  412. TCoolBar
  413. TDateEdit
  414. TDateTimePicker
  415. TDirectoryEdit
  416. TDrawGrid
  417. TEdit
  418. TEditButton
  419. TFileListBox
  420. TFileNameEdit
  421. TFilterComboBox
  422. TFindDialog
  423. TFloatSpinEdit
  424. TFlowPanel
  425. TFontDialog
  426. TForm
  427. TFrame
  428. TGroupBox
  429. THeaderControl
  430. TImage
  431. TImageList
  432. TLabel
  433. TLabeledEdit
  434. TListBox
  435. TListView
  436. TMainMenu
  437. TMaskEdit
  438. TMemo
  439. TNotebook
  440. TOpenDialog
  441. TOpenPictureDialog
  442. TPageControl
  443. TPageSetupDialog
  444. TPaintBox
  445. TPairSplitter
  446. TPanel
  447. TPopupMenu
  448. TPopupNotifier
  449. TPrintDialog
  450. TPrinterSetupDialog
  451. TProgressBar
  452. TRadioButton
  453. TRadioGroup
  454. TReplaceDialog
  455. TSaveDialog
  456. TSavePictureDialog
  457. TScrollBar
  458. TScrollBox
  459. TSelectDirectoryDialog
  460. TShape
  461. TShellListView
  462. TShellTreeView
  463. TSpeedButton
  464. TSpinEdit
  465. TSplitter
  466. TStaticText
  467. TStatusBar
  468. TStringGrid
  469. TTabControl
  470. TTaskDialog
  471. TTimeEdit
  472. TTimer
  473. TToggleBox
  474. TToolBar
  475. TTrackBar
  476. TTrayIcon
  477. TTreeView
  478. TUpDown
  479. TValueListEditor
  480. XGraph
  481. 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_motion as a no-op by design (only 5 headers even declare a hovered_ 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 in widgets/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:

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)

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). StockChart plots candle charts from CSV with 250 technical indicators, drawings, and comparisons.
  • Code generation: File → Generate C++/GTK… emits an all-code project — no .ui file — with every widget a standalone class in its own .h/.cpp pair, plus a CMakeLists.txt and a Makefile (executable app). 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, #if blocks), 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