4#include <gemc/gbase/gbase.h>
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.");
78class GSplash :
public GBase<GSplash> {
95 static std::unique_ptr<GSplash>
96 create(
const std::shared_ptr<GOptions>& gopts,
97 const std::string& imageName =
"gemcArchitecture",
98 double splashTime = -1.0);
109 void message(
const std::string& msg);
132 void finish(QWidget* callingWindow)
const;
144 GSplash(
const std::shared_ptr<GOptions>& gopts,
145 const std::string& imageName,
153 std::unique_ptr<QSplashScreen> splash;
154 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.
GOptions defineOptions()
Namespace utilities for the GSplash module.
constexpr char NOSPLASHIMAGESELECTED[]
constexpr char GSPLASH_TIME_OPTION[]
constexpr char GSPLASH_LOGGER[]
Default logger name used by this module.
constexpr int ERR_NOSPLASHENVFOUND
constexpr char GSPLASH_SCALE_OPTION[]
constexpr char GSPLASHENVIRONMENT[]