umbrello/umbrello
notewidget.cpp
Go to the documentation of this file.
58 void NoteWidget::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
static NoteType stringToNoteType(const QString ¬eType)
Converts a string to NoteWidget::NoteType.
Definition: notewidget.cpp:118
virtual bool loadFromXMI(QDomElement &qElement)
Loads a "notewidget" XMI element.
Definition: notewidget.cpp:200
void slotMenuSelection(QAction *action)
Will be called when a menu selection has been made from the popup menu.
Definition: notewidget.cpp:250
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the UMLWidget on the given paint device.
Definition: umlwidget.cpp:1565
Displays a note box to allow multiple lines of text to be displayed.
Definition: notewidget.h:30
void showDocumentation(UMLObject *object, bool overwrite=false)
Called when a widget wishes to display its documentation in the doc window.
Definition: docwindow.cpp:87
void setDiagramLink(Uml::ID::Type viewID)
Set the ID of the diagram hyperlinked to this note.
Definition: notewidget.cpp:163
UMLScene * umlScene() const
Deliver a pointer to the connected UMLView (needed esp.
Definition: widgetbase.cpp:93
Definition: umlwidget.h:220
Definition: notewidget.h:39
Definition: listpopupmenu.h:157
void updateDocumentation(bool clear=false, bool startup=false)
Call when you wish move changes in the doc window back into the members documentation.
Definition: docwindow.cpp:205
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType)
Returns the font metric used by this object for Text which uses bold/italic fonts.
Definition: umlwidget.cpp:1619
Uml::ID::Type diagramLink() const
Return the ID of the diagram hyperlinked to this note.
Definition: notewidget.cpp:152
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
QString documentation() const
Used by some child classes to get documentation.
Definition: widgetbase.cpp:157
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
UMLView * findView(Uml::ID::Type id)
Finds a view (diagram) by the ID given to method.
Definition: umldoc.cpp:733
void changeCurrentView(Uml::ID::Type id)
Changes the current view (diagram) to the view with the given ID.
Definition: umldoc.cpp:1438
void setDocumentation(const QString &doc)
Used by some child classes to set documentation.
Definition: widgetbase.cpp:182
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)
Saves to the "notewidget" XMI element.
Definition: notewidget.cpp:217
Definition: notedialog.h:25
void setModified(bool modified=true)
Sets the modified flag for the document after a modifying action on the view connected to the documen...
Definition: umldoc.cpp:2607
Definition: notewidget.h:41
virtual void cleanup()
Used to cleanup any other widget it may need to delete.
Definition: umlwidget.cpp:1391
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Override default method.
Definition: notewidget.cpp:58
Definition: notewidget.h:38
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
Definition: notewidget.h:40
NoteWidget(UMLScene *scene, NoteWidget::NoteType noteType=Normal, Uml::ID::Type id=Uml::ID::None)
Constructs a NoteWidget.
Definition: notewidget.cpp:40
static MenuType typeFromAction(QAction *action)
Convenience method to extract the ListPopupMenu type from an action.
Definition: listpopupmenu.cpp:1122
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Event handler for moude double click events.
Definition: notewidget.cpp:494
void askForNoteType(UMLWidget *&targetWidget)
Display a dialog box to allow the user to choose the note's type.
Definition: notewidget.cpp:179
virtual QFont font() const
Returns the font used for diaplaying any text.
Definition: widgetbase.cpp:431
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 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:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.