umbrello
2.35.1
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>
128 void setText(
int column,
const QString &text);
129 void setText(
const QString &text);
152 void saveToXMI(QXmlStreamWriter& writer);
155 bool isOpen()
const {
return isExpanded(); }
void setVisibility(Uml::Visibility::Enum s)
Definition: attribute.cpp:88
virtual Uml::ID::Type id() const
Definition: umlobject.cpp:421
Non-graphical Information for an Entity.
Definition: entity.h:29
bool typeIsDiagram(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1452
@ lvt_UseCase_Folder
Definition: umllistviewitem.h:47
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: attribute.cpp:135
@ lvt_CheckConstraint
Definition: umllistviewitem.h:86
void addParm(UMLAttribute *parameter, int position=-1)
Definition: operation.cpp:276
#define DEBUG_REGISTER(src)
Definition: debug_utils.h:129
@ lvt_Logical_View
Definition: umllistviewitem.h:44
Definition: cmdrenameumlobject.h:15
ObjectType
Definition: umlobject.h:75
#define logDebug1(s, a)
Definition: uml.h:541
@ lvt_Enum
Definition: umllistviewitem.h:74
Icon_Utils::IconType convert_LVT_IT(UMLListViewItem::ListViewType lvt, UMLObject *o)
Definition: model_utils.cpp:1904
Parse_Status
Definition: model_utils.h:106
bool isClassifierListitem(UMLObject::ObjectType type)
Definition: model_utils.cpp:860
@ Implementation
Definition: basictypes.h:49
bool isOwnParent(Uml::ID::Type listViewItemID)
Definition: umllistviewitem.cpp:338
UMLListViewItem * deepCopy(UMLListViewItem *newParent)
Definition: umllistviewitem.cpp:838
@ lvt_Diagrams
Definition: umllistviewitem.h:66
Definition: umlattributelist.h:20
QString name() const
Definition: umlobject.cpp:207
UMLListViewItem::ListViewType convert_OT_LVT(UMLObject *o)
Definition: model_utils.cpp:1627
Parse_Status parseConstraint(QString m, QString &name, UMLEntity *owningScope)
Definition: model_utils.cpp:1178
void cancelRenameWithMsg()
Definition: umllistviewitem.cpp:729
UMLAttributeList getParmList() const
Definition: operation.cpp:177
@ it_Diagram_Collaboration
Definition: icon_utils.h:109
@ ot_Association
Definition: umlobject.h:87
@ it_Protected_Method
Definition: icon_utils.h:97
ListViewType
Definition: umllistviewitem.h:38
@ lvt_EntityRelationship_Folder
Definition: umllistviewitem.h:78
QString folderFile() const
Definition: folder.cpp:260
void setParmKind(Uml::ParameterDirection::Enum pk)
Definition: attribute.cpp:118
@ lvt_EntityRelationship_Diagram
Definition: umllistviewitem.h:77
@ lvt_Properties
Definition: umllistviewitem.h:89
UMLObject * umlObject() const
Definition: umllistviewitem.cpp:329
virtual UMLClassifierListItemList getFilteredList(UMLObject::ObjectType ot) const
Definition: classifier.cpp:999
@ lvt_Collaboration_Diagram
Definition: umllistviewitem.h:49
void removeParm(UMLAttribute *a, bool emitModifiedSignal=true)
Definition: operation.cpp:157
Items used by UMLListView.
Definition: umllistviewitem.h:35
@ ot_Class
Definition: umlobject.h:85
Definition: model_utils.h:127
Uml::ID::Type ID() const
Definition: umllistviewitem.cpp:288
@ 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:227
QString m_initialValue
Definition: model_utils.h:115
@ 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:205
#define logError0(s)
Definition: uml.h:539
@ ot_Attribute
Definition: umlobject.h:88
QTreeWidgetItemIterator UMLListViewItemIterator
Definition: umllistviewitem.h:22
@ it_Diagram_Activity
Definition: icon_utils.h:107
QPointer< UMLObject > m_object
Definition: umllistviewitem.h:178
@ lvt_UseCase_Diagram
Definition: umllistviewitem.h:48
@ SigNoVis
Definition: basictypes.h:163
UMLObject * m_type
Definition: model_utils.h:113
@ it_Diagram_State
Definition: icon_utils.h:114
@ lvt_Properties_CodeGeneration
Definition: umllistviewitem.h:92
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1306
void setID(Uml::ID::Type id)
Definition: umllistviewitem.cpp:302
@ lvt_Model
Definition: umllistviewitem.h:81
#define logError1(s, a)
Definition: uml.h:545
@ it_Protected_Attribute
Definition: icon_utils.h:101
@ it_Diagram
Definition: icon_utils.h:67
UMLObject * umlParent() const
Definition: umlobject.cpp:676
@ lvt_Deployment_View
Definition: umllistviewitem.h:70
Sets up entity constraint information.
Definition: entityconstraint.h:21
@ it_Diagram_Object
Definition: icon_utils.h:116
void updateObject()
Definition: umllistviewitem.cpp:357
@ 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:108
@ ot_Package
Definition: umlobject.h:81
UMLAttribute * asUMLAttribute()
Definition: umlobject.cpp:1418
std::string Type
Definition: basictypes.h:371
@ lvt_Component_Folder
Definition: umllistviewitem.h:63
UMLDoc * document() const
Definition: umllistview.cpp:2124
@ 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:100
QHash< const UMLObject *, UMLListViewItem * > ChildObjectMap
Definition: umllistviewitem.h:174
QString m_label
Definition: umllistviewitem.h:179
QString toolTip() const
Definition: umllistviewitem.cpp:196
@ lvt_ForeignKeyConstraint
Definition: umllistviewitem.h:85
QDebug operator<<(QDebug dbg, const UMLListViewItem &item)
Definition: umllistviewitem.cpp:1127
The base class for UML objects.
Definition: umlobject.h:69
void setIcon(Icon_Utils::IconType iconType)
Definition: umllistviewitem.cpp:490
@ lvt_EntityAttribute
Definition: umllistviewitem.h:76
UMLOperation * asUMLOperation()
Definition: umlobject.cpp:1437
@ ot_InstanceAttribute
Definition: umlobject.h:106
@ lvt_Component_Diagram
Definition: umllistviewitem.h:62
@ lvt_Properties_CodeImport
Definition: umllistviewitem.h:93
QString toString() const
Definition: instanceattribute.cpp:97
ObjectType baseType() const
Definition: umlobject.cpp:393
UMLClassifierListItem * asUMLClassifierListItem()
Definition: umlobject.cpp:1423
QDebug operator<<(QDebug dbg, const UMLListViewItem &item)
Definition: umllistviewitem.cpp:1127
static ChildObjectMap * s_comap
Definition: umllistviewitem.h:180
UMLListViewItem * findChildObject(const UMLObject *child)
Definition: umllistviewitem.cpp:905
void init()
Definition: umllistviewitem.cpp:183
@ lvt_Properties_CodeViewer
Definition: umllistviewitem.h:94
@ Public
Definition: basictypes.h:46
void setInitialValue(const QString &iv)
Definition: attribute.cpp:110
ID::Type fromString(const QString &id)
Definition: basictypes.cpp:1311
@ it_Home
Definition: icon_utils.h:31
bool typeIsRootView(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1213
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistview.cpp:1427
void setVisible(bool state)
Definition: umllistviewitem.cpp:278
@ it_Diagram_Sequence
Definition: icon_utils.h:113
Parse_Status parseOperation(QString m, OpDescriptor &desc, UMLClassifier *owningScope)
Definition: model_utils.cpp:1108
UMLListViewItem * findUMLObject(const UMLObject *o)
Definition: umllistviewitem.cpp:862
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:1092
@ lvt_View
Definition: umllistviewitem.h:43
UMLListViewItem * childItem(int i)
Definition: umllistviewitem.cpp:1007
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:1149
QString a
Definition: petalnode.cpp:13
@ lvt_Properties_Font
Definition: umllistviewitem.h:95
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:432
@ 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:1033
UMLListViewItem * findItem(Uml::ID::Type id)
Definition: umllistviewitem.cpp:922
void saveToXMI(QXmlStreamWriter &writer)
Definition: umllistviewitem.cpp:940
#define logDebug2(s, a, b)
Definition: uml.h:547
#define i18n
Definition: main.cpp:35
UMLListViewItem * findUMLObject_r(const UMLObject *o)
Definition: umllistviewitem.cpp:882
@ lvt_Properties_General
Definition: umllistviewitem.h:96
void setOpen(bool state)
Definition: umllistviewitem.cpp:456
virtual void setType(UMLObject *type)
Definition: classifierlistitem.cpp:123
@ lvt_Deployment_Diagram
Definition: umllistviewitem.h:68
Uml::ID::Type m_id
Definition: umllistviewitem.h:177
QString m_name
< Data structure filled by parseOperation().
Definition: model_utils.h:128
@ lvt_Interface
Definition: umllistviewitem.h:60
@ ot_EntityAttribute
Definition: umlobject.h:98
QLinkedList< NameAndType >::iterator NameAndType_ListIt
Auxiliary type for OpDescriptor.
Definition: model_utils.h:125
UMLListViewItem(UMLListView *parent, const QString &name, ListViewType t, UMLObject *o=0)
Definition: umllistviewitem.cpp:58
void deleteChildItem(UMLObject *child)
Definition: umllistviewitem.cpp:249
int int y int
Definition: cxx11-lambda-functions-and-expressions.h:4
UMLClassifier * asUMLClassifier()
Definition: umlobject.cpp:1422
@ lvt_Artifact
Definition: umllistviewitem.h:67
@ lvt_UniqueConstraint
Definition: umllistviewitem.h:83
bool isUnique(const QString &name) const
Definition: umldoc.cpp:1289
@ ot_UniqueConstraint
Definition: umlobject.h:101
QPixmap SmallIcon(IconType type)
Definition: icon_utils.cpp:34
@ lvt_Entity
Definition: umllistviewitem.h:75
QString doc() const
Definition: umlobject.cpp:431
@ lvt_Template
Definition: umllistviewitem.h:59
void addChildItem(UMLObject *child, UMLListViewItem *childItem)
Definition: umllistviewitem.cpp:237
static UMLApp * app()
Definition: uml.cpp:349
bool isOpen() const
Definition: umllistviewitem.h:155
Definition: model_utils.h:111
Sets up attribute information.
Definition: attribute.h:22
@ lvt_Properties_UserInterface
Definition: umllistviewitem.h:97
@ it_Diagram_Usecase
Definition: icon_utils.h:115
void setModified(bool modified=true)
Definition: umldoc.cpp:3195
@ lvt_Component
Definition: umllistviewitem.h:65
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: template.cpp:50
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:501
Uml::ID::Type gen()
Definition: uniqueid.cpp:21
QString getSavedText() const
Definition: umllistviewitem.cpp:482
Enum
Definition: basictypes.h:45
Definition: umlclassifierlistitemlist.h:21
@ lvt_Component_View
Definition: umllistviewitem.h:64
bool loadFromXMI(QDomElement &qElement)
Definition: umllistviewitem.cpp:982
@ lvt_Category
Definition: umllistviewitem.h:87
virtual QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig, bool withStereotype=false) const
Definition: classifierlistitem.cpp:87
void setName(const QString &name)
Definition: umlscene.cpp:424
Definition: operation.h:19
@ it_Public_Method
Definition: icon_utils.h:95
@ lvt_Properties_AutoLayout
Definition: umllistviewitem.h:90
@ lvt_UseCase
Definition: umllistviewitem.h:55
IconType
Definition: icon_utils.h:29
@ lvt_Properties_Class
Definition: umllistviewitem.h:91
@ it_Subsystem
Definition: icon_utils.h:74
@ ShowSig
Definition: basictypes.h:162
UMLObject * m_pReturnType
Definition: model_utils.h:130
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:1198
NameAndType_List m_args
Definition: model_utils.h:129
@ lvt_Logical_Folder
Definition: umllistviewitem.h:46
QString newText(UMLObject::ObjectType type)
Definition: model_utils.cpp:648
@ it_Package
Definition: icon_utils.h:73
@ it_Diagram_Deployment
Definition: icon_utils.h:111
@ lvt_Class_Diagram
Definition: umllistviewitem.h:50
@ it_Public_Attribute
Definition: icon_utils.h:99
@ lvt_Package
Definition: umllistviewitem.h:61
void updateFolder()
Definition: umllistviewitem.cpp:440
@ 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:319
@ lvt_EnumLiteral
Definition: umllistviewitem.h:82
ListViewType m_type
Definition: umllistviewitem.h:176
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:1337
@ ot_Operation
Definition: umlobject.h:89
@ lvt_State_Diagram
Definition: umllistviewitem.h:51
static void deleteItem(UMLListViewItem *childItem)
Definition: umllistviewitem.cpp:268
@ Private
Definition: basictypes.h:47
Parse_Status parseTemplate(QString t, NameAndType &nmTp, UMLClassifier *owningScope)
Definition: model_utils.cpp:993
Uml::ParameterDirection::Enum m_direction
Definition: model_utils.h:114
@ PS_OK
Return type of parseOperation().
Definition: model_utils.h:107
void setType(UMLObject *type)
Definition: operation.cpp:93
Uml::ID::Type ID() const
Definition: umlscene.cpp:448
UMLView * findView(Uml::ID::Type id) const
Definition: umldoc.cpp:1055
@ it_Diagram_Component
Definition: icon_utils.h:110
void executeCommand(QUndoCommand *cmd)
Definition: uml.cpp:3623
@ ot_Folder
Definition: umlobject.h:99
@ lvt_Max
Definition: umllistviewitem.h:103
bool typeIsFolder(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1267
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject) const
Definition: umlcanvasobject.cpp:237
@ lvt_Port
Definition: umllistviewitem.h:88
void signalDiagramRenamed(UMLView *view)
Definition: umldoc.cpp:3512
A base class for classifier list items (e.g. attributes)
Definition: classifierlistitem.h:24
void setText(int column, const QString &text)
Definition: umllistviewitem.cpp:473
@ it_Private_Method
Definition: icon_utils.h:96
QString m_name
< Data structure filled by parseAttribute().
Definition: model_utils.h:112
bool typeIsClassifierList(UMLListViewItem::ListViewType type)
Definition: model_utils.cpp:1300
@ lvt_Association
Definition: umllistviewitem.h:98
static QString toString(ListViewType type)
Definition: umllistviewitem.cpp:1012
@ lvt_UseCase_View
Definition: umllistviewitem.h:45
#define logError2(s, a, b)
Definition: uml.h:551
Non-graphical information for a Package.
Definition: package.h:27
#define logDebug0(s)
Definition: uml.h:535