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

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 &currentFolder)
 
 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
 
StyleNodeparent_
 
QList< StyleNode * > prototypes
 

Static Private Attributes

static QString baseFolder_ = "styles"
 

Constructor & Destructor Documentation

◆ StyleNode() [1/3]

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 '/'.

◆ ~StyleNode()

Visualization::StyleNode::~StyleNode ( )
virtual

◆ StyleNode() [2/3]

Visualization::StyleNode::StyleNode ( StyleNode parent,
QDomElement  elem 
)
private

◆ StyleNode() [3/3]

Visualization::StyleNode::StyleNode ( StyleNode parent,
const QString &  prototypeName,
const QString &  currentFolder 
)
private

Member Function Documentation

◆ getElement()

QDomElement Visualization::StyleNode::getElement ( QStringList  path)
private

◆ getFolder()

QString Visualization::StyleNode::getFolder ( )
private

◆ getProperty()

QString Visualization::StyleNode::getProperty ( QStringList  path)

◆ hasProperty()

bool Visualization::StyleNode::hasProperty ( QStringList  path)
inline

◆ init()

void Visualization::StyleNode::init ( )
private

◆ openStyleDoc()

QDomDocument Visualization::StyleNode::openStyleDoc ( const QString &  path)
private

◆ setBaseFolder()

void Visualization::StyleNode::setBaseFolder ( const QString &  baseFolder)
static

Member Data Documentation

◆ baseFolder_

QString Visualization::StyleNode::baseFolder_ = "styles"
staticprivate

◆ children

QList< StyleNode* > Visualization::StyleNode::children
private

◆ doc

QDomDocument Visualization::StyleNode::doc
private

◆ elem_

QDomElement Visualization::StyleNode::elem_
private

◆ folder

QString Visualization::StyleNode::folder
private

◆ parent_

StyleNode* Visualization::StyleNode::parent_
private

◆ prototypes

QList< StyleNode* > Visualization::StyleNode::prototypes
private