summaryrefslogtreecommitdiffstats
path: root/khangman/khangman/khangman.kcfg
blob: 029b0913c43c38d290294279b8dd28af6370b672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?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="khangmanrc"/>

    <group name="Language">
      <entry name="CurrentLevel" type="Int">
            <label>Level</label>
            <default code="true">0</default>
        </entry>
        <entry name="LevelFile" type="String">
            <default code="true">"animals.kvtml"</default>
        </entry>
        <entry name="ShowCharToolbar" type="Bool">
            <label>Show the characters toolbar</label>
            <default code="true">false</default>
        </entry>
        <entry name="SelectedLanguage" type="String">
            <label>The language selected by the user</label>
            <code>
                KConfigBase *globalConf = KGlobal::config();
                globalConf->setGroup("Locale");
                QString userLanguage = globalConf->readEntry("Language", "en");
                if (userLanguage.isEmpty())
                userLanguage = "en";
                else
                //keep only the first 2 characters
                userLanguage = userLanguage.left(2);
            </code>
            <default code="true">userLanguage</default>
        </entry> 
        </group>

        <group name="Look">
        <entry name="Mode" type="Enum">
            <label>Background theme</label>
            <choices>
                <choice name="sea"/>
                <choice name="desert"/>
            </choices>
            <default>sea</default>
        </entry>
        </group>
          
    <group name="General">
        <entry name="OneLetter" type="Bool">
            <label>Allow Only One Instance of Each Letter to be replaced in the word</label>
            <default code="true">false</default>
        </entry>
        <entry name="WonDialog" type="Bool">
            <label>Do not display the 'Congratulations You won!' dialog</label>
            <default code="true">false</default>
        </entry> 
        <entry name="Sound" type="Bool">
            <label>Enable Sounds on New Game and Win Game</label>
            <default code="true">false</default>
        </entry>
        <entry name="HintTimer" type="Int">
            <label>the time to display the Hint KPassiveTooltip, in seconds</label>
            <default code="true">4</default>
        </entry>
        <entry name="MissedTimer" type="Int">
            <label>the time to display the Missed KPassivePopup, in seconds</label>
            <default code="true">1</default>
        </entry>
    </group>

    <group name="Advanced">
            <entry name="Hint" type="Bool">
            <label>Enable Hint mode if available i.e. only if hintBool == true</label>
            <default code="true">false</default>
        </entry>
        <entry name="AccentedLetters" type="Bool">
            <label>Type accented letters separately from normal letters</label>
            <default code="true">false</default>
        </entry>
        <entry name="UpperCase" type="Bool">
            <label>Write the word in upper case letters if checked</label>
            <default code="true">false</default>
        </entry>
     </group>

    <group name="Fonts">
        <entry name="GuessFontFamily" type="String">
            <label>Default font family for the Guess button</label>
            <default code="true">"Dustismo Roman"</default>
        </entry>
        <entry name="MissesFontFamily" type="String">
            <label>Default font family for the MIsses button</label>
            <default code="true">"Domestic Manners"</default>
        </entry>
    </group>

    <group name="KNewStuff">
        <entry name="ProvidersUrl" type="Path">
            <label>The Providers path for KHangMan</label>
             <default code="true">"http://edu.kde.org/khangman/downloads/providers.xml"</default>
        </entry> 
    </group>
</kcfg>