mirror of
https://github.com/logos-co/logos-tutorial.git
synced 2026-08-31 04:41:08 +00:00
* tutorial(cpp-ui): Qt-typed dependency calls via LogosUiPluginContext Sync Part 3 (calc_ui_cpp) to the new UI authoring model: the backend derives LogosUiPluginContext (not the std-typed LogosModuleContext), and its modules().calc_module wrappers are now Qt-typed (api-style qt). libVersion() returns modules().calc_module.libVersion() directly — the QString::fromStdString conversion is gone since the wrapper now returns QString, matching the .rep slot. Depends on logos-co/logos-qt-sdk#3, logos-co/logos-plugin-qt#14, and logos-co/logos-module-builder#124. Part of a 4-repo change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * tutorial(cpp-ui): don't pin logos-module-builder in calc-ui-cpp flake The generated example flake hard-pinned logos-module-builder to a specific commit; every other tutorial output (and the generated .md) tracks the branch via `github:logos-co/logos-module-builder` — only release builds pin (the spec's `{release}` placeholder). Drop the stray rev to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * tutorial(cpp-ui): fix the doctest spec backend for Qt-typed modules() The doctest CI executes the spec's `file:` blocks, not the committed outputs/ tree — and the spec's backend still used the std-typed model: it derived LogosModuleContext and wrapped `modules().calc_module.libVersion()` in QString::fromStdString(...). That compiled only while module-builder was pinned to a stale pre-flip commit (ui_qml api-style=std → libVersion() returned std::string). Now that the flake tracks module-builder master (api-style=qt, libVersion() returns QString), QString::fromStdString(QString) fails to compile. Bring the spec in line with the generated outputs (already fixed): derive LogosUiPluginContext, include logos_ui_plugin_context.h, and return modules().calc_module.libVersion() directly. Prose/diagram updated to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>