#include <QGIViewBalloon.h>
Public Types | |
enum { Type = QGraphicsItem::UserType + 140 } | |
![]() | |
enum { Type = QGraphicsItem::UserType + 101 } | |
Public Slots | |
void balloonLabelDragFinished (void) | |
void balloonLabelDragged (bool ctrl) | |
void hover (bool state) | |
void select (bool state) | |
void updateBalloon (bool obtuse=false) | |
![]() | |
virtual void onSourceChange (TechDraw::DrawView *newParent) | |
Public Member Functions | |
virtual void drawBorder () override | |
virtual QGIBalloonLabel * getBalloonLabel (void) | |
QString getLabelText (void) | |
virtual QColor getNormalColor (void) override | |
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override | |
void placeBalloon (QPointF pos) | |
int prefDefaultArrow () const | |
bool prefOrthoPyramid () const | |
QGIViewBalloon () | |
virtual void setGroupSelection (bool b) override | |
void setPrettyNormal (void) | |
void setPrettyPre (void) | |
void setPrettySel (void) | |
void setViewPartFeature (TechDraw::DrawViewBalloon *obj) | |
int type () const override | |
virtual void updateView (bool update=false) override | |
virtual ~QGIViewBalloon ()=default | |
![]() | |
virtual void addArbitraryItem (QGraphicsItem *qgi) | |
void alignTo (QGraphicsItem *, const QString &alignment) | |
virtual QRectF boundingRect () const override | |
virtual void drawCaption (void) | |
QGIViewClip * getClipGroup (void) | |
virtual QColor getCurrentColor (void) | |
virtual bool getFrameState (void) | |
MDIViewPage * getMDIViewPage (void) const | |
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) | |
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) | |
Public Attributes | |
TechDraw::DrawViewBalloon * dvBalloon | |
![]() | |
boost::signals2::signal< void(QGIView *, QPointF)> signalSelectPoint | |
Protected Member Functions | |
void draw () override | |
QString getPrecision (void) | |
TechDraw::DrawView * getSourceView () const | |
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) override | |
void parentViewMousePressed (QGIView *view, QPointF pos) | |
virtual void setPens (void) | |
virtual void setSvgPens (void) | |
![]() | |
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 | |
QGIArrow * arrow | |
QGIBalloonLabel * balloonLabel | |
QGIDimLines * balloonLines | |
QGIDimLines * balloonShape | |
bool hasHover | |
bool m_ctrl | |
bool m_dragInProgress | |
double m_lineWidth | |
bool m_obtuse | |
Base::Vector3d m_saveOffset | |
QPointF * oldLabelCenter | |
QGIView * parent | |
![]() | |
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 | |
![]() | |
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) | |
![]() | |
static const double DefaultFontSizeInMM = 5.0 | |
Member Enumeration Documentation
◆ anonymous enum
Constructor & Destructor Documentation
◆ QGIViewBalloon()
|
explicit |
References arrow, balloonLabel, balloonLabelDragFinished(), balloonLabelDragged(), balloonLines, balloonShape, ZVALUE::DIMENSION, getNormalColor(), hover(), ZVALUE::LABEL, m_ctrl, oldLabelCenter, TechDrawGui::QGIBalloonLabel::parent, prefDefaultArrow(), select(), TechDrawGui::QGIBalloonLabel::setColor(), TechDrawGui::QGIPrimPath::setFill(), TechDrawGui::QGIPrimPath::setFillColor(), TechDrawGui::QGIPrimPath::setFillOverride(), TechDrawGui::QGIPrimPath::setNormalColor(), TechDrawGui::QGIBalloonLabel::setPosFromCenter(), TechDrawGui::QGIPrimPath::setPrettyNormal(), TechDrawGui::QGIBalloonLabel::setPrettyNormal(), TechDrawGui::QGIPrimPath::setStyle(), and TechDrawGui::QGIArrow::setStyle().
◆ ~QGIViewBalloon()
|
virtualdefault |
Member Function Documentation
◆ balloonLabelDragFinished
|
slot |
References m_dragInProgress.
Referenced by QGIViewBalloon().
◆ balloonLabelDragged
|
slot |
References TechDrawGui::Rez::appX(), balloonLabel, Gui::Command::commitCommand(), Gui::Command::Doc, TechDraw::DrawView::getScale(), getSourceView(), TechDrawGui::QGIView::getViewObject(), m_ctrl, m_dragInProgress, m_saveOffset, Gui::Command::openCommand(), TechDrawGui::QGIBalloonLabel::X(), Base::Vector3< _Precision >::x, TechDrawGui::QGIBalloonLabel::Y(), and Base::Vector3< _Precision >::y.
Referenced by QGIViewBalloon().
◆ draw()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References arrow, balloonLabel, balloonLines, balloonShape, Base::Console(), TechDrawGui::QGIArrow::draw(), TechDraw::DrawViewBalloon::EndType, Base::Persistence::getClassTypeId(), TechDrawGui::QGIBalloonLabel::getDimText(), TechDrawGui::QGIArrow::getOverlapAdjust(), TechDrawGui::QGIArrow::getPrefArrowSize(), TechDraw::DrawView::getScale(), App::PropertyQuantity::getValue(), App::PropertyEnumeration::getValue(), App::PropertyFloat::getValue(), App::PropertyEnumeration::getValueAsString(), TechDrawGui::QGIView::getViewObject(), TechDraw::DrawViewBalloon::getViewPart(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDraw::DrawViewPart::hasGeometry(), hasHover, Base::BaseClass::isDerivedFrom(), TechDraw::DrawView::isLocked(), TechDrawGui::QGIView::isVisible(), TechDraw::DrawViewBalloon::KinkLength, Base::ConsoleSingleton::Log(), m_lineWidth, TechDraw::DrawViewBalloon::OriginX, TechDraw::DrawViewBalloon::OriginY, prefOrthoPyramid(), DraftVecUtils::scale(), TechDrawGui::QGIBalloonLabel::seps, setPrettyNormal(), setPrettyPre(), setPrettySel(), TechDrawGui::QGIArrow::setSize(), TechDrawGui::QGIArrow::setStyle(), TechDraw::DrawViewBalloon::Shape, TechDraw::DrawViewBalloon::ShapeScale, TechDrawGui::QGIBalloonLabel::verticalSep, TechDraw::DrawView::X, Base::Vector3< _Precision >::x, TechDraw::DrawView::Y, and Base::Vector3< _Precision >::y.
Referenced by hover(), itemChange(), placeBalloon(), select(), setViewPartFeature(), and updateView().
◆ drawBorder()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
◆ getBalloonLabel()
|
virtual |
Referenced by TechDrawGui::MDIViewPage::clearSceneSelection().
◆ getLabelText()
QString TechDrawGui::QGIViewBalloon::getLabelText | ( | void | ) |
◆ getNormalColor()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::PreferencesGui::dimQColor(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), and TechDrawGui::QGIView::m_colNormal.
Referenced by QGIViewBalloon(), setViewPartFeature(), and updateView().
◆ getPrecision()
|
protected |
◆ getSourceView()
|
protected |
References App::PropertyLink::getValue(), TechDrawGui::QGIView::getViewObject(), and TechDraw::DrawViewBalloon::SourceView.
Referenced by balloonLabelDragged().
◆ hover
|
slot |
References draw(), and hasHover.
Referenced by QGIViewBalloon().
◆ itemChange()
|
overrideprotectedvirtual |
Reimplemented from TechDrawGui::QGIView.
References balloonLabel, draw(), and TechDrawGui::QGIView::itemChange().
◆ paint()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References TechDrawGui::QGIView::paint(), setPens(), and setSvgPens().
◆ parentViewMousePressed()
|
protected |
◆ placeBalloon()
void QGIViewBalloon::placeBalloon | ( | QPointF | pos | ) |
References TechDrawGui::Rez::appX(), balloonLabel, TechDrawGui::QGIView::calculateFontPixelSize(), draw(), TechDraw::DrawView::findParentPage(), TechDrawGui::QGIBalloonLabel::getFont(), TechDraw::DrawView::getScale(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::QGIBalloonLabel::setDimString(), TechDrawGui::QGIBalloonLabel::setFont(), and TechDrawGui::QGIBalloonLabel::setPosFromCenter().
◆ prefDefaultArrow()
int QGIViewBalloon::prefDefaultArrow | ( | ) | const |
Referenced by QGIViewBalloon().
◆ prefOrthoPyramid()
bool QGIViewBalloon::prefOrthoPyramid | ( | ) | const |
References App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
Referenced by draw().
◆ select
|
slot |
References draw().
Referenced by QGIViewBalloon().
◆ setGroupSelection()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References arrow, balloonLabel, and balloonLines.
◆ setPens()
|
protectedvirtual |
References arrow, balloonLines, balloonShape, m_lineWidth, and TechDrawGui::QGIPrimPath::setWidth().
Referenced by paint().
◆ setPrettyNormal()
void QGIViewBalloon::setPrettyNormal | ( | void | ) |
References arrow, balloonLines, balloonShape, and TechDrawGui::QGIPrimPath::setPrettyNormal().
Referenced by draw().
◆ setPrettyPre()
void QGIViewBalloon::setPrettyPre | ( | void | ) |
References arrow, balloonLines, balloonShape, and TechDrawGui::QGIPrimPath::setPrettyPre().
Referenced by draw().
◆ setPrettySel()
void QGIViewBalloon::setPrettySel | ( | void | ) |
References arrow, balloonLines, balloonShape, and TechDrawGui::QGIPrimPath::setPrettySel().
Referenced by draw().
◆ setSvgPens()
|
protectedvirtual |
References arrow, balloonLines, balloonShape, TechDrawGui::QGIPrimPath::getWidth(), m_lineWidth, and TechDrawGui::QGIPrimPath::setWidth().
Referenced by paint().
◆ setViewPartFeature()
void QGIViewBalloon::setViewPartFeature | ( | TechDraw::DrawViewBalloon * | obj | ) |
References balloonLabel, draw(), getNormalColor(), TechDraw::DrawView::getScale(), App::PropertyString::getStrValue(), App::PropertyQuantity::getValue(), App::PropertyFloat::getValue(), App::PropertyLink::getValue(), TechDrawGui::Rez::guiX(), TechDrawGui::QGIBalloonLabel::setColor(), TechDrawGui::QGIBalloonLabel::setDimString(), TechDrawGui::QGIBalloonLabel::setPosFromCenter(), TechDrawGui::QGIView::setViewFeature(), TechDraw::DrawViewBalloon::SourceView, TechDraw::DrawViewBalloon::Text, TechDraw::DrawViewBalloon::TextWrapLen, updateBalloon(), TechDraw::DrawView::X, and TechDraw::DrawView::Y.
◆ type()
|
override |
◆ updateBalloon
|
slot |
References balloonLabel, TechDrawGui::QGIView::calculateFontPixelSize(), TechDrawGui::QGIBalloonLabel::getFont(), TechDraw::DrawView::getScale(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::QGIBalloonLabel::seps, TechDrawGui::QGIBalloonLabel::setDimString(), TechDrawGui::QGIBalloonLabel::setFont(), TechDrawGui::QGIBalloonLabel::setPosFromCenter(), and TechDrawGui::QGIBalloonLabel::verticalSep.
Referenced by setViewPartFeature(), and updateView().
◆ updateView()
|
overridevirtual |
Reimplemented from TechDrawGui::QGIView.
References arrow, balloonLabel, balloonLines, balloonShape, draw(), getNormalColor(), TechDrawGui::QGIView::getViewObject(), TechDrawGui::QGIView::getViewProvider(), TechDrawGui::Rez::guiX(), TechDrawGui::QGIBalloonLabel::setColor(), TechDrawGui::QGIBalloonLabel::setDimString(), TechDrawGui::QGIPrimPath::setFillColor(), TechDrawGui::QGIPrimPath::setNormalColor(), and updateBalloon().
Referenced by TechDrawGui::TaskBalloon::accept().
Member Data Documentation
◆ arrow
|
protected |
Referenced by draw(), QGIViewBalloon(), setGroupSelection(), setPens(), setPrettyNormal(), setPrettyPre(), setPrettySel(), setSvgPens(), and updateView().
◆ balloonLabel
|
protected |
Referenced by balloonLabelDragged(), draw(), itemChange(), placeBalloon(), QGIViewBalloon(), setGroupSelection(), setViewPartFeature(), updateBalloon(), and updateView().
◆ balloonLines
|
protected |
Referenced by draw(), QGIViewBalloon(), setGroupSelection(), setPens(), setPrettyNormal(), setPrettyPre(), setPrettySel(), setSvgPens(), and updateView().
◆ balloonShape
|
protected |
Referenced by draw(), QGIViewBalloon(), setPens(), setPrettyNormal(), setPrettyPre(), setPrettySel(), setSvgPens(), and updateView().
◆ dvBalloon
TechDraw::DrawViewBalloon* TechDrawGui::QGIViewBalloon::dvBalloon |
Referenced by TechDrawGui::TaskBalloon::accept(), and TechDrawGui::TaskBalloon::TaskBalloon().
◆ hasHover
◆ m_ctrl
|
protected |
Referenced by balloonLabelDragged(), and QGIViewBalloon().
◆ m_dragInProgress
|
protected |
Referenced by balloonLabelDragFinished(), and balloonLabelDragged().
◆ m_lineWidth
|
protected |
Referenced by draw(), setPens(), and setSvgPens().
◆ m_obtuse
|
protected |
◆ m_saveOffset
|
protected |
Referenced by balloonLabelDragged().
◆ oldLabelCenter
|
protected |
Referenced by QGIViewBalloon().
◆ parent
|
protected |
The documentation for this class was generated from the following files:
- src/Mod/TechDraw/Gui/QGIViewBalloon.h
- src/Mod/TechDraw/Gui/QGIViewBalloon.cpp