4#include <gemc/gbase/gbase.h>
10#define GSPLASHENVIRONMENT "GSPLASH"
11#define NOSPLASHIMAGESELECTED "NOSPLASHIMAGESELECTED"
14#define ERR_NOSPLASHENVFOUND 191
49 "Minimum time in seconds to keep the splash image visible before closing it. "
50 "A negative value uses the application default.");
52 "Scale factor applied to the splash image before display. "
53 "Use 1.0 for the image's original size.");
79class GSplash :
public GBase<GSplash> {
96 static std::unique_ptr<GSplash>
97 create(
const std::shared_ptr<GOptions>& gopts,
98 const std::string& imageName =
"gemcArchitecture",
99 double splashTime = -1.0);
110 void message(
const std::string& msg);
133 void finish(QWidget* callingWindow)
const;
145 GSplash(
const std::shared_ptr<GOptions>& gopts,
146 const std::string& imageName,
154 std::unique_ptr<QSplashScreen> splash;
155 double splash_time = 0.0;
GBase(const std::shared_ptr< GOptions > &gopt, std::string logger_name="")
void finish(QWidget *callingWindow) const
Finishes the splash screen and returns focus to the calling window.
static std::unique_ptr< GSplash > create(const std::shared_ptr< GOptions > &gopts, const std::string &imageName="gemcArchitecture", double splashTime=-1.0)
Factory method for creating a GSplash instance.
void message(const std::string &msg)
Displays a message on the splash screen immediately.
void messageAfter(int delay, const std::string &msg)
Displays a message on the splash screen after a delay.
constexpr const char * GSPLASH_SCALE_OPTION
constexpr const char * GSPLASH_LOGGER
Default logger name used by this module.
constexpr const char * GSPLASH_TIME_OPTION
Namespace utilities for the GSplash module.
GOptions defineOptions()
Defines the module options for GSplash.