A singleton for holding he application splash screen. More...
#include <SplashScreenManager.h>
Public Member Functions | |
| 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... | |
Static Public Member Functions | |
| static SplashScreenManager & | getInstance () |
| It returns a reference to the singleton instance. More... | |
Protected Member Functions | |
| SplashScreenManager () | |
| It initializes the singleton. More... | |
| ~SplashScreenManager () | |
| Destructor. More... | |
Private Attributes | |
| int | m_msgAlignment |
| The alignment used to draw the message text. More... | |
| QColor | m_msgColor |
| The color used to draw the message text. More... | |
| QSplashScreen * | m_sc |
| A reference to the splash screen. More... | |
Friends | |
| class | te::common::Singleton< SplashScreenManager > |
A singleton for holding he application splash screen.
Definition at line 47 of file SplashScreenManager.h.
|
protected |
It initializes the singleton.
Definition at line 61 of file SplashScreenManager.cpp.
|
protected |
Destructor.
Definition at line 68 of file SplashScreenManager.cpp.
| void te::qt::af::SplashScreenManager::close | ( | ) |
Closes the splash screen.
This function can be used when something fails and the splash screen is visible.
Definition at line 55 of file SplashScreenManager.cpp.
|
staticinherited |
It returns a reference to the singleton instance.
Referenced by te::qt::af::ApplicationController::initialize(), te::qt::af::ApplicationController::initializePlugins(), te::qt::af::ApplicationController::initializeProjectMenus(), and main().
| 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.
| impl | Any splash screen widget. |
| alignment | The alignment of the text. |
| color | The text color. |
Definition at line 42 of file SplashScreenManager.cpp.
| void te::qt::af::SplashScreenManager::setLogo | ( | const QPixmap & | pix | ) |
Updates the image to be presented on splash screen.
| pix | New image to be presented. |
Definition at line 49 of file SplashScreenManager.cpp.
| 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.
| message | The message to be drawn. |
Definition at line 32 of file SplashScreenManager.cpp.
References m_msgAlignment, m_msgColor, and m_sc.
Referenced by te::qt::af::ApplicationController::initialize(), te::qt::af::ApplicationController::initializePlugins(), and te::qt::af::ApplicationController::initializeProjectMenus().
|
friend |
Definition at line 49 of file SplashScreenManager.h.
|
private |
The alignment used to draw the message text.
Definition at line 100 of file SplashScreenManager.h.
Referenced by showMessage().
|
private |
The color used to draw the message text.
Definition at line 101 of file SplashScreenManager.h.
Referenced by showMessage().
|
private |
A reference to the splash screen.
Definition at line 99 of file SplashScreenManager.h.
Referenced by showMessage().