mirror of
https://github.com/logos-co/logos-tutorial.git
synced 2026-08-31 04:41:08 +00:00
calc_ui_cpp now uses interface: universal — you write only the .rep and a CalcUiCppBackend deriving CalcUiCppSimpleSource + LogosModuleContext, calling modules().calc_module.* (typed SDK). The *Plugin/*Interface classes, initLogos, and setBackend wiring are generated; the hand-written interface + plugin steps are gone. CMake uses REP_FILE + the backend sources + INCLUDE_DIRS. Regenerated outputs/tutorial-cpp-ui-app.md and outputs/logos-calc-ui-cpp/. Verified end to end: the full Part 1->2->3 chain runs 69/69 against the universal templates (logos-module-builder feat/universal-templates), including the live UI drive (Add -> 8) and the integration-test build. Depends on the logos-module-builder universal-templates change so that the #ui-qml-backend scaffold is the universal form.
28 lines
637 B
JSON
28 lines
637 B
JSON
{
|
|
"name": "calc_ui_cpp",
|
|
"version": "1.0.0",
|
|
"type": "ui_qml",
|
|
"interface": "universal",
|
|
"category": "tools",
|
|
"description": "Calculator C++ UI — QML view with process-isolated backend for calc_module",
|
|
"main": "calc_ui_cpp_plugin",
|
|
"view": "qml/Main.qml",
|
|
"icon": "icons/calc.png",
|
|
"dependencies": ["calc_module"],
|
|
"codegen": { "rep": "src/calc_ui_cpp.rep" },
|
|
|
|
"nix": {
|
|
"packages": {
|
|
"build": [],
|
|
"runtime": []
|
|
},
|
|
"external_libraries": [],
|
|
"cmake": {
|
|
"find_packages": [],
|
|
"extra_sources": [],
|
|
"extra_include_dirs": [],
|
|
"extra_link_libraries": []
|
|
}
|
|
}
|
|
}
|