umbrello
2.32.2
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Go to the documentation of this file.
6 #ifndef UMLLISTVIEWITEM_H
7 #define UMLLISTVIEWITEM_H
12 #include <QDomDocument>
13 #include <QDomElement>
16 #include <QTreeWidget>
17 #include <QXmlStreamWriter>
129 void setText(
int column,
const QString &text);
130 void setText(
const QString &text);
155 bool isOpen()
const {
return isExpanded(); }
void setVisibility(Uml::Visibility::Enum s)
Definition: attribute.cpp:82
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:420
Non-graphical Information for an Entity.
Definition: entity.h:29
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1394
@ lvt_UseCase_Folder
Definition: umllistviewitem.h:47
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: attribute.cpp:128
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1389
@ lvt_CheckConstraint
Definition: umllistviewitem.h:86
void addParm(UMLAttribute *parameter, int position=-1)
Definition: operation.cpp:271
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:117
@ lvt_Logical_View
Definition: umllistviewitem.h:44
Definition: cmdrenameumlobject.h:15
ObjectType
Definition: umlobject.h:75
@ lvt_Enum
Definition: umllistviewitem.h:74
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject *o)
Definition: model_utils.cpp:1843
Parse_Status
Definition: model_utils.h:103
bool isClassifierListitem(UMLObject::ObjectType type)
Definition: model_utils.cpp:804
@ Implementation
Definition: basictypes.h:49
bool isOwnParent(Uml::ID::Type listViewItemID)
Definition: umllistviewitem.cpp:324
UMLListViewItem * deepCopy(UMLListViewItem *newParent)
Definition: umllistviewitem.cpp:822
@ lvt_Diagrams
Definition: umllistviewitem.h:66
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1404
Definition: umlattributelist.h:20
QString name() const
Definition: umlobject.cpp:206
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Definition: model_utils.cpp:1569
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1390
QString toString()
Definition: instanceattribute.cpp:96
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Definition: model_utils.cpp:1122
void cancelRenameWithMsg()
Definition: umllistviewitem.cpp:714
UMLAttributeList getParmList() const
Definition: operation.cpp:173
@ it_Diagram_Collaboration
Definition: icon_utils.h:112
@ ot_Association
Definition: umlobject.h:87
@ it_Protected_Method
Definition: icon_utils.h:100
ListViewType
Definition: umllistviewitem.h:38
@ lvt_EntityRelationship_Folder
Definition: umllistviewitem.h:78
QString folderFile() const
Definition: folder.cpp:256
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:112
@ lvt_EntityRelationship_Diagram
Definition: umllistviewitem.h:77
@ lvt_Properties
Definition: umllistviewitem.h:89
UMLObject * umlObject() const
Definition: umllistviewitem.cpp:315
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:994
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1385
@ lvt_Collaboration_Diagram
Definition: umllistviewitem.h:49
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Definition: operation.cpp:153
Items used by UMLListView.
Definition: umllistviewitem.h:35
@ ot_Class
Definition: umlobject.h:85
Definition: model_utils.h:124
Uml::ID::Type ID() const
Definition: umllistviewitem.cpp:274
@ lvt_Datatype
Definition: umllistviewitem.h:72
const Type None
special value for uninitialized ID
Definition: basictypes.h:373
@ lvt_Subsystem
Definition: umllistviewitem.h:80
@ lvt_Attribute
Definition: umllistviewitem.h:57
ListViewType type() const
Definition: umllistviewitem.cpp:229
QString m_initialValue
Definition: model_utils.h:112
@ lvt_Actor
Definition: umllistviewitem.h:54
@ lvt_EntityRelationship_Model
Definition: umllistviewitem.h:79
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: operation.cpp:200
@ ot_Attribute
Definition: umlobject.h:88
void init()
Definition: uniqueid.cpp:32
QTreeWidgetItemIterator UMLListViewItemIterator
Definition: umllistviewitem.h:22
@ it_Diagram_Activity
Definition: icon_utils.h:110
QPointer< UMLObject > m_object
Definition: umllistviewitem.h:176
@ lvt_UseCase_Diagram
Definition: umllistviewitem.h:48
@ SigNoVis
Definition: basictypes.h:163
UMLObject * m_type
Definition: model_utils.h:110
@ it_Diagram_State
Definition: icon_utils.h:117
@ lvt_Properties_CodeGeneration
Definition: umllistviewitem.h:92
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1300
void setID(Uml::ID::Type id)
Definition: umllistviewitem.cpp:288
@ lvt_Model
Definition: umllistviewitem.h:81
@ it_Protected_Attribute
Definition: icon_utils.h:104
@ it_Diagram
Definition: icon_utils.h:70
UMLObject * umlParent() const
Definition: umlobject.cpp:674
@ lvt_Deployment_View
Definition: umllistviewitem.h:70
Sets up entity constraint information.
Definition: entityconstraint.h:21
@ it_Diagram_Object
Definition: icon_utils.h:119
void updateObject()
Definition: umllistviewitem.cpp:342
@ lvt_Activity_Diagram
Definition: umllistviewitem.h:52
@ lvt_Sequence_Diagram
Definition: umllistviewitem.h:53
@ lvt_InstanceAttribute
Definition: umllistviewitem.h:101
@ it_Diagram_Class
Definition: icon_utils.h:111
@ ot_Package
Definition: umlobject.h:81
std::string Type
Definition: basictypes.h:371
@ lvt_Component_Folder
Definition: umllistviewitem.h:63
UMLDoc * document() const
Definition: umllistview.cpp:2096
@ lvt_Class
Definition: umllistviewitem.h:56
@ lvt_Deployment_Folder
Definition: umllistviewitem.h:69
@ lvt_Min
Definition: umllistviewitem.h:42
@ it_Private_Attribute
Definition: icon_utils.h:103
QString m_label
Definition: umllistviewitem.h:177
QString toolTip() const
Definition: umllistviewitem.cpp:198
~UMLListViewItem()
Definition: umllistviewitem.cpp:180
@ lvt_ForeignKeyConstraint
Definition: umllistviewitem.h:85
QDebug operator<<(QDebug dbg, const UMLListViewItem &item)
Definition: umllistviewitem.cpp:1083
The base class for UML objects.
Definition: umlobject.h:69
void setIcon(Icon_Utils::IconType iconType)
Definition: umllistviewitem.cpp:475
@ lvt_EntityAttribute
Definition: umllistviewitem.h:76
@ ot_InstanceAttribute
Definition: umlobject.h:106
@ lvt_Component_Diagram
Definition: umllistviewitem.h:62
void saveToXMI1(QXmlStreamWriter &writer)
Definition: umllistviewitem.cpp:897
@ lvt_Properties_CodeImport
Definition: umllistviewitem.h:93
ObjectType baseType() const
Definition: umlobject.cpp:392
QDebug operator<<(QDebug dbg, const UMLListViewItem &item)
Definition: umllistviewitem.cpp:1083
void init()
Definition: umllistviewitem.cpp:187
@ lvt_Properties_CodeViewer
Definition: umllistviewitem.h:94
@ Public
Definition: basictypes.h:46
void setInitialValue(const QString &iv)
Definition: attribute.cpp:104
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1305
ChildObjectMap m_comap
Definition: umllistviewitem.h:178
@ it_Home
Definition: icon_utils.h:34
bool typeIsRootView(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1157
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistview.cpp:1421
void setVisible(bool state)
Definition: umllistviewitem.cpp:264
@ it_Diagram_Sequence
Definition: icon_utils.h:116
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Definition: model_utils.cpp:1052
UMLListViewItem * findUMLObject(const UMLObject *o)
Definition: umllistviewitem.cpp:844
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of it
Definition: GPL-2.0-only.txt:64
@ lvt_Object_Diagram
Definition: umllistviewitem.h:99
UMLObject * findObjectById(Uml::ID::Type id)
Definition: umldoc.cpp:1039
@ lvt_View
Definition: umllistviewitem.h:43
UMLListViewItem * childItem(int i)
Definition: umllistviewitem.cpp:963
it is up to the author donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License If the distribution and or use of the Library is restricted in certain countries either by patents or by copyrighted the original copyright holder who places the Library under this License may add an geographical distribution limitation excluding those so that distribution is permitted only in or among countries not thus excluded In such this License incorporates the limitation as if written in the body of this License The Free Software Foundation may publish revised and or new versions of the Library General Public License from time to time Such new versions will be similar in spirit to the present but may differ in detail to address new problems or concerns Each version is given a distinguishing version number If the Library specifies a version number of this License which applies to it and any later you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation If the Library does not specify a license version number
Definition: LGPL-2.0-only.txt:368
@ lvt_PrimaryKeyConstraint
Definition: umllistviewitem.h:84
UMLListView * listView() const
Definition: uml.cpp:1073
QString a
Definition: petalnode.cpp:13
@ lvt_Properties_Font
Definition: umllistviewitem.h:95
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:422
@ lvt_Unknown
Definition: umllistviewitem.h:104
@ lvt_Instance
Definition: umllistviewitem.h:100
Parse_Status parseAttribute(QString a, NameAndType &nmTp, UMLClassifier *owningScope, Uml::Visibility::Enum *vis)
Definition: model_utils.cpp:977
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistviewitem.cpp:879
#define i18n
Definition: main.cpp:34
@ lvt_Properties_General
Definition: umllistviewitem.h:96
void setOpen(bool state)
Definition: umllistviewitem.cpp:441
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:123
@ lvt_Deployment_Diagram
Definition: umllistviewitem.h:68
Uml::ID::Type m_id
Definition: umllistviewitem.h:175
QString m_name
< Data structure filled by parseOperation().
Definition: model_utils.h:125
@ lvt_Interface
Definition: umllistviewitem.h:60
#define DBG_LVI
Definition: umllistviewitem.cpp:43
@ ot_EntityAttribute
Definition: umlobject.h:98
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:122
UMLListViewItem(UMLListView *parent, const QString &name, ListViewType t, UMLObject *o=0)
Definition: umllistviewitem.cpp:55
void deleteChildItem(UMLObject *child)
Definition: umllistviewitem.cpp:249
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
UMLListViewItem * findChildObject(UMLObject *child)
Definition: umllistviewitem.cpp:862
@ lvt_Artifact
Definition: umllistviewitem.h:67
@ lvt_UniqueConstraint
Definition: umllistviewitem.h:83
bool isUnique(const QString &name) const
Definition: umldoc.cpp:1235
@ ot_UniqueConstraint
Definition: umlobject.h:101
QPixmap SmallIcon(IconType type)
Definition: icon_utils.cpp:26
@ lvt_Entity
Definition: umllistviewitem.h:75
QString doc() const
Definition: umlobject.cpp:430
QMap< UMLObject *, UMLListViewItem * > ChildObjectMap
Definition: umllistviewitem.h:172
@ lvt_Template
Definition: umllistviewitem.h:59
void addChildItem(UMLObject *child, UMLListViewItem *childItem)
Definition: umllistviewitem.cpp:237
static UMLApp * app()
Definition: uml.cpp:275
bool isOpen() const
Definition: umllistviewitem.h:155
Definition: model_utils.h:108
Sets up attribute information.
Definition: attribute.h:22
@ lvt_Properties_UserInterface
Definition: umllistviewitem.h:97
@ it_Diagram_Usecase
Definition: icon_utils.h:118
bool loadFromXMI1(QDomElement &qElement)
Definition: umllistviewitem.cpp:938
void setModified(bool modified=true)
Definition: umldoc.cpp:3107
@ lvt_Component
Definition: umllistviewitem.h:65
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: template.cpp:49
Non-graphical management of objects and diagrams of a Folder.
Definition: folder.h:29
@ lvt_Datatype_Folder
Definition: umllistviewitem.h:73
void slotEditFinished(const QString &newText)
Definition: umllistviewitem.cpp:486
Uml::ID::Type gen()
Definition: uniqueid.cpp:21
QString getSavedText() const
Definition: umllistviewitem.cpp:467
Enum
Definition: basictypes.h:45
Definition: umlclassifierlistitemlist.h:21
@ lvt_Component_View
Definition: umllistviewitem.h:64
#define DEBUG(src)
Definition: debug_utils.h:115
@ lvt_Category
Definition: umllistviewitem.h:87
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: classifierlistitem.cpp:85
void setName(const QString &name)
Definition: umlscene.cpp:414
#define uError()
Definition: debug_utils.h:109
Definition: operation.h:19
@ it_Public_Method
Definition: icon_utils.h:98
@ lvt_Properties_AutoLayout
Definition: umllistviewitem.h:90
@ lvt_UseCase
Definition: umllistviewitem.h:55
IconType
Definition: icon_utils.h:32
@ lvt_Properties_Class
Definition: umllistviewitem.h:91
@ it_Subsystem
Definition: icon_utils.h:77
@ ShowSig
Definition: basictypes.h:162
UMLObject * m_pReturnType
Definition: model_utils.h:127
Sets up instanceattribute information.
Definition: instanceattribute.h:33
Information for a non-graphical Concept/Class.
Definition: classifier.h:34
QString psText(Parse_Status value)
Definition: model_utils.cpp:1142
NameAndType_List m_args
Definition: model_utils.h:126
@ lvt_Logical_Folder
Definition: umllistviewitem.h:46
QString newText(UMLObject::ObjectType type)
Definition: model_utils.cpp:619
@ it_Package
Definition: icon_utils.h:76
@ it_Diagram_Deployment
Definition: icon_utils.h:114
@ lvt_Class_Diagram
Definition: umllistviewitem.h:50
@ it_Public_Attribute
Definition: icon_utils.h:102
@ lvt_Package
Definition: umllistviewitem.h:61
void updateFolder()
Definition: umllistviewitem.cpp:425
@ lvt_Node
Definition: umllistviewitem.h:71
UMLScene * umlScene() const
Definition: umlview.cpp:51
@ lvt_Operation
Definition: umllistviewitem.h:58
void setUMLObject(UMLObject *obj)
Definition: umllistviewitem.cpp:305
@ lvt_EnumLiteral
Definition: umllistviewitem.h:82
ListViewType m_type
Definition: umllistviewitem.h:174
Displays the list view for the program.
Definition: umllistview.h:42
Sets up template information.
Definition: template.h:21
UMLListViewItem * findUMLObject(const UMLObject *p) const
Definition: umllistview.cpp:1331
@ ot_Operation
Definition: umlobject.h:89
@ lvt_State_Diagram
Definition: umllistviewitem.h:51
@ Private
Definition: basictypes.h:47
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Definition: model_utils.cpp:937
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:111
@ PS_OK
Return type of parseOperation().
Definition: model_utils.h:104
void setType(UMLObject *type)
Definition: operation.cpp:89
Uml::ID::Type ID() const
Definition: umlscene.cpp:438
UMLView * findView(Uml::ID::Type id) const
Definition: umldoc.cpp:1001
@ it_Diagram_Component
Definition: icon_utils.h:113
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3447
@ ot_Folder
Definition: umlobject.h:99
@ lvt_Max
Definition: umllistviewitem.h:103
bool typeIsFolder(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1211
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject) const
Definition: umlcanvasobject.cpp:233
@ lvt_Port
Definition: umllistviewitem.h:88
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3424
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:24
void setText(int column, const QString &text)
Definition: umllistviewitem.cpp:458
@ it_Private_Method
Definition: icon_utils.h:99
QString m_name
< Data structure filled by parseAttribute().
Definition: model_utils.h:109
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1244
@ lvt_Association
Definition: umllistviewitem.h:98
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:968
@ lvt_UseCase_View
Definition: umllistviewitem.h:45
Non-graphical information for a Package.
Definition: package.h:27