Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <networkstyle.h>

Public Member Functions

const QString & getAppName () const
 
const QIcon & getAppIcon () const
 
const QPixmap & getSplashImage () const
 
const QIcon & getTrayAndWindowIcon () const
 
const QString & getTitleAddText () const
 
const QColor & getBadgeColor () const
 

Static Public Member Functions

static const NetworkStyleinstantiate (const QString &networkId)
 Get style associated with provided BIP70 network id, or 0 if not known. More...
 

Private Member Functions

 NetworkStyle (const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
 
void rotateColor (QColor &col, const int iconColorHueShift, const int iconColorSaturationReduction)
 
void rotateColors (QImage &img, const int iconColorHueShift, const int iconColorSaturationReduction)
 

Private Attributes

QString appName
 
QIcon appIcon
 
QPixmap splashImage
 
QIcon trayAndWindowIcon
 
QString titleAddText
 
QColor badgeColor
 

Detailed Description

Definition at line 14 of file networkstyle.h.

Constructor & Destructor Documentation

◆ NetworkStyle()

NetworkStyle::NetworkStyle ( const QString &  appName,
const int  iconColorHueShift,
const int  iconColorSaturationReduction,
const char *  titleAddText 
)
private

Member Function Documentation

◆ getAppIcon()

const QIcon& NetworkStyle::getAppIcon ( ) const
inline

Definition at line 21 of file networkstyle.h.

References appIcon.

◆ getAppName()

const QString& NetworkStyle::getAppName ( ) const
inline

Definition at line 20 of file networkstyle.h.

References appName.

◆ getBadgeColor()

const QColor& NetworkStyle::getBadgeColor ( ) const
inline

Definition at line 25 of file networkstyle.h.

References badgeColor.

Referenced by SplashScreen::SplashScreen().

◆ getSplashImage()

const QPixmap& NetworkStyle::getSplashImage ( ) const
inline

Definition at line 22 of file networkstyle.h.

References splashImage.

Referenced by SplashScreen::SplashScreen().

◆ getTitleAddText()

const QString& NetworkStyle::getTitleAddText ( ) const
inline

◆ getTrayAndWindowIcon()

const QIcon& NetworkStyle::getTrayAndWindowIcon ( ) const
inline

Definition at line 23 of file networkstyle.h.

References trayAndWindowIcon.

Referenced by BitcoinGUI::BitcoinGUI(), and BitcoinGUI::createTrayIcon().

◆ instantiate()

const NetworkStyle * NetworkStyle::instantiate ( const QString &  networkId)
static

Get style associated with provided BIP70 network id, or 0 if not known.

Definition at line 97 of file networkstyle.cpp.

References appName, CBaseChainParams::DEVNET, gArgs, ArgsManager::GetDevNetName(), network_styles, network_styles_count, networkId, NetworkStyle(), strprintf, and titleAddText.

Referenced by main().

◆ rotateColor()

void NetworkStyle::rotateColor ( QColor &  col,
const int  iconColorHueShift,
const int  iconColorSaturationReduction 
)
private

Definition at line 31 of file networkstyle.cpp.

References iconColorHueShift, and iconColorSaturationReduction.

Referenced by NetworkStyle(), and rotateColors().

◆ rotateColors()

void NetworkStyle::rotateColors ( QImage &  img,
const int  iconColorHueShift,
const int  iconColorSaturationReduction 
)
private

Definition at line 45 of file networkstyle.cpp.

References iconColorHueShift, iconColorSaturationReduction, and rotateColor().

Referenced by NetworkStyle().

Member Data Documentation

◆ appIcon

QIcon NetworkStyle::appIcon
private

Definition at line 31 of file networkstyle.h.

Referenced by getAppIcon(), and NetworkStyle().

◆ appName

QString NetworkStyle::appName
private

Definition at line 30 of file networkstyle.h.

Referenced by getAppName(), instantiate(), and NetworkStyle().

◆ badgeColor

QColor NetworkStyle::badgeColor
private

Definition at line 35 of file networkstyle.h.

Referenced by getBadgeColor(), and NetworkStyle().

◆ splashImage

QPixmap NetworkStyle::splashImage
private

Definition at line 32 of file networkstyle.h.

Referenced by getSplashImage(), and NetworkStyle().

◆ titleAddText

QString NetworkStyle::titleAddText
private

Definition at line 34 of file networkstyle.h.

Referenced by getTitleAddText(), and instantiate().

◆ trayAndWindowIcon

QIcon NetworkStyle::trayAndWindowIcon
private

Definition at line 33 of file networkstyle.h.

Referenced by getTrayAndWindowIcon(), and NetworkStyle().


The documentation for this class was generated from the following files:
Released under the MIT license