[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Fri Dec 24 01:36:03 UTC 2004
CVS commit by okellogg:
createDiagramItem(): New.
M +7 -0 umllistview.cpp 1.135
M +7 -0 umllistview.h 1.53
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.134:1.135
@@ -1183,4 +1183,11 @@ bool UMLListView::getSelectedItems(UMLLi
}
+UMLListViewItem* UMLListView::createDiagramItem(UMLView *v) {
+ Uml::ListView_Type lvt = convert_DT_LVT(v->getType());
+ UMLListViewItem *parent = determineParentItem(lvt);
+ UMLListViewItem *item = new UMLListViewItem(parent, v->getName(), lvt, v->getID());
+ return item;
+}
+
/** Creates a new UMLListViewItem from a UMLListViewItem,
if parent is null the ListView Decides who is going to be
--- kdesdk/umbrello/umbrello/umllistview.h #1.52:1.53
@@ -127,4 +127,11 @@ class UMLListView : public KListView {
/**
+ * Create a listview item for an existing diagram.
+ *
+ * @param v The existing diagram.
+ */
+ UMLListViewItem* createDiagramItem(UMLView *v);
+
+ /**
* CHECK - This is perhaps redundant since the
* UMLListViewItemData => UMLListViewItem merge.
More information about the umbrello-devel
mailing list