umbrello/umbrello
artifactwidget.cpp
Go to the documentation of this file.
43 void ArtifactWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
palette
Definition: artifact.h:39
UMLObject * umlObject() const
Returns the UMLObject set to represent.
Definition: widgetbase.cpp:127
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1636
QDomNode appendChild(const QDomNode &newChild)
Definition: umlwidget.h:215
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Reimplemented from WidgetBase::saveToXMI to save the widget to the "artifactwidget" XMI element...
Definition: artifactwidget.cpp:85
void drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
QWidget * viewport() const
void drawLine(const QLineF &line)
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:211
void setBold(bool enable)
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented to paint the articraft widget.
Definition: artifactwidget.cpp:43
void drawRect(const QRectF &rectangle)
void setFont(const QFont &font)
void setPen(const QColor &color)
Definition: artifact.h:36
bool isEmpty() const
ArtifactWidget(UMLScene *scene, UMLArtifact *a)
Constructs a ArtifactWidget.
Definition: artifactwidget.cpp:26
virtual QSizeF minimumSize() const
Compute the minimum possible width and height.
Definition: umlwidget.cpp:233
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
Definition: artifact.h:37
int width(const QString &text, int len) const
Definition: umlwidget.h:216
This class contains the non-graphical information required for a UML Artifact.
Definition: artifact.h:27
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
A virtual method to save the properties of this widget into a QDomElement i.e xml.
Definition: umlwidget.cpp:1810
void setWidth(int width)
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
Definition: artifact.h:38
Definition: umlwidget.h:219
QDomElement createElement(const QString &tagName)
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1701
const QPen & pen() const
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:445
int lineSpacing() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.