Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
PlatformStyle Class Reference

#include <platformstyle.h>

Public Types

enum  StateType { NavBar = 0, PushButton = 1 }
 
enum  TableColorType {
  Normal = 0, Input, Inout, Output,
  Error
}
 

Public Member Functions

const QString & getName () const
 
bool getImagesOnButtons () const
 
bool getUseExtraSpacing () const
 
QColor TextColor () const
 
QColor SingleColor () const
 
QColor MenuColor () const
 
QImage SingleColorImage (const QString &filename) const
 Colorize an image (given filename) with the icon color. More...
 
QIcon SingleColorIcon (const QString &filename) const
 Colorize an icon (given filename) with the icon color. More...
 
QIcon SingleColorIcon (const QIcon &icon) const
 Colorize an icon (given object) with the icon color. More...
 
QIcon TextColorIcon (const QString &filename) const
 Colorize an icon (given filename) with the text color. More...
 
QIcon TextColorIcon (const QIcon &icon) const
 Colorize an icon (given object) with the text color. More...
 
QIcon MenuColorIcon (const QString &filename) const
 Colorize an icon (given filename) with the menu text color. More...
 
QIcon MenuColorIcon (const QIcon &icon) const
 Colorize an icon (given object) with the menu text color. More...
 
QIcon MultiStatesIcon (const QString &resourcename, StateType type=NavBar, QColor color=Qt::white, QColor colorAlt=0x2d2d2d) const
 Get multi-states icon. More...
 
QIcon TableColorIcon (const QString &resourcename, TableColorType type) const
 
QImage TableColorImage (const QString &resourcename, TableColorType type) const
 
void TableColor (TableColorType type, int &color, double &opacity) const
 

Static Public Member Functions

static const PlatformStyleinstantiate (const QString &platformId)
 Get style associated with provided platform name, or 0 if not known. More...
 

Private Member Functions

 PlatformStyle (const QString &name, bool imagesOnButtons, bool colorizeIcons, bool useExtraSpacing)
 

Private Attributes

QString name
 
bool imagesOnButtons
 
bool colorizeIcons
 
bool useExtraSpacing
 
QColor singleColor
 
QColor textColor
 
QColor menuColor
 

Detailed Description

Definition at line 13 of file platformstyle.h.

Member Enumeration Documentation

Enumerator
NavBar 
PushButton 

Definition at line 49 of file platformstyle.h.

Enumerator
Normal 
Input 
Inout 
Output 
Error 

Definition at line 56 of file platformstyle.h.

Constructor & Destructor Documentation

PlatformStyle::PlatformStyle ( const QString &  name,
bool  imagesOnButtons,
bool  colorizeIcons,
bool  useExtraSpacing 
)
private

Definition at line 85 of file platformstyle.cpp.

Here is the caller graph for this function:

Member Function Documentation

bool PlatformStyle::getImagesOnButtons ( ) const
inline

Definition at line 21 of file platformstyle.h.

Here is the caller graph for this function:

const QString& PlatformStyle::getName ( ) const
inline

Definition at line 19 of file platformstyle.h.

Here is the caller graph for this function:

bool PlatformStyle::getUseExtraSpacing ( ) const
inline

Definition at line 22 of file platformstyle.h.

Here is the caller graph for this function:

const PlatformStyle * PlatformStyle::instantiate ( const QString &  platformId)
static

Get style associated with provided platform name, or 0 if not known.

Definition at line 254 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QColor PlatformStyle::MenuColor ( ) const
inline

Definition at line 26 of file platformstyle.h.

Here is the call graph for this function:

Here is the caller graph for this function:

QIcon PlatformStyle::MenuColorIcon ( const QString &  filename) const

Colorize an icon (given filename) with the menu text color.

Definition at line 134 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QIcon PlatformStyle::MenuColorIcon ( const QIcon &  icon) const

Colorize an icon (given object) with the menu text color.

Definition at line 139 of file platformstyle.cpp.

Here is the call graph for this function:

QIcon PlatformStyle::MultiStatesIcon ( const QString &  resourcename,
StateType  type = NavBar,
QColor  color = Qt::white,
QColor  colorAlt = 0x2d2d2d 
) const

Get multi-states icon.

Definition at line 144 of file platformstyle.cpp.

Here is the caller graph for this function:

QColor PlatformStyle::SingleColor ( ) const
inline

Definition at line 25 of file platformstyle.h.

Here is the caller graph for this function:

QIcon PlatformStyle::SingleColorIcon ( const QString &  filename) const

Colorize an icon (given filename) with the icon color.

Definition at line 110 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QIcon PlatformStyle::SingleColorIcon ( const QIcon &  icon) const

Colorize an icon (given object) with the icon color.

Definition at line 117 of file platformstyle.cpp.

Here is the call graph for this function:

QImage PlatformStyle::SingleColorImage ( const QString &  filename) const

Colorize an image (given filename) with the icon color.

Definition at line 103 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void PlatformStyle::TableColor ( PlatformStyle::TableColorType  type,
int &  color,
double &  opacity 
) const

Definition at line 221 of file platformstyle.cpp.

Here is the caller graph for this function:

QIcon PlatformStyle::TableColorIcon ( const QString &  resourcename,
TableColorType  type 
) const

Definition at line 178 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QImage PlatformStyle::TableColorImage ( const QString &  resourcename,
PlatformStyle::TableColorType  type 
) const

Definition at line 205 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QColor PlatformStyle::TextColor ( ) const
inline

Definition at line 24 of file platformstyle.h.

Here is the caller graph for this function:

QIcon PlatformStyle::TextColorIcon ( const QString &  filename) const

Colorize an icon (given filename) with the text color.

Definition at line 124 of file platformstyle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QIcon PlatformStyle::TextColorIcon ( const QIcon &  icon) const

Colorize an icon (given object) with the text color.

Definition at line 129 of file platformstyle.cpp.

Here is the call graph for this function:

Member Data Documentation

bool PlatformStyle::colorizeIcons
private

Definition at line 72 of file platformstyle.h.

bool PlatformStyle::imagesOnButtons
private

Definition at line 71 of file platformstyle.h.

QColor PlatformStyle::menuColor
private

Definition at line 76 of file platformstyle.h.

QString PlatformStyle::name
private

Definition at line 70 of file platformstyle.h.

QColor PlatformStyle::singleColor
private

Definition at line 74 of file platformstyle.h.

QColor PlatformStyle::textColor
private

Definition at line 75 of file platformstyle.h.

bool PlatformStyle::useExtraSpacing
private

Definition at line 73 of file platformstyle.h.


The documentation for this class was generated from the following files: