|
| CombinedFragmentWidget (UMLScene *scene, CombinedFragmentType combinedfragmentType=Ref, Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~CombinedFragmentWidget () |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
|
CombinedFragmentType | combinedFragmentType () const |
|
CombinedFragmentType | combinedFragmentType (const QString &combinedfragmentType) const |
|
void | setCombinedFragmentType (CombinedFragmentType combinedfragmentType) |
|
void | setCombinedFragmentType (const QString &combinedfragmentType) |
|
void | askNameForWidgetType (UMLWidget *&targetWidget, const QString &dialogTitle, const QString &dialogPrompt, const QString &defaultName) |
|
void | saveToXMI1 (QXmlStreamWriter &writer) |
|
bool | loadFromXMI1 (QDomElement &qElement) |
|
void | removeDashLine (FloatingDashLineWidget *line) |
|
virtual void | cleanup () |
|
virtual bool | activate (IDChangeLog *ChangeLog=0) |
|
virtual QRectF | boundingRect () const |
|
virtual QPainterPath | shape () const |
|
| UMLWidget (UMLScene *scene, WidgetType type=wt_UMLWidget, UMLObject *o=0) |
|
| UMLWidget (UMLScene *scene, WidgetType type=wt_UMLWidget, Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~UMLWidget () |
|
UMLWidget & | operator= (const UMLWidget &other) |
|
bool | operator== (const UMLWidget &other) const |
|
virtual QSizeF | minimumSize () const |
|
void | setMinimumSize (const QSizeF &size) |
|
virtual QSizeF | maximumSize () |
|
void | setMaximumSize (const QSizeF &size) |
|
virtual void | setUseFillColor (bool fc) |
|
void | setUseFillColorCmd (bool fc) |
|
virtual void | setTextColor (const QColor &color) |
|
void | setTextColorCmd (const QColor &color) |
|
virtual void | setLineColor (const QColor &color) |
|
virtual void | setLineColorCmd (const QColor &color) |
|
virtual void | setLineWidth (uint width) |
|
void | setLineWidthCmd (uint width) |
|
virtual void | setFillColor (const QColor &color) |
|
void | setFillColorCmd (const QColor &color) |
|
void | setSelectedFlag (bool _select) |
|
virtual void | setSelected (bool _select) |
|
void | setScene (UMLScene *scene) |
|
virtual bool | activate (IDChangeLog *changeLog=0) |
|
void | setPenFromSettings (QPainter &p) |
|
void | setPenFromSettings (QPainter *p) |
|
virtual void | setFont (const QFont &font) |
|
void | setFontCmd (const QFont &font) |
|
bool | getStartMove () const |
|
virtual qreal | getX () const |
|
virtual qreal | getY () const |
|
virtual QPointF | getPos () const |
|
virtual void | setX (qreal x) |
|
virtual void | setY (qreal y) |
|
qreal | height () const |
|
qreal | width () const |
|
void | setSize (qreal width, qreal height) |
|
void | setSize (const QSizeF &size) |
|
virtual void | resizeWidget (qreal newW, qreal newH) |
|
virtual void | notifyParentResize () |
|
bool | getIgnoreSnapToGrid () const |
|
void | setIgnoreSnapToGrid (bool to) |
|
void | moveByLocal (qreal dx, qreal dy) |
|
virtual void | removeAssoc (AssociationWidget *pAssoc) |
|
virtual void | addAssoc (AssociationWidget *pAssoc) |
|
AssociationWidgetList & | associationWidgetList () const |
|
bool | isInstance () const |
|
void | setIsInstance (bool isInstance) |
|
void | setInstanceName (const QString &instanceName) |
|
QString | instanceName () const |
|
Uml::ShowStereoType::Enum | showStereotype () const |
|
virtual void | setShowStereotype (Uml::ShowStereoType::Enum flag) |
|
QString | tags () const |
|
virtual bool | showPropertiesDialog () |
|
virtual void | adjustAssocs (qreal dx, qreal dy) |
|
virtual void | adjustUnselectedAssocs (qreal dx, qreal dy) |
|
bool | isActivated () const |
|
void | setActivated (bool active=true) |
|
virtual void | cleanup () |
|
void | updateGeometry (bool withAssocs=true) |
|
void | clipSize () |
|
void | forceUpdateFontMetrics (QPainter *painter) |
|
void | forceUpdateFontMetrics (QFont &font, QPainter *painter) |
|
virtual bool | loadFromXMI1 (QDomElement &qElement) |
|
virtual void | saveToXMI1 (QXmlStreamWriter &writer) |
|
QPointF | startMovePosition () const |
|
void | setStartMovePosition (const QPointF &position) |
|
QSizeF | startResizeSize () const |
|
virtual QSizeF | calculateSize (bool withExtensions=true) const |
|
void | resize () |
|
bool | fixedAspectRatio () const |
|
void | setFixedAspectRatio (bool state) |
|
bool | resizable () const |
|
void | setResizable (bool state) |
|
virtual void | setDefaultFontMetrics (QFont &font, UMLWidget::FontType fontType) |
|
virtual void | setDefaultFontMetrics (QFont &font, UMLWidget::FontType fontType, QPainter &painter) |
|
QFontMetrics & | getFontMetrics (UMLWidget::FontType fontType) const |
|
void | setFontMetrics (UMLWidget::FontType fontType, QFontMetrics fm) |
|
void | setupFontType (QFont &font, UMLWidget::FontType fontType) |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
|
| WidgetBase (UMLScene *scene, WidgetType type=wt_UMLWidget, Uml::ID::Type id=Uml::ID::None) |
|
virtual | ~WidgetBase () |
|
UMLObject * | umlObject () const |
|
virtual void | setUMLObject (UMLObject *obj) |
|
Uml::ID::Type | id () const |
|
void | setID (Uml::ID::Type id) |
|
void | setLocalID (Uml::ID::Type id) |
|
Uml::ID::Type | localID () const |
|
virtual UMLWidget * | widgetWithID (Uml::ID::Type id) |
|
WidgetType | baseType () const |
|
void | setBaseType (const WidgetType &baseType) |
|
QLatin1String | baseTypeStr () const |
|
QString | baseTypeStrWithoutPrefix () const |
|
virtual void | setSelected (bool select) |
|
UMLScene * | umlScene () const |
|
UMLDoc * | umlDoc () const |
|
QString | documentation () const |
|
bool | hasDocumentation () |
|
virtual void | setDocumentation (const QString &doc) |
|
QString | name () const |
|
virtual void | setName (const QString &strName) |
|
QColor | lineColor () const |
|
virtual void | setLineColor (const QColor &color) |
|
uint | lineWidth () const |
|
virtual void | setLineWidth (uint width) |
|
QColor | textColor () const |
|
virtual void | setTextColor (const QColor &color) |
|
QColor | fillColor () const |
|
virtual void | setFillColor (const QColor &color) |
|
bool | usesDiagramLineColor () const |
|
void | setUsesDiagramLineColor (bool state) |
|
bool | usesDiagramLineWidth () const |
|
void | setUsesDiagramLineWidth (bool state) |
|
bool | useFillColor () |
|
virtual void | setUseFillColor (bool state) |
|
bool | usesDiagramTextColor () const |
|
void | setUsesDiagramTextColor (bool state) |
|
bool | usesDiagramFillColor () const |
|
void | setUsesDiagramFillColor (bool state) |
|
bool | usesDiagramUseFillColor () const |
|
void | setUsesDiagramUseFillColor (bool state) |
|
virtual QFont | font () const |
|
virtual void | setFont (const QFont &font) |
|
bool | autoResize () |
|
void | setAutoResize (bool state) |
|
bool | changesShape () |
|
void | setChangesShape (bool state) |
|
virtual bool | showPropertiesDialog () |
|
virtual bool | loadFromXMI1 (QDomElement &qElement) |
|
virtual void | saveToXMI1 (QXmlStreamWriter &writer) |
|
virtual void | removeAssoc (AssociationWidget *pAssoc) |
|
virtual void | addAssoc (AssociationWidget *pAssoc) |
|
WidgetBase & | operator= (const WidgetBase &other) |
|
QRectF | rect () const |
|
void | setRect (const QRectF &rect) |
|
void | setRect (qreal x, qreal y, qreal width, qreal height) |
|
virtual QRectF | boundingRect () const |
|
virtual UMLWidget * | onWidget (const QPointF &p) |
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
|
bool | isActivityWidget () const |
|
bool | isActorWidget () const |
|
bool | isArtifactWidget () const |
|
bool | isAssociationWidget () const |
|
bool | isBoxWidget () const |
|
bool | isCategoryWidget () const |
|
bool | isClassWidget () const |
|
bool | isCombinedFragmentWidget () const |
|
bool | isComponentWidget () const |
|
bool | isDatatypeWidget () const |
|
bool | isEntityWidget () const |
|
bool | isEnumWidget () const |
|
bool | isFloatingDashLineWidget () const |
|
bool | isForkJoinWidget () const |
|
bool | isInterfaceWidget () const |
|
bool | isMessageWidget () const |
|
bool | isNodeWidget () const |
|
bool | isNoteWidget () const |
|
bool | isObjectNodeWidget () const |
|
bool | isObjectWidget () const |
|
bool | isPackageWidget () const |
|
bool | isPinWidget () const |
|
bool | isPortWidget () const |
|
bool | isPreconditionWidget () const |
|
bool | isRegionWidget () const |
|
bool | isSignalWidget () const |
|
bool | isStateWidget () const |
|
bool | isTextWidget () const |
|
bool | isUseCaseWidget () const |
|
ActivityWidget * | asActivityWidget () |
|
ActorWidget * | asActorWidget () |
|
ArtifactWidget * | asArtifactWidget () |
|
AssociationWidget * | asAssociationWidget () |
|
BoxWidget * | asBoxWidget () |
|
CategoryWidget * | asCategoryWidget () |
|
ClassifierWidget * | asClassifierWidget () |
|
CombinedFragmentWidget * | asCombinedFragmentWidget () |
|
ComponentWidget * | asComponentWidget () |
|
DatatypeWidget * | asDatatypeWidget () |
|
EntityWidget * | asEntityWidget () |
|
EnumWidget * | asEnumWidget () |
|
FloatingDashLineWidget * | asFloatingDashLineWidget () |
|
ForkJoinWidget * | asForkJoinWidget () |
|
InterfaceWidget * | asInterfaceWidget () |
|
MessageWidget * | asMessageWidget () |
|
NodeWidget * | asNodeWidget () |
|
NoteWidget * | asNoteWidget () |
|
ObjectNodeWidget * | asObjectNodeWidget () |
|
ObjectWidget * | asObjectWidget () |
|
PackageWidget * | asPackageWidget () |
|
PinWidget * | asPinWidget () |
|
PinPortBase * | asPinPortBase () |
|
PortWidget * | asPortWidget () |
|
PreconditionWidget * | asPreconditionWidget () |
|
RegionWidget * | asRegionWidget () |
|
SignalWidget * | asSignalWidget () |
|
StateWidget * | asStateWidget () |
|
FloatingTextWidget * | asFloatingTextWidget () |
|
UseCaseWidget * | asUseCaseWidget () |
|
UMLWidget * | asUMLWidget () |
|
virtual bool | activate (IDChangeLog *changeLog=0) |
|
virtual void | setSelected (bool state) |
|
| DiagramProxyWidget (UMLWidget *widget, qreal borderWidth=5) |
|
virtual | ~DiagramProxyWidget () |
|
Uml::ID::Type | diagramLink () const |
|
UMLScene * | linkedDiagram () const |
|
bool | setDiagramLink (const Uml::ID::Type &id) |
|
const QRectF & | clientRect () |
|
const QRectF & | sceneRect () |
|
void | setClientRect (const QRectF &rect) |
|
bool | isProxyWidget () |
|
UMLWidget * | getProxiedWidget (const QPointF &p) |
|
QPointF | mapFromClient (const QPointF &p) |
|
QRectF | mapFromClient (const QRectF &r) |
|
QPointF | mapToClient (const QPointF &pos) |
|
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
|
bool | showLinkedDiagram () const |
|
void | setShowLinkedDiagram (bool showLinkedDiagram) |
|
QRectF | iconRect () const |
|
void | setIconRect (const QRectF &iconRect) |
|
|
QSizeF | minimumSize () const |
|
void | toForeground () |
|
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
|
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | moveEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | moveWidgetBy (qreal diffX, qreal diffY) |
|
virtual void | constrainMovementForAllWidgets (qreal &diffX, qreal &diffY) |
|
virtual void | constrain (qreal &width, qreal &height) |
|
virtual bool | isInResizeArea (QGraphicsSceneMouseEvent *me) |
|
virtual QCursor | resizeCursor () const |
|
void | selectSingle (QGraphicsSceneMouseEvent *me) |
|
void | selectMultiple (QGraphicsSceneMouseEvent *me) |
|
void | deselect (QGraphicsSceneMouseEvent *me) |
|
void | setSelectionBounds () |
|
void | resize (QGraphicsSceneMouseEvent *me) |
|
bool | wasSizeChanged () |
|
bool | wasPositionChanged () |
|
virtual void | toForeground () |
|
void | addConnectedWidget (UMLWidget *widget, Uml::AssociationType::Enum type=Uml::AssociationType::Association, AddWidgetOptions options=Default) |
|
void | addConnectedUMLObject (UMLObject::ObjectType otype, Uml::AssociationType::Enum type) |
|
void | addWidget (UMLWidget *widget, bool showProperties=true) |
|
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
|
QVariant | itemChange (GraphicsItemChange change, const QVariant &value) |
|
DiagramProxyWidget & | operator= (const DiagramProxyWidget &other) |
|
bool | activate (IDChangeLog *changeLog=0) |
|
bool | loadFromXMI1 (QDomElement &qElement) |
|
void | saveToXMI1 (QXmlStreamWriter &writer) |
|
void | setupEvent (QGraphicsSceneMouseEvent &e, QGraphicsSceneMouseEvent *event, const QPointF &pos) |
|
void | setupEvent (QGraphicsSceneContextMenuEvent &e, QGraphicsSceneContextMenuEvent *event, const QPointF &pos) |
|
virtual void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
|
virtual void | mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) |
|
virtual void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
|
void | slotMenuSelection (QAction *action) |
|
A graphical version of a UML combined fragment.
This class is the graphical version of a UML combined fragment. A combinedfragmentWidget is created by a UMLView. An combinedfragmentWidget belongs to only one UMLView instance. When the UMLView instance that this class belongs to, it will be automatically deleted.
The combinedfragmentWidget class inherits from the UMLWidget class which adds most of the functionality to this class.
- Author
- Hassan KOUCH hkouc.nosp@m.h@ho.nosp@m.tmail.nosp@m..com Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org