TechDrawGui::QGCustomText Class Reference

#include <QGCustomText.h>

Public Types

enum  { Type = QGraphicsItem::UserType + 130 }
 

Public Member Functions

virtual QRectF boundingRect () const override
 
virtual void centerAt (double cX, double cY)
 
virtual void centerAt (QPointF centerPos)
 
virtual double getHeight (void)
 
virtual QColor getNormalColor (void)
 
virtual QColor getPreColor (void)
 
virtual QColor getSelectColor (void)
 
virtual double getWidth (void)
 
virtual void justifyLeftAt (double cX, double cY, bool vCenter=true)
 
virtual void justifyLeftAt (QPointF centerPos, bool vCenter=true)
 
virtual void justifyRightAt (double cX, double cY, bool vCenter=true)
 
virtual void justifyRightAt (QPointF centerPos, bool vCenter=true)
 
void makeMark (Base::Vector3d v)
 
void makeMark (double x, double y)
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
 QGCustomText (QGraphicsItem *parent=nullptr)
 
virtual void setColor (QColor c)
 
void setHighlighted (bool state)
 
virtual void setPrettyNormal ()
 
virtual void setPrettyPre ()
 
virtual void setPrettySel ()
 
virtual void setTightBounding (bool tight)
 
QPointF tightBoundingAdjust () const
 
QRectF tightBoundingRect () const
 
int type () const override
 
 ~QGCustomText ()
 

Protected Member Functions

Base::Reference< ParameterGrpgetParmGroup (void)
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event) override
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) override
 

Protected Attributes

bool isHighlighted
 
QColor m_colCurrent
 
QColor m_colNormal
 
bool tightBounding
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Type 

Constructor & Destructor Documentation

◆ QGCustomText()

QGCustomText::QGCustomText ( QGraphicsItem *  parent = nullptr)
explicit

◆ ~QGCustomText()

TechDrawGui::QGCustomText::~QGCustomText ( )

Member Function Documentation

◆ boundingRect()

◆ centerAt() [1/2]

void QGCustomText::centerAt ( double  cX,
double  cY 
)
virtual

References boundingRect().

◆ centerAt() [2/2]

◆ getHeight()

double QGCustomText::getHeight ( void  )
virtual

References boundingRect().

◆ getNormalColor()

QColor QGCustomText::getNormalColor ( void  )
virtual

◆ getParmGroup()

Base::Reference< ParameterGrp > QGCustomText::getParmGroup ( void  )
protected

◆ getPreColor()

QColor QGCustomText::getPreColor ( void  )
virtual

◆ getSelectColor()

QColor QGCustomText::getSelectColor ( void  )
virtual

◆ getWidth()

double QGCustomText::getWidth ( void  )
virtual

References boundingRect().

◆ hoverEnterEvent()

void QGCustomText::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

Reimplemented in TechDrawGui::QGMText.

References setPrettyPre().

Referenced by TechDrawGui::QGMText::hoverEnterEvent().

◆ hoverLeaveEvent()

void QGCustomText::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event)
overrideprotectedvirtual

◆ itemChange()

QVariant QGCustomText::itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprotected

◆ justifyLeftAt() [1/2]

void QGCustomText::justifyLeftAt ( double  cX,
double  cY,
bool  vCenter = true 
)
virtual

References boundingRect().

◆ justifyLeftAt() [2/2]

void QGCustomText::justifyLeftAt ( QPointF  centerPos,
bool  vCenter = true 
)
virtual

◆ justifyRightAt() [1/2]

void QGCustomText::justifyRightAt ( double  cX,
double  cY,
bool  vCenter = true 
)
virtual

References boundingRect().

◆ justifyRightAt() [2/2]

void QGCustomText::justifyRightAt ( QPointF  centerPos,
bool  vCenter = true 
)
virtual

◆ makeMark() [1/2]

void QGCustomText::makeMark ( Base::Vector3d  v)

References makeMark().

◆ makeMark() [2/2]

void QGCustomText::makeMark ( double  x,
double  y 
)

◆ paint()

void QGCustomText::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget widget = nullptr 
)
overridevirtual

Reimplemented in TechDrawGui::QGMText.

Referenced by TechDrawGui::QGMText::paint().

◆ setColor()

◆ setHighlighted()

void TechDrawGui::QGCustomText::setHighlighted ( bool  state)

◆ setPrettyNormal()

◆ setPrettyPre()

◆ setPrettySel()

◆ setTightBounding()

void QGCustomText::setTightBounding ( bool  tight)
virtual

◆ tightBoundingAdjust()

QPointF QGCustomText::tightBoundingAdjust ( ) const

◆ tightBoundingRect()

QRectF QGCustomText::tightBoundingRect ( ) const

◆ type()

int TechDrawGui::QGCustomText::type ( ) const
override

Member Data Documentation

◆ isHighlighted

bool TechDrawGui::QGCustomText::isHighlighted
protected

◆ m_colCurrent

QColor TechDrawGui::QGCustomText::m_colCurrent
protected

◆ m_colNormal

QColor TechDrawGui::QGCustomText::m_colNormal
protected

◆ tightBounding

bool TechDrawGui::QGCustomText::tightBounding
protected

The documentation for this class was generated from the following files: