Items used by UMLListView.
More...
#include <umllistviewitem.h>
|
enum | ListViewType {
lvt_Min = 799,
lvt_View = 800,
lvt_Logical_View,
lvt_UseCase_View,
lvt_Logical_Folder,
lvt_UseCase_Folder,
lvt_UseCase_Diagram,
lvt_Collaboration_Diagram,
lvt_Class_Diagram,
lvt_State_Diagram,
lvt_Activity_Diagram,
lvt_Sequence_Diagram,
lvt_Actor,
lvt_UseCase,
lvt_Class,
lvt_Attribute,
lvt_Operation,
lvt_Template,
lvt_Interface,
lvt_Package,
lvt_Component_Diagram,
lvt_Component_Folder,
lvt_Component_View,
lvt_Component,
lvt_Diagrams,
lvt_Artifact,
lvt_Deployment_Diagram,
lvt_Deployment_Folder,
lvt_Deployment_View,
lvt_Node,
lvt_Datatype,
lvt_Datatype_Folder,
lvt_Enum,
lvt_Entity,
lvt_EntityAttribute,
lvt_EntityRelationship_Diagram,
lvt_EntityRelationship_Folder,
lvt_EntityRelationship_Model,
lvt_Subsystem,
lvt_Model,
lvt_EnumLiteral,
lvt_UniqueConstraint,
lvt_PrimaryKeyConstraint,
lvt_ForeignKeyConstraint,
lvt_CheckConstraint,
lvt_Category,
lvt_Port,
lvt_Properties,
lvt_Properties_AutoLayout,
lvt_Properties_Class,
lvt_Properties_CodeGeneration,
lvt_Properties_CodeImport,
lvt_Properties_CodeViewer,
lvt_Properties_Font,
lvt_Properties_General,
lvt_Properties_UserInterface,
lvt_Association,
lvt_Object_Diagram,
lvt_Instance,
lvt_InstanceAttribute,
lvt_Max,
lvt_Unknown = -1
} |
|
|
| UMLListViewItem (UMLListView *parent, const QString &name, ListViewType t, UMLObject *o=0) |
|
| UMLListViewItem (UMLListView *parent) |
|
| UMLListViewItem (UMLListViewItem *parent) |
|
| UMLListViewItem (UMLListViewItem *parent, const QString &name, ListViewType t, UMLObject *o=0) |
|
| UMLListViewItem (UMLListViewItem *parent, const QString &name, ListViewType t, Uml::ID::Type id) |
|
ListViewType | type () const |
|
void | setID (Uml::ID::Type id) |
|
Uml::ID::Type | ID () const |
|
void | setUMLObject (UMLObject *obj) |
|
UMLObject * | umlObject () const |
|
bool | isOwnParent (Uml::ID::Type listViewItemID) |
|
void | updateObject () |
|
void | updateFolder () |
|
void | setText (int column, const QString &text) |
|
void | setText (const QString &text) |
|
QString | getSavedText () const |
|
void | setVisible (bool state) |
|
QString | toolTip () const |
|
void | setIcon (Icon_Utils::IconType iconType) |
|
void | addChildItem (UMLObject *child, UMLListViewItem *childItem) |
|
void | deleteChildItem (UMLObject *child) |
|
UMLListViewItem * | deepCopy (UMLListViewItem *newParent) |
|
UMLListViewItem * | findUMLObject (const UMLObject *o) |
|
UMLListViewItem * | findChildObject (const UMLObject *child) |
|
UMLListViewItem * | findItem (Uml::ID::Type id) |
|
UMLListViewItem * | childItem (int i) |
|
void | saveToXMI (QXmlStreamWriter &writer) |
|
bool | loadFromXMI (QDomElement &qElement) |
|
bool | isOpen () const |
|
void | setOpen (bool state) |
|
Items used by UMLListView.
Items used by the class UMLListView. This is needed as the type and object information is required to be stored.
- Author
- Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m
- See also
- UMLListView Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
Auxiliary map of child UMLListViewItems keyed by UMLObject. Used by findChildObject() for efficiency instead of looping using firstChild()/nextSibling() because the latter incur enforceItemVisible() and thus expensive sorting.
Enumerator |
---|
lvt_Min |
|
lvt_View |
|
lvt_Logical_View |
|
lvt_UseCase_View |
|
lvt_Logical_Folder |
|
lvt_UseCase_Folder |
|
lvt_UseCase_Diagram |
|
lvt_Collaboration_Diagram |
|
lvt_Class_Diagram |
|
lvt_State_Diagram |
|
lvt_Activity_Diagram |
|
lvt_Sequence_Diagram |
|
lvt_Actor |
|
lvt_UseCase |
|
lvt_Class |
|
lvt_Attribute |
|
lvt_Operation |
|
lvt_Template |
|
lvt_Interface |
|
lvt_Package |
|
lvt_Component_Diagram |
|
lvt_Component_Folder |
|
lvt_Component_View |
|
lvt_Component |
|
lvt_Diagrams |
|
lvt_Artifact |
|
lvt_Deployment_Diagram |
|
lvt_Deployment_Folder |
|
lvt_Deployment_View |
|
lvt_Node |
|
lvt_Datatype |
|
lvt_Datatype_Folder |
|
lvt_Enum |
|
lvt_Entity |
|
lvt_EntityAttribute |
|
lvt_EntityRelationship_Diagram |
|
lvt_EntityRelationship_Folder |
|
lvt_EntityRelationship_Model |
|
lvt_Subsystem |
|
lvt_Model |
|
lvt_EnumLiteral |
|
lvt_UniqueConstraint |
|
lvt_PrimaryKeyConstraint |
|
lvt_ForeignKeyConstraint |
|
lvt_CheckConstraint |
|
lvt_Category |
|
lvt_Port |
|
lvt_Properties |
|
lvt_Properties_AutoLayout |
|
lvt_Properties_Class |
|
lvt_Properties_CodeGeneration |
|
lvt_Properties_CodeImport |
|
lvt_Properties_CodeViewer |
|
lvt_Properties_Font |
|
lvt_Properties_General |
|
lvt_Properties_UserInterface |
|
lvt_Association |
|
lvt_Object_Diagram |
|
lvt_Instance |
|
lvt_InstanceAttribute |
|
lvt_Max |
|
lvt_Unknown |
|
Sets up an instance.
- Parameters
-
parent | The parent to this instance. |
name | The name of this instance. |
t | The type of this instance. |
o | The object it represents. |
UMLListViewItem::UMLListViewItem |
( |
UMLListView * |
parent | ) |
|
|
explicit |
Sets up an instance for subsequent loadFromXMI().
- Parameters
-
parent | The parent to this instance. |
Sets up an instance for subsequent loadFromXMI().
- Parameters
-
parent | The parent to this instance. |
Sets up an instance.
- Parameters
-
parent | The parent to this instance. |
name | The name of this instance. |
t | The type of this instance. |
o | The object it represents. |
Sets up an instance.
- Parameters
-
parent | The parent to this instance. |
name | The name of this instance. |
t | The type of this instance. |
id | The id of this instance. |
Adds to the child object cache the child listview item representing the given UMLObject.
- Parameters
-
child | Pointer to UMLObject serving as the key into s_comap |
item | Pointer to UMLListViewItem to be returned as the value keyed by child |
void UMLListViewItem::cancelRenameWithMsg |
( |
| ) |
|
|
protected |
Auxiliary method for okRename().
Overrides the default sorting to sort by item type. Sort the listview items by type and position within the corresponding list of UMLObjects. If the item does not have a UMLObject then place it last. Create a deep copy of this UMLListViewItem, but using the given parent instead of the parent of this UMLListViewItem. Return the new UMLListViewItem created.
void UMLListViewItem::deleteChildItem |
( |
UMLObject * |
child | ) |
|
Deletes the child listview item representing the given UMLObject.
Deletes the given child listview item representing a UMLObject.
Find the UMLListViewItem of the given ID in the tree rooted at the current UMLListViewItem. Return a pointer to the item or NULL if not found.
- Parameters
-
- Returns
- The item with the given ID or NULL if not found.
Auxiliary function for findUMLObject: Search recursively in child hierarchy.
QString UMLListViewItem::getSavedText |
( |
| ) |
const |
Returns the id this class represents.
- Returns
- The id this class represents.
void UMLListViewItem::init |
( |
| ) |
|
|
protected |
Initializes key variables of the class.
bool UMLListViewItem::isOpen |
( |
| ) |
const |
|
inline |
bool UMLListViewItem::isOwnParent |
( |
Uml::ID::Type |
listViewItemID | ) |
|
bool UMLListViewItem::loadFromXMI |
( |
QDomElement & |
qElement | ) |
|
Loads a "listitem" tag, this is only used by the clipboard currently.
void UMLListViewItem::saveToXMI |
( |
QXmlStreamWriter & |
writer | ) |
|
Saves the listview item to a "listitem" tag.
Set the pixmap corresponding to the given IconType.
Sets the id this class represents. This only sets the ID locally, not at the UMLObject that is perhaps associated to this UMLListViewItem.
- Parameters
-
id | the id this class represents |
void UMLListViewItem::setOpen |
( |
bool |
expand | ) |
|
Overrides default method. Will call default method but also makes sure correct icon is shown.
void UMLListViewItem::setText |
( |
int |
column, |
|
|
const QString & |
newText |
|
) |
| |
Changes the current text.
void UMLListViewItem::setText |
( |
const QString & |
newText | ) |
|
Changes the current text of column 0.
void UMLListViewItem::setUMLObject |
( |
UMLObject * |
obj | ) |
|
Set the UMLObject associated with this instance.
- Parameters
-
obj | The object this class represents. |
void UMLListViewItem::setVisible |
( |
bool |
state | ) |
|
void UMLListViewItem::slotEditFinished |
( |
const QString & |
newText | ) |
|
|
slot |
This slot is called to finish item editing
QString UMLListViewItem::toolTip |
( |
| ) |
const |
Returns the signature of items that are operations.
- Returns
- signature of an operation item, else an empty string
Returns the type this instance represents.
- Returns
- The type this instance represents.
UMLObject * UMLListViewItem::umlObject |
( |
| ) |
const |
Return the UMLObject associated with this instance.
- Returns
- The object this class represents.
void UMLListViewItem::updateFolder |
( |
| ) |
|
Updates the icon on a folder.
void UMLListViewItem::updateObject |
( |
| ) |
|
Updates the representation of the object.
QString UMLListViewItem::m_label |
|
protected |
QPointer<UMLObject> UMLListViewItem::m_object |
|
protected |
The documentation for this class was generated from the following files: