Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Visualization::StyleLoader Class Reference

Public Member Functions

 StyleLoader ()
 
 ~StyleLoader ()
 
bool hasProperty (const QString &name)
 
void load (const QString &propertyName, bool &value)
 
void load (const QString &propertyName, double &value)
 
void load (const QString &propertyName, int &value)
 
void load (const QString &propertyName, QColor &value)
 
void load (const QString &propertyName, QString &value)
 
template<typename T >
void load (const QString &propertyName, T &value)
 
template<typename T >
T * loadStyle (const QString &path, const QString &styleName)
 

Private Member Functions

QString getProperty (const QString &name)
 
void loadComposite (QBrush &value)
 
void loadComposite (QFont &value)
 
void loadComposite (QLinearGradient &value)
 
template<typename T >
void loadComposite (QList< T > &value)
 
template<typename F , typename S >
void loadComposite (QPair< F, S > &value)
 
void loadComposite (QPen &value)
 
void loadComposite (QPointF &value)
 
void loadComposite (QRadialGradient &value)
 
template<typename T >
void loadComposite (QVector< T > &value)
 
template<typename T >
void loadComposite (T &value)
 

Private Attributes

QList< QString > nodePath
 
StyleNoderootStyleNode
 

Constructor & Destructor Documentation

◆ StyleLoader()

Visualization::StyleLoader::StyleLoader ( )

◆ ~StyleLoader()

Visualization::StyleLoader::~StyleLoader ( )

Member Function Documentation

◆ getProperty()

QString Visualization::StyleLoader::getProperty ( const QString &  name)
private

◆ hasProperty()

bool Visualization::StyleLoader::hasProperty ( const QString &  name)

◆ load() [1/6]

void Visualization::StyleLoader::load ( const QString &  propertyName,
bool &  value 
)

◆ load() [2/6]

void Visualization::StyleLoader::load ( const QString &  propertyName,
double &  value 
)

◆ load() [3/6]

void Visualization::StyleLoader::load ( const QString &  propertyName,
int &  value 
)

◆ load() [4/6]

void Visualization::StyleLoader::load ( const QString &  propertyName,
QColor &  value 
)

◆ load() [5/6]

void Visualization::StyleLoader::load ( const QString &  propertyName,
QString &  value 
)

◆ load() [6/6]

template<typename T >
void Visualization::StyleLoader::load ( const QString &  propertyName,
T &  value 
)

◆ loadComposite() [1/10]

void Visualization::StyleLoader::loadComposite ( QBrush &  value)
private

◆ loadComposite() [2/10]

void Visualization::StyleLoader::loadComposite ( QFont &  value)
private

◆ loadComposite() [3/10]

void Visualization::StyleLoader::loadComposite ( QLinearGradient &  value)
private

◆ loadComposite() [4/10]

template<typename T >
void Visualization::StyleLoader::loadComposite ( QList< T > &  value)
private

◆ loadComposite() [5/10]

template<typename F , typename S >
void Visualization::StyleLoader::loadComposite ( QPair< F, S > &  value)
private

◆ loadComposite() [6/10]

void Visualization::StyleLoader::loadComposite ( QPen &  value)
private

◆ loadComposite() [7/10]

void Visualization::StyleLoader::loadComposite ( QPointF &  value)
private

◆ loadComposite() [8/10]

void Visualization::StyleLoader::loadComposite ( QRadialGradient &  value)
private

◆ loadComposite() [9/10]

template<typename T >
void Visualization::StyleLoader::loadComposite ( QVector< T > &  value)
private

◆ loadComposite() [10/10]

template<typename T >
void Visualization::StyleLoader::loadComposite ( T &  value)
inlineprivate

◆ loadStyle()

template<typename T >
T * Visualization::StyleLoader::loadStyle ( const QString &  path,
const QString &  styleName 
)

Member Data Documentation

◆ nodePath

QList< QString > Visualization::StyleLoader::nodePath
private

◆ rootStyleNode

StyleNode* Visualization::StyleLoader::rootStyleNode
private