Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
boot.cpp File Reference

The bootstrap sequence: bootDatabase() -> bootQmlLinkage() -> Router::loadScreens() -> createApp() (QApplication + MainWindow). More...

#include <QApplication>
#include <QIcon>
#include <QElapsedTimer>
#include <QDebug>
#include <QTranslator>
#include <QLocale>
#include <QSettings>
#include <QLibraryInfo>
#include "../../ui/window/mainwindow.h"
#include "../bridge/router.h"
#include "pse_version.h"
Include dependency graph for boot.cpp:

Go to the source code of this file.

Functions

void bootDatabase ()
void bootQmlLinkage ()
static void installTranslators (QApplication *app)
static void preBootAttributes ()
static QApplication * createApp (int argc, char *argv[])
QApplication * boot (int argc, char *argv[])

Variables

MainWindowmainWindow = nullptr

Detailed Description

The bootstrap sequence: bootDatabase() -> bootQmlLinkage() -> Router::loadScreens() -> createApp() (QApplication + MainWindow).

Returns a ready-to-exec QApplication to main().

Definition in file boot.cpp.

Function Documentation

◆ boot()

QApplication * boot ( int argc,
char * argv[] )
extern

Definition at line 121 of file boot.cpp.

References bootDatabase(), bootQmlLinkage(), createApp(), and Router::loadScreens().

Referenced by main().

◆ bootDatabase()

void bootDatabase ( )
extern

Definition at line 28 of file bootDatabase.cpp.

References DB::inst().

Referenced by boot().

◆ bootQmlLinkage()

void bootQmlLinkage ( )
extern

Definition at line 109 of file bootQmlLinkage.cpp.

Referenced by boot().

◆ createApp()

QApplication * createApp ( int argc,
char * argv[] )
staticnodiscard

Definition at line 88 of file boot.cpp.

References installTranslators(), mainWindow, and preBootAttributes().

Referenced by boot().

◆ installTranslators()

void installTranslators ( QApplication * app)
static

Definition at line 55 of file boot.cpp.

Referenced by createApp().

◆ preBootAttributes()

void preBootAttributes ( )
static

Definition at line 79 of file boot.cpp.

Referenced by createApp().

Variable Documentation

◆ mainWindow

MainWindow* mainWindow = nullptr

Definition at line 44 of file boot.cpp.

Referenced by createApp().