Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
Visualization::SequentialLayout Class Reference
Inheritance diagram for Visualization::SequentialLayout:
Core::Reflect< Base >

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::InteractionHandlerhandler () 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< ItemRegionregions () 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 StyleTypestyle () 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::InteractionHandlerdefaultClassHandler ()
 
static Visualization::StyleSet< SequentialLayout > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Private Member Functions

void adjustCursorRegionToAvoidZeroSize (QRect &region, 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::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ SequentialLayout()

Visualization::SequentialLayout::SequentialLayout ( Item parent,
const StyleType style = itemStyles().get() 
)

◆ ~SequentialLayout()

Visualization::SequentialLayout::~SequentialLayout ( )

Member Function Documentation

◆ addAddOn()

void Visualization::SequentialLayout::addAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ addOns()

QList< Visualization::VisualizationAddOn * > Visualization::SequentialLayout::addOns ( )
overridevirtual

◆ adjustCursorRegionToAvoidZeroSize()

void Visualization::SequentialLayout::adjustCursorRegionToAvoidZeroSize ( QRect &  region,
bool  horizontal,
bool  forward,
bool  first,
bool  last 
)
inlineprivate

◆ append()

void Visualization::SequentialLayout::append ( Item item)

◆ at() [1/2]

template<typename T >
T * Visualization::SequentialLayout::at ( int  index)
inline

◆ at() [2/2]

template<typename T >
T * Visualization::SequentialLayout::at ( int  index) const
inline

◆ clear()

void Visualization::SequentialLayout::clear ( bool  deleteItems = true)

◆ defaultClassHandler()

static Visualization::InteractionHandler* Visualization::SequentialLayout::defaultClassHandler ( )
inlinestatic

◆ focusedElementIndex()

int Visualization::SequentialLayout::focusedElementIndex ( ) const

◆ handler()

Visualization::InteractionHandler * Visualization::SequentialLayout::handler ( ) const
overridevirtual

◆ insert()

void Visualization::SequentialLayout::insert ( Item item,
int  position 
)

◆ isEmpty()

bool Visualization::SequentialLayout::isEmpty ( ) const
overridevirtual

◆ isForward()

bool Visualization::SequentialLayout::isForward ( ) const
inline

◆ isHorizontal()

bool Visualization::SequentialLayout::isHorizontal ( ) const
inline

◆ itemStyles()

Visualization::StyleSet< SequentialLayout > & Visualization::SequentialLayout::itemStyles ( )
static

◆ length()

int Visualization::SequentialLayout::length ( ) const

◆ placeSynchronized()

void Visualization::SequentialLayout::placeSynchronized ( int  oldItemIndex,
Item newItem,
int  pos 
)
private

◆ prepend()

void Visualization::SequentialLayout::prepend ( Item item)

◆ regions()

QList< ItemRegion > Visualization::SequentialLayout::regions ( )
overridevirtual

◆ remove()

void Visualization::SequentialLayout::remove ( int  index,
bool  deleteItem = true 
)

◆ removeAddOn()

bool Visualization::SequentialLayout::removeAddOn ( Visualization::VisualizationAddOn addOn)
static

◆ removeAll()

void Visualization::SequentialLayout::removeAll ( Item item,
bool  deleteItem = true 
)

◆ setDefaultClassHandler()

static void Visualization::SequentialLayout::setDefaultClassHandler ( Visualization::InteractionHandler handler)
inlinestatic

◆ setSpaceBetweenElements()

void Visualization::SequentialLayout::setSpaceBetweenElements ( bool  use,
int  space = 0 
)

◆ setStyle()

void Visualization::SequentialLayout::setStyle ( const Visualization::ItemStyle itemStyle)
overridevirtual

◆ sizeDependsOnParent()

bool Visualization::SequentialLayout::sizeDependsOnParent ( ) const
overridevirtual

◆ spaceBetweenElements()

int Visualization::SequentialLayout::spaceBetweenElements ( ) const

◆ staticAddOns()

QList< Visualization::VisualizationAddOn * > & Visualization::SequentialLayout::staticAddOns ( )
staticprivate

◆ style()

const StyleType* Visualization::SequentialLayout::style ( ) const
inline

◆ swap()

void Visualization::SequentialLayout::swap ( int  i,
int  j 
)

◆ synchronizeFirst() [1/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeFirst ( FieldType *&  item,
bool  present,
const typename VisualizationType::StyleType *  style 
)

◆ synchronizeFirst() [2/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeFirst ( FieldType *&  item,
typename VisualizationType::NodeType *  node,
const typename VisualizationType::StyleType *  style 
)

◆ synchronizeFirst() [3/3]

void Visualization::SequentialLayout::synchronizeFirst ( Item *&  item,
Model::Node node 
)

◆ synchronizeLast() [1/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeLast ( FieldType *&  item,
bool  present,
const typename VisualizationType::StyleType *  style 
)

◆ synchronizeLast() [2/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeLast ( FieldType *&  item,
typename VisualizationType::NodeType *  node,
const typename VisualizationType::StyleType *  style 
)

◆ synchronizeLast() [3/3]

void Visualization::SequentialLayout::synchronizeLast ( Item *&  item,
Model::Node node 
)

◆ synchronizeMid() [1/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeMid ( FieldType *&  item,
bool  present,
const typename VisualizationType::StyleType *  style,
int  position 
)

◆ synchronizeMid() [2/3]

template<typename FieldType , typename VisualizationType >
void Visualization::SequentialLayout::synchronizeMid ( FieldType *&  item,
typename VisualizationType::NodeType *  node,
const typename VisualizationType::StyleType *  style,
int  position 
)

◆ synchronizeMid() [3/3]

void Visualization::SequentialLayout::synchronizeMid ( Item *&  item,
Model::Node node,
int  position 
)

◆ synchronizeWithNodes()

void Visualization::SequentialLayout::synchronizeWithNodes ( const QList< Model::Node * > &  nodes)

◆ updateGeometry()

void Visualization::SequentialLayout::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overridevirtual

Member Data Documentation

◆ defaultClassHandler_

Visualization::InteractionHandler * Visualization::SequentialLayout::defaultClassHandler_ = nullptr
staticprivate

◆ items

QVector<Item*> Visualization::SequentialLayout::items
private

◆ spaceBetweenElements_

int Visualization::SequentialLayout::spaceBetweenElements_
private