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

Public Types

typedef TextStyle StyleType
 

Public Member Functions

 VText (Item *parent, NodeType *node, const StyleType *style=itemStyles().get())
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual bool moveCursor (CursorMoveDirection dir=MoveDefault, QRect reference={}, CursorMoveOptions options=None) override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
virtual bool setText (const QString &newText) override
 
const StyleTypestyle () const
 

Static Public Member Functions

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

Protected Member Functions

virtual QString currentText () override
 

Static Private Member Functions

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

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

◆ VText()

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

Member Function Documentation

◆ addAddOn()

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

◆ addOns()

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

◆ currentText()

QString Visualization::VText::currentText ( )
overrideprotectedvirtual

◆ defaultClassHandler()

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

◆ handler()

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

◆ itemStyles()

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

◆ moveCursor()

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

◆ removeAddOn()

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

◆ setDefaultClassHandler()

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

◆ setStyle()

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

◆ setText()

bool Visualization::VText::setText ( const QString &  newText)
overridevirtual

◆ staticAddOns()

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

◆ style()

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

Member Data Documentation

◆ defaultClassHandler_

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