4#include <gemc/gbase/gbase.h>
10#define GSPLASHENVIRONMENT "GSPLASH"
11#define NOSPLASHIMAGESELECTED "NOSPLASHIMAGESELECTED"
14#define ERR_NOSPLASHENVFOUND 191
48 "Minimum time in seconds to keep the splash image visible before closing it. "
49 "A negative value uses the application default.");
51 "Scale factor applied to the splash image before display. "
52 "Use 1.0 for the image's original size.");
94 static std::unique_ptr<GSplash>
95 create(
const std::shared_ptr<GOptions>& gopts,
96 const std::string& imageName =
"gemcArchitecture",
97 double splashTime = -1.0);
108 void message(
const std::string& msg);
131 void finish(QWidget* callingWindow)
const;
143 GSplash(
const std::shared_ptr<GOptions>& gopts,
144 const std::string& imageName,
152 std::unique_ptr<QSplashScreen> splash;
153 double splash_time = 0.0;
Splash screen utility for GUI runs.
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.