[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/kconfig_compiler
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2010-08-19 12:05:48
Message-ID: 20100819120548.62C40AC855 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1165449 by lunakl:

Document parameterized groups, so that the next sucker doesn't have to waste
time reinventing them too.



 M  +15 -1     README.dox  


--- trunk/KDE/kdelibs/kdecore/kconfig_compiler/README.dox #1165448:1165449
@@ -287,9 +287,23 @@
 
 - Parameterized groups
 
-...STILL TODO...
+A group name can be parametrized using a parameter given to the KConfigSkeleton
+instance (which means this feature cannot be used with singleton classes).
 
+Example 1:
+\verbatim
+  <kcfgfile name="testrc">
+    <parameter name="groupname"/>
+  </kcfgfile>
+  <group name="$(groupname)">
+    <entry key="Text" type="string">
+    </entry>
+  </group>
+\endverbatim
 
+In this case passing "Group2" as the 'groupname' parameter to the generated class
+will make it use group "Group2" for the entry "Text".
+
 - Enums
 
 By default, if <b>GlobalEnums</b> is set to false, a separate named enum will be generated
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic