umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

classifierwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2004-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef CLASSIFIERWIDGET_H
12 #define CLASSIFIERWIDGET_H
13
14 #include "basictypes.h"
15 #include "umlobject.h"
16 #include "umlwidget.h"
17
18 class AssociationWidget;
19 class FloatingTextWidget;
20 class QPainter;
21 class UMLClassifier;
22
32 class ClassifierWidget : public UMLWidget
33 {
34 Q_OBJECT
35 Q_ENUMS(VisualProperty)
36 public:
42 enum VisualProperty {
43 ShowStereotype = 0x1,
44 ShowOperations = 0x2,
45 ShowPublicOnly = 0x4,
46 ShowVisibility = 0x8,
47 ShowPackage = 0x10,
48 ShowAttributes = 0x20,
49 DrawAsCircle = 0x40,
50 ShowOperationSignature = 0x60,
51 ShowAttributeSignature = 0x80,
52 DrawAsPackage = 0x100,
53 ShowDocumentation = 0x200,
54 };
55
56 Q_DECLARE_FLAGS(VisualProperties, VisualProperty)
57
58 ClassifierWidget(UMLScene * scene, UMLClassifier * o);
59 ClassifierWidget(UMLScene * scene, UMLPackage * o);
60 virtual ~ClassifierWidget();
61
62 UMLClassifier *classifier() const;
63
64 VisualProperties visualProperties() const;
65 void setVisualProperties(VisualProperties properties);
66
67 bool visualProperty(VisualProperty property) const;
68 void setVisualProperty(VisualProperty property, bool enable = true);
69 void setVisualPropertyCmd(VisualProperty property, bool enable = true);
70 void toggleVisualProperty(VisualProperty property);
71
72 int displayedAttributes() const;
73 int displayedOperations() const;
74
75 Uml::SignatureType::Enum attributeSignature() const;
76 void setAttributeSignature(Uml::SignatureType::Enum sig);
77
78 Uml::SignatureType::Enum operationSignature() const;
79 void setOperationSignature(Uml::SignatureType::Enum sig);
80
81 void setShowAttSigs(bool _show);
82 void toggleShowAttSigs();
83
84 bool getDrawAsCircle() const;
85 void setDrawAsCircle(bool drawAsCircle);
86 void toggleDrawAsCircle();
87
88 void changeToClass();
89 void changeToInterface();
90 void changeToPackage();
91
92 AssociationWidget *classAssociationWidget() const;
93 void setClassAssociationWidget(AssociationWidget *assocwidget);
94
95 UMLWidget* onWidget(const QPointF& p);
96 UMLWidget* widgetWithID(Uml::ID::Type id);
97
98 virtual void setDocumentation(const QString& doc);
99
100 QSizeF calculateSize(bool withExtensions = true) const;
101
102 virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
103 virtual QPainterPath shape() const;
104
105 virtual void saveToXMI1(QDomDocument & qDoc, QDomElement & qElement);
106 virtual bool loadFromXMI1(QDomElement & qElement);
107
108 virtual bool showPropertiesDialog();
109 void setUMLObject(UMLObject *obj);
110
111 public Q_SLOTS:
112 virtual void slotMenuSelection(QAction* action);
113
114 private Q_SLOTS:
115 void slotShowAttributes(bool state);
116 void slotShowOperations(bool state);
117
118 protected:
119 virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event);
120
121 private:
122 void updateSignatureTypes();
123 QSize calculateTemplatesBoxSize() const;
124
125 QSizeF minimumSize() const;
126
127 void drawAsCircle(QPainter *p, const QStyleOptionGraphicsItem *option);
128 QSize calculateAsCircleSize() const;
129
130 void drawAsPackage(QPainter *painter, const QStyleOptionGraphicsItem *option);
131 QSize calculateAsPackageSize() const;
132
133 int displayedMembers(UMLObject::ObjectType ot) const;
134 void drawMembers(QPainter *painter, UMLObject::ObjectType ot, Uml::SignatureType::Enum sigType,
135 int x, int y, int textWidth, int fontHeight);
136
137 static const int CIRCLE_SIZE;
138 static const int SOCKET_INCREMENT;
139
140 VisualProperties m_visualProperties;
141 Uml::SignatureType::Enum m_attributeSignature;
142 Uml::SignatureType::Enum m_operationSignature;
143 AssociationWidget *m_pAssocWidget;
144 QPointer<FloatingTextWidget> m_pInterfaceName;
145
146 };
147
148 Q_DECLARE_OPERATORS_FOR_FLAGS(ClassifierWidget::VisualProperties)
149
150 #endif
ClassifierWidget::operationSignature
Uml::SignatureType::Enum operationSignature() const
Definition: classifierwidget.cpp:383
Settings::ClassState::showVisibility
bool showVisibility
Definition: optionstate.h:121
ClassifierWidget::ShowOperations
@ ShowOperations
Definition: classifierwidget.h:44
ClassifierWidget::slotShowOperations
void slotShowOperations(bool state)
Definition: classifierwidget.cpp:1490
template.h
UMLWidget::height
qreal height() const
Definition: umlwidget.h:114
instance.h
ClassifierWidget::ClassifierWidget
ClassifierWidget(UMLScene *scene, UMLClassifier *o)
Definition: classifierwidget.cpp:47
ClassifierWidget::DrawAsPackage
@ DrawAsPackage
Definition: classifierwidget.h:52
associationline.h
UMLClassifier::getOpList
UMLOperationList getOpList(bool includeInherited=false, UMLClassifierSet *alreadyTraversed=0)
Definition: classifier.cpp:939
AssociationWidget
This class represents an association inside a diagram. Bugs and comments to umbrello-devel@kde....
Definition: associationwidget.h:52
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:80
ListPopupMenu::mt_Show_Operations
@ mt_Show_Operations
Definition: listpopupmenu.h:166
WidgetBase::onWidget
virtual UMLWidget * onWidget(const QPointF &p)
Definition: widgetbase.cpp:875
ClassifierWidget::ShowStereotype
@ ShowStereotype
Definition: classifierwidget.h:43
WidgetBase::setChangesShape
void setChangesShape(bool state)
Definition: widgetbase.cpp:587
x
int x
Definition: cxx11-lambda-functions-and-expressions.h:4
WidgetBase::textColor
QColor textColor() const
Definition: widgetbase.cpp:335
UMLClassifier::isInterface
bool isInterface() const
Definition: classifier.cpp:118
Settings::ClassState::showAttSig
bool showAttSig
Definition: optionstate.h:125
Uml::SignatureType::NoSigNoVis
@ NoSigNoVis
Definition: basictypes.h:166
Uml::CmdChangeVisualProperty
Definition: cmdchangevisualproperty.h:21
Settings::ClassState::showPackage
bool showPackage
Definition: optionstate.h:127
UMLObject::name
QString name() const
Definition: umlobject.cpp:211
umlview.h
ListPopupMenu::convert_MT_OT
static UMLObject::ObjectType convert_MT_OT(MenuType mt)
Definition: listpopupmenu.cpp:422
UMLWidget
The base class for graphical UML objects.
Definition: umlwidget.h:41
ClassifierWidget::ShowAttributes
@ ShowAttributes
Definition: classifierwidget.h:48
ClassifierWidget::classAssociationWidget
AssociationWidget * classAssociationWidget() const
Definition: classifierwidget.cpp:701
WidgetBase::isInterfaceWidget
bool isInterfaceWidget()
Definition: widgetbase.h:255
ClassifierWidget::toggleDrawAsCircle
void toggleDrawAsCircle()
Definition: classifierwidget.cpp:1199
Uml::ID::Reserved
const Type Reserved
special value for illegal ID
Definition: basictypes.h:354
WidgetBase::wt_Package
@ wt_Package
Definition: widgetbase.h:121
WidgetBase::wt_Instance
@ wt_Instance
Definition: widgetbase.h:143
WidgetBase::name
QString name() const
Definition: widgetbase.cpp:309
WidgetBase::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: widgetbase.cpp:294
ClassifierWidget::changeToInterface
void changeToInterface()
Definition: classifierwidget.cpp:1230
ClassifierWidget::ShowPublicOnly
@ ShowPublicOnly
Definition: classifierwidget.h:45
ListPopupMenu::mt_Datatype
@ mt_Datatype
Definition: listpopupmenu.h:76
UMLWidget::setPenFromSettings
void setPenFromSettings(QPainter &p)
Definition: umlwidget.cpp:1392
UMLWidget::FT_NORMAL
@ FT_NORMAL
Definition: umlwidget.h:217
ListPopupMenu::mt_Show_Documentation
@ mt_Show_Documentation
Definition: listpopupmenu.h:161
ClassifierWidget::setShowAttSigs
void setShowAttSigs(bool _show)
Definition: classifierwidget.cpp:407
UMLWidget::FT_BOLD_ITALIC
@ FT_BOLD_ITALIC
Definition: umlwidget.h:221
UMLWidget::FT_BOLD
@ FT_BOLD
Definition: umlwidget.h:218
UMLClassifier::getFilteredList
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:998
Settings::ClassState::showPublicOnly
bool showPublicOnly
Definition: optionstate.h:130
UMLWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: umlwidget.cpp:585
ClassifierWidget::getDrawAsCircle
bool getDrawAsCircle() const
Definition: classifierwidget.cpp:1190
AssociationWidget::associationLine
AssociationLine * associationLine() const
Definition: associationwidget.cpp:658
ClassifierWidget::toggleVisualProperty
void toggleVisualProperty(VisualProperty property)
Definition: classifierwidget.cpp:300
Object_Factory::createUMLObject
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Definition: object_factory.cpp:203
WidgetBase::umlScene
UMLScene * umlScene() const
Definition: widgetbase.cpp:162
ClassifierWidget::ShowAttributeSignature
@ ShowAttributeSignature
only in setter
Definition: classifierwidget.h:51
classifierwidget.h
UMLObject::ot_Class
@ ot_Class
Definition: umlobject.h:89
ListPopupMenu::mt_Enum
@ mt_Enum
Definition: listpopupmenu.h:84
operation.h
DEBUG_REGISTER_DISABLED
#define DEBUG_REGISTER_DISABLED(src)
Definition: debug_utils.h:132
ClassifierWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: classifierwidget.cpp:1495
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:353
ListPopupMenu::mt_ChangeToClass
@ mt_ChangeToClass
Definition: listpopupmenu.h:176
Uml::RoleType::A
@ A
Definition: basictypes.h:239
UMLScene::backgroundColor
const QColor & backgroundColor() const
Definition: umlscene.cpp:1370
ClassifierWidget::m_pInterfaceName
QPointer< FloatingTextWidget > m_pInterfaceName
Separate widget for name in case of interface drawn as circle.
Definition: classifierwidget.h:144
UMLObject::ot_Attribute
@ ot_Attribute
Definition: umlobject.h:92
ClassifierWidget::slotShowAttributes
void slotShowAttributes(bool state)
Definition: classifierwidget.cpp:1482
ClassifierWidget::calculateTemplatesBoxSize
QSize calculateTemplatesBoxSize() const
Definition: classifierwidget.cpp:632
ListPopupMenu::mt_Visibility
@ mt_Visibility
Definition: listpopupmenu.h:173
object_factory.h
UMLObject::ot_Interface
@ ot_Interface
Definition: umlobject.h:86
Uml::SignatureType::SigNoVis
@ SigNoVis
Definition: basictypes.h:165
DiagramProxyWidget::setShowLinkedDiagram
void setShowLinkedDiagram(bool showLinkedDiagram)
Definition: diagramproxywidget.cpp:315
AssociationLine::endPoint
QPointF endPoint() const
Definition: associationline.cpp:113
cmds.h
UMLOperation::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: operation.cpp:205
ClassifierWidget::ShowDocumentation
@ ShowDocumentation
Definition: classifierwidget.h:53
UMLObject::isStatic
bool isStatic() const
Definition: umlobject.cpp:366
UMLClassifier::getTemplateList
UMLTemplateList getTemplateList() const
Definition: classifier.cpp:1148
ListPopupMenu::mt_Class
@ mt_Class
Definition: listpopupmenu.h:73
ClassifierWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: classifierwidget.cpp:1333
ClassifierWidget::m_visualProperties
VisualProperties m_visualProperties
Definition: classifierwidget.h:140
UMLObject::ot_Package
@ ot_Package
Definition: umlobject.h:85
WidgetBase::rect
QRectF rect() const
Definition: widgetbase.cpp:831
Uml::ID::Type
std::string Type
Definition: basictypes.h:351
Object_Factory::createChildObject
UMLClassifierListItem * createChildObject(UMLClassifier *parent, UMLObject::ObjectType type, const QString &name)
Definition: object_factory.cpp:300
ListPopupMenu::mt_Show_Attributes
@ mt_Show_Attributes
Definition: listpopupmenu.h:159
Uml::AssociationType::UniAssociation
@ UniAssociation
Definition: basictypes.h:119
ClassifierWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: classifierwidget.cpp:1261
UMLObject
The base class for UML objects.
Definition: umlobject.h:74
diagram_utils.h
UMLObject::isAbstract
bool isAbstract() const
Definition: umlobject.cpp:348
AssociationWidget::removeAssocClassLine
void removeAssocClassLine()
Definition: associationwidget.cpp:2774
WidgetBase::wt_Component
@ wt_Component
Definition: widgetbase.h:129
UMLObject::ot_InstanceAttribute
@ ot_InstanceAttribute
Definition: umlobject.h:110
ClassifierWidget::SOCKET_INCREMENT
static const int SOCKET_INCREMENT
augmentation of circle for socket (required interface)
Definition: classifierwidget.h:138
ClassifierWidget::onWidget
UMLWidget * onWidget(const QPointF &p)
Definition: classifierwidget.cpp:1118
ClassifierWidget::drawAsCircle
void drawAsCircle(QPainter *p, const QStyleOptionGraphicsItem *option)
Definition: classifierwidget.cpp:914
Uml::TextRole::Floating
@ Floating
Definition: basictypes.h:179
ClassifierWidget::ShowPackage
@ ShowPackage
Definition: classifierwidget.h:47
AssociationWidget::associationType
Uml::AssociationType::Enum associationType() const
Definition: associationwidget.cpp:1401
floatingtextwidget.h
ClassifierWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: classifierwidget.cpp:711
ListPopupMenu::mt_Operation
@ mt_Operation
Definition: listpopupmenu.h:112
Uml::Visibility::Public
@ Public
Definition: basictypes.h:60
UMLWidget::getFontMetrics
QFontMetrics & getFontMetrics(UMLWidget::FontType fontType) const
Definition: umlwidget.cpp:1936
AssociationWidgetList
QList< QPointer< AssociationWidget > > AssociationWidgetList
Definition: associationwidgetlist.h:19
WidgetBase::font
virtual QFont font() const
Definition: widgetbase.cpp:543
WidgetBase::umlObject
UMLObject * umlObject() const
Definition: widgetbase.cpp:182
UMLWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: umlwidget.cpp:1358
ClassifierWidget::setAttributeSignature
void setAttributeSignature(Uml::SignatureType::Enum sig)
Definition: classifierwidget.cpp:372
ClassifierWidget::minimumSize
QSizeF minimumSize() const
Definition: classifierwidget.cpp:468
WidgetBase::widgetWithID
virtual UMLWidget * widgetWithID(Uml::ID::Type id)
Definition: widgetbase.cpp:255
WidgetBase::fillColor
QColor fillColor() const
Definition: widgetbase.cpp:377
ListPopupMenu::mt_Show_Stereotypes
@ mt_Show_Stereotypes
Definition: listpopupmenu.h:170
UMLWidget::setX
virtual void setX(qreal x)
Definition: umlwidget.cpp:1685
ClassifierWidget::setVisualProperties
void setVisualProperties(VisualProperties properties)
Definition: classifierwidget.cpp:164
ClassifierWidget::VisualProperty
VisualProperty
Definition: classifierwidget.h:42
UMLObject::visibility
Uml::Visibility::Enum visibility() const
Definition: umlobject.cpp:466
ClassifierWidget::displayedAttributes
int displayedAttributes() const
Definition: classifierwidget.cpp:664
WidgetBase::wt_Port
@ wt_Port
Definition: widgetbase.h:142
ListPopupMenu::mt_Show_Operation_Signature
@ mt_Show_Operation_Signature
Definition: listpopupmenu.h:163
ListPopupMenu::mt_Interface
@ mt_Interface
Definition: listpopupmenu.h:97
ClassifierWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Definition: classifierwidget.cpp:1378
ListPopupMenu::mt_Attribute
@ mt_Attribute
Definition: listpopupmenu.h:68
ClassifierWidget::setVisualProperty
void setVisualProperty(VisualProperty property, bool enable=true)
Definition: classifierwidget.cpp:208
ClassifierWidget::calculateAsCircleSize
QSize calculateAsCircleSize() const
Definition: classifierwidget.cpp:997
a
QString a
Definition: petalnode.cpp:18
umlwidget.h
UMLObject::fullyQualifiedName
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Definition: umlobject.cpp:227
UMLWidget::defaultMargin
static const int defaultMargin
Definition: umlwidget.h:49
ClassifierWidget::updateSignatureTypes
void updateSignatureTypes()
Definition: classifierwidget.cpp:322
ListPopupMenu::MenuType
MenuType
< This type hosts all possible menu entry types
Definition: listpopupmenu.h:44
ClassifierWidget::visualProperty
bool visualProperty(VisualProperty property) const
Definition: classifierwidget.cpp:182
UMLWidget::minimumSize
virtual QSizeF minimumSize() const
Definition: umlwidget.cpp:219
AssociationLine
Definition: associationline.h:106
ClassifierWidget::m_pAssocWidget
AssociationWidget * m_pAssocWidget
related AssociationWidget in case this classifier acts as an association class
Definition: classifierwidget.h:143
Uml::AssociationType::Association
@ Association
Definition: basictypes.h:110
Settings::ClassState::showOpSig
bool showOpSig
Definition: optionstate.h:126
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:33
ListPopupMenu::mt_DrawAsCircle
@ mt_DrawAsCircle
Definition: listpopupmenu.h:175
ClassifierWidget::setClassAssociationWidget
void setClassAssociationWidget(AssociationWidget *assocwidget)
Definition: classifierwidget.cpp:688
ClassifierWidget::m_attributeSignature
Uml::SignatureType::Enum m_attributeSignature
Loaded/saved item.
Definition: classifierwidget.h:141
DiagramProxyWidget::diagramLink
Uml::ID::Type diagramLink() const
Definition: diagramproxywidget.cpp:38
WidgetBase::wt_Class
@ wt_Class
Definition: widgetbase.h:116
ClassifierWidget::setOperationSignature
void setOperationSignature(Uml::SignatureType::Enum sig)
Definition: classifierwidget.cpp:393
ClassifierWidget::shape
virtual QPainterPath shape() const
Definition: classifierwidget.cpp:891
basictypes.h
WidgetBase::documentation
QString documentation() const
Definition: widgetbase.cpp:269
ClassifierWidget::attributeSignature
Uml::SignatureType::Enum attributeSignature() const
Definition: classifierwidget.cpp:361
ListPopupMenu::mt_Show_Attribute_Signature
@ mt_Show_Attribute_Signature
Definition: listpopupmenu.h:156
uDebug
#define uDebug()
Definition: debug_utils.h:122
FloatingTextWidget
Displays a line of text or an operation.
Definition: floatingtextwidget.h:37
Uml::RoleType::B
@ B
Definition: basictypes.h:240
Uml::SignatureType::Enum
Enum
Definition: basictypes.h:162
WidgetBase::m_scene
UMLScene * m_scene
Definition: widgetbase.h:316
Settings::ClassState::showOps
bool showOps
Definition: optionstate.h:123
ClassifierWidget::calculateAsPackageSize
QSize calculateAsPackageSize() const
Definition: classifierwidget.cpp:1044
Settings::ClassState::showStereoType
bool showStereoType
Definition: optionstate.h:124
UMLClassifierListItem::toString
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: classifierlistitem.cpp:90
ClassifierWidget::setVisualPropertyCmd
void setVisualPropertyCmd(VisualProperty property, bool enable=true)
Definition: classifierwidget.cpp:224
DiagramProxyWidget::mouseDoubleClickEvent
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
Definition: diagramproxywidget.cpp:227
ListPopupMenu::mt_Template
@ mt_Template
Definition: listpopupmenu.h:129
Uml::AssociationType::Enum
Enum
Definition: basictypes.h:106
UMLObject::ot_Instance
@ ot_Instance
Definition: umlobject.h:90
WidgetBase::setUMLObject
virtual void setUMLObject(UMLObject *obj)
Definition: widgetbase.cpp:192
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
ClassifierWidget::displayedMembers
int displayedMembers(UMLObject::ObjectType ot) const
Definition: classifierwidget.cpp:451
widget_utils.h
UMLWidget::associationWidgetList
AssociationWidgetList & associationWidgetList() const
Definition: umlwidget.cpp:1284
WidgetBase::useFillColor
bool useFillColor()
Definition: widgetbase.cpp:419
UMLDoc::setModified
void setModified(bool modified=true)
Definition: umldoc.cpp:3136
UMLScene::isObjectDiagram
bool isObjectDiagram()
Definition: umlscene.h:325
Uml::SignatureType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:574
WidgetBase
Common base class for UMLWidget and AssociationWidget.
Definition: widgetbase.h:105
UMLWidget::setY
virtual void setY(qreal y)
Definition: umlwidget.cpp:1697
ClassifierWidget::visualProperties
VisualProperties visualProperties() const
Definition: classifierwidget.cpp:155
ClassifierWidget::drawAsPackage
void drawAsPackage(QPainter *painter, const QStyleOptionGraphicsItem *option)
Definition: classifierwidget.cpp:1004
ClassifierWidget::drawMembers
void drawMembers(QPainter *painter, UMLObject::ObjectType ot, Uml::SignatureType::Enum sigType, int x, int y, int textWidth, int fontHeight)
Definition: classifierwidget.cpp:1081
ClassifierWidget::displayedOperations
int displayedOperations() const
Definition: classifierwidget.cpp:677
associationwidget.h
ListPopupMenu::mt_Show_Public_Only
@ mt_Show_Public_Only
Definition: listpopupmenu.h:169
ClassifierWidget::setUMLObject
void setUMLObject(UMLObject *obj)
Definition: classifierwidget.cpp:1521
UMLClassifierListItemList
Definition: umlclassifierlistitemlist.h:27
ClassifierWidget::DrawAsCircle
@ DrawAsCircle
Definition: classifierwidget.h:49
Settings::OptionState
Definition: optionstate.h:314
Settings::OptionState::classState
ClassState classState
Definition: optionstate.h:329
DiagramProxyWidget::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: diagramproxywidget.cpp:327
DEBUG
#define DEBUG(src)
Definition: debug_utils.h:129
ClassifierWidget::classifier
UMLClassifier * classifier() const
Definition: classifierwidget.cpp:147
classifier.h
uError
#define uError()
Definition: debug_utils.h:123
UMLOperation
Definition: operation.h:25
WidgetBase::wt_Interface
@ wt_Interface
Definition: widgetbase.h:117
ClassifierWidget::setDocumentation
virtual void setDocumentation(const QString &doc)
Definition: classifierwidget.cpp:1141
uml.h
ClassifierWidget::m_operationSignature
Uml::SignatureType::Enum m_operationSignature
Loaded/saved item.
Definition: classifierwidget.h:142
UMLWidget::setSize
void setSize(qreal width, qreal height)
Definition: umlwidget.cpp:1745
ClassifierWidget::ShowOperationSignature
@ ShowOperationSignature
only in setter
Definition: classifierwidget.h:50
Uml::SignatureType::ShowSig
@ ShowSig
Definition: basictypes.h:164
ClassifierWidget::widgetWithID
UMLWidget * widgetWithID(Uml::ID::Type id)
Definition: classifierwidget.cpp:1132
ClassifierWidget::calculateSize
QSizeF calculateSize(bool withExtensions=true) const
Definition: classifierwidget.cpp:477
UMLClassifier
Information for a non-graphical Concept/Class.
Definition: classifier.h:40
debug_utils.h
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
ClassifierWidget::changeToClass
void changeToClass()
Definition: classifierwidget.cpp:1212
ClassifierWidget::changeToPackage
void changeToPackage()
Definition: classifierwidget.cpp:1246
ListPopupMenu::mt_Show_Packages
@ mt_Show_Packages
Definition: listpopupmenu.h:167
UMLWidget::setShowStereotype
virtual void setShowStereotype(bool flag)
Definition: umlwidget.cpp:2018
UMLScene
Definition: umlscene.h:69
ListPopupMenu::typeFromAction
static MenuType typeFromAction(QAction *action)
Definition: listpopupmenu.cpp:407
DBG_SRC
#define DBG_SRC
Definition: import_utils.cpp:43
Uml::SignatureType::NoSig
@ NoSig
Definition: basictypes.h:163
UMLWidget::updateGeometry
void updateGeometry(bool withAssocs=true)
Definition: umlwidget.cpp:1781
umlobject.h
UMLWidget::saveToXMI1
virtual void saveToXMI1(QDomDocument &qDoc, QDomElement &qElement)
Definition: umlwidget.cpp:2045
listpopupmenu.h
UMLTemplateList
QList< UMLTemplate * > UMLTemplateList
Definition: umltemplatelist.h:18
ClassifierWidget::showPropertiesDialog
virtual bool showPropertiesDialog()
Definition: classifierwidget.cpp:1506
ClassifierWidget::ShowVisibility
@ ShowVisibility
Definition: classifierwidget.h:46
UMLTemplate
Sets up template information.
Definition: template.h:27
UMLObject::ot_Operation
@ ot_Operation
Definition: umlobject.h:93
DiagramProxyWidget::linkedDiagram
UMLScene * linkedDiagram() const
Definition: diagramproxywidget.cpp:43
WidgetBase::setBaseType
void setBaseType(const WidgetType &baseType)
Definition: widgetbase.cpp:124
dialog_utils.h
ListPopupMenu::mt_ChangeToPackage
@ mt_ChangeToPackage
Definition: listpopupmenu.h:178
UMLWidget::FontType
FontType
Definition: umlwidget.h:216
UMLScene::setCreateObject
void setCreateObject(bool bCreate)
Definition: umlscene.cpp:753
Settings::ClassState::showAtts
bool showAtts
Definition: optionstate.h:122
UMLOperationList
QList< UMLOperation * > UMLOperationList
Definition: umloperationlist.h:18
UMLApp::executeCommand
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3438
ClassifierWidget::CIRCLE_SIZE
static const int CIRCLE_SIZE
size of circle when interface is rendered as such
Definition: classifierwidget.h:137
UMLWidget::width
qreal width() const
Definition: umlwidget.h:121
UMLTemplate::toString
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false)
Definition: template.cpp:54
WidgetBase::baseType
WidgetType baseType() const
Definition: widgetbase.cpp:115
UMLClassifierListItem
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:30
ListPopupMenu::mt_ChangeToInterface
@ mt_ChangeToInterface
Definition: listpopupmenu.h:177
DiagramProxyWidget::iconRect
QRectF iconRect() const
Definition: diagramproxywidget.cpp:288
WidgetBase::m_umlObject
QPointer< UMLObject > m_umlObject
Definition: widgetbase.h:317
UMLWidget::loadFromXMI1
virtual bool loadFromXMI1(QDomElement &qElement)
Definition: umlwidget.cpp:2067
WidgetBase::m_Text
QString m_Text
Definition: widgetbase.h:319
UMLApp::document
UMLDoc * document() const
Definition: uml.cpp:1064
ListPopupMenu::mt_InstanceAttribute
@ mt_InstanceAttribute
Definition: listpopupmenu.h:96
umldoc.h
ClassifierWidget::~ClassifierWidget
virtual ~ClassifierWidget()
Definition: classifierwidget.cpp:133
DiagramProxyWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Definition: diagramproxywidget.cpp:354
AssociationWidget::widgetForRole
UMLWidget * widgetForRole(Uml::RoleType::Enum role) const
Definition: associationwidget.cpp:1232
UMLWidget::FT_ITALIC
@ FT_ITALIC
Definition: umlwidget.h:219
ClassifierWidget::toggleShowAttSigs
void toggleShowAttSigs()
Definition: classifierwidget.cpp:429
UMLWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: umlwidget.cpp:1869
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
ClassifierWidget::setDrawAsCircle
void setDrawAsCircle(bool drawAsCircle)
Definition: classifierwidget.cpp:1153
UMLWidget::m_resizable
bool m_resizable
Definition: umlwidget.h:306