[Uml-devel] kdesdk/umbrello/umbrello

Jonathan Riddell jri at jriddell.org
Wed Feb 26 10:00:48 UTC 2003


CVS commit by jriddell: 

an icon for class templates in the list view


  M +5 -0      umllistview.cpp   1.11
  M +2 -0      umllistview.h   1.5
  M +4 -0      umllistviewitem.cpp   1.6


--- kdesdk/umbrello/umbrello/umllistview.cpp  #1.10:1.11
@@ -1242,4 +1242,8 @@ QPixmap & UMLListView::getPixmap( Icon_T
                         break;
 
+                case it_Template:
+                        return m_Pixmaps.Template;
+                        break;
+
                 case it_Package:
                         return m_Pixmaps.Package;
@@ -1297,4 +1301,5 @@ void UMLListView::loadPixmaps() {
         m_Pixmaps.Diagram.load( dataDir + "CVnamespace.png" ); //change to have different one for each type of diagram
         m_Pixmaps.Class.load( dataDir + "umlclass.xpm" );
+        m_Pixmaps.Template.load( dataDir + "umlclass_template.xpm" );
         m_Pixmaps.Package.load( dataDir + "package.xpm" );
         m_Pixmaps.Interface.load( dataDir + "interface.xpm" );

--- kdesdk/umbrello/umbrello/umllistview.h  #1.4:1.5
@@ -46,4 +46,5 @@ public:
             it_Diagram, //change to have different one for each type of diagram
             it_Class,
+            it_Template,
             it_Package,
             it_Interface,
@@ -226,4 +227,5 @@ protected:
                 QPixmap Diagram; //change to have different one for each type of diagram
                 QPixmap Class;
+                QPixmap Template;
                 QPixmap Package;
                 QPixmap Interface;

--- kdesdk/umbrello/umbrello/umllistviewitem.cpp  #1.5:1.6
@@ -100,4 +100,8 @@ void UMLListViewItem::updateObject() {
                         break;
 
+                case Uml::ot_Template:
+                        setPixmap( 0, m_pListView->getPixmap(UMLListView::it_Template) );
+                        break;
+
                 case Uml::ot_Package:
                         setPixmap( 0, m_pListView -> getPixmap( UMLListView::it_Package ) );






More information about the umbrello-devel mailing list