Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_splash_screen.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2021 Alvin Wong <alvin@alvinhc.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7#ifndef KIS_SPLASH_SCREEN_H
8#define KIS_SPLASH_SCREEN_H
9
10#include <QWidget>
11#include <QTimer>
12
13#include "ui_wdgsplash.h"
14
15class QPixmap;
16class QSvgWidget;
17
18#include "kritaui_export.h"
19
20class KRITAUI_EXPORT KisSplashScreen : public QWidget, public Ui::WdgSplash
21{
22 Q_OBJECT
23public:
24 explicit KisSplashScreen(bool themed = false, QWidget *parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
25
26 void repaint();
27
28 void show();
29 void displayLinks(bool show);
30 void displayRecentFiles(bool show);
31
32 void setLoadingText(QString text);
33
34private Q_SLOTS:
35
36 void toggleShowAtStartup(bool toggle);
37 void linkClicked(const QString &link);
38
39protected:
40 void resizeEvent(QResizeEvent *event) override;
41
42private:
43 void updateText();
44 QString colorString() const;
45 void updateSplashImage();
46
47private:
48
49 QTimer m_timer;
51 bool m_displayLinks { false };
52 QSvgWidget *m_brandingSvg;
53 QSvgWidget *m_bannerSvg;
57};
58
59#endif // KIS_SPLASH_SCREEN_H
QLabel * m_loadingTextLabel
QSvgWidget * m_brandingSvg
QSvgWidget * m_bannerSvg