A singleton for holding he application splash screen.
More...
#include <SplashScreenManager.h>
|
void | close () |
| Closes the splash screen. More...
|
|
void | set (QSplashScreen *impl, int alignment=Qt::AlignLeft, const QColor &color=Qt::black) |
| It sets the splash screen to be used during the application startup. More...
|
|
void | setLogo (const QPixmap &pix) |
| Updates the image to be presented on splash screen. More...
|
|
void | showMessage (const QString &message) |
| This will cause the text to be drawn on the splash screen and a call to Application::processEvents() will be made. More...
|
|
A singleton for holding he application splash screen.
Definition at line 47 of file SplashScreenManager.h.
te::qt::af::SplashScreenManager::SplashScreenManager |
( |
| ) |
|
|
protected |
It initializes the singleton.
te::qt::af::SplashScreenManager::~SplashScreenManager |
( |
| ) |
|
|
protected |
void te::qt::af::SplashScreenManager::close |
( |
| ) |
|
Closes the splash screen.
This function can be used when something fails and the splash screen is visible.
It returns a reference to the singleton instance.
- Returns
- A reference to the singleton instance.
void te::qt::af::SplashScreenManager::set |
( |
QSplashScreen * |
impl, |
|
|
int |
alignment = Qt::AlignLeft , |
|
|
const QColor & |
color = Qt::black |
|
) |
| |
It sets the splash screen to be used during the application startup.
- Parameters
-
impl | Any splash screen widget. |
alignment | The alignment of the text. |
color | The text color. |
- Note
- The caller is responsible for keeping the splash screen alive until the application is fully initialized.
-
The application will use the splash screen implementation only during the application startup.
-
The manager will not take the ownership of the splash screen.
void te::qt::af::SplashScreenManager::setLogo |
( |
const QPixmap & |
pix | ) |
|
Updates the image to be presented on splash screen.
- Parameters
-
pix | New image to be presented. |
void te::qt::af::SplashScreenManager::showMessage |
( |
const QString & |
message | ) |
|
This will cause the text to be drawn on the splash screen and a call to Application::processEvents() will be made.
- Parameters
-
message | The message to be drawn. |
int te::qt::af::SplashScreenManager::m_msgAlignment |
|
private |
QColor te::qt::af::SplashScreenManager::m_msgColor |
|
private |
QSplashScreen* te::qt::af::SplashScreenManager::m_sc |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/af/SplashScreenManager.h