#include <QGIRichAnno.h>
Public Types | |
enum | { Type = QGraphicsItem::UserType + 233 } |
Public Types inherited from TechDrawGui::QGIView | |
enum | { Type = QGraphicsItem::UserType + 101 } |
Public Member Functions | |
virtual QRectF | boundingRect () const override |
virtual void | drawBorder () override |
bool | getExporting (void) |
virtual TechDraw::DrawRichAnno * | getFeature (void) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override |
QGIRichAnno (QGraphicsItem *myParent=nullptr, TechDraw::DrawRichAnno *lead=nullptr) | |
QPen | rectPen () const |
void | setExporting (bool b) |
void | setTextItem (void) |
virtual QPainterPath | shape (void) const override |
int | type () const override |
virtual void | updateView (bool update=false) override |
~QGIRichAnno ()=default | |
Public Member Functions inherited from TechDrawGui::QGIView | |
virtual void | addArbitraryItem (QGraphicsItem *qgi) |
void | alignTo (QGraphicsItem *, const QString &alignment) |
virtual void | drawCaption (void) |
QGIViewClip * | getClipGroup (void) |
virtual QColor | getCurrentColor (void) |
virtual bool | getFrameState (void) |
MDIViewPage * | getMDIViewPage (void) const |
virtual QColor | getNormalColor (void) |
virtual QColor | getPreColor (void) |
double | getScale (void) |
virtual QColor | getSelectColor (void) |
virtual QColor | getSettingColor (void) |
const char * | getViewName () const |
const std::string | getViewNameAsString () const |
TechDraw::DrawView * | getViewObject () const |
virtual void | isVisible (bool state) |
virtual bool | isVisible (void) |
void | makeMark (Base::Vector3d v, QColor c=Qt::red) |
void | makeMark (double x, double y, QColor c=Qt::red) |
void | makeMark (QPointF p, QColor c=Qt::red) |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
QGIView () | |
virtual void | removeChild (QGIView *child) |
virtual void | rotateView (void) |
virtual void | setGroupSelection (bool b) |
void | setLocked (bool b) |
virtual void | setSettingColor (QColor c) |
void | setViewFeature (TechDraw::DrawView *obj) |
virtual void | toggleCache (bool state) |
int | type () const override |
virtual | ~QGIView () |
void | setPosition (qreal x, qreal y) |
Methods to ensure that Y-Coordinates are orientated correctly. More... | |
qreal | getY () |
bool | isInnerView () |
void | isInnerView (bool state) |
double | getYInClip (double y) |
Protected Member Functions | |
virtual void | draw () override |
virtual QVariant | itemChange (GraphicsItemChange change, const QVariant &value) override |
QFont | prefFont (void) |
double | prefPointSize (void) |
void | setLineSpacing (int lineSpacing) |
Protected Member Functions inherited from TechDrawGui::QGIView | |
virtual QRectF | customChildrenBoundingRect (void) const |
void | dumpRect (const char *text, QRectF r) |
Base::Reference< ParameterGrp > | getParmGroupCol (void) |
QGIView * | getQGIVByName (std::string name) |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
Protected Attributes | |
bool | m_hasHover |
bool | m_isExporting |
QGCustomRect * | m_rect |
QGCustomText * | m_text |
Protected Attributes inherited from TechDrawGui::QGIView | |
QHash< QString, QGraphicsItem * > | alignHash |
QGCustomBorder * | m_border |
QBrush | m_brush |
QGICaption * | m_caption |
QColor | m_colCurrent |
QColor | m_colNormal |
QColor | m_colPre |
QColor | m_colSel |
QColor | m_colSetting |
QPen | m_decorPen |
QFont | m_font |
bool | m_innerView |
QGCustomLabel * | m_label |
QGCustomImage * | m_lock |
bool | m_locked |
double | m_lockHeight |
double | m_lockWidth |
QPen | m_pen |
std::string | viewName |
TechDraw::DrawView * | viewObj |
Additional Inherited Members | |
Public Slots inherited from TechDrawGui::QGIView | |
virtual void | onSourceChange (TechDraw::DrawView *newParent) |
Static Public Member Functions inherited from TechDrawGui::QGIView | |
static int | calculateFontPixelSize (double sizeInMillimetres) |
static int | calculateFontPixelWidth (const QFont &font) |
static double | getDimFontSize (void) |
static QGVPage * | getGraphicsView (TechDraw::DrawView *dv) |
static QString | getPrefFont (void) |
static double | getPrefFontSize (void) |
static Gui::ViewProvider * | getViewProvider (App::DocumentObject *obj) |
Public Attributes inherited from TechDrawGui::QGIView | |
boost::signals2::signal< void(QGIView *, QPointF)> | signalSelectPoint |
Static Public Attributes inherited from TechDrawGui::QGIView | |
static const double | DefaultFontSizeInMM = 5.0 |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGIRichAnno()
|
explicit |
◆ ~QGIRichAnno()
|
default |
Member Function Documentation
◆ boundingRect()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References m_text.
◆ draw()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::draw(), getFeature(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::QGIView::isVisible(), and setTextItem().
Referenced by updateView().
◆ drawBorder()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
◆ getExporting()
bool TechDrawGui::QGIRichAnno::getExporting | ( | void | ) |
Referenced by setTextItem().
◆ getFeature()
|
virtual |
References TechDrawGui::QGIView::getViewObject().
Referenced by draw(), and setTextItem().
◆ itemChange()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::itemChange().
◆ paint()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::paint().
◆ prefFont()
|
protected |
References TechDrawGui::PreferencesGui::labelFontQFont().
Referenced by setTextItem().
◆ prefPointSize()
|
protected |
Referenced by setTextItem().
◆ rectPen()
QPen QGIRichAnno::rectPen | ( | ) | const |
References App::Color::asValue(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), and TechDrawGui::Rez::guiX().
Referenced by setTextItem().
◆ setExporting()
void TechDrawGui::QGIRichAnno::setExporting | ( | bool | b | ) |
Referenced by TechDrawGui::QGVPage::setExporting().
◆ setLineSpacing()
|
protected |
References m_text.
Referenced by setTextItem().
◆ setTextItem()
void QGIRichAnno::setTextItem | ( | void | ) |
References TechDraw::DrawRichAnno::AnnoText, TechDrawGui::QGCustomRect::centerAt(), TechDrawGui::QGCustomText::centerAt(), getExporting(), getFeature(), TechDrawGui::Rez::getRezFactor(), App::PropertyFloat::getValue(), App::PropertyString::getValue(), App::PropertyBool::getValue(), TechDrawGui::Rez::guiX(), m_rect, m_text, TechDraw::DrawRichAnno::MaxWidth, prefFont(), prefPointSize(), rectPen(), setLineSpacing(), and TechDraw::DrawRichAnno::ShowFrame.
Referenced by draw().
◆ shape()
|
overridevirtual |
◆ type()
|
override |
◆ updateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGCustomRect::centerAt(), TechDrawGui::QGCustomText::centerAt(), Base::Console(), draw(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), Base::ConsoleSingleton::Log(), m_rect, and m_text.
Referenced by TechDrawGui::QGVPage::addRichAnno().
Member Data Documentation
◆ m_hasHover
|
protected |
◆ m_isExporting
|
protected |
◆ m_rect
|
protected |
Referenced by QGIRichAnno(), setTextItem(), and updateView().
◆ m_text
|
protected |
Referenced by boundingRect(), QGIRichAnno(), setLineSpacing(), setTextItem(), and updateView().
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIRichAnno.h
- src/Mod/TechDraw/Gui/QGIRichAnno.cpp