File indexing completed on 2025-02-16 09:49:31
0001 /* 0002 SPDX-FileCopyrightText: 2001 Heiko Evermann <heiko@evermann.de> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QSplashScreen> 0010 0011 /** 0012 * @class KStarsSplash 0013 * The KStars Splash Screen. The splash screen shows the KStars logo and 0014 * progress messages while data files are parsed and objects are initialized. 0015 * 0016 * @short the KStars Splash Screen. 0017 * @author Heiko Evermann 0018 * @version 1.0 0019 */ 0020 class KStarsSplash : public QSplashScreen 0021 { 0022 Q_OBJECT 0023 0024 public: 0025 /** 0026 * Constructor. Create widgets. Load KStars logo. Start load timer. 0027 * A non-empty customMessage will replace "Welcome to KStars [...]". 0028 */ 0029 explicit KStarsSplash(const QString &customMessage = ""); 0030 0031 virtual ~KStarsSplash() override = default; 0032 0033 public slots: 0034 /** 0035 * Display the text argument in the Splash Screen's status label. 0036 * This is connected to KStarsData::progressText(QString) 0037 */ 0038 void setMessage(const QString &s); 0039 };