#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=0) 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 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) |
QGCustomText (QGraphicsItem *parent=nullptr) | |
virtual void | setColor (QColor c) |
void | setHighlighted (bool state) |
int | type () const |
~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) |
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
Additional Inherited Members | |
Protected Attributes inherited from TechDrawGui::QGCustomText | |
bool | isHighlighted |
QColor | m_colCurrent |
QColor | m_colNormal |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGMText()
|
explicit |
◆ ~QGMText()
TechDrawGui::QGMText::~QGMText | ( | ) |
Member Function Documentation
◆ dragFinished
|
signal |
Referenced by mouseReleaseEvent().
◆ dragging
|
signal |
Referenced by itemChange().
◆ hover
|
signal |
Referenced by hoverEnterEvent(), and hoverLeaveEvent().
◆ hoverEnterEvent()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGCustomText.
References hover(), TechDrawGui::QGCustomText::hoverEnterEvent(), and setPrettyPre().
◆ hoverLeaveEvent()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGCustomText.
References hover(), TechDrawGui::QGCustomText::hoverLeaveEvent(), and setPrettyNormal().
◆ itemChange()
|
overrideprotectedvirtual |
References dragging(), and TechDrawGui::QGCustomText::itemChange().
◆ mouseMoveEvent()
|
overrideprotectedvirtual |
◆ mousePressEvent()
|
overrideprotectedvirtual |
◆ mouseReleaseEvent()
|
overridevirtual |
References dragFinished().
◆ paint()
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::paint(), and showBox().
◆ selected
|
signal |
◆ setPrettyNormal()
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettyNormal().
Referenced by hoverLeaveEvent().
◆ setPrettyPre()
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettyPre().
Referenced by hoverEnterEvent().
◆ setPrettySel()
|
overridevirtual |
Reimplemented from TechDrawGui::QGCustomText.
References TechDrawGui::QGCustomText::setPrettySel().
◆ showBox() [1/2]
|
virtual |
◆ showBox() [2/2]
◆ type()
|
override |
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGMText.h
- src/Mod/TechDraw/Gui/QGMText.cpp