diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/chan/libkvichan.cpp | 83 | ||||
| -rw-r--r-- | src/modules/list/libkvilist.cpp | 2 | ||||
| -rw-r--r-- | src/modules/logview/libkvilogview.cpp | 2 | ||||
| -rw-r--r-- | src/modules/math/libkvimath.cpp | 24 | ||||
| -rw-r--r-- | src/modules/my/libkvimy.cpp | 5 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_button.cpp | 1 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_comboBox.cpp | 1 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_hBox.cpp | 1 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_mainWindow.cpp | 1 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_progressBar.cpp | 3 | ||||
| -rw-r--r-- | src/modules/objects/KvsObject_xmlreader.cpp | 4 |
11 files changed, 91 insertions, 36 deletions
diff --git a/src/modules/chan/libkvichan.cpp b/src/modules/chan/libkvichan.cpp index 367cb3479..03cce9b16 100644 --- a/src/modules/chan/libkvichan.cpp +++ b/src/modules/chan/libkvichan.cpp @@ -75,6 +75,7 @@ static KviChannelWindow * chan_kvs_find_channel(KviKvsModuleFunctionCall * c, QS The second form returns the name of the channel specified by <window_id>.[br] This function works also on dead channels.[br] */ + static bool chan_kvs_fnc_name(KviKvsModuleFunctionCall * c) { QString szId; @@ -103,6 +104,7 @@ static bool chan_kvs_fnc_name(KviKvsModuleFunctionCall * c) @description: Returns the IRC URL for this channel. */ + static bool chan_kvs_fnc_getUrl(KviKvsModuleFunctionCall * c) { QString szId,url; @@ -145,6 +147,7 @@ static bool chan_kvs_fnc_getUrl(KviKvsModuleFunctionCall * c) Returns 1 if the channel specified by <window_id> is a dead channel and 0 otherwise.[br] The form without parameters works on the current window.[br] */ + static bool chan_kvs_fnc_isdead(KviKvsModuleFunctionCall * c) { QString szId; @@ -178,6 +181,7 @@ static bool chan_kvs_fnc_isdead(KviKvsModuleFunctionCall * c) This function works also on dead channels although the topic returned is the last topic seen while the channel wasn't dead.[br] */ + static bool chan_kvs_fnc_topic(KviKvsModuleFunctionCall * c) { QString szId; @@ -211,6 +215,7 @@ static bool chan_kvs_fnc_topic(KviKvsModuleFunctionCall * c) This function works also on dead channels although the information returned is the last information seen while the channel wasn't dead.[br] */ + static bool chan_kvs_fnc_topicsetby(KviKvsModuleFunctionCall * c) { QString szId; @@ -244,6 +249,7 @@ static bool chan_kvs_fnc_topicsetby(KviKvsModuleFunctionCall * c) This function works also on dead channels although the information returned is the last information seen while the channel wasn't dead.[br] */ + static bool chan_kvs_fnc_topicsetat(KviKvsModuleFunctionCall * c) { QString szId; @@ -275,6 +281,7 @@ static bool chan_kvs_fnc_topicsetat(KviKvsModuleFunctionCall * c) out-of-synch with the server just after the channel is joined. If the function is used prior to the channel's OnChannelSync event, a smaller user count than there really is will be returned. */ + static bool chan_kvs_fnc_usercount(KviKvsModuleFunctionCall * c) { QString szId; @@ -306,6 +313,7 @@ static bool chan_kvs_fnc_usercount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_ownercount(KviKvsModuleFunctionCall * c) { QString szId; @@ -337,6 +345,7 @@ static bool chan_kvs_fnc_ownercount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_admincount(KviKvsModuleFunctionCall * c) { QString szId; @@ -368,6 +377,7 @@ static bool chan_kvs_fnc_admincount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_opcount(KviKvsModuleFunctionCall * c) { QString szId; @@ -399,6 +409,7 @@ static bool chan_kvs_fnc_opcount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_voicecount(KviKvsModuleFunctionCall * c) { QString szId; @@ -430,6 +441,7 @@ static bool chan_kvs_fnc_voicecount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_halfopcount(KviKvsModuleFunctionCall * c) { QString szId; @@ -461,6 +473,7 @@ static bool chan_kvs_fnc_halfopcount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_useropcount(KviKvsModuleFunctionCall * c) { QString szId; @@ -492,6 +505,7 @@ static bool chan_kvs_fnc_useropcount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_bancount(KviKvsModuleFunctionCall * c) { QString szId; @@ -523,6 +537,7 @@ static bool chan_kvs_fnc_bancount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_banexceptioncount(KviKvsModuleFunctionCall * c) { QString szId; @@ -565,7 +580,6 @@ static bool chan_kvs_fnc_invitecount(KviKvsModuleFunctionCall * c) return true; } - /* @doc: chan.maskcount @type: @@ -586,6 +600,7 @@ static bool chan_kvs_fnc_invitecount(KviKvsModuleFunctionCall * c) if the channel is not synchronized with the server (as just after the join, for example) you might get a number that is actually smaller.[br] */ + static bool chan_kvs_fnc_maskcount(KviKvsModuleFunctionCall * c) { QString szId, szMode; @@ -615,6 +630,7 @@ static bool chan_kvs_fnc_maskcount(KviKvsModuleFunctionCall * c) If <window_id> is not specified the current window is used (assuming that it is a channel at all).[br] If the window is not a channel, a warning is printed and an empty string is returned.[br] */ + static bool chan_kvs_fnc_ison(KviKvsModuleFunctionCall * c) { QString szId,szNick; @@ -643,14 +659,15 @@ static bool chan_kvs_fnc_ison(KviKvsModuleFunctionCall * c) If the specified window is not a channel, a warning is printed and an empty string is returned.[br] If the specified user is not on the channel identified by <window_id>, an empty string is returned.[br] The possible user flags are:[br] - '!' for channel administrators[br] - '@' for ops[br] - '%' for halfops[br] - '+' for voiced users[br] - '-' for userops[br] + [b]![/b] for channel administrators[br] + [b]@[/b] for ops[br] + [b]%[/b] for halfops[br] + [b]+[/b] for voiced users[br] + [b]-[/b] for userops[br] If the user has more than one flag then the highest one is returned.[br] If the user has no flag at all then an empty string is returned. */ + static bool chan_kvs_fnc_getflag(KviKvsModuleFunctionCall * c) { QString szId,szNick; @@ -702,6 +719,7 @@ static bool __clbkname(KviKvsModuleFunctionCall * c) \ If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_isowner,isChanOwner) /* @@ -720,6 +738,7 @@ IS_KVS_FUNC(chan_kvs_fnc_isowner,isChanOwner) If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_isadmin,isChanAdmin) /* @@ -738,6 +757,7 @@ IS_KVS_FUNC(chan_kvs_fnc_isadmin,isChanAdmin) If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_isop,isOp) /* @@ -756,6 +776,7 @@ IS_KVS_FUNC(chan_kvs_fnc_isop,isOp) If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_isvoice,isVoice) /* @@ -774,6 +795,7 @@ IS_KVS_FUNC(chan_kvs_fnc_isvoice,isVoice) If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_ishalfop,isHalfOp) /* @@ -792,6 +814,7 @@ IS_KVS_FUNC(chan_kvs_fnc_ishalfop,isHalfOp) If the window is not a channel, a warning is printed and an empty string is returned.[br] Note that if the user is not on the channel at all, you will get 0 as return value.[br] */ + IS_KVS_FUNC(chan_kvs_fnc_isuserop,isUserOp) #define IS_ME_KVS_FUNC(__clbkname,__chanfunc) \ @@ -823,6 +846,7 @@ static bool __clbkname(KviKvsModuleFunctionCall * c) \ If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.isowner[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismeowner,isMeChanOwner) /* @@ -842,6 +866,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismeowner,isMeChanOwner) If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.isadmin[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismeadmin,isMeChanAdmin) /* @@ -861,6 +886,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismeadmin,isMeChanAdmin) If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.isop[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismeop,isMeOp) /* @@ -880,6 +906,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismeop,isMeOp) If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.ishalfop[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismehalfop,isMeHalfOp) /* @@ -899,6 +926,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismehalfop,isMeHalfOp) If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.isvoice[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismevoice,isMeVoice) /* @@ -918,6 +946,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismevoice,isMeVoice) If the window is not a channel, a warning is printed and an empty string is returned.[br] This function is a "shortcut" for [fnc]$chan.isuserop[/fnc]([fnc]$me[/fnc]).[br] */ + IS_ME_KVS_FUNC(chan_kvs_fnc_ismeuserop,isMeUserOp) /* @@ -937,6 +966,7 @@ IS_ME_KVS_FUNC(chan_kvs_fnc_ismeuserop,isMeUserOp) the current window is a channel at all).[br] If the window is not a channel, a warning is printed and an empty string is returned.[br] */ + static bool chan_kvs_fnc_mode(KviKvsModuleFunctionCall * c) { QString szId; @@ -975,6 +1005,7 @@ static bool chan_kvs_fnc_mode(KviKvsModuleFunctionCall * c) [fnc]$chan.mode[/fnc] [fnc]$chan.modeParam[/fnc] */ + static bool chan_kvs_fnc_key(KviKvsModuleFunctionCall * c) { QString szId; @@ -1008,6 +1039,7 @@ static bool chan_kvs_fnc_key(KviKvsModuleFunctionCall * c) [fnc]$chan.mode[/fnc] [fnc]$chan.modeParam[/fnc] */ + static bool chan_kvs_fnc_limit(KviKvsModuleFunctionCall * c) { QString szId; @@ -1047,6 +1079,7 @@ static bool chan_kvs_fnc_limit(KviKvsModuleFunctionCall * c) [fnc]$chan.key[/fnc] [fnc]$chan.limit[/fnc] */ + static bool chan_kvs_fnc_modeParam(KviKvsModuleFunctionCall * c) { QString szId; @@ -1077,13 +1110,13 @@ static bool chan_kvs_fnc_modeParam(KviKvsModuleFunctionCall * c) If the window designated by [window_id] is not a channel a warning is printed and an empty array is returned.[br] If [mask] is given, each user is added to the array only if it matches the [mask].[br] - [flags] may contain a subset of the letters "aovhnmi":[br] - "ovhn" are mode flags: the users are added to the array only if they are channel administrators ('a'), operators ('o'), - voiced users ('v'), half-operators ('h'), user-operators ('u') or unflagged ('n') users. (Unflagged means not operators, not - voiced and not half-operators). If none of the "ovhun" flags are used, KVIrc behaves like all five were passed.[br] - The flag 'm' causes the entire user masks to be added to the + [flags] may contain a subset of the letters [b]aovhnmi[/b]:[br] + [b]ovhn[/b] are mode flags: the users are added to the array only if they are channel administrators [b]a[/b], operators [b]o[/b], + voiced users [b]v[/b], half-operators [b]h[/b], user-operators [b]u[/b] or unflagged [b]n[/b] users. (Unflagged means not operators, not + voiced and not half-operators). If none of the [b]ovhun[/b] flags are used, KVIrc behaves like all five were passed.[br] + The flag [b]m[/b] causes the entire user masks to be added to the array entries, as known by KVIrc at the moment of this function call.[br] - The flag 'i' causes KVIrc to invert the match and add only the users that do NOT match [mask].[br] + The flag [b]i[/b] causes KVIrc to invert the match and add only the users that do NOT match [mask].[br] Please note that on really large channels this function may be time consuming (especially if [mask] is used): use with care.[br] @example: @@ -1116,6 +1149,7 @@ static bool chan_kvs_fnc_modeParam(KviKvsModuleFunctionCall * c) [/example] */ + static bool chan_kvs_fnc_users(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szFlags; @@ -1241,6 +1275,7 @@ next_item: [fnc]$chan.invitelist[/fnc] [fnc]$chan.banexceptionlist[/fnc] */ + static bool chan_kvs_fnc_banlist(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szFlags; @@ -1288,6 +1323,7 @@ static bool chan_kvs_fnc_banlist(KviKvsModuleFunctionCall * c) [fnc]$chan.invitelist[/fnc] [fnc]$chan.masklist[/fnc] */ + static bool chan_kvs_fnc_banexceptionlist(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szFlags; @@ -1335,6 +1371,7 @@ static bool chan_kvs_fnc_banexceptionlist(KviKvsModuleFunctionCall * c) [fnc]$chan.masklist[/fnc] [fnc]$chan.banexceptionlist[/fnc] */ + static bool chan_kvs_fnc_invitelist(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szFlags; @@ -1382,6 +1419,7 @@ static bool chan_kvs_fnc_invitelist(KviKvsModuleFunctionCall * c) [fnc]$chan.invitelist[/fnc] [fnc]$chan.banexceptionlist[/fnc] */ + static bool chan_kvs_fnc_masklist(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szMode; @@ -1430,6 +1468,7 @@ static bool chan_kvs_fnc_masklist(KviKvsModuleFunctionCall * c) If the window designated by [window_id] is not a channel a warning is printed and an empty string is returned.[br] This function is useful to determine if a ban set on the channel matches an user.[br] */ + static bool chan_kvs_fnc_matchban(KviKvsModuleFunctionCall * c) { QString szWinId,szMask; @@ -1483,6 +1522,7 @@ static bool chan_kvs_fnc_matchban(KviKvsModuleFunctionCall * c) If the window designated by [window_id] is not a channel a warning is printed and an empty string is returned.[br] This function is useful to determine if a ban exception set on the channel matches an user.[br] */ + static bool chan_kvs_fnc_matchbanexception(KviKvsModuleFunctionCall * c) { QString szWinId,szMask; @@ -1536,6 +1576,7 @@ static bool chan_kvs_fnc_matchbanexception(KviKvsModuleFunctionCall * c) If the window designated by [window_id] is not a channel a warning is printed and an empty string is returned.[br] This function is useful to determine if a invite set on the channel matches an user.[br] */ + static bool chan_kvs_fnc_matchinvite(KviKvsModuleFunctionCall * c) { QString szWinId,szMask; @@ -1595,6 +1636,7 @@ static bool chan_kvs_fnc_matchinvite(KviKvsModuleFunctionCall * c) If the window designated by [window_id] is not a channel a warning is printed and an empty string is returned.[br] This function is useful to determine if a "mute ban" set on the channel matches an user.[br] */ + static bool chan_kvs_fnc_matchqban(KviKvsModuleFunctionCall * c) { QString szWinId,szMask; @@ -1650,6 +1692,7 @@ static bool chan_kvs_fnc_matchqban(KviKvsModuleFunctionCall * c) Please note that some IRC servers use channel list modes not only to store masks, but also for other data such as nicknames. This function should be able to match them as long as they are strings.[br] */ + static bool chan_kvs_fnc_matchmask(KviKvsModuleFunctionCall * c) { QString szWinId,szMask,szMode; @@ -1712,8 +1755,9 @@ static bool chan_kvs_fnc_matchmask(KviKvsModuleFunctionCall * c) in that case this function will return the level of the highest mode applied to the user.[br] Note: Don't rely on this number being any particular exact value except - for the completely modeless users (in which case this function will return always '0'). + for the completely modeless users (in which case this function will return always [b]0[/b]). */ + static bool chan_kvs_fnc_usermodelevel(KviKvsModuleFunctionCall * c) { QString szNick,szWinId; @@ -1742,13 +1786,14 @@ static bool chan_kvs_fnc_usermodelevel(KviKvsModuleFunctionCall * c) @description: Returns the UNIX time at which the user specified by <nickname> has joined the channel specified by <window_id>.[br] If <window_id> is not passed, the current window is used.[br] - If the specified window is not a channel, a warning is printed and '0' is returned.[br] - '0' is also returned when the user's join time is unknown: this is true + If the specified window is not a channel, a warning is printed and [b]0[/b] is returned.[br] + [b]0[/b] is also returned when the user's join time is unknown: this is true for all the users that were on the channel before the local user has joined it (e.g. you know the join time only for users that YOU see joining).[br] @seealso: [fnc]$unixTime[/fnc], [fnc]$chan.userLastActionTime[/fnc] */ + static bool chan_kvs_fnc_userjointime(KviKvsModuleFunctionCall * c) { QString szNick,szWinId; @@ -1778,13 +1823,14 @@ static bool chan_kvs_fnc_userjointime(KviKvsModuleFunctionCall * c) Returns the UNIX time at which the user specified by <nickname> has performed some kind of action on the channel specified by <window_id>.[br] If <window_id> is not passed, the current window is used.[br] - If the specified window is not a channel, a warning is printed and '0' is returned.[br] - '0' is also returned when the user's last action time is unknown: this is true + If the specified window is not a channel, a warning is printed and [b]0[/b] is returned.[br] + [b]0[/b] is also returned when the user's last action time is unknown: this is true for all the users that were on the channel before the local user has joined it and have performed no actions since that moment. @seealso: [fnc]$unixTime[/fnc], [fnc]$chan.userJoinTime[/fnc] */ + static bool chan_kvs_fnc_userlastactiontime(KviKvsModuleFunctionCall * c) { QString szNick,szWinId; @@ -1813,8 +1859,9 @@ static bool chan_kvs_fnc_userlastactiontime(KviKvsModuleFunctionCall * c) @description: Returns the common channel with the user specified by <nickname>.[br] If <context_id> is not passed, the current context is used.[br] - If the specified window is not a channel, a warning is printed and '0' is returned. + If the specified window is not a channel, a warning is printed and [b]0[/b] is returned. */ + static bool chan_kvs_fnc_common(KviKvsModuleFunctionCall * c) { QString szNick, szChans; diff --git a/src/modules/list/libkvilist.cpp b/src/modules/list/libkvilist.cpp index d5fd15a20..6f84116f1 100644 --- a/src/modules/list/libkvilist.cpp +++ b/src/modules/list/libkvilist.cpp @@ -49,6 +49,8 @@ KviPointerList<ListWindow> * g_pListWindowList = 0; The channel list window is opened automatically when a channel list is requested from the server. */ + + static bool list_kvs_cmd_open(KviKvsModuleCommandCall * c) { diff --git a/src/modules/logview/libkvilogview.cpp b/src/modules/logview/libkvilogview.cpp index b505547e4..f4742b98d 100644 --- a/src/modules/logview/libkvilogview.cpp +++ b/src/modules/logview/libkvilogview.cpp @@ -57,6 +57,8 @@ LogViewWindow * g_pLogViewWindow = 0; Opens a window that allows visual browsing of the logs stored on disk. */ + + static bool logview_kvs_cmd_open(KviKvsModuleCommandCall * c) { QString dummy; diff --git a/src/modules/math/libkvimath.cpp b/src/modules/math/libkvimath.cpp index 61af55c97..a8cffdcf0 100644 --- a/src/modules/math/libkvimath.cpp +++ b/src/modules/math/libkvimath.cpp @@ -71,6 +71,7 @@ static bool __fncname(KviKvsModuleFunctionCall * c) \ @description: Returns the sinus of the specified angle in radiants. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_sin,"angle",sin) /* @@ -86,6 +87,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_sin,"angle",sin) @description: Returns the cosinus of the specified angle in radiants. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_cos,"angle",cos) /* @@ -101,6 +103,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_cos,"angle",cos) @description: Returns the tangent of the specified angle in radiants. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_tan,"angle",tan) /* @@ -116,6 +119,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_tan,"angle",tan) @description: Returns the angle in radiants that has the specified sinus value. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_asin,"sinus",asin) /* @@ -131,8 +135,8 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_asin,"sinus",asin) @description: Returns the angle in radiants that has the specified cosinus value. */ -MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_acos,"cosinus",acos) +MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_acos,"cosinus",acos) /* @doc: math.atan @@ -147,6 +151,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_acos,"cosinus",acos) @description: Returns the angle in radiants that has the specified tangent value. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_atan,"tangent",atan) /* @@ -162,6 +167,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_atan,"tangent",atan) @description: Returns the square root of the specified number. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_sqrt,"number",sqrt) /* @@ -177,6 +183,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_sqrt,"number",sqrt) @description: Returns the cube root of the specified number. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_cbrt,"number",cbrt) /* @@ -192,6 +199,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_cbrt,"number",cbrt) @description: Returns the absolute value of the specified number. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_abs,"number",fabs) /* @@ -207,6 +215,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_abs,"number",fabs) @description: Rounds down the number to the nearest integer. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_floor,"number",floor) /* @@ -222,6 +231,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_floor,"number",floor) @description: Rounds up the number to the nearest integer. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_ceil,"number",ceil) /* @@ -237,6 +247,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_ceil,"number",ceil) @description: Returns the exponential of the specified number. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_exp,"number",exp) /* @@ -255,7 +266,6 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_exp,"number",exp) MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_log,"number",log) - /* @doc: math.log10 @type: @@ -269,6 +279,7 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_log,"number",log) @description: Returns the base 10 logarithm of the specified number. */ + MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_log10,"number",log10) /* @@ -283,9 +294,10 @@ MATH_KVS_1PARAM_FUNCTION(math_kvs_fnc_log10,"number",log10) <boolean> $math.isnan(<value:real>) @description: Checks if the specified value is a valid number - or NaN (Not a Number). NaN is returned by several + or NaN ([b]N[/b]ot [b]a[/b] [b]N[/b]umber). NaN is returned by several math functions when the result would be undefined. */ + static bool math_kvs_fnc_isnan(KviKvsModuleFunctionCall * c) { kvs_real_t dReal; @@ -309,6 +321,7 @@ static bool math_kvs_fnc_isnan(KviKvsModuleFunctionCall * c) @description: Checks if the specified value is the infinity. */ + static bool math_kvs_fnc_isinf(KviKvsModuleFunctionCall * c) { kvs_real_t dReal; @@ -319,7 +332,6 @@ static bool math_kvs_fnc_isinf(KviKvsModuleFunctionCall * c) return true; } - /* @doc: math.pow @type: @@ -333,6 +345,7 @@ static bool math_kvs_fnc_isinf(KviKvsModuleFunctionCall * c) @description: Returns a to the power of b */ + static bool math_kvs_fnc_pow(KviKvsModuleFunctionCall * c) { kvs_real_t dA,dB; @@ -357,6 +370,7 @@ static bool math_kvs_fnc_pow(KviKvsModuleFunctionCall * c) @description: Returns the value of pi. */ + #ifdef COMPILE_ON_WINDOWS static bool math_kvs_fnc_pi(KviKvsModuleFunctionCall * c) { @@ -370,6 +384,7 @@ static bool math_kvs_fnc_pi(KviKvsModuleFunctionCall * c) return true; } #endif + /* @doc: math.e @type: @@ -384,7 +399,6 @@ static bool math_kvs_fnc_pi(KviKvsModuleFunctionCall * c) Returns the value of the Euler constant e. */ - #ifdef COMPILE_ON_WINDOWS static bool math_kvs_fnc_e(KviKvsModuleFunctionCall * c) { diff --git a/src/modules/my/libkvimy.cpp b/src/modules/my/libkvimy.cpp index 0ae9a7cfa..97f0c068f 100644 --- a/src/modules/my/libkvimy.cpp +++ b/src/modules/my/libkvimy.cpp @@ -51,6 +51,7 @@ Idle* g_pIdle; wnd = g_pApp->findConsole(uiWnd); \ if(!wnd)c->warning(__tr2qs("No such IRC context (%d)"),uiWnd); \ } + /* @doc: my.nick @type: @@ -69,7 +70,6 @@ Idle* g_pIdle; Note that this function is different from [fnc]$me[/fnc] that will work also in a DCC CHAT.[br] */ - static bool my_kvs_fnc_nick(KviKvsModuleFunctionCall * c) { GET_KVS_CONSOLE @@ -224,7 +224,6 @@ static bool my_kvs_fnc_user(KviKvsModuleFunctionCall * c) in that irc_context.[br] */ - static bool my_kvs_fnc_host(KviKvsModuleFunctionCall * c) { GET_KVS_CONSOLE @@ -256,7 +255,6 @@ static bool my_kvs_fnc_host(KviKvsModuleFunctionCall * c) in that irc_context.[br] */ - static bool my_kvs_fnc_ip(KviKvsModuleFunctionCall * c) { GET_KVS_CONSOLE @@ -297,7 +295,6 @@ static bool my_kvs_fnc_serverIsIPV6(KviKvsModuleFunctionCall * c) return true; } - /* @doc: my.serverIsSSL @type: diff --git a/src/modules/objects/KvsObject_button.cpp b/src/modules/objects/KvsObject_button.cpp index 75030751f..1b70ea902 100644 --- a/src/modules/objects/KvsObject_button.cpp +++ b/src/modules/objects/KvsObject_button.cpp @@ -69,7 +69,6 @@ This property holds whether the label will scale its contents to fill all available space. */ - KVSO_BEGIN_REGISTERCLASS(KvsObject_button,"button","widget") KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_button,setText) diff --git a/src/modules/objects/KvsObject_comboBox.cpp b/src/modules/objects/KvsObject_comboBox.cpp index f85f1f249..454df7e0a 100644 --- a/src/modules/objects/KvsObject_comboBox.cpp +++ b/src/modules/objects/KvsObject_comboBox.cpp @@ -98,6 +98,7 @@ This signal is emitted by the default implementation of [classfnc]$activatedEvent[/classfnc](). */ + KVSO_BEGIN_REGISTERCLASS(KvsObject_comboBox,"combobox","widget") KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_comboBox,insertItem) KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_comboBox,changeItem) diff --git a/src/modules/objects/KvsObject_hBox.cpp b/src/modules/objects/KvsObject_hBox.cpp index 44d0089bb..190055c96 100644 --- a/src/modules/objects/KvsObject_hBox.cpp +++ b/src/modules/objects/KvsObject_hBox.cpp @@ -83,7 +83,6 @@ const int align_cod[] = { Valid flags are: Right, Left, Top, Bottom, HCenter, VCenter, Center, Justify */ - KVSO_BEGIN_REGISTERCLASS(KvsObject_hBox,"hbox","widget") KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_hBox,setMargin) KVSO_REGISTER_HANDLER_BY_NAME(KvsObject_hBox,setSpacing) diff --git a/src/modules/objects/KvsObject_mainWindow.cpp b/src/modules/objects/KvsObject_mainWindow.cpp index 35dc96908..f5c35eaa2 100644 --- a/src/modules/objects/KvsObject_mainWindow.cpp +++ b/src/modules/objects/KvsObject_mainWindow.cpp @@ -30,7 +30,6 @@ #include "KviLocale.h" #include "KviIconManager.h" - /* @doc: mainwindow @keyterms: diff --git a/src/modules/objects/KvsObject_progressBar.cpp b/src/modules/objects/KvsObject_progressBar.cpp index 27fc1f287..43335eef3 100644 --- a/src/modules/objects/KvsObject_progressBar.cpp +++ b/src/modules/objects/KvsObject_progressBar.cpp @@ -31,9 +31,6 @@ #include "KviIconManager.h" #include <QProgressBar> - - - /* @doc: progressbar @keyterms: diff --git a/src/modules/objects/KvsObject_xmlreader.cpp b/src/modules/objects/KvsObject_xmlreader.cpp index bda1f651f..bda202b57 100644 --- a/src/modules/objects/KvsObject_xmlreader.cpp +++ b/src/modules/objects/KvsObject_xmlreader.cpp @@ -28,7 +28,6 @@ #include "KviKvsVariantList.h" #include "KviKvsHash.h" - /* @doc: xmlreader @keyterms: @@ -61,7 +60,7 @@ relevant on* events (see below) will be triggered. $parse will return $true when the parsing terminates successfully or $false if it aborts for some reason (unrecoverable error - in the document, user abort etc...). + in the document, user abort etc.). If this function return $false then you can call $lastError() to obtain a descriptive error message. !fn: <string> $lastError() @@ -116,7 +115,6 @@ The default implementation does nothing besides returning $true. */ - #ifndef QT_NO_XML #include <qxml.h> |
