umbrello/umbrello
umlscene.h
Go to the documentation of this file.
bool m_isOpen
Flag is set to true when diagram is open, i.e. shown to the user.
Definition: umlscene.h:329
AssociationWidget * associationAt(const QPointF &p)
Tests the given point against all associations and returns the association widget for which the point...
Definition: umlscene.cpp:1040
void sigFillColorChanged(Uml::ID::Type)
void setMenu(const QPoint &pos)
Sets the popup menu to use when clicking on a diagram background (rather than a widget or listView)...
Definition: umlscene.cpp:2776
bool useFillColor() const
Returns whether to use the fill/background color.
Definition: umlscene.cpp:1258
void slotShowView()
Called by menu when to show the instance of the view.
Definition: umlscene.cpp:3152
void fileLoaded()
Changes the zoom to the currently set level (now loaded from file) Called from UMLApp::slotUpdateView...
Definition: umlscene.cpp:3488
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *contextMenuEvent)
Event handler for context menu events.
Definition: umlscene.cpp:2762
int selectedCount(bool filterText=false) const
Return the amount of widgets selected.
Definition: umlscene.cpp:1822
void setStartedCut()
Called by the view or any of its children when they start a cut operation.
Definition: umlscene.cpp:3183
A dialog page to display options for class related options.
Definition: classoptionspage.h:38
void resizeSceneToItems()
Sets the size of the scene to just fit on all the items.
Definition: umlscene.cpp:3497
void createAutoAttributeAssociations2(UMLWidget *widget)
Definition: umlscene.cpp:2627
void removeAssoc(AssociationWidget *pAssoc)
Removes a AssociationWidget from a diagram Physically deletes the AssociationWidget passed in...
Definition: umlscene.cpp:2045
qreal snappedX(qreal x)
Returns the input coordinate with possible grid-snap applied.
Definition: umlscene.cpp:3402
void updateComponentSizes()
Updates the size of all components in this view.
Definition: umlscene.cpp:3506
void findMaxBoundingRectangle(const FloatingTextWidget *ft, qreal &px, qreal &py, qreal &qx, qreal &qy)
Find the maximum bounding rectangle of FloatingTextWidget widgets.
Definition: umlscene.cpp:2657
void removeAssocInViewAndDoc(AssociationWidget *assoc)
Removes an AssociationWidget from the association list and removes the corresponding UMLAssociation f...
Definition: umlscene.cpp:2062
void createAutoAttributeAssociations(UMLWidget *widget)
If the m_Type of the given widget is WidgetBase::wt_Class then iterate through the class' attributes ...
Definition: umlscene.cpp:2417
bool isSavedInSeparateFile()
Returns true if this diagram resides in an externalized folder.
Definition: umlscene.cpp:1512
void slotActivate()
makes this view the active view by asking the document to show us
Definition: umlscene.cpp:1762
void addObject(UMLObject *object)
Add an object to the application, and update the view.
Definition: umlscene.cpp:3839
UMLWidget * widgetOnDiagram(Uml::ID::Type id)
Returns whether a widget is already on the diagram.
Definition: umlscene.cpp:1089
int m_nCollaborationId
Used for creating unique name of collaboration messages.
Definition: umlscene.h:356
MessageWidget * messageAt(const QPointF &p)
Tests the given point against all associations and returns the association widget for which the point...
Definition: umlscene.cpp:1055
void sigGridColorChanged(Uml::ID::Type)
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
void selectAssociations(bool bSelect)
Sets each association as selected if the widgets it associates are selected.
Definition: umlscene.cpp:2110
void sigShowGridToggled(bool)
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "diagram" tag.
Definition: umlscene.cpp:3613
virtual void drawBackground(QPainter *painter, const QRectF &rect)
Overrides standard method from QGraphicsScene drawing the background.
Definition: umlscene.cpp:3533
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
Overrides the standard operation.
Definition: umlscene.cpp:867
void sigSnapToGridToggled(bool)
void slotObjectRemoved(UMLObject *o)
Slot called when an object is removed.
Definition: umlscene.cpp:678
void copyAsImage(QPixmap *&pix)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:2680
This class contains the non-graphical information required for UMLObjects which appear as moveable wi...
Definition: umlcanvasobject.h:33
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent)
Override standard method.
Definition: umlscene.cpp:876
void toggleSnapComponentSizeToGrid()
Changes snap to grid for component size boolean.
Definition: umlscene.cpp:3326
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Selects all the widgets within an internally kept rectangle.
Definition: umlscene.cpp:1589
void selectionUseFillColor(bool useFC)
Set the useFillColor variable to all selected widgets.
Definition: umlscene.cpp:1327
void selectionSetVisualProperty(ClassifierWidget::VisualProperty property, bool value)
Set or unset the visual property (show ..) setting of all selected items.
Definition: umlscene.cpp:1412
const Settings::OptionState & optionState() const
Returns the options being used.
Definition: umlscene.cpp:428
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:436
void updateContainment(UMLCanvasObject *self)
Refreshes containment association, i.e.
Definition: umlscene.cpp:2182
void selectionSetFillColor(const QColor &color)
Set the fill color for all the currently selected items.
Definition: umlscene.cpp:1397
void setAutoIncrementSequence(bool state)
Definition: umlscene.cpp:235
void setupNewWidget(UMLWidget *w, bool setPosition=true)
Initialize and announce a newly created widget.
Definition: umlscene.cpp:540
bool isShowDocumentationIndicator() const
Returns whether to show documentation indicator.
Definition: umlscene.cpp:3455
void dragMoveEvent(QGraphicsSceneDragDropEvent *moveEvent)
Override standard method.
Definition: umlscene.cpp:805
void slotCutSuccessful()
Connects to the signal that UMLApp emits when a cut operation is successful.
Definition: umlscene.cpp:3141
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
void slotObjectCreated(UMLObject *o)
Slot called when an object is created.
Definition: umlscene.cpp:628
Definition: optionstate.h:142
This class represents an association inside a diagram.
Definition: associationwidget.h:50
void removeAssociations(UMLWidget *pWidget)
Removes all the associations related to Widget.
Definition: umlscene.cpp:2096
bool getCreateObject() const
Return whether we are currently creating an object.
Definition: umlscene.cpp:573
QDebug operator<<(QDebug dbg, UMLScene *item)
Overloading operator for debugging output.
Definition: umlscene.cpp:4173
void slotToolBarChanged(int c)
Changes the current tool to the selected tool.
Definition: umlscene.cpp:615
void dropEvent(QGraphicsSceneDragDropEvent *dropEvent)
Override standard method.
Definition: umlscene.cpp:813
void setShowOpSig(bool bShowOpSig)
Sets whether to show operation signatures.
Definition: umlscene.cpp:3479
void sigSnapComponentSizeToGridToggled(bool)
VisualProperty
This enumeration lists the visual properties that can be easily set, reset and toggled and all these ...
Definition: classifierwidget.h:42
bool snapComponentSizeToGrid() const
Return whether to use snap to grid for component size.
Definition: umlscene.cpp:3360
AssociationWidgetList selectedAssocs()
Returns a list with all the selected associations from the diagram.
Definition: umlscene.cpp:1866
bool loadWidgetsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3726
void setFolder(UMLFolder *folder)
Set the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:198
QVariant property(const char *name) const
void sigResetToolBar()
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:1912
UMLWidgetList selectedWidgetsExt(bool filterText=true)
Fills the List with all the selected widgets from the diagram The list can be filled with all the sel...
Definition: umlscene.cpp:1847
void setDocumentation(const QString &doc)
Set the documentation of the diagram.
Definition: umlscene.cpp:222
void selectWidgetsOfAssoc(AssociationWidget *a)
Selects all the widgets of the given association widget.
Definition: umlscene.cpp:1569
int generateCollaborationId()
Used for creating unique name of collaboration messages.
Definition: umlscene.cpp:468
UMLWidget * widgetAt(const QPointF &p)
Tests the given point against all widgets and returns the widget for which the point is within its bo...
Definition: umlscene.cpp:1007
AssociationWidgetList & associationList()
Returns a reference to the association list.
Definition: umlscene.cpp:444
void checkMessages(ObjectWidget *w)
Sees if a message is relevant to the given widget.
Definition: umlscene.cpp:1069
UMLSceneItemList collisions(const QPointF &p, int delta=3)
Definition: umlscene.cpp:1546
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
Overrides the standard operation.
Definition: umlscene.cpp:935
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1114
bool autoIncrementSequence() const
Return the state of the auto increment sequence.
Definition: umlscene.cpp:230
bool loadAssociationsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3802
void sigTextColorChanged(Uml::ID::Type)
AssociationWidget * findAssocWidget(Uml::ID::Type id)
Finds an association widget with the given ID.
Definition: umlscene.cpp:1141
void getDiagram(QPixmap &diagram, const QRectF &rect)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:1694
void activate()
Activate all the objects and associations after a load from the clipboard.
Definition: umlscene.cpp:1770
UMLWidgetList selectedWidgets() const
Returns a list of selected widgets.
Definition: umlscene.cpp:1285
bool loadUisDiagramPresentation(QDomElement &qElement)
Definition: umlscene.cpp:3848
void sigAssociationRemoved(AssociationWidget *)
UMLFolder * folder() const
Return the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:190
void deleteSelection()
Delete the selected widgets list and the widgets in it.
Definition: umlscene.cpp:1427
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *mouseEvent)
Override standard method.
Definition: umlscene.cpp:918
void setUseFillColor(bool ufc)
Sets whether to use the fill/background color.
Definition: umlscene.cpp:1266
void selectionSetFont(const QFont &font)
Set the font for all the currently selected items.
Definition: umlscene.cpp:1345
void selectionSetLineColor(const QColor &color)
Set the line color for all the currently selected items.
Definition: umlscene.cpp:1359
void slotMenuSelection(QAction *action)
When a menu selection has been made on the menu that this view created, this method gets called...
Definition: umlscene.cpp:2851
void removeWidget(UMLWidget *o)
Remove a widget from view (undo command)
Definition: umlscene.cpp:1217
Definition: layoutgrid.h:35
bool loadUISDiagram(QDomElement &qElement)
Loads the "UISDiagram" tag of Unisys.IntegratePlus.2 generated files.
Definition: umlscene.cpp:3946
void createAutoConstraintAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2548
void activateAfterLoad(bool bUseLog=false)
Activate the view after a load a new file.
Definition: umlscene.cpp:2003
void forceUpdateWidgetFontMetrics(QPainter *painter)
Force the widget font metrics to be updated next time the widgets are drawn.
Definition: umlscene.cpp:3523
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "diagram" tag and fills it with the contents of the diagram.
Definition: umlscene.cpp:3541
void setShowDocumentationIndicator(bool bShow)
sets whether to show documentation indicator.
Definition: umlscene.cpp:3463
void getWidgetAssocs(UMLObject *Obj, AssociationWidgetList &Associations)
Fills Associations with all the associations that includes a widget related to object.
Definition: umlscene.cpp:2128
Exports an UMLView in various image formats.
Definition: umlviewimageexportermodel.h:32
UMLView * activeView() const
Returns the active view associated with this scene.
Definition: umlscene.cpp:206
The ToolBarStateFactory keeps track of all the toolbar states.
Definition: toolbarstatefactory.h:32
void makeSelected(UMLWidget *uw)
Calls setSelected on the given UMLWidget and enters it into the m_selectedList while making sure it i...
Definition: umlscene.cpp:1559
ObjectWidget * onWidgetLine(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on a line of an Object.
Definition: umlscene.cpp:947
void setCreateObject(bool bCreate)
Set whether we are currently creating an object.
Definition: umlscene.cpp:581
void sigLineWidthChanged(Uml::ID::Type)
WidgetBase::WidgetType getUniqueSelectionType()
Returns the type of the selected widget or widgets.
Definition: umlscene.cpp:3267
void setSnapComponentSizeToGrid(bool bSnap)
Sets whether to snap to grid for component size.
Definition: umlscene.cpp:3368
void dragEnterEvent(QGraphicsSceneDragDropEvent *enterEvent)
Override standard method.
Definition: umlscene.cpp:694
void removeAllAssociations()
Removes All the associations of the diagram.
Definition: umlscene.cpp:2144
void selectionSetLineWidth(uint width)
Set the line width for all the currently selected items.
Definition: umlscene.cpp:1377
QString autoIncrementSequenceValue()
Return the next auto increment sequence value.
Definition: umlscene.cpp:243
Uml::ID::Type m_nLocalID
Contains the unique ID to allocate to a widget that needs an ID for the view.
Definition: umlscene.h:315
bool isSnapGridVisible() const
Returns whether to show snap grid or not.
Definition: umlscene.cpp:3438
void sigWidgetRemoved(UMLWidget *)
qreal snappedY(qreal y)
Returns the input coordinate with possible grid-snap applied.
Definition: umlscene.cpp:3420
void setFont(QFont font, bool changeAllWidgets=false)
Sets the font for the view and optionally all the widgets on the view.
Definition: umlscene.cpp:3199
void selectWidget(UMLWidget *widget, QRectF *rect=0)
Select a single widget.
Definition: umlscene.cpp:1637
void createAutoAssociations(UMLWidget *widget)
Creates automatically any Associations that the given UMLWidget may have on any diagram.
Definition: umlscene.cpp:2234
UMLViewImageExporter * getImageExporter()
Returns the imageExporter used to export the view.
Definition: umlscene.cpp:1754
QPointF getPastePoint()
Returns the offset point at which to place the paste from clipboard.
Definition: umlscene.cpp:3163
void clearDiagram()
Asks for confirmation and clears everything on the diagram.
Definition: umlscene.cpp:3291
bool loadMessagesFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3773
void addFloatingTextWidget(FloatingTextWidget *pWidget)
Adds a floating text widget to the view.
Definition: umlscene.cpp:1880
UMLWidget * getFirstMultiSelectedWidget() const
Return pointer to the first selected widget (for multi-selection)
Definition: umlscene.cpp:993
void setClassWidgetOptions(ClassOptionsPage *page)
Sets some options for all the ClassifierWidget on the view.
Definition: umlscene.cpp:3212
MessageWidgetList & messageList()
Returns a reference to the message list.
Definition: umlscene.cpp:460
UMLWidget * loadWidgetFromXMI(QDomElement &widgetElement)
Loads a "widget" element from XMI, used by loadFromXMI() and the clipboard.
Definition: umlscene.cpp:3752
void print(QPrinter *pPrinter, QPainter &pPainter)
Contains the implementation for printing functionality.
Definition: umlscene.cpp:494
bool m_bUseSnapComponentSizeToGrid
Flag to use snap to grid for component size. The default is off.
Definition: umlscene.h:328
void sigLineColorChanged(Uml::ID::Type)
ObjectWidget * onWidgetDestructionBox(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on the destruction box of an Object...
Definition: umlscene.cpp:972
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
AssociationWidgetList m_AssociationList
All the AssociationWidgets on the diagram.
Definition: umlscene.h:325
qreal width() const
void moveSelectedBy(qreal dX, qreal dY)
Move all the selected widgets by a relative X and Y offset.
Definition: umlscene.cpp:1314
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 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:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.