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::TestBox Class Reference
Inheritance diagram for Visualization::TestBox:
Core::Reflect< Base >

Public Types

using NodeType = TestBoxNode
 
typedef TextStyle StyleType
 

Public Member Functions

 TestBox (const QString &label, bool sizeDependsOnParent, bool isHtml)
 
 TestBox (const QString &label, QColor color, bool sizeDependsOnParent, bool isHtml)
 
 TestBox (Item *parent, NodeType *node)
 
 TestBox (NodeType *node)
 
virtual QList< Visualization::VisualizationAddOn * > addOns () override
 
virtual Visualization::InteractionHandlerhandler () const override
 
virtual bool hasNode () const override
 
virtual bool moveCursor (CursorMoveDirection dir=MoveDefault, QRect reference={}, CursorMoveOptions options=None) override
 
virtual NodeTypenode () const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual int revision () const override
 
virtual void setRevision (int newRevision) override
 
virtual void setStyle (const Visualization::ItemStyle *itemStyle) override
 
virtual bool setText (const QString &newText) 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< TestBox > & itemStyles ()
 
static bool removeAddOn (Visualization::VisualizationAddOn *addOn)
 
static void setDefaultClassHandler (Visualization::InteractionHandler *handler)
 

Protected Member Functions

virtual QString currentText () override
 
virtual void determineChildren () override
 
virtual void updateGeometry (int availableWidth, int availableHeight) override
 

Static Private Member Functions

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

Private Attributes

QColor color_ {Qt::yellow}
 
bool isHtml_ {}
 
NodeTypenode_ {}
 
int nodeRevision_ {-1}
 
bool sizeDependsOnParent_ {}
 

Static Private Attributes

static Visualization::InteractionHandlerdefaultClassHandler_ = nullptr
 

Additional Inherited Members

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

Member Typedef Documentation

◆ NodeType

◆ StyleType

Constructor & Destructor Documentation

◆ TestBox() [1/4]

Visualization::TestBox::TestBox ( Item parent,
NodeType node 
)

◆ TestBox() [2/4]

Visualization::TestBox::TestBox ( NodeType node)

◆ TestBox() [3/4]

Visualization::TestBox::TestBox ( const QString &  label,
QColor  color,
bool  sizeDependsOnParent,
bool  isHtml 
)

◆ TestBox() [4/4]

Visualization::TestBox::TestBox ( const QString &  label,
bool  sizeDependsOnParent,
bool  isHtml 
)

Member Function Documentation

◆ addAddOn()

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

◆ addOns()

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

◆ currentText()

QString Visualization::TestBox::currentText ( )
overrideprotectedvirtual

◆ defaultClassHandler()

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

◆ determineChildren()

void Visualization::TestBox::determineChildren ( )
overrideprotectedvirtual

◆ handler()

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

◆ hasNode()

bool Visualization::TestBox::hasNode ( ) const
overridevirtual

◆ itemStyles()

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

◆ moveCursor()

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

◆ node()

TestBox::NodeType * Visualization::TestBox::node ( ) const
overridevirtual

◆ paint()

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

◆ removeAddOn()

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

◆ revision()

int Visualization::TestBox::revision ( ) const
overridevirtual

◆ setDefaultClassHandler()

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

◆ setRevision()

void Visualization::TestBox::setRevision ( int  newRevision)
overridevirtual

◆ setStyle()

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

◆ setText()

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

◆ sizeDependsOnParent()

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

◆ staticAddOns()

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

◆ style()

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

◆ updateGeometry()

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

Member Data Documentation

◆ color_

QColor Visualization::TestBox::color_ {Qt::yellow}
private

◆ defaultClassHandler_

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

◆ isHtml_

bool Visualization::TestBox::isHtml_ {}
private

◆ node_

NodeType* Visualization::TestBox::node_ {}
private

◆ nodeRevision_

int Visualization::TestBox::nodeRevision_ {-1}
private

◆ sizeDependsOnParent_

bool Visualization::TestBox::sizeDependsOnParent_ {}
private