[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/lib/interfaces
From: Jonas Jacobi <jonas.jacobi () web ! de>
Date: 2004-12-03 23:37:35
Message-ID: 20041203233735.05A501B42E () office ! kde ! org
[Download RAW message or body]
CVS commit by jacobi:
Added new "feature" CreateAccessMethods and
a new method createAccessMethods(ClassDom,VariableDom) to create
get/set methods for a class attribute.
M +4 -0 kdevlanguagesupport.cpp 1.23
M +9 -0 kdevlanguagesupport.h 1.26
--- kdevelop/lib/interfaces/kdevlanguagesupport.cpp #1.22:1.23
@@ -139,3 +139,7 @@ void KDevLanguageSupport::openFunction(
}
+void KDevLanguageSupport::createAccessMethods( ClassDom theClass, VariableDom \
theVariable ) +{
+}
+
#include "kdevlanguagesupport.moc"
--- kdevelop/lib/interfaces/kdevlanguagesupport.h #1.25:1.26
@@ -82,4 +82,5 @@ public:
AddMethod=1024 /**<Language support can create methods.*/,
AddAttribute=2048 /**<Language support can create class attributes.*/,
+ CreateAccessMethods=4096 /**<Language support can create get/set \
methods for attributes.*/, };
@@ -145,4 +146,12 @@ public:
virtual void addAttribute(ClassDom klass);
+ /**
+ * Opens an "create get/set methods" dialog and adds the configured methods \
to the sources. + * Define CreateAccessMethods feature if you reimplement \
this method. + * @param theClass The class the methods should be added to.
+ * @param theVariable The attribute the access methods should be generated \
for. + */
+ virtual void createAccessMethods(ClassDom theClass, VariableDom \
theVariable); +
/**Opens an "Subclass Widget" dialog for given Qt .ui file (formName)
and propmts to implement it's slots.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic