umbrello/umbrello
floatingdashlinewidget.cpp
Go to the documentation of this file.
34 FloatingDashLineWidget::FloatingDashLineWidget(UMLScene * scene, Uml::ID::Type id, CombinedFragmentWidget *parent)
57 void FloatingDashLineWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
89 if (((abs(y() + height() - point.y())) <= POINT_DELTA) || (abs(y() - point.y()) <= POINT_DELTA)) {
104 name = KInputDialog::getText(i18n("Enter alternative Name"), i18n("Enter the alternative :"), m_Text, &ok);
qreal getDiffY() const
Returns the difference between the y-coordinate of the dash line and m_yMin.
Definition: floatingdashlinewidget.cpp:150
bool onLine(const QPointF &point)
Returns true if the given point is near the floatingdashline.
Definition: floatingdashlinewidget.cpp:86
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1565
void removeDashLine(FloatingDashLineWidget *line)
Definition: combinedfragmentwidget.cpp:360
Definition: umlwidget.h:220
Definition: listpopupmenu.h:157
bool loadFromXMI(QDomElement &qElement)
Loads the "floatingdashline" XMI element.
Definition: floatingdashlinewidget.cpp:173
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType)
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1619
QString name() const
Gets the name from the corresponding UMLObject if this widget has an underlying UMLObject; if it does...
Definition: widgetbase.cpp:197
virtual void slotMenuSelection(QAction *action)
This is usually called synchronously after menu.exec() and trigger's parent is always the ListPopupMe...
Definition: umlwidget.cpp:707
void slotMenuSelection(QAction *action)
This is usually called synchronously after menu.exec() and trigger's parent is always the ListPopupMe...
Definition: floatingdashlinewidget.cpp:96
#define FLOATING_DASH_LINE_TEXT_MARGIN
Definition: floatingdashlinewidget.h:18
This class is used to draw dash lines for UML combined fragments.
Definition: floatingdashlinewidget.h:33
virtual bool loadFromXMI(QDomElement &qElement)
A virtual method to load the properties of this widget from a QDomElement into this widget...
Definition: umlwidget.cpp:1726
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:1707
This class is the graphical version of a UML combined fragment.
Definition: combinedfragmentwidget.h:36
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "floatingdashline" XMI element.
Definition: floatingdashlinewidget.cpp:158
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option=0, QWidget *widget=0)
Overrides the standard paint event.
Definition: floatingdashlinewidget.cpp:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.