|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The single QML<->C++ doorway – everything the UI touches hangs off here. More...
#include <bridge.h>
Public Member Functions | |
| Bridge (FileManagement *file) | |
The single QML<->C++ doorway – everything the UI touches hangs off here.
Injected into the QML context as brg, this object aggregates, as Q_PROPERTYs: the live save (file -> the data.dataExpanded.* chain QML edits), the router and settings, the shared databases/randomizers QML uses directly (fonts, names, examples, util), and the fleet of Qt item-models (mvc) that adapt C++ data into list/table form for QML views.
It is created in MainWindow and given the FileManagement; the DB-backed members are singletons (*::inst()), the models are owned here. Registered uncreatable with QML. This is the hub of the app's bridge pattern.
| Bridge::Bridge | ( | FileManagement * | file | ) |
| file | the live FileManagement to expose as brg.file. |
Definition at line 33 of file bridge.cpp.
References bagItemsModel, file, itemOverviewModel, mapSelectModel, marketCartModel, marketModel, marketViewModel, pcItemsModel, pokedexModel, pokemonBoxSelectModel1, pokemonBoxSelectModel2, pokemonOverviewModel, pokemonStorageModel1, pokemonStorageModel2, recentFilesModel, and router.
| ItemStorageModel* Bridge::bagItemsModel = nullptr |
| CreditsModel* Bridge::creditsModel = new CreditsModel |
| FileManagement* Bridge::file = nullptr |
| FontsDB* Bridge::fonts = FontsDB::inst() |
| FontSearch* Bridge::fontSearch = new FontSearch |
| FontSearchModel* Bridge::fontSearchModel = new FontSearchModel(fontSearch) |
| ItemOverviewModel* Bridge::itemOverviewModel = nullptr |
Definition at line 168 of file bridge.h.
Referenced by Bridge().
| ItemSelectModel* Bridge::itemSelectModel = new ItemSelectModel |
| MapSelectModel* Bridge::mapSelectModel = nullptr |
| ItemMarketCartModel* Bridge::marketCartModel = nullptr |
| ItemMarketModel* Bridge::marketModel = nullptr |
| ItemMarketViewModel* Bridge::marketViewModel = nullptr |
| MoveSelectModel* Bridge::moveSelectModel = new MoveSelectModel |
| NatureSelectModel* Bridge::natureSelectModel = new NatureSelectModel |
| ItemStorageModel* Bridge::pcItemsModel = nullptr |
| PokedexModel* Bridge::pokedexModel = nullptr |
| PokemonBoxSelectModel* Bridge::pokemonBoxSelectModel1 = nullptr |
Definition at line 175 of file bridge.h.
Referenced by Bridge().
| PokemonBoxSelectModel* Bridge::pokemonBoxSelectModel2 = nullptr |
Definition at line 176 of file bridge.h.
Referenced by Bridge().
| PokemonOverviewModel* Bridge::pokemonOverviewModel = nullptr |
Definition at line 169 of file bridge.h.
Referenced by Bridge().
| PokemonStorageModel* Bridge::pokemonStorageModel1 = nullptr |
Definition at line 173 of file bridge.h.
Referenced by Bridge().
| PokemonStorageModel* Bridge::pokemonStorageModel2 = nullptr |
Definition at line 174 of file bridge.h.
Referenced by Bridge().
| ExamplesPlayer* Bridge::randomExamplePlayer = ExamplesPlayer::inst() |
| ExamplesPokemon* Bridge::randomExamplePokemon = ExamplesPokemon::inst() |
| ExamplesRival* Bridge::randomExampleRival = ExamplesRival::inst() |
| NamesPlayer* Bridge::randomPlayerName = NamesPlayer::inst() |
| NamesPokemon* Bridge::randomPokemonName = NamesPokemon::inst() |
| RecentFilesModel* Bridge::recentFilesModel = nullptr |
| SpeciesSelectModel* Bridge::speciesSelectModel = new SpeciesSelectModel |
| PokemonStartersModel* Bridge::starterModel = new PokemonStartersModel |
| StatusSelectModel* Bridge::statusSelectModel = new StatusSelectModel |
| TypesModel* Bridge::typesModel = new TypesModel |
| Utility* Bridge::util = Utility::inst() |