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
swmmvissplashscreen.h
Go to the documentation of this file.
1
16#ifndef SPLASHSCREEN_H
17#define SPLASHSCREEN_H
18
19#include <QColor>
20#include <QSplashScreen>
21
33class SWMMVisSplashScreen : public QSplashScreen
34{
35 Q_OBJECT
36
37public:
38
44 SWMMVisSplashScreen(const QPixmap &pixmap = QPixmap(),
45 Qt::WindowFlags f = Qt::WindowFlags());
46
54 const QPixmap &pixmap = QPixmap(),
55 Qt::WindowFlags f = Qt::WindowFlags());
56
60 virtual ~SWMMVisSplashScreen();
61
66 void setColor(const QColor &color);
67
72 void setAlignment(Qt::Alignment alignment);
73
79 void drawContents(QPainter *painter) override;
80
81public slots:
82
88 void onShowMessage(const QString &message);
89
90private:
91
92 QColor mColor;
93 Qt::Alignment mAlignment;
94 QString mMessage;
95};
96
97#endif // SPLASHSCREEN_H
Startup splash screen with configurable message text colour and alignment.
Definition swmmvissplashscreen.h:34
void setAlignment(Qt::Alignment alignment)
Sets the alignment flags used when drawing the status message.
Definition swmmvissplashscreen.cpp:52
void drawContents(QPainter *painter) override
Overridden to draw the status message in the configured colour and at the configured alignment.
Definition swmmvissplashscreen.cpp:58
void setColor(const QColor &color)
Sets the colour used to draw the status message text.
Definition swmmvissplashscreen.cpp:47
void onShowMessage(const QString &message)
Displays message on the splash screen using showMessage().
Definition swmmvissplashscreen.cpp:74
virtual ~SWMMVisSplashScreen()
Destructor.
Definition swmmvissplashscreen.cpp:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString message
Definition queryparser.cpp:150