QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskSkin Class Referenceabstract

Detailed Description

Definition at line 30 of file QskSkin.h.

Inheritance diagram for QskSkin:

Public Types

enum  ColorScheme { UnknownScheme , LightScheme , DarkScheme }
 

Public Member Functions

 QskSkin (QObject *parent=nullptr)
 
template<typename Control , typename Skinlet >
void declareSkinlet ()
 
void setSkinHint (QskAspect, const QVariant &hint)
 
const QVariant & skinHint (QskAspect) const
 
void setGraphicFilter (int graphicRole, const QskColorFilter &)
 
void resetGraphicFilter (int graphicRole)
 
QskColorFilter graphicFilter (int graphicRole) const
 
void setFont (const QskFontRole &, const QFont &)
 
void resetFont (const QskFontRole &)
 
QFont font (const QskFontRole &) const
 
void addGraphicProvider (const QString &providerId, QskGraphicProvider *)
 
QskGraphicProvidergraphicProvider (const QString &providerId) const
 
bool hasGraphicProvider () const
 
virtual const int * dialogButtonLayout (Qt::Orientation) const
 
virtual QString dialogButtonText (int button) const
 
QskSkinletskinlet (const QMetaObject *)
 
const QMetaObject * skinletMetaObject (const QMetaObject *) const
 
const QskSkinHintTablehintTable () const
 
QskSkinHintTablehintTable ()
 
const QHash< QskFontRole, QFont > & fontTable () const
 
const QHash< int, QskColorFilter > & graphicFilters () const
 
ColorScheme colorScheme () const
 

Public Slots

void setColorScheme (ColorScheme)
 

Signals

void colorSchemeChanged (ColorScheme)
 

Protected Member Functions

void clearHints ()
 
virtual void initHints ()=0
 
void setupFontTable (const QString &family, bool italic=false)
 
void completeFontTable ()
 

Member Enumeration Documentation

◆ ColorScheme

enum QskSkin::ColorScheme

Definition at line 39 of file QskSkin.h.

Constructor & Destructor Documentation

◆ QskSkin()

QskSkin::QskSkin ( QObject *  parent = nullptr)

Definition at line 179 of file QskSkin.cpp.

◆ ~QskSkin()

QskSkin::~QskSkin ( )
override

Definition at line 233 of file QskSkin.cpp.

Member Function Documentation

◆ addGraphicProvider()

void QskSkin::addGraphicProvider ( const QString &  providerId,
QskGraphicProvider provider 
)

Definition at line 425 of file QskSkin.cpp.

◆ clearHints()

void QskSkin::clearHints ( )
protected

Definition at line 441 of file QskSkin.cpp.

◆ colorScheme()

QskSkin::ColorScheme QskSkin::colorScheme ( ) const

Definition at line 237 of file QskSkin.cpp.

◆ completeFontTable()

void QskSkin::completeFontTable ( )
protected

Definition at line 331 of file QskSkin.cpp.

◆ declareSkinlet()

template<typename Skinnable , typename Skinlet >
void QskSkin::declareSkinlet ( )
inline

Definition at line 106 of file QskSkin.h.

◆ dialogButtonLayout()

const int * QskSkin::dialogButtonLayout ( Qt::Orientation  orientation) const
virtual

Definition at line 459 of file QskSkin.cpp.

◆ dialogButtonText()

QString QskSkin::dialogButtonText ( int  button) const
virtual

Definition at line 449 of file QskSkin.cpp.

◆ font()

QFont QskSkin::font ( const QskFontRole fontRole) const

Definition at line 385 of file QskSkin.cpp.

◆ fontTable()

const QHash< QskFontRole, QFont > & QskSkin::fontTable ( ) const

Definition at line 415 of file QskSkin.cpp.

◆ graphicFilter()

QskColorFilter QskSkin::graphicFilter ( int  graphicRole) const

Definition at line 400 of file QskSkin.cpp.

◆ graphicFilters()

const QHash< int, QskColorFilter > & QskSkin::graphicFilters ( ) const

Definition at line 420 of file QskSkin.cpp.

◆ graphicProvider()

QskGraphicProvider * QskSkin::graphicProvider ( const QString &  providerId) const

Definition at line 431 of file QskSkin.cpp.

◆ hasGraphicProvider()

bool QskSkin::hasGraphicProvider ( ) const

Definition at line 436 of file QskSkin.cpp.

◆ hintTable() [1/2]

QskSkinHintTable & QskSkin::hintTable ( )

Definition at line 410 of file QskSkin.cpp.

◆ hintTable() [2/2]

const QskSkinHintTable & QskSkin::hintTable ( ) const

Definition at line 405 of file QskSkin.cpp.

◆ resetFont()

void QskSkin::resetFont ( const QskFontRole fontRole)

Definition at line 380 of file QskSkin.cpp.

◆ resetGraphicFilter()

void QskSkin::resetGraphicFilter ( int  graphicRole)

Definition at line 395 of file QskSkin.cpp.

◆ setColorScheme

void QskSkin::setColorScheme ( ColorScheme  colorScheme)
slot

Definition at line 245 of file QskSkin.cpp.

◆ setFont()

void QskSkin::setFont ( const QskFontRole fontRole,
const QFont &  font 
)

Definition at line 375 of file QskSkin.cpp.

◆ setGraphicFilter()

void QskSkin::setGraphicFilter ( int  graphicRole,
const QskColorFilter colorFilter 
)

Definition at line 390 of file QskSkin.cpp.

◆ setSkinHint()

void QskSkin::setSkinHint ( QskAspect  aspect,
const QVariant &  hint 
)

Definition at line 274 of file QskSkin.cpp.

◆ setupFontTable()

void QskSkin::setupFontTable ( const QString &  family,
bool  italic = false 
)
protected

Definition at line 315 of file QskSkin.cpp.

◆ skinHint()

const QVariant & QskSkin::skinHint ( QskAspect  aspect) const

Definition at line 279 of file QskSkin.cpp.

◆ skinlet()

QskSkinlet * QskSkin::skinlet ( const QMetaObject *  metaObject)

Definition at line 487 of file QskSkin.cpp.

◆ skinletMetaObject()

const QMetaObject * QskSkin::skinletMetaObject ( const QMetaObject *  metaObject) const

Definition at line 473 of file QskSkin.cpp.