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

Public Types

typedef VListStyle StyleType
 

Public Member Functions

 VList (Item *parent, NodeType *node, const StyleType *style=itemStyles().get())
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual int determineForm () override
 
int focusedItemIndex () const
 
int focusedNodeIndex () const
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual bool ignoresCopyAndPaste () override
 
int indexOfChildOrSubChild (const Item *item) const
 
bool isShowingEmptyTip ()
 
template<typename T >
T * itemAt (int itemIndex) const
 
template<typename T >
T * itemAtNodeIndex (int nodeIndex) const
 
int length () const
 
virtual bool moveCursor (CursorMoveDirection dir=MoveDefault, QRect reference={}, CursorMoveOptions options=None) override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
int rangeBegin () const
 
int rangeEnd () const
 
virtual QList< ItemRegionregions () override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
void setSuppressDefaultCopyPasteHandler (bool suppress)
 
void setSuppressDefaultRemovalHandler (bool suppress)
 
bool showsPartialRange () const
 
const StyleTypestyle () const
 
bool suppressDefaultRemovalHandler () const
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static void initializeForms ()
 
static Visualization::StyleSet< VList > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Protected Member Functions

virtual void determineRange ()
 Called during determineChildren() in order to determine which nodes should be shown. More...
 
void setRange (int begin, int end)
 Sets the range of nodes that should be displayed by this list visualization to start with the node at location begin and end before the node at location end. More...
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Static Private Member Functions

static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 

Private Attributes

Visualization::StaticemptyTip_ {}
 
int rangeBegin_ {}
 
int rangeEnd_ {}
 
bool suppressDefaultCopyPasteHandler_ {}
 
bool suppressDefaultRemovalHandler_ {}
 

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

◆ VList()

Visualization::VList::VList ( Item parent,
NodeType *  node,
const StyleType style = itemStyles().get() 
)

Member Function Documentation

◆ addAddOn()

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

◆ addOns()

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

◆ defaultClassHandler()

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

◆ determineForm()

int Visualization::VList::determineForm ( )
overridevirtual

◆ determineRange()

void Visualization::VList::determineRange ( )
protectedvirtual

Called during determineChildren() in order to determine which nodes should be shown.

The default implementation sets the range to cover all nodes. Override this in a derived class and call setRange() in order to control the range of displayed nodes.

◆ focusedItemIndex()

int Visualization::VList::focusedItemIndex ( ) const
inline

◆ focusedNodeIndex()

int Visualization::VList::focusedNodeIndex ( ) const
inline

◆ handler()

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

◆ ignoresCopyAndPaste()

bool Visualization::VList::ignoresCopyAndPaste ( )
overridevirtual

◆ indexOfChildOrSubChild()

int Visualization::VList::indexOfChildOrSubChild ( const Item item) const

◆ initializeForms()

void Visualization::VList::initializeForms ( )
static

◆ isShowingEmptyTip()

bool Visualization::VList::isShowingEmptyTip ( )
inline

◆ itemAt()

template<typename T >
T * Visualization::VList::itemAt ( int  itemIndex) const
inline

◆ itemAtNodeIndex()

template<typename T >
T * Visualization::VList::itemAtNodeIndex ( int  nodeIndex) const
inline

◆ itemStyles()

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

◆ length()

int Visualization::VList::length ( ) const
inline

◆ moveCursor()

bool Visualization::VList::moveCursor ( CursorMoveDirection  dir = MoveDefault,
QRect  reference = {},
CursorMoveOptions  options = None 
)
overridevirtual

◆ paint()

void Visualization::VList::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)
overridevirtual

◆ rangeBegin()

int Visualization::VList::rangeBegin ( ) const
inline

◆ rangeEnd()

int Visualization::VList::rangeEnd ( ) const
inline

◆ regions()

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

◆ removeAddOn()

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

◆ setDefaultClassHandler()

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

◆ setRange()

void Visualization::VList::setRange ( int  begin,
int  end 
)
protected

Sets the range of nodes that should be displayed by this list visualization to start with the node at location begin and end before the node at location end.

VList can display whole lists or a continuous subpart of a list. Use this method to set what part of the nodes should be set.

◆ setStyle()

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

◆ setSuppressDefaultCopyPasteHandler()

void Visualization::VList::setSuppressDefaultCopyPasteHandler ( bool  suppress)
inline

◆ setSuppressDefaultRemovalHandler()

void Visualization::VList::setSuppressDefaultRemovalHandler ( bool  suppress)
inline

◆ showsPartialRange()

bool Visualization::VList::showsPartialRange ( ) const
inline

◆ staticAddOns()

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

◆ style()

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

◆ suppressDefaultRemovalHandler()

bool Visualization::VList::suppressDefaultRemovalHandler ( ) const
inline

◆ updateGeometry()

void Visualization::VList::updateGeometry ( int  availableWidth,
int  availableHeight 
)
overrideprotectedvirtual

Member Data Documentation

◆ defaultClassHandler_

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

◆ emptyTip_

Visualization::Static* Visualization::VList::emptyTip_ {}
private

◆ rangeBegin_

int Visualization::VList::rangeBegin_ {}
private

◆ rangeEnd_

int Visualization::VList::rangeEnd_ {}
private

◆ suppressDefaultCopyPasteHandler_

bool Visualization::VList::suppressDefaultCopyPasteHandler_ {}
private

◆ suppressDefaultRemovalHandler_

bool Visualization::VList::suppressDefaultRemovalHandler_ {}
private