Logo Search packages:      
Sourcecode: kdesdk-kde4 version File versions  Download package

UMLView Class Reference

#include <umlview.h>

List of all members.

Detailed Description

UMLView instances represent diagrams. The UMLApp instance manages a QWidgetStack of UMLView instances. The visible diagram is at the top of stack. The UMLView class inherits from QCanvasView and it owns the objects displayed on its related QCanvas (see m_WidgetList.)

Paul Hensgen <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 66 of file umlview.h.

Public Slots

void alignBottom ()
void alignHorizontalDistribute ()
void alignHorizontalMiddle ()
void alignLeft ()
void alignRight ()
void alignTop ()
void alignVerticalDistribute ()
void alignVerticalMiddle ()
void show ()
void slotActivate ()
void slotCutSuccessful ()
void slotMenuSelection (QAction *action)
void slotObjectCreated (UMLObject *o)
void slotObjectRemoved (UMLObject *o)
void slotRemovePopupMenu ()
void slotShowView ()
void slotToolBarChanged (int c)
void zoomIn ()
void zoomOut ()


void sigAssociationRemoved (AssociationWidget *)
void sigClearAllSelected ()
void sigColorChanged (Uml::IDType)
void sigLineWidthChanged (Uml::IDType)
void sigRemovePopupMenu ()
void sigResetToolBar ()
void sigShowGridToggled (bool)
void sigSnapComponentSizeToGridToggled (bool)
void sigSnapToGridToggled (bool)
void sigWidgetRemoved (UMLWidget *)

Public Member Functions

void activate ()
void activateAfterLoad (bool bUseLog=false)
bool addAssociation (AssociationWidget *pAssoc, bool isPasteOperation=false)
void addObject (UMLObject *object)
bool addWidget (UMLWidget *pWidget, bool isPasteOperation=false)
void beginPartialWidgetPaste ()
void checkMessages (ObjectWidget *w)
void checkSelections ()
bool checkUniqueSelection ()
void clearDiagram ()
void clearSelected ()
void copyAsImage (QPixmap *&pix)
void createAutoAssociations (UMLWidget *widget)
void createAutoAttributeAssociations (UMLWidget *widget)
void createAutoConstraintAssociations (UMLWidget *widget)
int currentZoom ()
void deleteSelection ()
void emitRemovePopupMenu ()
void endPartialWidgetPaste ()
void fileLoaded ()
AssociationWidgetfindAssocWidget (UMLWidget *pWidgetA, UMLWidget *pWidgetB, const QString &roleNameB)
AssociationWidgetfindAssocWidget (Uml::Association_Type at, UMLWidget *pWidgetA, UMLWidget *pWidgetB)
AssociationWidgetfindAssocWidget (Uml::IDType id)
UMLWidgetfindWidget (Uml::IDType id)
int generateCollaborationId ()
AssociationWidgetList & getAssociationList ()
int getCanvasHeight () const
int getCanvasWidth () const
bool getCreateObject () const
void getDiagram (const QRect &area, QPainter &painter)
void getDiagram (const QRect &rect, QPixmap &diagram)
QString getDoc () const
QColor getFillColor () const
UMLWidgetgetFirstMultiSelectedWidget ()
UMLFoldergetFolder ()
QFont getFont () const
Uml::IDType getID () const
UMLViewImageExportergetImageExporter ()
QColor getLineColor () const
uint getLineWidth () const
Uml::IDType getLocalID ()
MessageWidgetList & getMessageList ()
QString getName () const
const Settings::OptionState & getOptionState () const
bool getPaste () const
QPoint getPastePoint ()
QPoint & getPos ()
int getSelectCount (bool filterText=false) const
AssociationWidgetList getSelectedAssocs ()
bool getSelectedWidgets (UMLWidgetList &WidgetList, bool filterText=true)
bool getShowOpSig () const
bool getShowSnapGrid () const
bool getSnapComponentSizeToGrid () const
bool getSnapToGrid () const
int getSnapX () const
int getSnapY () const
Uml::Diagram_Type getType () const
UMLDocgetUMLDoc ()
UMLObjectList getUMLObjects ()
bool getUseFillColor () const
void getWidgetAssocs (UMLObject *Obj, AssociationWidgetList &Associations)
UMLWidgetgetWidgetAt (const QPoint &p)
UMLWidgetList & getWidgetList ()
int getZoom () const
void hideEvent (QHideEvent *he)
bool isSavedInSeparateFile ()
virtual bool loadFromXMI (QDomElement &qElement)
bool loadUISDiagram (QDomElement &qElement)
UMLWidgetloadWidgetFromXMI (QDomElement &widgetElement)
void moveSelectedBy (int dX, int dY)
ObjectWidgetonWidgetDestructionBox (const QPoint &point)
ObjectWidgetonWidgetLine (const QPoint &point)
void print (QPrinter *pPrinter, QPainter &pPainter)
void removeAllAssociations ()
void removeAllWidgets ()
void removeAssoc (AssociationWidget *pAssoc)
void removeAssociations (UMLWidget *pWidget)
void removeAssocInViewAndDoc (AssociationWidget *assoc)
void removeWidget (UMLWidget *o)
void resetPastePoint ()
void resetToolbar ()
void resizeCanvasToItems ()
virtual void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
void selectAll ()
void selectAssociations (bool bSelect)
void selectionSetFillColor (const QColor &color)
void selectionSetFont (const QFont &font)
void selectionSetLineColor (const QColor &color)
void selectionSetLineWidth (uint width)
void selectionToggleShow (int sel)
void selectionUseFillColor (bool useFC)
void selectWidgets (int px, int py, int qx, int qy)
void setCanvasHeight (int height)
void setCanvasSize (int width, int height)
void setCanvasWidth (int width)
void setClassWidgetOptions (ClassOptionsPage *page)
void setCreateObject (bool bCreate)
void setDoc (const QString &doc)
void setFillColor (const QColor &color)
void setFolder (UMLFolder *folder)
void setFont (QFont font, bool changeAllWidgets=false)
void setID (Uml::IDType id)
void setLineColor (const QColor &color)
void setLineWidth (uint width)
void setMenu ()
void setName (const QString &name)
void setOptionState (const Settings::OptionState &options)
void setPaste (bool paste)
void setPos (const QPoint &_pos)
void setSelected (UMLWidget *w, QMouseEvent *me)
void setShowOpSig (bool bShowOpSig)
void setShowSnapGrid (bool bShow)
void setSnapComponentSizeToGrid (bool bSnap)
void setSnapToGrid (bool bSnap)
void setSnapX (int x)
void setSnapY (int y)
void setStartedCut ()
void setType (Uml::Diagram_Type type)
void setupNewWidget (UMLWidget *w)
void setUseFillColor (bool ufc)
void setZoom (int zoom)
void showDocumentation (AssociationWidget *widget, bool overwrite)
void showDocumentation (UMLWidget *widget, bool overwrite)
void showDocumentation (UMLObject *object, bool overwrite)
void showEvent (QShowEvent *se)
bool showPropDialog ()
int snappedX (int x)
int snappedY (int y)
void toggleShowGrid ()
void toggleSnapComponentSizeToGrid ()
void toggleSnapToGrid ()
 UMLView (UMLFolder *parentFolder)
