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 Class Reference

Full GUI application object — creates the main window and splash screen. More...

#include <swmmvisapplication.h>

Inheritance diagram for SWMMVisApplication:
Collaboration diagram for SWMMVisApplication:

Public Member Functions

 SWMMVisApplication (int &argc, char *argv[])
 Constructs the application, creates the main window, and shows the startup splash screen.
 
virtual ~SWMMVisApplication ()
 Destructor. Closes the main window if still open and cleans up GDAL resources.
 

Protected Member Functions

bool eventFilter (QObject *watched, QEvent *event) override
 Application-wide event filter that keeps every QDialog stacked above the main window. When a top-level QDialog is shown it is reparented to the main window (if orphaned) and raised so it cannot be hidden by clicks on the main window.
 
bool notify (QObject *receiver, QEvent *event) override
 Last-resort guard around event delivery: an exception thrown by a slot or event handler is logged (qCritical → Message Log tee) and reported once through a throttled message box instead of propagating out of exec() and terminating the application.
 

Detailed Description

Full GUI application object — creates the main window and splash screen.

On construction, SWMMVisApplication:

  1. Calls QApplication's constructor (sets up the event loop and UI platform).
  2. Initialises GDAL/PROJ and loads Qt static resources.
  3. Shows SWMMVisSplashScreen while the main SWMMVis window initialises.
  4. Creates and shows the SWMMVis main window.

The application object remains alive for the full run of exec().

Constructor & Destructor Documentation

◆ SWMMVisApplication()

SWMMVisApplication::SWMMVisApplication ( int &  argc,
char *  argv[] 
)

Constructs the application, creates the main window, and shows the startup splash screen.

SWMMVisApplication::SWMMVisApplication.

Parameters
argcCommand-line argument count (from main).
argvCommand-line argument vector (from main).
argcThe number of arguments passed to the application.
argvThe arguments passed to the application.

Read settings

Load components

Here is the call graph for this function:

◆ ~SWMMVisApplication()

SWMMVisApplication::~SWMMVisApplication ( )
virtual

Destructor. Closes the main window if still open and cleans up GDAL resources.

SWMMVisApplication::~SWMMVisApplication The destructor for the SWMMVisApplication class.

Member Function Documentation

◆ eventFilter()

bool SWMMVisApplication::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotected

Application-wide event filter that keeps every QDialog stacked above the main window. When a top-level QDialog is shown it is reparented to the main window (if orphaned) and raised so it cannot be hidden by clicks on the main window.

Here is the call graph for this function:

◆ notify()

bool SWMMVisApplication::notify ( QObject *  receiver,
QEvent *  event 
)
overrideprotected

Last-resort guard around event delivery: an exception thrown by a slot or event handler is logged (qCritical → Message Log tee) and reported once through a throttled message box instead of propagating out of exec() and terminating the application.


The documentation for this class was generated from the following files: