SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
swmmvisapplication.h
Go to the documentation of this file.
1
15#ifndef SWMMAPPLICATION_H
16#define SWMMAPPLICATION_H
17
18#include <QApplication>
19
20class SWMMVis;
22
31class SWMMVisCoreApplication : public QCoreApplication
32{
33 Q_OBJECT
34
35public:
41 SWMMVisCoreApplication(int &argc, char *argv[]);
42
47};
48
61class SWMMVisApplication : public QApplication
62{
63 Q_OBJECT
64
65public:
72 SWMMVisApplication(int &argc, char *argv[]);
73
78 virtual ~SWMMVisApplication();
79
80protected:
87 bool eventFilter(QObject *watched, QEvent *event) override;
88
95 bool notify(QObject *receiver, QEvent *event) override;
96
97private:
98 void reportHandlerException(QObject *receiver, const QString &what);
99
100 SWMMVis *mSWMMVisGUI;
101 SWMMVisSplashScreen *mSWMMVisSplashScreen;
102};
103
104#endif // SWMMAPPLICATION_H
Full GUI application object — creates the main window and splash screen.
Definition swmmvisapplication.h:62
bool eventFilter(QObject *watched, QEvent *event) override
Application-wide event filter that keeps every QDialog stacked above the main window....
Definition swmmvisapplication.cpp:306
bool notify(QObject *receiver, QEvent *event) override
Last-resort guard around event delivery: an exception thrown by a slot or event handler is logged (qC...
Definition swmmvisapplication.cpp:76
virtual ~SWMMVisApplication()
Destructor. Closes the main window if still open and cleans up GDAL resources.
Definition swmmvisapplication.cpp:301
Headless (non-GUI) application object for batch/scripted use.
Definition swmmvisapplication.h:32
virtual ~SWMMVisCoreApplication()
Destructor. Releases GDAL resources.
Definition swmmvisapplication.cpp:71
Main application window for SWMMVis.
Definition swmmvis.h:100
Startup splash screen with configurable message text colour and alignment.
Definition swmmvissplashscreen.h:34