Dash Core  0.12.2.1
P2P Digital Currency
networkstyle.h
Go to the documentation of this file.
1 // Copyright (c) 2014 The Bitcoin Core developers
2 // Copyright (c) 2014-2017 The Dash Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_QT_NETWORKSTYLE_H
7 #define BITCOIN_QT_NETWORKSTYLE_H
8 
9 #include <QIcon>
10 #include <QPixmap>
11 #include <QString>
12 
13 /* Coin network-specific GUI style information */
15 {
16 public:
18  static const NetworkStyle *instantiate(const QString &networkId);
19 
20  const QString &getAppName() const { return appName; }
21  const QIcon &getAppIcon() const { return appIcon; }
22  const QPixmap &getSplashImage() const { return splashImage; }
23  const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; }
24  const QString &getTitleAddText() const { return titleAddText; }
25 
26 private:
27  NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText);
28 
29  QString appName;
30  QIcon appIcon;
31  QPixmap splashImage;
33  QString titleAddText;
34 
35  void rotateColors(QImage& img, const int iconColorHueShift, const int iconColorSaturationReduction);
36 };
37 
38 #endif // BITCOIN_QT_NETWORKSTYLE_H
const QIcon & getTrayAndWindowIcon() const
Definition: networkstyle.h:23
QString titleAddText
Definition: networkstyle.h:33
const QString & getAppName() const
Definition: networkstyle.h:20
const int iconColorHueShift
const QString & getTitleAddText() const
Definition: networkstyle.h:24
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
void rotateColors(QImage &img, const int iconColorHueShift, const int iconColorSaturationReduction)
const char * networkId
QIcon trayAndWindowIcon
Definition: networkstyle.h:32
static const NetworkStyle * instantiate(const QString &networkId)
QString appName
Definition: networkstyle.h:29
const int iconColorSaturationReduction
const QPixmap & getSplashImage() const
Definition: networkstyle.h:22
const QIcon & getAppIcon() const
Definition: networkstyle.h:21
QPixmap splashImage
Definition: networkstyle.h:31