#include <QGMText.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 300 } |
Public Types inherited from TechDrawGui::QGCustomText | |
enum | { Type = QGraphicsItem::UserType + 130 } |
Signals | |
void | dragFinished () |
void | dragging () |
void | hover (bool state) |
void | selected (bool state) |
Public Member Functions | |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override |
QGMText (void) | |
virtual void | setPrettyNormal () override |
virtual void | setPrettyPre () override |
virtual void | setPrettySel () override |
virtual void | showBox (bool b) |
virtual bool | showBox (void) |
int | type () const override |
~QGMText () | |
Public Member Functions inherited from TechDrawGui::QGCustomText | |
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 | |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
Protected Member Functions inherited from TechDrawGui::QGCustomText | |
Base::Reference< ParameterGrp > | getParmGroup (void) |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
Additional Inherited Members | |
Protected Attributes inherited from TechDrawGui::QGCustomText | |
bool | isHighlighted |
QColor | m_colCurrent |
QColor | m_colNormal |
bool | tightBounding |
|
explicit |
TechDrawGui::QGMText::~QGMText | ( | ) |
|
signal |
Referenced by mouseReleaseEvent().
|
signal |
Referenced by itemChange().
|
signal |
Referenced by hoverEnterEvent(), and hoverLeaveEvent().
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGCustomText.
References hover(), TechDrawGui::QGCustomText::hoverEnterEvent(), and setPrettyPre().
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGCustomText.
References hover(), TechDrawGui::QGCustomText::hoverLeaveEvent(), and setPrettyNormal().
|
overrideprotectedvirtual |
References dragging(), and TechDrawGui::QGCustomText::itemChange().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overridevirtual |
References dragFinished().
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::boundingRect(), TechDrawGui::QGCustomText::paint(), and showBox().
|
signal |
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettyNormal().
Referenced by hoverLeaveEvent().
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettyPre().
Referenced by hoverEnterEvent().
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettySel().
|
virtual |
|
override |
Referenced by ArchProfile.ProfileTaskPanel::accept(), and ArchProfile.ProfileTaskPanel::retranslateUi().