|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The top-level window – a QMainWindow hosting the QML UI in a QQuickWidget. More...
#include <mainwindow.h>
Public Member Functions | |
| MainWindow (QWidget *parent=nullptr) | |
| < The live save controller. | |
| virtual | ~MainWindow () |
| protected::void | fileChanged () |
| The live save was replaced. | |
Static Public Member Functions | |
| static MainWindow * | getInstance () |
| The single MainWindow instance. | |
Public Attributes | |
| FileManagement * | file = nullptr |
| QShortcut * | recentFileShortcuts [5] |
| Ctrl+1..5 open-recent shortcuts. | |
| QHash< QString, QShortcut * > | otherShortcuts |
| Other global keyboard shortcuts by name. | |
Static Public Attributes | |
| static Bridge * | bridge = nullptr |
| The brg aggregate (created here, injected into QML). | |
| static QQmlEngine * | engine = nullptr |
| The QML engine behind the hosted QQuickWidget. | |
The top-level window – a QMainWindow hosting the QML UI in a QQuickWidget.
Created last in the boot sequence (createApp()), it is where C++ meets QML at runtime: it constructs the bridge, registers the image providers, and injects brg into the QML engine (injectIntoQML()). It also owns the live file (FileManagement), wires global keyboard otherShortcuts and the recent-file shortcuts, and persists window state across runs.
Definition at line 50 of file mainwindow.h.
| MainWindow::MainWindow | ( | QWidget * | parent = nullptr | ) |
< The live save controller.
Definition at line 52 of file mainwindow.cpp.
References file.
Referenced by fileChanged(), and getInstance().
|
virtual |
Definition at line 110 of file mainwindow.cpp.
References file, MAX_RECENT_FILES, otherShortcuts, and recentFileShortcuts.
| protected::void MainWindow::fileChanged | ( | ) |
The live save was replaced.
References MainWindow().
|
static |
The single MainWindow instance.
Definition at line 125 of file mainwindow.cpp.
References MainWindow().
|
static |
The brg aggregate (created here, injected into QML).
Definition at line 61 of file mainwindow.h.
|
static |
The QML engine behind the hosted QQuickWidget.
Definition at line 62 of file mainwindow.h.
| FileManagement* MainWindow::file = nullptr |
Definition at line 64 of file mainwindow.h.
Referenced by MainWindow(), and ~MainWindow().
| QHash<QString, QShortcut*> MainWindow::otherShortcuts |
Other global keyboard shortcuts by name.
Definition at line 68 of file mainwindow.h.
Referenced by ~MainWindow().
| QShortcut* MainWindow::recentFileShortcuts[5] |
Ctrl+1..5 open-recent shortcuts.
Definition at line 67 of file mainwindow.h.
Referenced by ~MainWindow().