21#include <QApplication>
23#include "pencilerror.h"
32 (static_cast<Pencil2D *>(QCoreApplication::instance()))
48 explicit Pencil2D(
int &argc,
char **argv);
73 bool event(
QEvent* event)
override;
96 std::unique_ptr<MainWindow2> mainWindow;
98 std::unique_ptr<QLockFile> mProcessLock;
The main application class handling startup as well as the main loop.
bool isInstanceOpen()
Checks if multiple instances of Pencil2D are open.
void openFileRequested(QString filename)
Emitted when the operating system requests that a file should be opened.
void prepareGuiStartup(const QString &inputPath)
Readies the graphical UI for entering the main loop.
void installTranslators()
Sets up translators for the application locale configured by the user or the system locale.
Status handleCommandLineOptions()
Parses supplied command line arguments and performs the appropriate actions, such as running the comm...