[Uml-devel] kdesdk/umbrello/umbrello/dialogs

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


CVS commit by jriddell: 

the list of interfaces are now listed as an option when creating
operations, operation paramaters and attributes


  M +6 -0      parmpropdlg.cpp   1.3
  M +6 -0      umlattributedialog.cpp   1.5


--- kdesdk/umbrello/umbrello/dialogs/parmpropdlg.cpp  #1.2:1.3
@@ -10,4 +10,5 @@
 #include "parmpropdlg.h"
 #include "../concept.h"
+#include "../interface.h"
 #include "../umldoc.h"
 #include <klocale.h>
@@ -86,4 +87,9 @@ ParmPropDlg::ParmPropDlg(QWidget * paren
         for(obj=namesList.first(); obj!=0 ;obj=namesList.next()) {
                 m_pTypeCB->insertItem( obj->getName() );
+        }
+        QPtrList<UMLInterface> interfaceList( m_pUmldoc->getInterfaces() );
+        UMLInterface* pInterface = 0;
+        for(pInterface=interfaceList.first(); pInterface!=0 ;pInterface=interfaceList.next()) {
+                m_pTypeCB->insertItem( pInterface->getName() );
         }
 

--- kdesdk/umbrello/umbrello/dialogs/umlattributedialog.cpp  #1.4:1.5
@@ -10,4 +10,5 @@
 #include "umlattributedialog.h"
 #include "../attribute.h"
+#include "../interface.h"
 #include "../concept.h"
 #include "../umldoc.h"
@@ -103,4 +104,9 @@ void UMLAttributeDialog::setupDialog() {
         for (obj=namesList.first(); obj!=0; obj=namesList.next()) {
                 m_pTypeCB->insertItem( obj->getName() );
+        }
+        QPtrList<UMLInterface> interfaceList( pDoc->getInterfaces() );
+        UMLInterface* pInterface = 0;
+        for(pInterface=interfaceList.first(); pInterface!=0 ;pInterface=interfaceList.next()) {
+                m_pTypeCB->insertItem( pInterface->getName() );
         }
 






More information about the umbrello-devel mailing list