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

Public Types

typedef BracesStyle StyleType
 

Public Member Functions

 Braces (Item *parent, StyleType *style=itemStyles().get())
 
virtual int contentLeft () override
 
virtual QRect contentRect () override
 
virtual int contentTop () override
 
virtual QSize innerSize (QSize outerSize) const override
 
virtual QSize outerSize (QSize innerSize) const override
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 
virtual void setStyle (const Visualization::ShapeStyle *shapeStyle) override
 
const StyleTypestyle () const
 
virtual void update () override
 

Static Public Member Functions

static StyleSet< Braces > & itemStyles ()
 

Protected Attributes

qreal contentLeft_
 
qreal contentTop_
 
QPointF leftBraceOffset_
 
qreal rightBraceLeft_
 
QPointF rightBraceOffset_
 
int textSize_
 

Private Member Functions

QSize getSizeOfBrace (const QString &brace, const QFont &font, int innerHeight, QPointF *offset) const
 

Static Private Attributes

static const int MAX_BRACE_SIZE = 1000
 

Additional Inherited Members

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

Member Typedef Documentation

◆ StyleType

Constructor & Destructor Documentation

◆ Braces()

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

Member Function Documentation

◆ contentLeft()

int Visualization::Braces::contentLeft ( )
overridevirtual

◆ contentRect()

QRect Visualization::Braces::contentRect ( )
overridevirtual

◆ contentTop()

int Visualization::Braces::contentTop ( )
overridevirtual

◆ getSizeOfBrace()

QSize Visualization::Braces::getSizeOfBrace ( const QString &  brace,
const QFont &  font,
int  innerHeight,
QPointF *  offset 
) const
private

◆ innerSize()

QSize Visualization::Braces::innerSize ( QSize  outerSize) const
overridevirtual

◆ itemStyles()

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

◆ outerSize()

QSize Visualization::Braces::outerSize ( QSize  innerSize) const
overridevirtual

◆ paint()

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

◆ setStyle()

void Visualization::Braces::setStyle ( const Visualization::ShapeStyle shapeStyle)
overridevirtual

◆ style()

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

◆ update()

void Visualization::Braces::update ( )
overridevirtual

Member Data Documentation

◆ contentLeft_

qreal Visualization::Braces::contentLeft_
protected

◆ contentTop_

qreal Visualization::Braces::contentTop_
protected

◆ leftBraceOffset_

QPointF Visualization::Braces::leftBraceOffset_
protected

◆ MAX_BRACE_SIZE

const int Visualization::Braces::MAX_BRACE_SIZE = 1000
staticprivate

◆ rightBraceLeft_

qreal Visualization::Braces::rightBraceLeft_
protected

◆ rightBraceOffset_

QPointF Visualization::Braces::rightBraceOffset_
protected

◆ textSize_

int Visualization::Braces::textSize_
protected