Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
StyleNode (const QString &rootStyleNameAndPath, const QString &folderWithinStyles) | |
Creates a node representing the requested style. More... | |
virtual | ~StyleNode () |
QString | getProperty (QStringList path) |
bool | hasProperty (QStringList path) |
Static Public Member Functions | |
static void | setBaseFolder (const QString &baseFolder) |
Private Member Functions | |
StyleNode (StyleNode *parent, const QString &prototypeName, const QString ¤tFolder) | |
StyleNode (StyleNode *parent, QDomElement elem) | |
QDomElement | getElement (QStringList path) |
QString | getFolder () |
void | init () |
QDomDocument | openStyleDoc (const QString &path) |
Private Attributes | |
QList< StyleNode * > | children |
QDomDocument | doc |
QDomElement | elem_ |
QString | folder |
StyleNode * | parent_ |
QList< StyleNode * > | prototypes |
Static Private Attributes | |
static QString | baseFolder_ = "styles" |
Visualization::StyleNode::StyleNode | ( | const QString & | rootStyleNameAndPath, |
const QString & | folderWithinStyles | ||
) |
Creates a node representing the requested style.
folderWithinStyles is the folder that contains the style file rootStyleNameAndPath. The rootStyleNameAndPath might be just a simple file name or can contain an additional sub-style separated by a '/' e.g. "keywordStyleFile/requiresKeyword". The latter case indicates that, the style is not the root XML node, but the is contained by the node with a name indicated by the string after the '/'.
|
virtual |
|
private |
|
private |
|
private |
|
private |
QString Visualization::StyleNode::getProperty | ( | QStringList | path | ) |
|
inline |
|
private |
|
private |
|
static |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |