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:333
AssociationWidget * associationAt(const QPointF &p)
Tests the given point against all associations and returns the association widget for which the point...
Definition: umlscene.cpp:990
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:2975
bool useFillColor() const
Returns whether to use the fill/background color.
Definition: umlscene.cpp:1203
bool widgetOnDiagram(Uml::ID::Type id)
Returns whether a widget is already on the diagram.
Definition: umlscene.cpp:1047
void setAutoIncrementSequenceValue(const QString &value)
Definition: umlscene.cpp:232
void slotShowView()
Called by menu when to show the instance of the view.
Definition: umlscene.cpp:3351
void fileLoaded()
Changes the zoom to the currently set level (now loaded from file) Called from UMLApp::slotUpdateView...
Definition: umlscene.cpp:3691
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:2957
int selectedCount(bool filterText=false) const
Return the amount of widgets selected.
Definition: umlscene.cpp:1831
void setStartedCut()
Called by the view or any of its children when they start a cut operation.
Definition: umlscene.cpp:3382
A dialog page to display options for class related options.
Definition: classoptionspage.h:37
void resizeSceneToItems()
Sets the size of the scene to just fit on all the items.
Definition: umlscene.cpp:3700
QString autoIncrementSequenceValue(int increment=0) const
Definition: umlscene.cpp:227
void removeAssoc(AssociationWidget *pAssoc)
Removes a AssociationWidget from a diagram Physically deletes the AssociationWidget passed in...
Definition: umlscene.cpp:2252
qreal snappedX(qreal x)
Returns the input coordinate with possible grid-snap applied.
Definition: umlscene.cpp:3605
void updateComponentSizes()
Updates the size of all components in this view.
Definition: umlscene.cpp:3709
void findMaxBoundingRectangle(const FloatingTextWidget *ft, qreal &px, qreal &py, qreal &qx, qreal &qy)
Find the maximum bounding rectangle of FloatingTextWidget widgets.
Definition: umlscene.cpp:2852
void removeAssocInViewAndDoc(AssociationWidget *assoc)
Removes an AssociationWidget from the association list and removes the corresponding UMLAssociation f...
Definition: umlscene.cpp:2269
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:2624
bool isSavedInSeparateFile()
Returns true if this diagram resides in an externalized folder.
Definition: umlscene.cpp:1517
void slotActivate()
makes this view the active view by asking the document to show us
Definition: umlscene.cpp:1744
void addObject(UMLObject *object)
Add an object to the application, and update the view.
Definition: umlscene.cpp:4032
int m_nCollaborationId
Used for creating unique name of collaboration messages.
Definition: umlscene.h:360
MessageWidget * messageAt(const QPointF &p)
Tests the given point against all associations and returns the association widget for which the point...
Definition: umlscene.cpp:1005
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:2317
void sigShowGridToggled(bool)
virtual bool loadFromXMI(QDomElement &qElement)
Loads the "diagram" tag.
Definition: umlscene.cpp:3813
virtual void drawBackground(QPainter *painter, const QRectF &rect)
Overrides standard method from QGraphicsScene drawing the background.
Definition: umlscene.cpp:3736
void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent)
Overrides the standard operation.
Definition: umlscene.cpp:828
void sigSnapToGridToggled(bool)
void slotObjectRemoved(UMLObject *o)
Slot called when an object is removed.
Definition: umlscene.cpp:652
void copyAsImage(QPixmap *&pix)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:2875
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:837
void toggleSnapComponentSizeToGrid()
Changes snap to grid for component size boolean.
Definition: umlscene.cpp:3529
void selectWidgets(qreal px, qreal py, qreal qx, qreal qy)
Selects all the widgets within an internally kept rectangle.
Definition: umlscene.cpp:1596
void selectionUseFillColor(bool useFC)
Set the useFillColor variable to all selected widgets.
Definition: umlscene.cpp:1318
const Settings::OptionState & optionState() const
Returns the options being used.
Definition: umlscene.cpp:400
UMLObjectList umlObjects()
Returns a List of all the UMLObjects(Use Cases, Concepts and Actors) in the View. ...
Definition: umlscene.cpp:1752
void setOptionState(const Settings::OptionState &options)
Sets the options to be used.
Definition: umlscene.cpp:408
void updateContainment(UMLCanvasObject *self)
Refreshes containment association, i.e.
Definition: umlscene.cpp:2389
void selectionSetFillColor(const QColor &color)
Set the fill color for all the currently selected items.
Definition: umlscene.cpp:1372
void setAutoIncrementSequence(bool state)
Definition: umlscene.cpp:222
UMLWidgetList m_selectedList
list of selected items TODO: migrate to QGraphicsScenes selection list
Definition: umlscene.h:366
bool isShowDocumentationIndicator() const
Returns whether to show documentation indicator.
Definition: umlscene.cpp:3658
void dragMoveEvent(QGraphicsSceneDragDropEvent *moveEvent)
Override standard method.
Definition: umlscene.cpp:772
void slotCutSuccessful()
Connects to the signal that UMLApp emits when a cut operation is successful.
Definition: umlscene.cpp:3340
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:587
Definition: optionstate.h:141
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:2303
bool getCreateObject() const
Return whether we are currently creating an object.
Definition: umlscene.cpp:532
QDebug operator<<(QDebug dbg, UMLScene *item)
Overloading operator for debugging output.
Definition: umlscene.cpp:4366
void slotToolBarChanged(int c)
Changes the current tool to the selected tool.
Definition: umlscene.cpp:574
void dropEvent(QGraphicsSceneDragDropEvent *dropEvent)
Override standard method.
Definition: umlscene.cpp:780
void setShowOpSig(bool bShowOpSig)
Sets whether to show operation signatures.
Definition: umlscene.cpp:3682
void sigSnapComponentSizeToGridToggled(bool)
bool snapComponentSizeToGrid() const
Return whether to use snap to grid for component size.
Definition: umlscene.cpp:3563
AssociationWidgetList selectedAssocs()
Returns a list with all the selected associations from the diagram.
Definition: umlscene.cpp:1875
bool loadWidgetsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3919
void setFolder(UMLFolder *folder)
Set the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:185
void sigResetToolBar()
void setSelected(UMLWidget *w, QGraphicsSceneMouseEvent *me)
Sets a widget to a selected state and adds it to a list of selected widgets.
Definition: umlscene.cpp:1262
bool addAssociation(AssociationWidget *pAssoc, bool isPasteOperation=false)
Adds an association to the view from the given data.
Definition: umlscene.cpp:2119
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:1856
void setDocumentation(const QString &doc)
Set the documentation of the diagram.
Definition: umlscene.cpp:209
void selectWidgetsOfAssoc(AssociationWidget *a)
Selects all the widgets of the given association widget.
Definition: umlscene.cpp:1576
int generateCollaborationId()
Used for creating unique name of collaboration messages.
Definition: umlscene.cpp:440
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:968
AssociationWidgetList & associationList()
Returns a reference to the association list.
Definition: umlscene.cpp:416
void checkMessages(ObjectWidget *w)
Sees if a message is relevant to the given widget.
Definition: umlscene.cpp:1019
UMLSceneItemList collisions(const QPointF &p, int delta=3)
Definition: umlscene.cpp:1551
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent)
Overrides the standard operation.
Definition: umlscene.cpp:896
UMLWidget * findWidget(Uml::ID::Type id)
Finds a widget with the given ID.
Definition: umlscene.cpp:1069
void sigClearAllSelected()
bool autoIncrementSequence() const
Return the state of the auto increment sequence.
Definition: umlscene.cpp:217
bool loadAssociationsFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3995
void sigTextColorChanged(Uml::ID::Type)
AssociationWidget * findAssocWidget(Uml::ID::Type id)
Finds an association widget with the given ID.
Definition: umlscene.cpp:1096
void getDiagram(QPixmap &diagram, const QRectF &rect)
Returns the PNG picture of the paste operation.
Definition: umlscene.cpp:1677
void activate()
Activate all the objects and associations after a load from the clipboard.
Definition: umlscene.cpp:1779
UMLWidgetList selectedWidgets() const
Returns a list of selected widgets.
Definition: umlscene.cpp:1283
bool loadUisDiagramPresentation(QDomElement &qElement)
Definition: umlscene.cpp:4041
void sigAssociationRemoved(AssociationWidget *)
UMLFolder * folder() const
Return the UMLFolder in which this diagram lives.
Definition: umlscene.cpp:177
void deleteSelection()
Delete the selected widgets list and the widgets in it.
Definition: umlscene.cpp:1442
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *mouseEvent)
Override standard method.
Definition: umlscene.cpp:879
void setUseFillColor(bool ufc)
Sets whether to use the fill/background color.
Definition: umlscene.cpp:1211
void selectionSetFont(const QFont &font)
Set the font for all the currently selected items.
Definition: umlscene.cpp:1328
void selectionSetLineColor(const QColor &color)
Set the line color for all the currently selected items.
Definition: umlscene.cpp:1338
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:3050
Definition: layoutgrid.h:35
bool loadUISDiagram(QDomElement &qElement)
Loads the "UISDiagram" tag of Unisys.IntegratePlus.2 generated files.
Definition: umlscene.cpp:4139
void createAutoConstraintAssociations(UMLWidget *widget)
Definition: umlscene.cpp:2755
void selectionToggleShow(int sel)
Toggles the show setting sel of all selected items.
Definition: umlscene.cpp:1386
void activateAfterLoad(bool bUseLog=false)
Activate the view after a load a new file.
Definition: umlscene.cpp:2210
void forceUpdateWidgetFontMetrics(QPainter *painter)
Force the widget font metrics to be updated next time the widgets are drawn.
Definition: umlscene.cpp:3726
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the "diagram" tag and fills it with the contents of the diagram.
Definition: umlscene.cpp:3744
bool checkUniqueSelection()
This function checks if the currently selected items have all the same type (class, interface, ...).
Definition: umlscene.cpp:3470
void setShowDocumentationIndicator(bool bShow)
sets whether to show documentation indicator.
Definition: umlscene.cpp:3666
void getWidgetAssocs(UMLObject *Obj, AssociationWidgetList &Associations)
Fills Associations with all the associations that includes a widget related to object.
Definition: umlscene.cpp:2335
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:193
The ToolBarStateFactory keeps track of all the toolbar states.
Definition: toolbarstatefactory.h:33
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:1564
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
ObjectWidget * onWidgetLine(const QPointF &point) const
Determine whether on a sequence diagram we have clicked on a line of an Object.
Definition: umlscene.cpp:908
void setCreateObject(bool bCreate)
Set whether we are currently creating an object.
Definition: umlscene.cpp:540
QList< AssociationWidget * > AssociationWidgetList
Definition: associationwidgetlist.h:18
void sigLineWidthChanged(Uml::ID::Type)
void setSnapComponentSizeToGrid(bool bSnap)
Sets whether to snap to grid for component size.
Definition: umlscene.cpp:3571
void dragEnterEvent(QGraphicsSceneDragDropEvent *enterEvent)
Override standard method.
Definition: umlscene.cpp:668
void removeAllAssociations()
Removes All the associations of the diagram.
Definition: umlscene.cpp:2351
A popup menu that depending on what type is set to will display a different menu. ...
Definition: listpopupmenu.h:40
void selectionSetLineWidth(uint width)
Set the line width for all the currently selected items.
Definition: umlscene.cpp:1356
bool addWidget(UMLWidget *pWidget, bool isPasteOperation=false)
Adds a widget to the view from the given data.
Definition: umlscene.cpp:1890
Uml::ID::Type m_nLocalID
Contains the unique ID to allocate to a widget that needs an ID for the view.
Definition: umlscene.h:319
bool isSnapGridVisible() const
Returns whether to show snap grid or not.
Definition: umlscene.cpp:3641
void sigWidgetRemoved(UMLWidget *)
qreal snappedY(qreal y)
Returns the input coordinate with possible grid-snap applied.
Definition: umlscene.cpp:3623
void setFont(QFont font, bool changeAllWidgets=false)
Sets the font for the view and optionally all the widgets on the view.
Definition: umlscene.cpp:3398
void createAutoAssociations(UMLWidget *widget)
Creates automatically any Associations that the given UMLWidget may have on any diagram.
Definition: umlscene.cpp:2441
UMLViewImageExporter * getImageExporter()
Returns the imageExporter used to export the view.
Definition: umlscene.cpp:1736
QPointF getPastePoint()
Returns the offset point at which to place the paste from clipboard.
Definition: umlscene.cpp:3362
void clearDiagram()
Asks for confirmation and clears everything on the diagram.
Definition: umlscene.cpp:3494
bool loadMessagesFromXMI(QDomElement &qElement)
Definition: umlscene.cpp:3966
UMLWidget * getFirstMultiSelectedWidget() const
Return pointer to the first selected widget (for multi-selection)
Definition: umlscene.cpp:954
void setClassWidgetOptions(ClassOptionsPage *page)
Sets some options for all the ClassifierWidget on the view.
Definition: umlscene.cpp:3411
MessageWidgetList & messageList()
Returns a reference to the message list.
Definition: umlscene.cpp:432
UMLWidget * loadWidgetFromXMI(QDomElement &widgetElement)
Loads a "widget" element from XMI, used by loadFromXMI() and the clipboard.
Definition: umlscene.cpp:3945
void print(QPrinter *pPrinter, QPainter &pPainter)
Contains the implementation for printing functionality.
Definition: umlscene.cpp:466
bool m_bUseSnapComponentSizeToGrid
Flag to use snap to grid for component size. The default is off.
Definition: umlscene.h:332
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:933
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:329
void moveSelectedBy(qreal dX, qreal dY)
Move all the selected widgets by a relative X and Y offset.
Definition: umlscene.cpp:1305
void setupNewWidget(UMLWidget *w)
Initialize and announce a newly created widget.
Definition: umlscene.cpp:512
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 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:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.