Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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 FABCOIN_QT_PLATFORMSTYLE_H
6
#define FABCOIN_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
{
15
public
:
17
static
const
PlatformStyle
*
instantiate
(
const
QString &
platformId
);
18
19
const
QString &
getName
()
const
{
return
name
; }
20
21
bool
getImagesOnButtons
()
const
{
return
imagesOnButtons
; }
22
bool
getUseExtraSpacing
()
const
{
return
useExtraSpacing
; }
23
24
QColor
TextColor
()
const
{
return
textColor
; }
25
QColor
SingleColor
()
const
{
return
singleColor
; }
26
QColor
MenuColor
()
const
{
return
menuColor
; }
27
29
QImage
SingleColorImage
(
const
QString& filename)
const
;
30
32
QIcon
SingleColorIcon
(
const
QString& filename)
const
;
33
35
QIcon
SingleColorIcon
(
const
QIcon& icon)
const
;
36
38
QIcon
TextColorIcon
(
const
QString& filename)
const
;
39
41
QIcon
TextColorIcon
(
const
QIcon& icon)
const
;
42
44
QIcon
MenuColorIcon
(
const
QString& filename)
const
;
45
47
QIcon
MenuColorIcon
(
const
QIcon& icon)
const
;
48
49
enum
StateType
{
50
NavBar
= 0,
51
PushButton
= 1
52
};
54
QIcon
MultiStatesIcon
(
const
QString& resourcename,
StateType
type
=
NavBar
, QColor color = Qt::white, QColor colorAlt = 0x2d2d2d)
const
;
55
56
enum
TableColorType
{
57
Normal
= 0,
58
Input
,
59
Inout
,
60
Output
,
61
Error
62
};
63
QIcon
TableColorIcon
(
const
QString& resourcename,
TableColorType
type
)
const
;
64
QImage
TableColorImage
(
const
QString& resourcename,
TableColorType
type
)
const
;
65
void
TableColor
(
TableColorType
type
,
int
& color,
double
& opacity)
const
;
66
67
private
:
68
PlatformStyle
(
const
QString &
name
,
bool
imagesOnButtons
,
bool
colorizeIcons
,
bool
useExtraSpacing
);
69
70
QString
name
;
71
bool
imagesOnButtons
;
72
bool
colorizeIcons
;
73
bool
useExtraSpacing
;
74
QColor
singleColor
;
75
QColor
textColor
;
76
QColor
menuColor
;
77
/* ... more to come later */
78
};
79
80
#endif // FABCOIN_QT_PLATFORMSTYLE_H
81
PlatformStyle::Normal
Definition:
platformstyle.h:57
PlatformStyle::Input
Definition:
platformstyle.h:58
PlatformStyle::TableColor
void TableColor(TableColorType type, int &color, double &opacity) const
Definition:
platformstyle.cpp:221
PlatformStyle::TableColorIcon
QIcon TableColorIcon(const QString &resourcename, TableColorType type) const
Definition:
platformstyle.cpp:178
PlatformStyle::TextColor
QColor TextColor() const
Definition:
platformstyle.h:24
PlatformStyle::Inout
Definition:
platformstyle.h:59
PlatformStyle::PlatformStyle
PlatformStyle(const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
Definition:
platformstyle.cpp:85
PlatformStyle::singleColor
QColor singleColor
Definition:
platformstyle.h:74
PlatformStyle::SingleColorIcon
QIcon SingleColorIcon(const QString &filename) const
Colorize an icon (given filename) with the icon color.
Definition:
platformstyle.cpp:110
PlatformStyle::name
QString name
Definition:
platformstyle.h:70
PlatformStyle::TableColorType
TableColorType
Definition:
platformstyle.h:56
PlatformStyle::PushButton
Definition:
platformstyle.h:51
PlatformStyle::colorizeIcons
bool colorizeIcons
Definition:
platformstyle.h:72
PlatformStyle::StateType
StateType
Definition:
platformstyle.h:49
PlatformStyle::Output
Definition:
platformstyle.h:60
PlatformStyle::getName
const QString & getName() const
Definition:
platformstyle.h:19
PlatformStyle::menuColor
QColor menuColor
Definition:
platformstyle.h:76
PlatformStyle::SingleColor
QColor SingleColor() const
Definition:
platformstyle.h:25
PlatformStyle::textColor
QColor textColor
Definition:
platformstyle.h:75
PlatformStyle::MenuColor
QColor MenuColor() const
Definition:
platformstyle.h:26
PlatformStyle::instantiate
static const PlatformStyle * instantiate(const QString &platformId)
Get style associated with provided platform name, or 0 if not known.
Definition:
platformstyle.cpp:254
type
PlatformStyle::TableColorType type
Definition:
rpcconsole.cpp:61
PlatformStyle::MultiStatesIcon
QIcon MultiStatesIcon(const QString &resourcename, StateType type=NavBar, QColor color=Qt::white, QColor colorAlt=0x2d2d2d) const
Get multi-states icon.
Definition:
platformstyle.cpp:144
PlatformStyle::MenuColorIcon
QIcon MenuColorIcon(const QString &filename) const
Colorize an icon (given filename) with the menu text color.
Definition:
platformstyle.cpp:134
PlatformStyle::TableColorImage
QImage TableColorImage(const QString &resourcename, TableColorType type) const
Definition:
platformstyle.cpp:205
PlatformStyle::imagesOnButtons
bool imagesOnButtons
Definition:
platformstyle.h:71
PlatformStyle::Error
Definition:
platformstyle.h:61
PlatformStyle::useExtraSpacing
bool useExtraSpacing
Definition:
platformstyle.h:73
PlatformStyle::getImagesOnButtons
bool getImagesOnButtons() const
Definition:
platformstyle.h:21
PlatformStyle::NavBar
Definition:
platformstyle.h:50
PlatformStyle::getUseExtraSpacing
bool getUseExtraSpacing() const
Definition:
platformstyle.h:22
PlatformStyle::SingleColorImage
QImage SingleColorImage(const QString &filename) const
Colorize an image (given filename) with the icon color.
Definition:
platformstyle.cpp:103
PlatformStyle
Definition:
platformstyle.h:13
platformId
const char * platformId
Definition:
platformstyle.cpp:17
PlatformStyle::TextColorIcon
QIcon TextColorIcon(const QString &filename) const
Colorize an icon (given filename) with the text color.
Definition:
platformstyle.cpp:124
Generated on Mon Oct 22 2018 15:15:36 for Fabcoin Core by
1.8.11