[Uml-devel] CVS: kdesdk/umbrello/umbrello concept.cpp,1.2,1.3 concept.h,1.2,1.3
kde at office.kde.org
kde at office.kde.org
Wed Jan 29 10:21:06 UTC 2003
Update of /home/kde/kdesdk/umbrello/umbrello
In directory office:/tmp/cvs-serv24040
Modified Files:
concept.cpp concept.h
Log Message:
Fixed bug 53487, overloaded operators don't show
Index: concept.cpp
===================================================================
RCS file: /home/kde/kdesdk/umbrello/umbrello/concept.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- concept.cpp 27 Jan 2003 21:37:14 -0000 1.2
+++ concept.cpp 29 Jan 2003 18:20:45 -0000 1.3
@@ -84,7 +84,12 @@
return o;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
-bool UMLConcept::addOperation(UMLOperation* Op, IDChangeLog* Log /* = 0*/) {
+bool UMLConcept::addOperation(UMLOperation* Op) {
+ m_OpsList.append( Op );
+ return true;
+}
+////////////////////////////////////////////////////////////////////////////////////////////////////
+bool UMLConcept::addOperation(UMLOperation* Op, IDChangeLog* Log) {
QString name = (QString)Op -> getName();
if( findChildObject( Uml::ot_Operation, name).count() == 0 ) {
Op -> parent() -> removeChild( Op );
Index: concept.h
===================================================================
RCS file: /home/kde/kdesdk/umbrello/umbrello/concept.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- concept.h 27 Jan 2003 21:37:14 -0000 1.2
+++ concept.h 29 Jan 2003 18:20:45 -0000 1.3
@@ -110,7 +110,15 @@
* Adds an already created Operation. The Operation must not belong to any other
* concept
*/
- bool addOperation(UMLOperation* Op, IDChangeLog* Log = 0);
+ bool addOperation(UMLOperation* Op);
+
+ /**
+ * Adds an already created Operation and checks for
+ * operations with the same name. The Operation must not
+ * belong to any other concept. Used by the clipboard
+ * when pasteing.
+ */
+ bool addOperation(UMLOperation* Op, IDChangeLog* Log);
/**
* Remove an operation from the Concept.
More information about the umbrello-devel
mailing list