umbrello/umbrello
#include <umllistviewitem.h>
Public Slots | |
void | slotEditFinished (const QString &newText) |
Static Public Member Functions | |
static QString | toString (ListViewType type) |
Protected Types | |
typedef QMap < UMLClassifierListItem *, UMLListViewItem * > | ChildObjectMap |
Protected Member Functions | |
void | cancelRenameWithMsg () |
void | init () |
Protected Attributes | |
ChildObjectMap | m_comap |
Uml::ID::Type | m_id |
QString | m_label |
UMLObject * | m_object |
ListViewType | m_type |
Detailed Description
Items used by the class UMLListView.
This is needed as the type and object information is required to be stored.
Items used by UMLListView.
- See also
- UMLListView Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 38 of file umllistviewitem.h.
Member Typedef Documentation
|
protected |
Auxiliary map of child UMLLisViewItems keyed by UMLClassifierListItem.
Used by findChildObject() for efficiency instead of looping using firstChild()/nextSibling() because the latter incur enforceItemVisible() and thus expensive sorting.
Definition at line 158 of file umllistviewitem.h.
Member Enumeration Documentation
Definition at line 41 of file umllistviewitem.h.
Constructor & Destructor Documentation
UMLListViewItem::UMLListViewItem | ( | UMLListView * | parent, |
const QString & | name, | ||
ListViewType | t, | ||
UMLObject * | o = 0 |
||
) |
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.
Definition at line 58 of file umllistviewitem.cpp.
|
explicit |
Sets up an instance for subsequent loadFromXMI().
- Parameters
-
parent The parent to this instance.
Definition at line 80 of file umllistviewitem.cpp.
|
explicit |
Sets up an instance for subsequent loadFromXMI().
- Parameters
-
parent The parent to this instance.
Definition at line 94 of file umllistviewitem.cpp.
UMLListViewItem::UMLListViewItem | ( | UMLListViewItem * | parent, |
const QString & | name, | ||
ListViewType | t, | ||
UMLObject * | o = 0 |
||
) |
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.
Definition at line 108 of file umllistviewitem.cpp.
UMLListViewItem::UMLListViewItem | ( | UMLListViewItem * | parent, |
const QString & | name, | ||
ListViewType | t, | ||
Uml::ID::Type | id | ||
) |
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.
Definition at line 138 of file umllistviewitem.cpp.
UMLListViewItem::~UMLListViewItem | ( | ) |
Standard destructor.
Definition at line 182 of file umllistviewitem.cpp.
Member Function Documentation
void UMLListViewItem::addClassifierListItem | ( | UMLClassifierListItem * | child, |
UMLListViewItem * | childItem | ||
) |
Adds the child listview item representing the given UMLClassifierListItem.
Definition at line 239 of file umllistviewitem.cpp.
|
protected |
Auxiliary method for okRename().
Definition at line 682 of file umllistviewitem.cpp.
UMLListViewItem * UMLListViewItem::childItem | ( | int | i | ) |
Definition at line 934 of file umllistviewitem.cpp.
UMLListViewItem * UMLListViewItem::deepCopy | ( | UMLListViewItem * | newParent | ) |
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 an 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.
Definition at line 790 of file umllistviewitem.cpp.
void UMLListViewItem::deleteChildItem | ( | UMLClassifierListItem * | child | ) |
Deletes the child listview item representing the given UMLClassifierListItem.
Definition at line 247 of file umllistviewitem.cpp.
UMLListViewItem * UMLListViewItem::findChildObject | ( | UMLClassifierListItem * | cli | ) |
Find the UMLListViewItem that represents the given UMLClassifierListItem in the children of the current UMLListViewItem.
(Only makes sense if the current UMLListViewItem represents a UMLClassifier.) Return a pointer to the item or NULL if not found.
Definition at line 831 of file umllistviewitem.cpp.
UMLListViewItem * UMLListViewItem::findItem | ( | Uml::ID::Type | id | ) |
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
-
id The ID to search for.
- Returns
- The item with the given ID or NULL if not found.
Definition at line 848 of file umllistviewitem.cpp.
UMLListViewItem * UMLListViewItem::findUMLObject | ( | const UMLObject * | o | ) |
Find the UMLListViewItem that is related to the given UMLObject in the tree rooted at the current UMLListViewItem.
Return a pointer to the item or NULL if not found.
Definition at line 812 of file umllistviewitem.cpp.
QString UMLListViewItem::getSavedText | ( | ) | const |
Returns the saved text.
Definition at line 444 of file umllistviewitem.cpp.
Uml::ID::Type UMLListViewItem::ID | ( | ) | const |
Returns the id this class represents.
- Returns
- The id this class represents.
Definition at line 268 of file umllistviewitem.cpp.
|
protected |
Initializes key variables of the class.
Definition at line 189 of file umllistviewitem.cpp.
|
inline |
Definition at line 141 of file umllistviewitem.h.
bool UMLListViewItem::isOwnParent | ( | Uml::ID::Type | listViewItemID | ) |
Returns true if the UMLListViewItem of the given ID is a parent of this UMLListViewItem.
Definition at line 318 of file umllistviewitem.cpp.
bool UMLListViewItem::loadFromXMI | ( | QDomElement & | qElement | ) |
Loads a "listitem" tag, this is only used by the clipboard currently.
Definition at line 909 of file umllistviewitem.cpp.
void UMLListViewItem::saveToXMI | ( | QDomDocument & | qDoc, |
QDomElement & | qElement | ||
) |
Saves the listview item to a "listitem" tag.
Definition at line 866 of file umllistviewitem.cpp.
void UMLListViewItem::setIcon | ( | Icon_Utils::IconType | iconType | ) |
Set the pixmap corresponding to the given IconType.
Definition at line 452 of file umllistviewitem.cpp.
void UMLListViewItem::setID | ( | Uml::ID::Type | id | ) |
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
Definition at line 282 of file umllistviewitem.cpp.
void UMLListViewItem::setOpen | ( | bool | expand | ) |
Overrides default method.
Will call default method but also makes sure correct icon is shown.
Definition at line 418 of file umllistviewitem.cpp.
void UMLListViewItem::setText | ( | int | column, |
const QString & | text | ||
) |
Changes the current text.
Definition at line 435 of file umllistviewitem.cpp.
void UMLListViewItem::setText | ( | const QString & | text | ) |
Changes the current text of column 0.
Definition at line 427 of file umllistviewitem.cpp.
void UMLListViewItem::setUMLObject | ( | UMLObject * | obj | ) |
Set the UMLObject associated with this instance.
- Parameters
-
obj The object this class represents.
Definition at line 299 of file umllistviewitem.cpp.
void UMLListViewItem::setVisible | ( | bool | state | ) |
Definition at line 258 of file umllistviewitem.cpp.
|
slot |
This slot is called to finish item editing.
Definition at line 461 of file umllistviewitem.cpp.
QString UMLListViewItem::toolTip | ( | ) |
Returns the signature of items that are operations.
- Returns
- signature of an operation item, else an empty string
Definition at line 200 of file umllistviewitem.cpp.
|
static |
Definition at line 939 of file umllistviewitem.cpp.
UMLListViewItem::ListViewType UMLListViewItem::type | ( | ) | const |
Returns the type this instance represents.
- Returns
- The type this instance represents.
Definition at line 231 of file umllistviewitem.cpp.
UMLObject * UMLListViewItem::umlObject | ( | ) | const |
Return the UMLObject associated with this instance.
- Returns
- The object this class represents.
Definition at line 309 of file umllistviewitem.cpp.
void UMLListViewItem::updateFolder | ( | ) |
Updates the icon on a folder.
Definition at line 404 of file umllistviewitem.cpp.
void UMLListViewItem::updateObject | ( | ) |
Updates the representation of the object.
Definition at line 336 of file umllistviewitem.cpp.
Member Data Documentation
|
protected |
Definition at line 164 of file umllistviewitem.h.
|
protected |
Definition at line 161 of file umllistviewitem.h.
|
protected |
Definition at line 163 of file umllistviewitem.h.
|
protected |
Definition at line 162 of file umllistviewitem.h.
|
protected |
Definition at line 160 of file umllistviewitem.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.