Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
typedef PositionLayoutStyle | StyleType |
Public Member Functions | |
PositionLayout (Item *parent, const StyleType *style=itemStyles().get()) | |
~PositionLayout () | |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
template<typename T > | |
T * | at (int index) |
template<typename T > | |
T * | at (int index) const |
void | clear (bool deleteItems=true) |
bool | containsNode (Model::Node *node) |
int | focusedElementIndex () const |
virtual Visualization::InteractionHandler * | handler () const override |
void | insert (Item *item) |
Inserts the specified item into the Layout. More... | |
virtual bool | isEmpty () const override |
virtual bool | isSensitiveToScale () const override |
int | length () const |
void | remove (int index, bool deleteItem=true) |
void | removeAll (Item *item, bool deleteItem=true) |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
const StyleType * | style () const |
void | synchronizeWithNodes (const QList< Model::Node * > &nodes) |
int | toGrid (const int &pos) const |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static Visualization::StyleSet< PositionLayout > & | itemStyles () |
static bool | removeAddOn (Visualization::VisualizationAddOn *addOn) |
static void | setDefaultClassHandler (Visualization::InteractionHandler *handler) |
Protected Member Functions | |
virtual void | determineChildren () override |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Private Member Functions | |
bool | adjustChildrenSemanticZoom () |
Returns true if the semantic zoom level of at least one child item was adjusted. More... | |
void | swap (int i, int j) |
Static Private Member Functions | |
static void | ensureItemHasCompositeNode (const Item *item) |
static std::unique_ptr< Position > | positionOf (Item *item) |
static QList< Visualization::VisualizationAddOn * > & | staticAddOns () |
Private Attributes | |
bool | allNodesLackPositionInfo {} |
QVector< Item * > | items |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
Visualization::PositionLayout::PositionLayout | ( | Item * | parent, |
const StyleType * | style = itemStyles().get() |
||
) |
Visualization::PositionLayout::~PositionLayout | ( | ) |
|
static |
|
overridevirtual |
|
private |
Returns true if the semantic zoom level of at least one child item was adjusted.
T * Visualization::PositionLayout::at | ( | int | index | ) |
T * Visualization::PositionLayout::at | ( | int | index | ) | const |
void Visualization::PositionLayout::clear | ( | bool | deleteItems = true | ) |
bool Visualization::PositionLayout::containsNode | ( | Model::Node * | node | ) |
|
inlinestatic |
|
overrideprotectedvirtual |
|
inlinestaticprivate |
int Visualization::PositionLayout::focusedElementIndex | ( | ) | const |
|
overridevirtual |
void Visualization::PositionLayout::insert | ( | Item * | item | ) |
Inserts the specified item into the Layout.
item | The Item to insert. This item must implement an Item that represents a node derived from Model::CompositeNode. Furthermore the represented node must have the Position and the FullDetailSize extensions. |
|
overridevirtual |
|
overridevirtual |
|
static |
int Visualization::PositionLayout::length | ( | ) | const |
|
inlinestaticprivate |
void Visualization::PositionLayout::remove | ( | int | index, |
bool | deleteItem = true |
||
) |
|
static |
void Visualization::PositionLayout::removeAll | ( | Item * | item, |
bool | deleteItem = true |
||
) |
|
inlinestatic |
|
overridevirtual |
|
staticprivate |
|
inline |
|
private |
void Visualization::PositionLayout::synchronizeWithNodes | ( | const QList< Model::Node * > & | nodes | ) |
int Visualization::PositionLayout::toGrid | ( | const int & | pos | ) | const |
|
overrideprotectedvirtual |
|
private |
|
staticprivate |
|
private |