From c71d2031621d2338ebdbc30391ec0efcce892e6b Mon Sep 17 00:00:00 2001 From: JohnDoe6345789 Date: Fri, 26 Dec 2025 07:33:52 +0000 Subject: [PATCH] docs: qt6,frontends,cpp (3 files) --- frontends/qt6/README.md | 1 + frontends/qt6/main.cpp | 3 +++ frontends/qt6/src/ModPlayer.cpp | 3 --- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontends/qt6/README.md b/frontends/qt6/README.md index a6088dae2..54a250eb5 100644 --- a/frontends/qt6/README.md +++ b/frontends/qt6/README.md @@ -39,5 +39,6 @@ You can also embed `main.qml` into a Qt Quick Application project and expose C++ - Add more packages via JSON manifests under `frontends/qt6/packages/` (e.g., `music_player`, `watchtower`, `escape_room`) to keep the catalog lively and expressive. - Procedural MOD assets live under `frontends/qt6/assets/audio`; run `python3 scripts/generate_mod.py` to regenerate the Retro Games theme whenever you want a fresh tracker placeholder. - SVG logos for each package live in `frontends/qt6/assets/svg` so you can render branded icons across the Package Manager, Storybook, and other shells. +- `ModPlayerPanel.qml` (used inside `Storybook.qml`) calls the new C++ `ModPlayer` interface, which depends on `libopenmpt` (now provided through `conan`); you can replay `assets/audio/retro-gaming.mod` via this player and extend it with bespoke trackers. - Sample package manifests live in `frontends/qt6/packages/`; they describe dependencies (e.g., `frontpage`, `storybook`, `god_panel`, `supergod_panel`, `forum`, etc.) so the new package manager has context for repo metadata and install flows. - The library now also exposes `Material.MaterialGrid`, `Material.MaterialAccordion`, `Material.MaterialCollapse`, `Material.MaterialCheckbox`, `Material.MaterialMenu`, and `Material.MaterialPopover`, plus `Material.MaterialMenuProps`, `Material.MaterialPopoverProps`, and `Material.MaterialDividerProps` to mirror the remaining MUI helpers. diff --git a/frontends/qt6/main.cpp b/frontends/qt6/main.cpp index 6e029febf..cd5c51434 100644 --- a/frontends/qt6/main.cpp +++ b/frontends/qt6/main.cpp @@ -7,6 +7,7 @@ #include #include "src/PackageRegistry.h" +#include "src/ModPlayer.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); @@ -20,8 +21,10 @@ int main(int argc, char *argv[]) { } }); PackageRegistry registry; + ModPlayer modPlayer; registry.loadPackage("frontpage"); engine.rootContext()->setContextProperty(QStringLiteral("PackageRegistry"), ®istry); + engine.rootContext()->setContextProperty(QStringLiteral("ModPlayer"), &modPlayer); engine.load(url); return app.exec(); diff --git a/frontends/qt6/src/ModPlayer.cpp b/frontends/qt6/src/ModPlayer.cpp index 7ae2f80f1..531697b15 100644 --- a/frontends/qt6/src/ModPlayer.cpp +++ b/frontends/qt6/src/ModPlayer.cpp @@ -4,9 +4,6 @@ #include #include #include -#include -#include -#include #include