Bitcoin ABC
0.30.5
P2P Digital Currency
src
qt
platformstyle.h
Go to the documentation of this file.
1
// Copyright (c) 2015 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_PLATFORMSTYLE_H
6
#define BITCOIN_QT_PLATFORMSTYLE_H
7
8
#include <QIcon>
9
#include <QPixmap>
10
#include <QString>
11
12
/* Coin network-specific GUI style information */
13
class
PlatformStyle
{
14
public
:
16
static
const
PlatformStyle
*
instantiate
(
const
QString &
platformId
);
17
18
const
QString &
getName
()
const
{
return
name
; }
19
20
bool
getImagesOnButtons
()
const
{
return
imagesOnButtons
; }
21
bool
getUseExtraSpacing
()
const
{
return
useExtraSpacing
; }
22
23
QColor
TextColor
()
const
{
return
textColor
; }
24
QColor
SingleColor
()
const
{
return
singleColor
; }
25
27
QImage
SingleColorImage
(
const
QString &filename)
const
;
28
30
QIcon
SingleColorIcon
(
const
QString &filename)
const
;
31
33
QIcon
SingleColorIcon
(
const
QIcon &icon)
const
;
34
36
QIcon
TextColorIcon
(
const
QIcon &icon)
const
;
37
38
private
:
39
PlatformStyle
(
const
QString &
name
,
bool
imagesOnButtons
,
bool
colorizeIcons
,
40
bool
useExtraSpacing
);
41
42
QString
name
;
43
bool
imagesOnButtons
;
44
bool
colorizeIcons
;
45
bool
useExtraSpacing
;
46
QColor
singleColor
;
47
QColor
textColor
;
48
/* ... more to come later */
49
};
50
51
#endif
// BITCOIN_QT_PLATFORMSTYLE_H
PlatformStyle
Definition:
platformstyle.h:13
PlatformStyle::imagesOnButtons
bool imagesOnButtons
Definition:
platformstyle.h:43
PlatformStyle::getName
const QString & getName() const
Definition:
platformstyle.h:18
PlatformStyle::name
QString name
Definition:
platformstyle.h:42
PlatformStyle::SingleColorIcon
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
Definition:
platformstyle.cpp:95
PlatformStyle::getUseExtraSpacing
bool getUseExtraSpacing() const
Definition:
platformstyle.h:21
PlatformStyle::SingleColor
QColor SingleColor() const
Definition:
platformstyle.h:24
PlatformStyle::PlatformStyle
PlatformStyle(const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
Definition:
platformstyle.cpp:61
PlatformStyle::getImagesOnButtons
bool getImagesOnButtons() const
Definition:
platformstyle.h:20
PlatformStyle::instantiate
static const PlatformStyle * instantiate(const QString &platformId)
Get style associated with provided platform name, or 0 if not known.
Definition:
platformstyle.cpp:113
PlatformStyle::singleColor
QColor singleColor
Definition:
platformstyle.h:46
PlatformStyle::textColor
QColor textColor
Definition:
platformstyle.h:47
PlatformStyle::useExtraSpacing
bool useExtraSpacing
Definition:
platformstyle.h:45
PlatformStyle::colorizeIcons
bool colorizeIcons
Definition:
platformstyle.h:44
PlatformStyle::TextColor
QColor TextColor() const
Definition:
platformstyle.h:23
PlatformStyle::SingleColorImage
QImage SingleColorImage(const QString &filename) const
Colorize an image (given filename) with the icon color.
Definition:
platformstyle.cpp:88
PlatformStyle::TextColorIcon
QIcon TextColorIcon(const QIcon &icon) const
Colorize an icon (given object) with the text color.
Definition:
platformstyle.cpp:109
platformId
const char * platformId
Definition:
platformstyle.cpp:13
Generated on Wed Nov 20 2024 17:55:58 for Bitcoin ABC by
1.9.4