1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!-- Author: Michal Larouche-->
3 <kcfg xmlns=
"http://www.kde.org/standards/kcfg/1.0"
4 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
5 xsi:
schemaLocation=
"http://www.kde.org/standards/kcfg/1.0
6 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
7 <kcfgfile name=
"kopeterc"/>
8 <include>kstandarddirs.h
</include>
9 <include>kglobalsettings.h
</include>
10 <include>kcolorscheme.h
</include>
12 <!-- Define the available signals to emit -->
13 <signal name=
"appearanceChanged">
14 <label>Emitted when the font and colors settings has changed.
</label>
16 <signal name=
"messageOverridesChanged">
17 <label>Emitted when the message overrides settings has changed.
</label>
19 <signal name=
"contactListAppearanceChanged">
20 <label>Emitted when the contact list appearance has changed.
</label>
23 <group name=
"Appearance">
24 <!-- Emoticon config -->
25 <entry key=
"useEmoticons" type=
"Bool">
26 <label>Enable emoticon support in Kopete.
</label>
27 <default>true
</default>
28 <emit signal=
"contactListAppearanceChanged" />
29 <emit signal=
"messageOverridesChanged" />
33 <!-- Hightlight preferences -->
34 <entry key=
"highlightForegroundColor" type=
"Color">
35 <label>Text color used when hightlighting
</label>
36 <default code=
"true">KColorScheme(QPalette::Active, KColorScheme::Selection).foreground().color()
</default>
37 <emit signal=
"appearanceChanged" />
39 <entry key=
"highlightBackgroundColor" type=
"Color">
40 <label>Background color used when hightlighting.
</label>
41 <default code=
"true">KColorScheme(QPalette::Active, KColorScheme::Selection).background().color()
</default>
42 <emit signal=
"appearanceChanged" />
45 <!-- Overrides preferences -->
46 <entry key=
"chatBgOverride" type=
"Bool">
47 <label>Disable custom text color set by users.
</label>
48 <default>false
</default>
49 <emit signal=
"messageOverridesChanged" />
51 <entry key=
"chatFgOverride" type=
"Bool">
52 <label>Disable custom background color set by users.
</label>
53 <default>false
</default>
54 <emit signal=
"messageOverridesChanged" />
56 <entry key=
"chatRtfOverride" type=
"Bool">
57 <label>Disable rich text set by users.
</label>
58 <default>false
</default>
59 <emit signal=
"messageOverridesChanged" />
62 <!-- Color and fonts preferences -->
63 <entry key=
"chatTextColor" type=
"Color">
64 <label>Chat text color.
</label>
65 <default code=
"true">KColorScheme(QPalette::Active, KColorScheme::View).foreground().color()
</default>
66 <emit signal=
"appearanceChanged" />
68 <entry key=
"chatBackgroundColor" type=
"Color">
69 <label>Chat background color.
</label>
70 <default code=
"true">KColorScheme(QPalette::Active, KColorScheme::View).background().color()
</default>
71 <emit signal=
"appearanceChanged" />
73 <entry key=
"chatLinkColor" type=
"Color">
74 <label>Chat link color.
</label>
75 <default code=
"true">KColorScheme(QPalette::Active, KColorScheme::Window).foreground(KColorScheme::LinkText).color()
</default>
76 <emit signal=
"appearanceChanged" />
78 <entry key=
"chatFontSelection" type=
"Int">
79 <label>Whether using the system font for the chat window.
</label>
81 <emit signal=
"appearanceChanged" />
83 <entry key=
"chatFont" type=
"Font">
84 <label>Chat font.
</label>
85 <default code=
"true">KGlobalSettings::generalFont()
</default>
86 <emit signal=
"appearanceChanged" />
89 <!-- Idle contact preferences -->
90 <entry key=
"idleContactColor" type=
"Color">
91 <label>Color used to identity idle contacts.
</label>
92 <default code=
"true">Qt::darkGray
</default>
93 <emit signal=
"contactListAppearanceChanged" />
95 <entry key=
"greyIdleMetaContacts" type=
"Bool">
96 <label>Display a different color for idle contact.
</label>
97 <default>true
</default>
98 <emit signal=
"contactListAppearanceChanged" />
101 <!-- Tooltip content -->
102 <entry key=
"toolTipContents" type=
"StringList">
103 <label>Contact properties that contact tooltip will show.
</label>
104 <default>FormattedName,userInfo,server,channels,idleTime,channelMembers,channelTopic,emailAddress,homePage,onlineSince,lastOnline,statusTitle,statusMessage
</default>
108 <group name=
"ContactList">
109 <!-- Contact list display preferences -->
110 <entry key=
"contactListSize" type=
"Enum">
111 <label>Contact list size
</label>
113 <choice name=
"Small"/>
114 <choice name=
"Medium"/>
115 <choice name=
"Large"/>
117 <default>Small
</default>
118 <emit signal=
"contactListAppearanceChanged" />
120 <entry key=
"contactListLeftMode" type=
"Bool">
121 <label>Contact list status icons are left aligned.
</label>
122 <default>false
</default>
123 <emit signal=
"contactListAppearanceChanged" />
125 <entry key=
"contactListDetailedMode" type=
"Bool">
126 <label>Show detailed contact list.
</label>
127 <default>false
</default>
128 <emit signal=
"contactListAppearanceChanged" />
130 <entry key=
"contactListIconMode" type=
"Enum">
131 <label>Contact list icon display mode. Either the protocol icon or the contact photo.
</label>
133 <choice name=
"IconPic" />
134 <choice name=
"IconPhoto" />
136 <default>IconPic
</default>
137 <emit signal=
"contactListAppearanceChanged" />
139 <entry key=
"contactListIconBorders" type=
"Bool">
140 <label>Enable borders on the contact's photo.
</label>
141 <default>false
</default>
142 <emit signal=
"contactListAppearanceChanged" />
144 <entry key=
"contactListIconRounded" type=
"Bool">
145 <label>Round contact photo corners.
</label>
146 <default>true
</default>
147 <emit signal=
"contactListAppearanceChanged" />
149 <entry key=
"contactListTreeView" type=
"Bool">
150 <label>Show contact list as a tree view.
</label>
151 <default>true
</default>
152 <emit signal=
"contactListAppearanceChanged" />
154 <entry key=
"contactListIndentContact" type=
"Bool">
155 <label>Indent contacts if you do not show tree lines.
</label>
156 <default>false
</default>
157 <emit signal=
"contactListAppearanceChanged" />
159 <entry key=
"contactListHideVerticalScrollBar" type=
"Bool">
160 <label>Hide the vertical scroll bar.
</label>
161 <default>false
</default>
162 <emit signal=
"contactListAppearanceChanged" />
164 <entry key=
"groupContactByGroup" type=
"Bool">
165 <label>Group contacts by group.
</label>
166 <default>true
</default>
167 <emit signal=
"contactListAppearanceChanged" />
169 <entry key=
"contactListUseCustomFont" type=
"Bool">
170 <label>Use custom fonts for contact list.
</label>
171 <default>false
</default>
172 <emit signal=
"contactListAppearanceChanged" />
174 <entry key=
"contactListAutoResize" type=
"Bool">
175 <label>Automatically resize the main window.
</label>
176 <default>false
</default>
177 <emit signal=
"contactListAppearanceChanged" />
179 <entry key=
"contactListResizeAnchor" type=
"Enum">
180 <label>Corner at which to anchor main window when auto-resizing.
</label>
182 <choice name=
"Top"/> <!-- order is significant! -->
183 <choice name=
"Bottom"/>
185 <default>Bottom
</default>
186 <emit signal=
"contactListAppearanceChanged" />
188 <!-- Contact list font preferences -->
189 <entry key=
"contactListNormalFont" type=
"Font">
191 QFont font = KGlobalSettings::generalFont();
192 mContactListNormalFont = config->readFontEntry("NormalFont", &font);
193 if ( font.pixelSize() != -1 )
194 font.setPixelSize( (font.pixelSize() * 3) / 4 );
196 font.setPointSizeFloat( font.pointSizeFloat() * 0.75 );
198 <label>Normal font for contact list
</label>
199 <default code=
"true">KGlobalSettings::generalFont()
</default>
200 <emit signal=
"contactListAppearanceChanged" />
202 <entry key=
"contactListSmallFont" type=
"Font">
203 <label>Small font for contact list (for status message)
</label>
204 <default code=
"true">KGlobalSettings::generalFont()
</default>
205 <emit signal=
"contactListAppearanceChanged" />
207 <entry key=
"groupNameColor" type=
"Color">
208 <label>Color for group name.
</label>
209 <default code=
"true">Qt::darkRed
</default>
210 <emit signal=
"contactListAppearanceChanged" />
212 <entry key=
"contactListAnimateChange" type=
"Bool">
213 <label>Animate contact list on contactlist changes.
</label>
214 <default>true
</default>
215 <emit signal=
"contactListAppearanceChanged" />
217 <entry key=
"contactListFading" type=
"Bool">
218 <label>Fade-in/Fade-out on contact status change.
</label>
219 <default>true
</default>
220 <emit signal=
"contactListAppearanceChanged" />
222 <entry key=
"contactListFolding" type=
"Bool">
223 <label>Fold-in/Fold-out on contact status change.
</label>
224 <default>true
</default>
225 <emit signal=
"contactListAppearanceChanged" />
227 <entry key=
"contactListAutoHide" type=
"Bool">
228 <label>Auto-hide contact list after a while.
</label>
229 <default>false
</default>
230 <emit signal=
"contactListAppearanceChanged" />
232 <entry key=
"contactListAutoHideVScroll" type=
"Bool">
233 <label>Auto-hide vertical scrollbar in contact list after a while.
</label>
234 <default>true
</default>
235 <emit signal=
"contactListAppearanceChanged" />
237 <entry key=
"contactListAutoHideTimeout" type=
"UInt">
238 <label>Auto-hide timeout
</label>
239 <default>30</default>
240 <emit signal=
"contactListAppearanceChanged" />
243 <!-- Contact list appearance config -->
244 <entry key=
"showOfflineUsers" type=
"Bool">
245 <label>Show offline users in contact list.
</label>
246 <default>true
</default>
247 <emit signal=
"contactListAppearanceChanged" />
249 <entry key=
"showEmptyGroups" type=
"Bool">
250 <label>Show empty groups in contact list.
</label>
251 <default>false
</default>
252 <emit signal=
"contactListAppearanceChanged" />
255 <entry key=
"showIdentityIcons" type=
"Bool">
256 <label>Show identities in status bar instead of accounts.
</label>
257 <default>true
</default>