umbrello/umbrello
floatingtextwidget.h
Go to the documentation of this file.
40 explicit FloatingTextWidget(UMLScene * scene, Uml::TextRole::Enum role = Uml::TextRole::Floating,
74 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
void setTextRole(Uml::TextRole::Enum role)
Sets the role type of this FloatingTextWidget.
Definition: floatingtextwidget.cpp:355
This is an interface realized by AssociationWidget and MessageWidget.
Definition: linkwidget.h:35
Uml::TextRole::Enum textRole() const
Return the role of the text widget.
Definition: floatingtextwidget.cpp:364
void setPostText(const QString &t)
Set some text to be appended to the main body of text.
Definition: floatingtextwidget.cpp:142
virtual void constrainMovementForAllWidgets(qreal &diffX, qreal &diffY)
Overridden from UMLWidget.
Definition: floatingtextwidget.cpp:580
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides default method.
Definition: floatingtextwidget.cpp:591
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
QString preText() const
Use to get the pre-text which is prepended to the main body of text to be displayed.
Definition: floatingtextwidget.cpp:300
void setTextcmd(const QString &t)
Method used by setText: its called by cmdsetTxt, Don't use it!
Definition: floatingtextwidget.cpp:179
void setLink(LinkWidget *l)
Set the LinkWidget that this FloatingTextWidget is related to.
Definition: floatingtextwidget.cpp:335
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Reimplemented from UMLWidget::saveToXMI to save the widget data into XMI 'floatingtext' element...
Definition: floatingtextwidget.cpp:635
LinkWidget * link() const
Returns the LinkWidget this floating text is related to.
Definition: floatingtextwidget.cpp:345
Definition: basictypes.h:151
void handleRename()
Handle the ListPopupMenu::mt_Rename case of the slotMenuSelection.
Definition: floatingtextwidget.cpp:373
void setMessageText()
Sets the text for this label if it is acting as a sequence diagram message or a collaboration diagram...
Definition: floatingtextwidget.cpp:730
void showOperationDialog(bool enableAutoIncrement=true)
Shows an operation dialog box.
Definition: floatingtextwidget.cpp:207
FloatingTextWidget(UMLScene *scene, Uml::TextRole::Enum role=Uml::TextRole::Floating, const QString &text="", Uml::ID::Type id=Uml::ID::None)
Constructs a FloatingTextWidget instance.
Definition: floatingtextwidget.cpp:53
virtual void slotMenuSelection(QAction *action)
Called when a menu selection has been made.
Definition: floatingtextwidget.cpp:657
QString displayText() const
Use to get the total text (prepended + main body + appended) currently displayed by the widget...
Definition: floatingtextwidget.cpp:155
QString postText() const
Use to get the post-text which is appended to the main body of text to be displayed.
Definition: floatingtextwidget.cpp:311
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "floatingtext" XMI element.
Definition: floatingtextwidget.cpp:608
void setPreText(const QString &t)
Set some text to be prepended to the main body of text.
Definition: floatingtextwidget.cpp:131
static bool isTextValid(const QString &text)
For a text to be valid it must be non-empty, i.e.
Definition: floatingtextwidget.cpp:465
void changeName(const QString &newText)
Changes the text of linked widget.
Definition: floatingtextwidget.cpp:406
virtual void showPropertiesDialog()
Show the properties for a FloatingTextWidget.
Definition: floatingtextwidget.cpp:281
virtual void moveWidgetBy(qreal diffX, qreal diffY)
Overridden from UMLWidget.
Definition: floatingtextwidget.cpp:521
void showChangeTextDialog()
Displays a dialog box to change the text.
Definition: floatingtextwidget.cpp:187
bool activate(IDChangeLog *ChangeLog=0)
Activate the FloatingTextWidget after the saved data has been loaded.
Definition: floatingtextwidget.cpp:322
void setText(const QString &t)
Set the main body of text to display.
Definition: floatingtextwidget.cpp:103
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.