docs: qt6,frontends,cpp (3 files)

This commit is contained in:
2025-12-26 07:33:52 +00:00
parent d80e4ac5ef
commit c71d203162
3 changed files with 4 additions and 3 deletions

View File

@@ -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.

View File

@@ -7,6 +7,7 @@
#include <QQmlContext>
#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"), &registry);
engine.rootContext()->setContextProperty(QStringLiteral("ModPlayer"), &modPlayer);
engine.load(url);
return app.exec();

View File

@@ -4,9 +4,6 @@
#include <QAudioOutput>
#include <QDir>
#include <QFile>
#include <QQmlEngine>
#include <QScopeGuard>
#include <QTimer>
#include <libopenmpt/libopenmpt.hpp>