Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
typedef std::function< bool(Item *parent, Model::Node *node)> | ConditionFunction |
typedef std::function< Item *(Item *parent, Model::Node *node)> | ItemConstructor |
Public Member Functions | |
VisualizationGroup () | |
VisualizationGroup (ConditionFunction condition, int scorePoints=1) | |
virtual | ~VisualizationGroup () |
void | addSubGroup (VisualizationGroup *group) |
void | addVisualization (VisualizationGroup::ItemConstructor visualization, int itemTypeId) |
void | addVisualization (VisualizationGroup::ItemConstructor visualization, int itemTypeId, ConditionFunction condition) |
void | clear () |
bool | matchesContext (Item *parent, Model::Node *node) |
void | setConditionFunction (ConditionFunction condition, int scorePoints=1) |
QList< QPair< VisualizationSuitabilityScore, QPair< int, ItemConstructor > > > | visualizationsForContext (Item *parent, Model::Node *node) |
Private Attributes | |
ConditionFunction | contextCondition_ |
QVector< int > | itemTypeIds_ |
int | scorePoints_ |
QVector< VisualizationGroup * > | subGroups_ |
QVector< ItemConstructor > | visualizations_ |
typedef std::function<bool (Item* parent, Model::Node* node)> Visualization::VisualizationGroup::ConditionFunction |
typedef std::function<Item* (Item* parent, Model::Node* node)> Visualization::VisualizationGroup::ItemConstructor |
Visualization::VisualizationGroup::VisualizationGroup | ( | ) |
Visualization::VisualizationGroup::VisualizationGroup | ( | ConditionFunction | condition, |
int | scorePoints = 1 |
||
) |
|
virtual |
|
inline |
void Visualization::VisualizationGroup::addVisualization | ( | VisualizationGroup::ItemConstructor | visualization, |
int | itemTypeId | ||
) |
void Visualization::VisualizationGroup::addVisualization | ( | VisualizationGroup::ItemConstructor | visualization, |
int | itemTypeId, | ||
ConditionFunction | condition | ||
) |
|
inline |
bool Visualization::VisualizationGroup::matchesContext | ( | Item * | parent, |
Model::Node * | node | ||
) |
|
inline |
QList< QPair< VisualizationSuitabilityScore, QPair< int, VisualizationGroup::ItemConstructor > > > Visualization::VisualizationGroup::visualizationsForContext | ( | Item * | parent, |
Model::Node * | node | ||
) |
|
private |
|
private |
|
private |
|
private |
|
private |