You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/tdecore/tdeconfig_compiler/tests/test5.kcfg

43 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name="test4rc"/>
<group name="Foo">
<entry name="Color$(Number)" type="Color" key="color #$(Number)">
<parameter name="Number" type="Int" max="3"/>
<label>Block colors.</label>
<code>TQColor defaultColor[4] = { TQt::red, TQt::blue, TQt::green, TQt::black };</code>
<default code="true">defaultColor[$(Number)]</default>
</entry>
<entry name="MouseAction$(Button)" type="Enum" key="$(Button)_mouse_action">
<parameter name="Button" type="Enum">
<values>
<value>right</value>
<value>mid</value>
<value>left</value>
</values>
</parameter>
<label>Mouse actions.</label>
<choices>
<choice name="Encrypt"/>
<choice name="Decrypt"/>
<choice name="CrashNBurn"/>
<choice name="PumpNDump"/>
</choices>
<default param="right">Decrypt</default>
<default param="mid">Encrypt</default>
<default param="left">PumpNDump</default>
</entry>
<entry name="FooBar" key="foo bar" type="String"/>
<entry name="Age" type="Int">
<default>35</default>
<min>8</min>
<max>88</max>
</entry>
</group>
</kcfg>