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
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
34
private
Q_SLOTS:
35
36
void
toggleShowAtStartup(
bool
toggle);
37
void
linkClicked(
const
QString &link);
38
39
protected
:
40
void
resizeEvent(QResizeEvent *event)
override
;
41
42
private
:
43
void
updateText();
44
QString colorString()
const
;
45
void
updateSplashImage();
46
47
private
:
48
49
QTimer
m_timer
;
50
bool
m_themed
;
51
bool
m_displayLinks {
false
};
52
QSvgWidget *
m_brandingSvg
;
53
QSvgWidget *
m_bannerSvg
;
54
QLabel *
m_loadingTextLabel
;
55
QLabel *
m_artCreditsLabel
;
56
QString
m_versionHtml
;
57
};
58
59
#endif
// KIS_SPLASH_SCREEN_H
KisSplashScreen
Definition
kis_splash_screen.h:21
KisSplashScreen::m_timer
QTimer m_timer
Definition
kis_splash_screen.h:49
KisSplashScreen::m_artCreditsLabel
QLabel * m_artCreditsLabel
Definition
kis_splash_screen.h:55
KisSplashScreen::m_loadingTextLabel
QLabel * m_loadingTextLabel
Definition
kis_splash_screen.h:54
KisSplashScreen::m_brandingSvg
QSvgWidget * m_brandingSvg
Definition
kis_splash_screen.h:52
KisSplashScreen::m_versionHtml
QString m_versionHtml
Definition
kis_splash_screen.h:56
KisSplashScreen::m_bannerSvg
QSvgWidget * m_bannerSvg
Definition
kis_splash_screen.h:53
KisSplashScreen::m_themed
bool m_themed
Definition
kis_splash_screen.h:50
libs
ui
kis_splash_screen.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52