void updateContainment (UMLCanvasObject *self)
void updateDocumentation (bool clear)
bool widgetOnDiagram (Uml::IDType id)
virtual ~UMLView ()

Static Public Attributes

static const int defaultCanvasSize = 1300

Protected Member Functions

void closeEvent (QCloseEvent *e)
void contentsMouseDoubleClickEvent (QMouseEvent *mouseEvent)
void contentsMouseMoveEvent (QMouseEvent *mouseEvent)
void contentsMousePressEvent (QMouseEvent *mouseEvent)
void contentsMouseReleaseEvent (QMouseEvent *mouseEvent)
void dragEnterEvent (QDragEnterEvent *enterEvent)
void dragMoveEvent (QDragMoveEvent *moveEvent)
void dropEvent (QDropEvent *dropEvent)
void findMaxBoundingRectangle (const FloatingTextWidget *ft, int &px, int &py, int &qx, int &qy)
void forceUpdateWidgetFontMetrics (QPainter *painter)
QRect getDiagramRect ()
void init ()
bool loadAssociationsFromXMI (QDomElement &qElement)
bool loadMessagesFromXMI (QDomElement &qElement)
bool loadUisDiagramPresentation (QDomElement &qElement)
bool loadWidgetsFromXMI (QDomElement &qElement)
void makeSelected (UMLWidget *uw)
void selectWidgetsOfAssoc (AssociationWidget *a)
void updateComponentSizes ()

Protected Attributes

AssociationWidgetList m_AssociationList
bool m_bCreateObject
bool m_bDrawSelectedOnly
bool m_bPaste
bool m_bShowSnapGrid
bool m_bStartedCut
bool m_bUseSnapComponentSizeToGrid
bool m_bUseSnapToGrid
QString m_Documentation
MessageWidgetList m_MessageList
QString m_Name
int m_nCanvasHeight
int m_nCanvasWidth
int m_nCollaborationId
Uml::IDType m_nID
Uml::IDType m_nLocalID
int m_nSnapX
int m_nSnapY
int m_nZoom
Settings::OptionState m_Options
QPoint m_Pos
UMLWidgetList m_SelectedList
Uml::Diagram_Type m_Type
UMLWidgetList m_WidgetList

Private Member Functions

void createAutoAttributeAssociation (UMLClassifier *type, UMLAttribute *attr, UMLWidget *widget)
void createAutoConstraintAssociation (UMLEntity *refEntity, UMLForeignKeyConstraint *fkConstraint, UMLWidget *widget)
int getBiggestX (const UMLWidgetList &widgetList)
int getBiggestY (const UMLWidgetList &widgetList)
int getHeightsSum (const UMLWidgetList &widgetList)
int getSmallestX (const UMLWidgetList &widgetList)
int getSmallestY (const UMLWidgetList &widgetList)
int getWidthsSum (const UMLWidgetList &widgetList)
template<typename Compare>
void sortWidgetList (UMLWidgetList &widgetList, Compare comp)

Static Private Member Functions

static bool hasWidgetSmallerX (const UMLWidget *widget1, const UMLWidget *widget2)
static bool hasWidgetSmallerY (const UMLWidget *widget1, const UMLWidget *widget2)

Private Attributes

bool m_bActivated
bool m_bChildDisplayedDoc
bool m_bPopupShowing
QPoint m_PastePoint


class UMLViewImageExporterModel

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index