1 #ifndef _KVI_OPTIONS_H_
2 #define _KVI_OPTIONS_H_
38 #include <QStringList>
41 #define DECLARE_OPTION_STRUCT(_cname, _type) \
50 _cname(const QString & n, _type o, int f) \
51 : name(n), option(o), flags(f){}; \
66 #define KVI_COLOR_EXT_USER_OP 50
67 #define KVI_COLOR_EXT_USER_HALFOP 51
68 #define KVI_COLOR_EXT_USER_ADMIN 52
69 #define KVI_COLOR_EXT_USER_OWNER 53
70 #define KVI_COLOR_EXT_USER_VOICE 54
71 #define KVI_COLOR_EXT_USER_USEROP 55
72 #define KVI_COLOR_EXT_USER_NORMAL 56
73 #define KVI_COLOR_CUSTOM 255
74 #define KVI_COLOR_OWN 254
77 #define KVI_RECT_OPTIONS_PREFIX "rect"
78 #define KVI_RECT_OPTIONS_PREFIX_LEN 4
80 #define KviOption_rectFrameGeometry 0
82 #define KviOption_rectGeneralOptionsDialogGeometry 1
84 #define KviOption_rectRegisteredUsersDialogGeometry 2
86 #define KVI_NUM_RECT_OPTIONS 3
88 #define KVI_BOOL_OPTIONS_PREFIX "bool"
89 #define KVI_BOOL_OPTIONS_PREFIX_LEN 4
91 #define KviOption_boolWindowsRememberProperties 0
92 #define KviOption_boolIrcViewShowImages 1
93 #define KviOption_boolIrcViewTimestamp 2
94 #define KviOption_boolIrcViewUrlHighlighting 3
95 #define KviOption_boolIrcViewWrapMargin 4
96 #define KviOption_boolInputHistoryCursorAtEnd 5
97 #define KviOption_boolAvoidParserWarnings 6
98 #define KviOption_boolUseProxyHost 7
99 #define KviOption_boolShowGeneralOptionsDialogAsToplevel 8
100 #define KviOption_boolForceBrutalQuit 9
101 #define KviOption_boolShowPingPong 10
102 #define KviOption_boolPopupNotifierOnNewQueryMessages 11
103 #define KviOption_boolShowExtendedServerInfo 12
104 #define KviOption_boolEchoNumericTopic 13
105 #define KviOption_boolShowOwnParts 14
106 #define KviOption_boolUseAntiSpamOnPrivmsg 15
107 #define KviOption_boolUseExtendedPrivmsgView 16
108 #define KviOption_boolShowUserAndHostInPrivmsgView 17
109 #define KviOption_boolUseWordHighlighting 18
110 #define KviOption_boolCleanupUnusedModules 19
111 #define KviOption_boolIgnoreCtcpPing 20
112 #define KviOption_boolIgnoreCtcpVersion 21
113 #define KviOption_boolUseCtcpFloodProtection 22
114 #define KviOption_boolDisableBrokenEventHandlers 23
115 #define KviOption_boolIgnoreCtcpClientinfo 24
116 #define KviOption_boolIgnoreCtcpUserinfo 25
117 #define KviOption_boolIgnoreCtcpFinger 26
118 #define KviOption_boolIgnoreCtcpSource 27
119 #define KviOption_boolIgnoreCtcpTime 28
120 #define KviOption_boolRequestMissingAvatars 29
121 #define KviOption_boolShowCompactModeChanges 30
122 #define KviOption_boolIgnoreCtcpDcc 31
123 #define KviOption_boolAutoAcceptDccChat 32
124 #define KviOption_boolAutoAcceptDccSend 33
125 #define KviOption_boolSendZeroAckInDccRecv 34
126 #define KviOption_boolUseFastDccSend 35
127 #define KviOption_boolUseCompositingForTransparency 36
128 #define KviOption_boolUseWindowListIrcContextIndicator 37
129 #define KviOption_boolUseGlobalApplicationFont 38
130 #define KviOption_boolAlwaysQuitKVIrcClosingLastConsole 39
131 #define KviOption_boolAlwaysDisconnectClosingConnectedConsole 40
132 #define KviOption_boolFlashWindowOnHighlightedMessages 41
133 #define KviOption_boolPopupNotifierOnHighlightedMessages 42
134 #define KviOption_boolFlashWindowOnNotifyOnLine 43
135 #define KviOption_boolIrcViewTimestampUTC 44
136 #define KviOption_boolUseGlobalPseudoTransparency 45
137 #define KviOption_boolUseNotifyList 46
138 #define KviOption_boolNotifyListChangesToActiveWindow 47
139 #define KviOption_boolAutoResumeDccSendWhenAutoAccepted 48
140 #define KviOption_boolLimitOutgoingTraffic 49
141 #define KviOption_boolSendUnknownCommandsAsRaw 50
142 #define KviOption_boolUserListViewDrawGrid 51
143 #define KviOption_boolShowChannelSyncTime 52
144 #define KviOption_boolRejoinChannelOnKick 53
145 #define KviOption_boolKeepChannelOpenOnKick 54
146 #define KviOption_boolAutoCloseDccSendOnSuccess 55
147 #define KviOption_boolNotifyDccSendSuccessInConsole 56
148 #define KviOption_boolCreateMinimizedDccSend 57
149 #define KviOption_boolCreateMinimizedDccChat 58
150 #define KviOption_boolAutoAcceptIncomingAvatars 59
151 #define KviOption_boolUseNickCompletionPostfixForFirstWordOnly 60
152 #define KviOption_boolUseWindowListIcons 61
153 #define KviOption_boolCreateMinimizedDccSendWhenAutoAccepted 62
154 #define KviOption_boolCreateMinimizedDccChatWhenAutoAccepted 63
155 #define KviOption_boolDccGuessIpFromServerWhenLocalIsUnroutable 64
156 #define KviOption_boolShowRegisteredUsersDialogAsToplevel 65
157 #define KviOption_boolAutoLogQueries 66
158 #define KviOption_boolAutoLogChannels 67
159 #define KviOption_boolAutoLogDccChat 68
160 #define KviOption_boolAutoLogConsole 69
161 #define KviOption_boolSilentAntiSpam 70
162 #define KviOption_boolUseIncomingDccMediaTypeSavePath 71
163 #define KviOption_boolNotifyListSendUserhostForOnlineUsers 72
164 #define KviOption_boolUseIntelligentNotifyListManager 73
165 #define KviOption_boolUseWatchListIfAvailable 74
166 #define KviOption_boolUseTreeWindowList 75
167 #define KviOption_boolBindIrcIPv4ConnectionsToSpecifiedAddress 76
168 #define KviOption_boolBindIrcIPv6ConnectionsToSpecifiedAddress 77
169 #define KviOption_boolUseAntiSpamOnNotice 78
170 #define KviOption_boolSetLastAvatarAsDefaultForRegisteredUsers 79
171 #define KviOption_boolCantAcceptIncomingDccConnections 80
172 #define KviOption_boolIgnoreCtcpAvatar 81
173 #define KviOption_boolCtcpRepliesToActiveWindow 82
174 #define KviOption_boolAutoAcceptDccCanvas 83
175 #define KviOption_boolNotifyDccSendSuccessInNotifier 84
176 #define KviOption_boolKillBrokenTimers 85
177 #define KviOption_boolDccVoiceVolumeSliderControlsPCM 86
178 #define KviOption_boolDccVoiceForceHalfDuplex 87
179 #define KviOption_boolAutoAcceptDccVoice 88
180 #define KviOption_boolCreateMinimizedDccVoice 89
181 #define KviOption_boolCreateMinimizedDccVoiceWhenAutoAccepted 90
182 #define KviOption_boolUseIdentService 91
183 #define KviOption_boolShowTipAtStartup 92
184 #define KviOption_boolIdentdEnableIPv6 93
185 #define KviOption_boolIdentdIPv6ContainsIPv4 94
186 #define KviOption_boolScaleAvatars 95
187 #define KviOption_boolColorNicks 96
188 #define KviOption_boolBoldedNicks 97
189 #define KviOption_boolDccListenOnSpecifiedInterfaceByDefault 98
190 #define KviOption_boolChangeNickAway 99
191 #define KviOption_boolAutoGeneratedAwayNick 100
192 #define KviOption_boolExitAwayOnInput 101
193 #define KviOption_boolAlwaysHighlightNick 102
194 #define KviOption_boolShowChannelsJoinOnIrc 103
195 #define KviOption_boolShowChannelsJoinDialogAsToplevel 104
196 #define KviOption_boolUserDefinedPortRange 105
197 #define KviOption_boolCreateQueryOnPrivmsg 106
198 #define KviOption_boolCreateQueryOnNotice 107
199 #define KviOption_boolCreateIncomingQueriesAsMinimized 108
200 #define KviOption_boolAutoJoinOnInvite 109
201 #define KviOption_boolShowServersConnectDialogOnStart 110
202 #define KviOption_boolShowServersConnectDialogAsToplevel 111
203 #define KviOption_boolAcceptBrokenFileNameDccResumeRequests 112
204 #define KviOption_boolAutoReconnectOnUnexpectedDisconnect 113
205 #define KviOption_boolRejoinChannelsAfterReconnect 114
206 #define KviOption_boolReopenQueriesAfterReconnect 115
207 #define KviOption_boolEnableQueryTracing 116
208 #define KviOption_boolOperatorMessagesToActiveWindow 117
209 #define KviOption_boolInvitesToActiveWindow 118
210 #define KviOption_boolShowChannelUserFlagInPrivmsgView 119
211 #define KviOption_boolDccSendFakeAddressByDefault 120
212 #define KviOption_boolUseWindowListActivityMeter 121
213 #define KviOption_boolCloseServerWidgetAfterConnect 122
214 #define KviOption_boolShowIdentityDialogAsToplevel 123
215 #define KviOption_boolShowUserChannelIcons 124
216 #define KviOption_boolShowUserChannelState 125
217 #define KviOption_boolEnableIgnoreOnPrivMsg 126
218 #define KviOption_boolVerboseIgnore 127
219 #define KviOption_boolEnableIgnoreOnNotice 128
220 #define KviOption_boolNotifyFailedDccHandshakes 129
221 #define KviOption_boolDrawEmoticons 130
222 #define KviOption_boolIgnoreCtcpPage 131
223 #define KviOption_boolShowDialogOnCtcpPage 132
224 #define KviOption_boolBashLikeNickCompletion 133
225 #define KviOption_boolUseSSLCertificate 134
226 #define KviOption_boolUseSSLPrivateKey 135
227 #define KviOption_boolWarnAboutPastingMultipleLines 136
228 #define KviOption_boolKeepChannelsOpenOnUnexpectedDisconnect 137
229 #define KviOption_boolKeepQueriesOpenOnUnexpectedDisconnect 138
230 #define KviOption_boolUseLagMeterEngine 139
231 #define KviOption_boolShowLagOnContextDisplay 140
232 #define KviOption_boolDisableBanListRequestOnJoin 141
233 #define KviOption_boolDisableBanExceptionListRequestOnJoin 142
234 #define KviOption_boolDisableInviteListRequestOnJoin 143
235 #define KviOption_boolDisableWhoRequestOnJoin 144
236 #define KviOption_boolShowDockExtension 145
237 #define KviOption_boolDccAddressByIrcDns 146
238 #define KviOption_boolHighlightOnlyNormalMsg 147
239 #define KviOption_boolHighlightOnlyNormalMsgQueryToo 148
240 #define KviOption_boolHighlightOnlyNormalMsgHighlightInChanToo 149
241 #define KviOption_boolHighlightOnlyAtCostumHighlightLevel 150
242 #define KviOption_boolDccBrokenBouncerHack 151
243 #define KviOption_boolExternalMessagesToActiveWindow 152
244 #define KviOption_boolIgnoreChannelAvatarRequestsWhenNoAvatarSet 153
245 #define KviOption_boolFlashQueryWindowOnNewMessages 154
246 #define KviOption_boolConfirmCloseWhenThereAreConnections 155
247 #define KviOption_boolUseWindowsDesktopForTransparency 156
248 #define KviOption_boolCtcpRequestsToActiveWindow 157
249 #define KviOption_boolServerRepliesToActiveWindow 158
250 #define KviOption_boolServerNoticesToActiveWindow 159
251 #define KviOption_boolServicesNoticesToActiveWindow 160
252 #define KviOption_boolSortWindowListItemsByName 161
253 #define KviOption_boolShowWindowListToolTips 162
254 #define KviOption_boolShowUserListViewToolTips 163
255 #define KviOption_boolWhoisRepliesToActiveWindow 164
256 #define KviOption_boolPopupNotifierOnNotifyOnLine 165
257 #define KviOption_boolEnableNotifier 166
258 #define KviOption_boolDccSendForceIdleStep 167
259 #define KviOption_boolStatusBarVisible 168
260 #define KviOption_boolTrackLastReadTextViewLine 169
261 #define KviOption_boolKeepChannelOpenOnPart 170
262 #define KviOption_boolStripMircColorsInUserMessages 171
263 #define KviOption_boolDoNotSuggestRestoreDefaultScript 172
264 #define KviOption_boolLimitDccSendSpeed 173
265 #define KviOption_boolLimitDccRecvSpeed 174
266 #define KviOption_boolIgnoreModuleVersions 175
267 #define KviOption_boolEnableInputHistory 176
268 #define KviOption_boolUseSpecialColorForTimestamp 177
269 #define KviOption_boolEnableAwayListUpdates 178
270 #define KviOption_boolShowAvatarsInUserlist 179
271 #define KviOption_boolShowUserListStatisticLabel 180
272 #define KviOption_boolShowIconsInPopupMenus 181
273 #define KviOption_boolScriptErrorsToDebugWindow 182
274 #define KviOption_boolShowMinimizedDebugWindow 183
275 #define KviOption_boolShowExtendedInfoInQueryLabel 184
276 #define KviOption_boolUseUserListColorsAsNickColors 185
277 #define KviOption_boolGzipLogs 186
278 #define KviOption_boolUseFullWordHighlighting 187
279 #define KviOption_boolNotifierFlashing 188
280 #define KviOption_boolCommandlineInUserFriendlyModeByDefault 189
281 #define KviOption_boolEnableVisualEffects 190
282 #define KviOption_boolDCCFileTransferReplaceOutgoingSpacesWithUnderscores 191
283 #define KviOption_boolDoNotUpscaleAvatars 192
284 #define KviOption_boolUseDifferentColorForOwnNick 193
285 #define KviOption_boolCloseInTray 194
286 #define KviOption_boolStartupMinimized 195
287 #define KviOption_boolSortReceivedByDccFilesByNicks 196
288 #define KviOption_boolLogChannelHistory 197
289 #define KviOption_boolClassicWindowListSetMaximumButtonWidth 198
290 #define KviOption_boolKeepChannelsOpenOnDisconnect 199
291 #define KviOption_boolKeepQueriesOpenOnDisconnect 200
292 #define KviOption_boolHideWindowToolButtons 201
293 #define KviOption_boolHideInputToolButtons 202
294 #define KviOption_boolStripControlCodesInLogs 203
295 #define KviOption_boolEnableTrayIconFlashing 204
296 #define KviOption_boolUseFlatClassicWindowListButtons 205
297 #define KviOption_boolStripMsgTypeInLogs 206
298 #define KviOption_boolUseLevelBasedTrayNotification 207
299 #define KviOption_boolMuteAllSounds 208
300 #define KviOption_boolCreateMinimizedChannels 209
301 #define KviOption_boolShowNetworkNameForConsoleWindowListEntry 210
302 #define KviOption_boolDrawGenderIcons 211
303 #define KviOption_boolPrependGenderInfoToRealname 212
304 #define KviOption_boolUseIdentServiceOnlyOnConnect 213
305 #define KviOption_boolUseSystemUrlHandlers 214
306 #define KviOption_boolScaleAvatarsOnLoad 215
307 #define KviOption_boolNotifierFading 216
308 #define KviOption_boolPickRandomIpAddressForRoundRobinServers 217
309 #define KviOption_boolPrependAvatarInfoToRealname 218
310 #define KviOption_boolEnableAnimatedAvatars 219
311 #define KviOption_boolEnableAnimatedSmiles 220
312 #define KviOption_boolPlaceNickWithNonAlphaCharsAtEnd 221
313 #define KviOption_boolPasteLastLogOnChannelJoin 222
314 #define KviOption_boolPasteLastLogOnQueryJoin 223
315 #define KviOption_boolUseSpecifiedSmartColorForOwnNick 224
316 #define KviOption_boolZshLikeNickCompletion 225
317 #define KviOption_boolAutoAcceptDccVideo 226
318 #define KviOption_boolCreateMinimizedDccVideo 227
319 #define KviOption_boolCreateMinimizedDccVideoWhenAutoAccepted 228
320 #define KviOption_boolShowTaskBarButton 229
321 #define KviOption_boolFlashDccChatWindowOnNewMessages 230
322 #define KviOption_boolPopupNotifierOnNewDccChatMessages 231
323 #define KviOption_boolUseAwayMessage 232
324 #define KviOption_boolDisableQuietBanListRequestOnJoin 233
325 #define KviOption_boolUseWindowListCloseButton 234
326 #define KviOption_boolFrameIsMaximized 235
327 #define KviOption_boolPrependNickColorInfoToRealname 236
328 #define KviOption_boolDontShowNotifierIfActiveWindowIsFullScreen 237
329 #define KviOption_boolWheelScrollsWindowsList 238
330 #define KviOption_boolAcceptMismatchedPortDccResumeRequests 239
331 #define KviOption_boolEnableUrlLinkToolTip 240
332 #define KviOption_boolEnableHostLinkToolTip 241
333 #define KviOption_boolEnableServerLinkToolTip 242
334 #define KviOption_boolEnableModeLinkToolTip 243
335 #define KviOption_boolEnableNickLinkToolTip 244
336 #define KviOption_boolEnableChannelLinkToolTip 245
337 #define KviOption_boolEnableEscapeLinkToolTip 246
338 #define KviOption_boolUseDBusNotifier 247
339 #define KviOption_boolUseKDENotifier 248
340 #define KviOption_boolCaseSensitiveHighlighting 249
341 #define KviOption_boolMinimizeInTray 250
342 #define KviOption_boolDisplayNotifierOnPrimaryScreen 251
343 #define KviOption_boolShowDialogOnChannelCtcpPage 252
344 #define KviOption_boolPopupNotifierOnNewNotices 253
345 #define KviOption_boolUserListViewUseAwayColor 254
346 #define KviOption_boolShowUserFlagForChannelsInWindowList 255
347 #define KviOption_boolEnableCustomCursorWidth 256
348 #define KviOption_boolShowFavoriteServersOnly 257
349 #define KviOption_boolRequireControlToCopy 258
350 #define KviOption_boolSend64BitAckInDccRecv 259
351 #define KviOption_boolShowTreeWindowListHandle 260
352 #define KviOption_boolMenuBarVisible 261
353 #define KviOption_boolWarnAboutHidingMenuBar 262
354 #define KviOption_boolWhoRepliesToActiveWindow 263
356 #define KVI_NUM_BOOL_OPTIONS 264
358 #define KVI_STRING_OPTIONS_PREFIX "string"
359 #define KVI_STRING_OPTIONS_PREFIX_LEN 6
361 #define KviOption_stringNickname1 0
362 #define KviOption_stringNickname2 1
363 #define KviOption_stringNickname3 2
364 #define KviOption_stringNickname4 3
365 #define KviOption_stringUsername 4
366 #define KviOption_stringRealname 5
367 #define KviOption_stringLocalHostIp 6
368 #define KviOption_stringPartMessage 7
369 #define KviOption_stringQuitMessage 8
370 #define KviOption_stringUrlHttpCommand 9
371 #define KviOption_stringExtendedPrivmsgPrefix 10
372 #define KviOption_stringExtendedPrivmsgPostfix 11
373 #define KviOption_stringCtcpVersionPostfix 12
374 #define KviOption_stringCtcpUserInfoOther 13
375 #define KviOption_stringCtcpSourcePostfix 14
376 #define KviOption_stringUrlFtpCommand 15
377 #define KviOption_stringUrlHttpsCommand 16
378 #define KviOption_stringUrlMailtoCommand 17
379 #define KviOption_stringPreferredMediaPlayer 18
380 #define KviOption_stringUrlFileCommand 19
381 #define KviOption_stringNickCompletionPostfix 20
382 #define KviOption_stringUrlUnknownCommand 21
383 #define KviOption_stringIPv4ConnectionBindAddress 22
384 #define KviOption_stringIPv6ConnectionBindAddress 23
385 #define KviOption_stringDccVoiceSoundDevice 24
386 #define KviOption_stringDccVoiceMixerDevice 25
387 #define KviOption_stringAwayMessage 26
388 #define KviOption_stringIdentdUser 27
389 #define KviOption_stringDccListenDefaultInterface 28
390 #define KviOption_stringCustomAwayNick 29
391 #define KviOption_stringDefaultDccFakeAddress 30
392 #define KviOption_stringCtcpPageReply 31
393 #define KviOption_stringSSLCertificatePath 32
394 #define KviOption_stringSSLCertificatePass 33
395 #define KviOption_stringSSLPrivateKeyPath 34
396 #define KviOption_stringSSLPrivateKeyPass 35
397 #define KviOption_stringSoundSystem 36
398 #define KviOption_stringDefaultUserMode 37
399 #define KviOption_stringLastImageDialogPath 38
400 #define KviOption_stringIconThemeSubdir 39
401 #define KviOption_stringIncomingPath 40
402 #define KviOption_stringMyAvatar 41
403 #define KviOption_stringDefaultTextEncoding 42 // empty string means guess from locale
404 #define KviOption_stringWinampTextEncoding 43
405 #define KviOption_stringMp3TagsEncoding 44
406 #define KviOption_stringCtcpUserInfoAge 45
407 #define KviOption_stringCtcpUserInfoGender 46
408 #define KviOption_stringCtcpUserInfoLocation 47
409 #define KviOption_stringCtcpUserInfoLanguages 48
410 #define KviOption_stringWordSplitters 49
411 #define KviOption_stringOnNewQueryOpenedSound 50
412 #define KviOption_stringOnHighlightedMessageSound 51
413 #define KviOption_stringOnMeKickedSound 52
414 #define KviOption_stringOnQueryMessageSound 53
415 #define KviOption_stringIrcViewTimestampFormat 54
416 #define KviOption_stringPreferredTorrentClient 55
417 #define KviOption_stringDefaultSrvEncoding 56 // empty string means guess from locale
418 #define KviOption_stringLogsPath 57
419 #define KviOption_stringLogsDynamicPath 58
420 #define KviOption_stringLogsExportPath 59
422 #define KVI_NUM_STRING_OPTIONS 60
424 #define KVI_STRINGLIST_OPTIONS_PREFIX "stringlist"
425 #define KVI_STRINGLIST_OPTIONS_PREFIX_LEN 10
427 #define KviOption_stringlistHighlightWords 0
428 #define KviOption_stringlistSpamWords 1
429 #define KviOption_stringlistRecentChannels 2
430 #define KviOption_stringlistRecentServers 3
431 #define KviOption_stringlistRecentNicknames 4
432 #define KviOption_stringlistModuleExtensionToolbars 5
433 #define KviOption_stringlistImageSearchPaths 6
434 #define KviOption_stringlistRecentIrcUrls 7
435 #define KviOption_stringlistSpellCheckerDictionaries 8
437 #define KVI_NUM_STRINGLIST_OPTIONS 9
439 #define KVI_COLOR_OPTIONS_PREFIX "color"
440 #define KVI_COLOR_OPTIONS_PREFIX_LEN 5
442 #define KviOption_colorWindowListNormalText 0
443 #define KviOption_colorWindowListMinimizedText 1
444 #define KviOption_colorWindowListHighlight1Text 2
445 #define KviOption_colorWindowListHighlight2Text 3
446 #define KviOption_colorWindowListProgressBar 4
447 #define KviOption_colorUserListViewAwayForeground 5
448 #define KviOption_colorUserListViewOwnForeground 6
449 #define KviOption_colorUserListViewIrcOpForeground 7
450 #define KviOption_colorNotifierBackground 8
451 #define KviOption_colorNotifierForeground 9
452 #define KviOption_colorNotifierTitleForeground 10
453 #define KviOption_colorIrcViewBackground 11
454 #define KviOption_colorInputBackground 12
455 #define KviOption_colorInputSelectionBackground 13
456 #define KviOption_colorInputSelectionForeground 14
457 #define KviOption_colorInputCursor 15
458 #define KviOption_colorInputControl 16
459 #define KviOption_colorInputForeground 17
460 #define KviOption_colorUserListViewBackground 18
461 #define KviOption_colorUserListViewOpForeground 19
462 #define KviOption_colorUserListViewVoiceForeground 20
463 #define KviOption_colorUserListViewNormalForeground 21
464 #define KviOption_colorUserListViewSelectionBackground 22
465 #define KviOption_colorUserListViewSelectionForeground 23
466 #define KviOption_colorLabelBackground 24
467 #define KviOption_colorLabelForeground 25
468 #define KviOption_colorGlobalTransparencyFade 26
469 #define KviOption_colorIrcToolBarAppletBackground 27
470 #define KviOption_colorIrcToolBarAppletBorder 28
471 #define KviOption_colorIrcToolBarAppletFont 29
472 #define KviOption_colorTreeWindowListBackground 30
473 #define KviOption_colorTreeWindowListActiveBackground 31
474 #define KviOption_colorTreeWindowListForeground 32
475 #define KviOption_colorTreeWindowListActiveForeground 33
476 #define KviOption_colorTreeWindowListHighlight1Foreground 34
477 #define KviOption_colorTreeWindowListHighlight2Foreground 35
478 #define KviOption_colorTreeWindowListProgress 36
479 #define KviOption_colorUserListViewHalfOpForeground 37
480 #define KviOption_colorWindowListHighlight3Text 38
481 #define KviOption_colorWindowListHighlight4Text 39
482 #define KviOption_colorWindowListHighlight5Text 40
483 #define KviOption_colorTreeWindowListHighlight3Foreground 41
484 #define KviOption_colorTreeWindowListHighlight4Foreground 42
485 #define KviOption_colorTreeWindowListHighlight5Foreground 43
486 #define KviOption_colorUserListViewChanAdminForeground 44
487 #define KviOption_colorUserListViewUserOpForeground 45
488 #define KviOption_colorUserListViewGrid 46
489 #define KviOption_colorUserListViewChanOwnerForeground 47
490 #define KviOption_colorIrcViewMarkLine 48
492 #define KVI_NUM_COLOR_OPTIONS 49
494 #define KVI_PIXMAP_OPTIONS_PREFIX "pixmap"
495 #define KVI_PIXMAP_OPTIONS_PREFIX_LEN 6
497 #define KviOption_pixmapIrcViewBackground 0
498 #define KviOption_pixmapInputBackground 1
499 #define KviOption_pixmapUserListViewBackground 2
500 #define KviOption_pixmapLabelBackground 3
501 #define KviOption_pixmapMyAvatar 4
502 #define KviOption_pixmapIrcToolBarAppletBackground 5
503 #define KviOption_pixmapTreeWindowListBackground 6
504 #define KviOption_pixmapGlobalTransparencyBackground 7
505 #define KviOption_pixmapNotifierBackground 8
507 #define KVI_NUM_PIXMAP_OPTIONS 9
509 #define KVI_UINT_OPTIONS_PREFIX "uint"
510 #define KVI_UINT_OPTIONS_PREFIX_LEN 4
512 #define KviOption_uintIrcSocketTimeout 0
513 #define KviOption_uintModuleCleanupTimerInterval 1
514 #define KviOption_uintModuleCleanupTimeout 2
515 #define KviOption_uintMaxCtcpRequests 3
516 #define KviOption_uintCtcpFloodCheckInterval 4
517 #define KviOption_uintTotalConnectionTime 5
518 #define KviOption_uintDccSocketTimeout 6
519 #define KviOption_uintDccSendIdleStepInMSec 7
520 #define KviOption_uintDccSendPacketSize 8
521 #define KviOption_uintGlobalTransparencyParentFadeFactor 9
522 #define KviOption_uintGlobalTransparencyChildFadeFactor 10
523 #define KviOption_uintNotifyListCheckTimeInSecs 11
524 #define KviOption_uintSocketQueueFlushTimeout 12
525 #define KviOption_uintOutgoingTrafficLimitUSeconds 13
526 #define KviOption_uintNotifyListIsOnDelayTimeInSecs 14
527 #define KviOption_uintNotifyListUserhostDelayTimeInSecs 15
528 #define KviOption_uintTreeWindowListMinimumWidth 16
529 #define KviOption_uintAvatarOfferTimeoutInSecs 17
530 #define KviOption_uintIrcViewMaxBufferSize 18
531 #define KviOption_uintIrcViewToolTipTimeoutInMsec 19
532 #define KviOption_uintIrcViewToolTipHideTimeoutInMsec 20
533 #define KviOption_uintDccVoicePreBufferSize 21
534 #define KviOption_uintIdentdPort 22
535 #define KviOption_uintAvatarScaleWidth 23
536 #define KviOption_uintAvatarScaleHeight 24
537 #define KviOption_uintDccMinPort 25
538 #define KviOption_uintDccMaxPort 26
539 #define KviOption_uintSoundOfferTimeoutInSecs 27
540 #define KviOption_uintMaximumRequestedAvatarSize 28
541 #define KviOption_uintGlobalWindowOpacityPercent 29
542 #define KviOption_uintPasteDelay 30
543 #define KviOption_uintMaxDccSendTransfers 31 // 0 = unlimited!
544 #define KviOption_uintMaxDccSlots 32 // 0 = unlimited slots = windows
545 #define KviOption_uintTileMethod 33
546 #define KviOption_uintLagMeterHeartbeat 34
547 #define KviOption_uintLagAlarmTime 35
548 #define KviOption_uintWindowListButtonMinWidth 36
549 #define KviOption_uintOutputVerbosityLevel 37 // follows the verbosity constants defined below
550 #define KviOption_uintIrcContextAppletWidth 38
551 #define KviOption_uintMinHighlightLevel 39
552 #define KviOption_uintUserListViewGridType 40
553 #define KviOption_uintWindowListMaximumRows 41
554 #define KviOption_uintMaxAutoReconnectAttempts 42 // 0 = unlimited attempts
555 #define KviOption_uintAutoReconnectDelay 43
556 #define KviOption_uintMaxDccSendSpeed 44
557 #define KviOption_uintMaxDccRecvSpeed 45
558 #define KviOption_uintTimeStampForeground 46
559 #define KviOption_uintTimeStampBackground 47
560 #define KviOption_uintUserExperienceLevel 48
561 #define KviOption_uintClassicWindowListMaximumButtonWidth 49
562 #define KviOption_uintDefaultBanType 50
563 #define KviOption_uintIrcViewPixmapAlign 51
564 #define KviOption_uintUserListPixmapAlign 52
565 #define KviOption_uintToolBarAppletPixmapAlign 53
566 #define KviOption_uintTreeWindowListPixmapAlign 54
567 #define KviOption_uintInputPixmapAlign 55
568 #define KviOption_uintAutoFlushLogs 56
569 #define KviOption_uintMinTrayLowLevelMessage 57
570 #define KviOption_uintMinTrayHighLevelMessage 58
571 #define KviOption_uintIdentdOutputMode 59
572 #define KviOption_uintScaleAvatarsOnLoadHeight 60
573 #define KviOption_uintScaleAvatarsOnLoadWidth 61
574 #define KviOption_uintNotifierActiveTransparency 62
575 #define KviOption_uintNotifierInactiveTransparency 63
576 #define KviOption_uintIrcViewMarkerStyle 64
577 #define KviOption_uintIrcViewMarkerSize 65
578 #define KviOption_uintUrlMouseClickNum 66
579 #define KviOption_uintNotifierAutoHideTime 67
580 #define KviOption_uintLinesToPasteOnChannelJoin 68
581 #define KviOption_uintDaysIntervalToPasteOnChannelJoin 69
582 #define KviOption_uintLinesToPasteOnQueryJoin 70
583 #define KviOption_uintDaysIntervalToPasteOnQueryJoin 71
584 #define KviOption_uintSpacesToExpandTabulationInput 72
585 #define KviOption_uintUserIrcViewOwnForeground 73
586 #define KviOption_uintUserIrcViewOwnBackground 74
587 #define KviOption_uintNotifierPixmapAlign 75
588 #define KviOption_uintOutputDatetimeFormat 76
589 #define KviOption_uintOnJoinRequestsDelay 77
590 #define KviOption_uintToolBarIconSize 78
591 #define KviOption_uintToolBarButtonStyle 79
592 #define KviOption_uintMaximumBlowFishKeySize 80
593 #define KviOption_uintCustomCursorWidth 81
595 #define KVI_NUM_UINT_OPTIONS 82
597 namespace KviIdentdOutputMode
607 #define KVI_FONT_OPTIONS_PREFIX "font"
608 #define KVI_FONT_OPTIONS_PREFIX_LEN 4
610 #define KviOption_fontIrcView 0
611 #define KviOption_fontInput 1
612 #define KviOption_fontUserListView 2
613 #define KviOption_fontLabel 3
614 #define KviOption_fontApplication 4
615 #define KviOption_fontWindowList 5
616 #define KviOption_fontTreeWindowList 6
617 #define KviOption_fontNotifier 7
618 #define KviOption_fontNotifierTitle 8
620 #define KVI_NUM_FONT_OPTIONS 9
622 #define KVI_ICCOLOR_OPTIONS_PREFIX "iccolor"
623 #define KVI_ICCOLOR_OPTIONS_PREFIX_LEN 7
625 #define KVI_NUM_ICCOLOR_OPTIONS 8
628 #define KVI_MSGTYPE_OPTIONS_PREFIX "msgtype"
629 #define KVI_MSGTYPE_OPTIONS_PREFIX_LEN 7
631 #define KVI_NUM_MSGTYPE_OPTIONS 144
633 #define KVI_MIRCCOLOR_OPTIONS_PREFIX "mirccolor"
634 #define KVI_MIRCCOLOR_OPTIONS_PREFIX_LEN 9
636 #define KVI_NUM_MIRCCOLOR_OPTIONS 16
653 #define KVI_OPTION_BOOL(_idx) g_boolOptionsTable[_idx].option
654 #define KVI_OPTION_RECT(_idx) g_rectOptionsTable[_idx].option
655 #define KVI_OPTION_STRING(_idx) g_stringOptionsTable[_idx].option
656 #define KVI_OPTION_COLOR(_idx) g_colorOptionsTable[_idx].option
657 #define KVI_OPTION_PIXMAP(_idx) g_pixmapOptionsTable[_idx].option
658 #define KVI_OPTION_UINT(_idx) g_uintOptionsTable[_idx].option
659 #define KVI_OPTION_FONT(_idx) g_fontOptionsTable[_idx].option
660 #define KVI_OPTION_MSGTYPE(_idx) g_msgtypeOptionsTable[_idx].option
661 #define KVI_OPTION_MIRCCOLOR(_idx) g_mirccolorOptionsTable[_idx].option
662 #define KVI_OPTION_STRINGLIST(_idx) g_stringlistOptionsTable[_idx].option
663 #define KVI_OPTION_ICCOLOR(_idx) g_iccolorOptionsTable[_idx].option
666 #define KVI_VERBOSITY_LEVEL_MUTE 0
667 #define KVI_VERBOSITY_LEVEL_QUIET 1
668 #define KVI_VERBOSITY_LEVEL_NORMAL 2
669 #define KVI_VERBOSITY_LEVEL_VERBOSE 3
670 #define KVI_VERBOSITY_LEVEL_PARANOIC 4
672 #define _OUTPUT_PARANOIC (KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel) >= KVI_VERBOSITY_LEVEL_PARANOIC)
673 #define _OUTPUT_VERBOSE (KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel) >= KVI_VERBOSITY_LEVEL_VERBOSE)
674 #define _OUTPUT_QUIET (KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel) <= KVI_VERBOSITY_LEVEL_QUIET)
675 #define _OUTPUT_MUTE (KVI_OPTION_UINT(KviOption_uintOutputVerbosityLevel) <= KVI_VERBOSITY_LEVEL_MUTE)
677 #define START_TABLE_BOLD_ROW "<tr><td style=\"background-color: rgb(48,48,48); font-weight: bold; color: rgb(255,255,255); padding-left: 5px; padding-right: 5px;\">"
678 #define END_TABLE_BOLD_ROW "</td></tr>"
679 #define START_TABLE_NORMAL_ROW "<tr><td>"
681 #define SET_ANTI_ALIASING(p) (p).setRenderHint(QPainter::TextAntialiasing);
683 #define KVI_RECENT_CHANNELS_SEPARATOR ":"
685 #if defined(_KVI_OPTIONS_CPP_) || defined(_WANT_OPTION_FLAGS_)
688 #define KviOption_sectFlagNone 0
689 #define KviOption_sectFlagFrame 1
690 #define KviOption_sectFlagMdi 2
691 #define KviOption_sectFlagWindows 3
692 #define KviOption_sectFlagWindowList 4
693 #define KviOption_sectFlagIrcView 5
694 #define KviOption_sectFlagMsgType 6
695 #define KviOption_sectFlagMircColor 7
696 #define KviOption_sectFlagInput 8
697 #define KviOption_sectFlagUserParser 9
698 #define KviOption_sectFlagConnection 10
699 #define KviOption_sectFlagIrcSocket 11
700 #define KviOption_sectFlagUser 12
701 #define KviOption_sectFlagUserListView 13
702 #define KviOption_sectFlagLabel 14
703 #define KviOption_sectFlagModules 15
704 #define KviOption_sectFlagCtcp 16
705 #define KviOption_sectFlagDcc 17
706 #define KviOption_sectFlagGui 18
707 #define KviOption_sectFlagIrcToolBar 19
708 #define KviOption_sectFlagLogging 20
709 #define KviOption_sectFlagAntiSpam 21
710 #define KviOption_sectFlagAvatar 22
711 #define KviOption_sectFlagUrl 23
712 #define KviOption_sectFlagRecent 24
713 #define KviOption_sectFlagGeometry 25
714 #define KviOption_sectFlagNotifier 26
716 #define KVI_NUM_OPTION_SECT_FLAGS 27
718 #define KviOption_sectMask 255
721 #define KviOption_groupTheme (1 << 8)
723 #define KviOption_groupMask (255 << 8)
726 #define KviOption_resetNone 0
727 #define KviOption_resetUpdateNotifier (1 << 16)
728 #define KviOption_resetUpdateGui (1 << 17)
729 #define KviOption_resetUpdateWindowList (1 << 18)
730 #define KviOption_resetUpdateAppFont (1 << 19)
731 #define KviOption_resetUpdatePseudoTransparency (1 << 20)
732 #define KviOption_resetRestartNotifyList (1 << 21)
733 #define KviOption_resetRestartIdentd (1 << 22)
734 #define KviOption_resetReloadImages (1 << 23)
735 #define KviOption_resetRestartLagMeter (1 << 24)
736 #define KviOption_resetRecentChannels (1 << 25)
738 #define KviOption_resetMask (~(KviOption_sectMask | KviOption_groupMask))
741 #define KviOption_encodePath (1 << 25)
744 #endif //_KVI_OPTIONS_H_
KVIRC_API KviColorOption g_iccolorOptionsTable[KVI_NUM_ICCOLOR_OPTIONS]
Definition: KviOptions.cpp:522
Definition: KviOptions.h:601
#define KVIRC_API
Definition: kvi_settings.h:128
#define KVI_NUM_MIRCCOLOR_OPTIONS
Definition: KviOptions.h:636
#define KVI_NUM_COLOR_OPTIONS
Definition: KviOptions.h:492
KVIRC_API KviMessageTypeSettingsOption g_msgtypeOptionsTable[KVI_NUM_MSGTYPE_OPTIONS]
Definition: KviOptions.cpp:695
#define KVI_NUM_PIXMAP_OPTIONS
Definition: KviOptions.h:507
KVIRC_API KviFontOption g_fontOptionsTable[KVI_NUM_FONT_OPTIONS]
Definition: KviOptions.cpp:648
KVIRC_API KviUIntOption g_uintOptionsTable[KVI_NUM_UINT_OPTIONS]
Definition: KviOptions.cpp:557
#define KVI_NUM_ICCOLOR_OPTIONS
Definition: KviOptions.h:625
Definition: KviOptions.h:603
KVIRC_API KviStringOption g_stringOptionsTable[KVI_NUM_STRING_OPTIONS]
Definition: KviOptions.cpp:355
Definition: KviPixmap.h:33
#define KVI_NUM_STRING_OPTIONS
Definition: KviOptions.h:422
Definition: KviMessageTypeSettings.h:47
KVIRC_API KviColorOption g_colorOptionsTable[KVI_NUM_COLOR_OPTIONS]
Definition: KviOptions.cpp:464
KVIRC_API KviRectOption g_rectOptionsTable[KVI_NUM_RECT_OPTIONS]
Definition: KviOptions.cpp:54
#define KVI_NUM_BOOL_OPTIONS
Definition: KviOptions.h:356
Mode
Definition: KviOptions.h:599
KVIRC_API KviPixmapOption g_pixmapOptionsTable[KVI_NUM_PIXMAP_OPTIONS]
Definition: KviOptions.cpp:539
#define KVI_NUM_STRINGLIST_OPTIONS
Definition: KviOptions.h:437
#define DECLARE_OPTION_STRUCT(_cname, _type)
Definition: KviOptions.h:41
KVIRC_API KviBoolOption g_boolOptionsTable[KVI_NUM_BOOL_OPTIONS]
Definition: KviOptions.cpp:62
#define KVI_NUM_MSGTYPE_OPTIONS
Definition: KviOptions.h:631
KVIRC_API KviColorOption g_mirccolorOptionsTable[KVI_NUM_MIRCCOLOR_OPTIONS]
Definition: KviOptions.cpp:440
This file contains compile time settings.
Definition: KviOptions.h:602
#define KVI_NUM_FONT_OPTIONS
Definition: KviOptions.h:620
#define KVI_NUM_UINT_OPTIONS
Definition: KviOptions.h:595
#define KVI_NUM_RECT_OPTIONS
Definition: KviOptions.h:86
KVIRC_API KviStringListOption g_stringlistOptionsTable[KVI_NUM_STRINGLIST_OPTIONS]
Definition: KviOptions.cpp:424