Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
typedef SequentialLayoutStyle | StyleType |
Public Member Functions | |
SequentialLayout (Item *parent, const StyleType *style=itemStyles().get()) | |
~SequentialLayout () | |
virtual QList< Visualization::VisualizationAddOn * > | addOns () override |
void | append (Item *item) |
template<typename T > | |
T * | at (int index) |
template<typename T > | |
T * | at (int index) const |
void | clear (bool deleteItems=true) |
int | focusedElementIndex () const |
virtual Visualization::InteractionHandler * | handler () const override |
void | insert (Item *item, int position) |
virtual bool | isEmpty () const override |
bool | isForward () const |
bool | isHorizontal () const |
int | length () const |
void | prepend (Item *item) |
virtual QList< ItemRegion > | regions () override |
void | remove (int index, bool deleteItem=true) |
void | removeAll (Item *item, bool deleteItem=true) |
void | setSpaceBetweenElements (bool use, int space=0) |
virtual void | setStyle (const Visualization::ItemStyle *itemStyle) override |
virtual bool | sizeDependsOnParent () const override |
int | spaceBetweenElements () const |
const StyleType * | style () const |
void | swap (int i, int j) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeFirst (FieldType *&item, bool present, const typename VisualizationType::StyleType *style) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeFirst (FieldType *&item, typename VisualizationType::NodeType *node, const typename VisualizationType::StyleType *style) |
void | synchronizeFirst (Item *&item, Model::Node *node) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeLast (FieldType *&item, bool present, const typename VisualizationType::StyleType *style) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeLast (FieldType *&item, typename VisualizationType::NodeType *node, const typename VisualizationType::StyleType *style) |
void | synchronizeLast (Item *&item, Model::Node *node) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeMid (FieldType *&item, bool present, const typename VisualizationType::StyleType *style, int position) |
template<typename FieldType , typename VisualizationType = FieldType> | |
void | synchronizeMid (FieldType *&item, typename VisualizationType::NodeType *node, const typename VisualizationType::StyleType *style, int position) |
void | synchronizeMid (Item *&item, Model::Node *node, int position) |
void | synchronizeWithNodes (const QList< Model::Node * > &nodes) |
virtual void | updateGeometry (int availableWidth, int availableHeight) override |
Static Public Member Functions | |
static void | addAddOn (Visualization::VisualizationAddOn *addOn) |
static Visualization::InteractionHandler * | defaultClassHandler () |
static Visualization::StyleSet< SequentialLayout > & | itemStyles () |
static bool | removeAddOn (Visualization::VisualizationAddOn *addOn) |
static void | setDefaultClassHandler (Visualization::InteractionHandler *handler) |
Private Member Functions | |
void | adjustCursorRegionToAvoidZeroSize (QRect ®ion, bool horizontal, bool forward, bool first, bool last) |
void | placeSynchronized (int oldItemIndex, Item *newItem, int pos) |
Static Private Member Functions | |
static QList< Visualization::VisualizationAddOn * > & | staticAddOns () |
Private Attributes | |
QVector< Item * > | items |
int | spaceBetweenElements_ |
Static Private Attributes | |
static Visualization::InteractionHandler * | defaultClassHandler_ = nullptr |
Additional Inherited Members | |
Protected Types inherited from Core::Reflect< Base > | |
using | Super = Reflect< Base > |
Visualization::SequentialLayout::SequentialLayout | ( | Item * | parent, |
const StyleType * | style = itemStyles().get() |
||
) |
Visualization::SequentialLayout::~SequentialLayout | ( | ) |
|
static |
|
overridevirtual |
|
inlineprivate |
void Visualization::SequentialLayout::append | ( | Item * | item | ) |
|
inline |
|
inline |
void Visualization::SequentialLayout::clear | ( | bool | deleteItems = true | ) |
|
inlinestatic |
int Visualization::SequentialLayout::focusedElementIndex | ( | ) | const |
|
overridevirtual |
void Visualization::SequentialLayout::insert | ( | Item * | item, |
int | position | ||
) |
|
overridevirtual |
|
inline |
|
inline |
|
static |
int Visualization::SequentialLayout::length | ( | ) | const |
|
private |
void Visualization::SequentialLayout::prepend | ( | Item * | item | ) |
|
overridevirtual |
void Visualization::SequentialLayout::remove | ( | int | index, |
bool | deleteItem = true |
||
) |
|
static |
void Visualization::SequentialLayout::removeAll | ( | Item * | item, |
bool | deleteItem = true |
||
) |
|
inlinestatic |
void Visualization::SequentialLayout::setSpaceBetweenElements | ( | bool | use, |
int | space = 0 |
||
) |
|
overridevirtual |
|
overridevirtual |
int Visualization::SequentialLayout::spaceBetweenElements | ( | ) | const |
|
staticprivate |
|
inline |
void Visualization::SequentialLayout::swap | ( | int | i, |
int | j | ||
) |
void Visualization::SequentialLayout::synchronizeFirst | ( | FieldType *& | item, |
bool | present, | ||
const typename VisualizationType::StyleType * | style | ||
) |
void Visualization::SequentialLayout::synchronizeFirst | ( | FieldType *& | item, |
typename VisualizationType::NodeType * | node, | ||
const typename VisualizationType::StyleType * | style | ||
) |
void Visualization::SequentialLayout::synchronizeFirst | ( | Item *& | item, |
Model::Node * | node | ||
) |
void Visualization::SequentialLayout::synchronizeLast | ( | FieldType *& | item, |
bool | present, | ||
const typename VisualizationType::StyleType * | style | ||
) |
void Visualization::SequentialLayout::synchronizeLast | ( | FieldType *& | item, |
typename VisualizationType::NodeType * | node, | ||
const typename VisualizationType::StyleType * | style | ||
) |
void Visualization::SequentialLayout::synchronizeLast | ( | Item *& | item, |
Model::Node * | node | ||
) |
void Visualization::SequentialLayout::synchronizeMid | ( | FieldType *& | item, |
bool | present, | ||
const typename VisualizationType::StyleType * | style, | ||
int | position | ||
) |
void Visualization::SequentialLayout::synchronizeMid | ( | FieldType *& | item, |
typename VisualizationType::NodeType * | node, | ||
const typename VisualizationType::StyleType * | style, | ||
int | position | ||
) |
void Visualization::SequentialLayout::synchronizeMid | ( | Item *& | item, |
Model::Node * | node, | ||
int | position | ||
) |
void Visualization::SequentialLayout::synchronizeWithNodes | ( | const QList< Model::Node * > & | nodes | ) |
|
overridevirtual |
|
staticprivate |
|
private |
|
private |