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
15
class
QPixmap;
16
class
QSvgWidget;
17
18
#include "kritaui_export.h"
19
20
class
KRITAUI_EXPORT
KisSplashScreen
:
public
QWidget,
public
Ui::WdgSplash
21
{
22
Q_OBJECT
23
public
:
24
struct
Source
{
25
QString
resourcePath
;
26
QString
artistCredit
;
27
};
28
29
explicit
KisSplashScreen
(
bool
themed =
false
, QWidget *parent = 0, Qt::WindowFlags f = Qt::WindowFlags());
30
31
void
repaint();
32
33
void
show();
34
void
displayLinks(
bool
show);
35
void
displayRecentFiles(
bool
show);
36
37
void
setLoadingText(QString text);
38
39
static
Source
getImageSource();
40
41
private
Q_SLOTS:
42
43
void
toggleShowAtStartup(
bool
toggle);
44
void
linkClicked(
const
QString &link);
45
46
protected
:
47
void
resizeEvent(QResizeEvent *event)
override
;
48
49
private
:
50
void
updateText();
51
QString colorString()
const
;
52
void
updateSplashImage();
53
54
private
:
55
56
QTimer
m_timer
;
57
bool
m_themed
;
58
bool
m_displayLinks {
false
};
59
QSvgWidget *
m_brandingSvg
;
60
QSvgWidget *
m_bannerSvg
;
61
QLabel *
m_loadingTextLabel
;
62
QLabel *
m_artCreditsLabel
;
63
QString
m_versionHtml
;
64
};
65
66
#endif
// KIS_SPLASH_SCREEN_H
KisSplashScreen
Definition
kis_splash_screen.h:21
KisSplashScreen::m_timer
QTimer m_timer
Definition
kis_splash_screen.h:56
KisSplashScreen::m_artCreditsLabel
QLabel * m_artCreditsLabel
Definition
kis_splash_screen.h:62
KisSplashScreen::m_loadingTextLabel
QLabel * m_loadingTextLabel
Definition
kis_splash_screen.h:61
KisSplashScreen::m_brandingSvg
QSvgWidget * m_brandingSvg
Definition
kis_splash_screen.h:59
KisSplashScreen::m_versionHtml
QString m_versionHtml
Definition
kis_splash_screen.h:63
KisSplashScreen::m_bannerSvg
QSvgWidget * m_bannerSvg
Definition
kis_splash_screen.h:60
KisSplashScreen::m_themed
bool m_themed
Definition
kis_splash_screen.h:57
KisSplashScreen::Source
Definition
kis_splash_screen.h:24
KisSplashScreen::Source::resourcePath
QString resourcePath
Definition
kis_splash_screen.h:25
KisSplashScreen::Source::artistCredit
QString artistCredit
Definition
kis_splash_screen.h:26
libs
ui
kis_splash_screen.h
Generated at
2026-07-16 02:30:11+02:00
from
Krita
branch
master
, commit
a788c87613f94f0657ee6a3d88f6745bc44af899