mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
docs: qt6,frontends,cpp (3 files)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"), ®istry);
|
||||
engine.rootContext()->setContextProperty(QStringLiteral("ModPlayer"), &modPlayer);
|
||||
|
||||
engine.load(url);
|
||||
return app.exec();
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
#include <QAudioOutput>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QQmlEngine>
|
||||
#include <QScopeGuard>
|
||||
#include <QTimer>
|
||||
|
||||
#include <libopenmpt/libopenmpt.hpp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user