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 | Private Types | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends
Visualization::Static Class Reference
Inheritance diagram for Visualization::Static:
Core::Reflect< Base >

Public Types

typedef StaticStyle StyleType
 

Public Member Functions

 Static (Item *parent, const StyleType *style=itemStyles().get())
 
virtual ~Static ()
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual bool isEmpty () const override
 
Itemitem ()
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
virtual bool sizeDependsOnParent () const override
 
const StyleTypestyle () const
 

Static Public Member Functions

static void addAddOn (Visualization::VisualizationAddOn *addOn)
 
static Visualization::InteractionHandlerdefaultClassHandler ()
 
static Visualization::StyleSet< Static > & itemStyles ()
 
template<typename T >
static void registerStaticItem ()
 
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 Types

using staticItemConstructorType = Item *(*)(Item *parent, const ItemStyle *style)
 
using staticItemStyleConstructorType = ItemStyle *(*)()
 

Static Private Member Functions

static ItemStyleconstructStyle (const QString &itemClass)
 
static QList< Visualization::VisualizationAddOn * > & staticAddOns ()
 
template<typename T >
static ItemstaticItemConstructor (Item *parent, const ItemStyle *style)
 
template<typename T >
static ItemStylestaticItemStyleConstructor ()
 

Private Attributes

Itemitem_
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 
static QMap< QString, staticItemConstructorTypeitemClasses_
 
static QMap< QString, staticItemStyleConstructorTypeitemStyles_
 

Friends

class StaticStyle
 

Additional Inherited Members

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

Member Typedef Documentation

◆ staticItemConstructorType

◆ staticItemStyleConstructorType

◆ StyleType

Constructor & Destructor Documentation

◆ Static()

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

◆ ~Static()

Visualization::Static::~Static ( )
virtual

Member Function Documentation

◆ addAddOn()

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

◆ addOns()

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

◆ constructStyle()

ItemStyle * Visualization::Static::constructStyle ( const QString &  itemClass)
staticprivate

◆ defaultClassHandler()

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

◆ determineChildren()

void Visualization::Static::determineChildren ( )
overrideprotectedvirtual

◆ handler()

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

◆ isEmpty()

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

◆ item()

Item * Visualization::Static::item ( )
inline

◆ itemStyles()

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

◆ registerStaticItem()

template<typename T >
void Visualization::Static::registerStaticItem
static

◆ removeAddOn()

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

◆ setDefaultClassHandler()

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

◆ setStyle()

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

◆ sizeDependsOnParent()

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

◆ staticAddOns()

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

◆ staticItemConstructor()

template<typename T >
Item * Visualization::Static::staticItemConstructor ( Item parent,
const ItemStyle style 
)
staticprivate

◆ staticItemStyleConstructor()

template<typename T >
ItemStyle * Visualization::Static::staticItemStyleConstructor
staticprivate

◆ style()

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

◆ updateGeometry()

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

Friends And Related Function Documentation

◆ StaticStyle

friend class StaticStyle
friend

Member Data Documentation

◆ defaultClassHandler_

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

◆ item_

Item* Visualization::Static::item_
private

◆ itemClasses_

QMap< QString, Static::staticItemConstructorType > Visualization::Static::itemClasses_
staticprivate

◆ itemStyles_

QMap< QString, Static::staticItemStyleConstructorType > Visualization::Static::itemStyles_
staticprivate