From 53ff4acbf341b20b772bdd87d06fed30e0d1b28a Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 14 Jan 2014 17:25:20 +0000 Subject: minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@7647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Variables/src/variables.h | 56 +++++++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 17 deletions(-) (limited to 'plugins/Variables/src/variables.h') diff --git a/plugins/Variables/src/variables.h b/plugins/Variables/src/variables.h index ea8b5057ae..68acb88ad8 100644 --- a/plugins/Variables/src/variables.h +++ b/plugins/Variables/src/variables.h @@ -29,6 +29,9 @@ #include #include +#include +#include + #include #include #include @@ -63,7 +66,6 @@ #include "parse_str.h" #include "parse_system.h" #include "parse_variables.h" -#include "parse_xml.h" #define MODULENAME "Variables" @@ -84,8 +86,30 @@ #define COMMENT_STRING "#" // special tokens -#define SUBJECT "subject" -#define MIR_EXTRATEXT "extratext" +#define SUBJECT _T("subject") +#define MIR_EXTRATEXT _T("extratext") + +#define VAR_HELP_TEXT LPGENT("--- Special characters ---\r\n\r\n\ +The following characters have a special meaning in a formatting string:\r\n\r\n\ +?()\r\n\ +This will parse the function given the arguments, the result will be parsed again. Example: Today is ?cdate(yyyy/MM/dd).\r\n\r\n\ +!()\r\n\ +This will parse the function given the arguments, the result will not be parsed again. Example: Message waiting: !message(,first,rcvd,unread).\r\n\r\n\ +%%\r\n\ +This will parse the given field. Example: I installed Miranda at: %mirandapath%.\r\n\r\n\ +``\r\n\ +This will not parse the given string, any function, field or special character in the string will shown in the result without being translated. Example: Use `%mirandapath%` to show the installation path.\r\n\r\n\ +#\r\n\ +This will add a comment in the formatting string. Everything from the # character to the end of the line will be removed. Example: %dbprofile% #this is a useless comment.\r\n\r\n\r\n\ +--- Contacts ---\r\n\r\n\ +Whenever a functions requires a contact as an argument, you can specify it in two ways:\r\n\r\n\ +(1) Using a unique id (UIN for ICQ, email for MSN) or, a protocol id followed by a unique id in the form , for example or .\r\n\r\n\ +(2) Using the contact function:\r\n\ +?contact(x,y)\r\n\ +A contact will be searched which will have value x for its property y, y can be one of the following:\r\n\ +first, last, nick, email, id or display\r\n\r\n\ +For example: ?contact(miranda@hotmail.com,email) or ?contact(Miranda,nick). The contact function will return either a unique contact according to the arguments or nothing if none or multiple contacts exists with the given property.\ +") // options #define IDT_PARSE 1 @@ -153,32 +177,32 @@ int getContactFromString( CONTACTSINFO* ); int initContactModule(); int deinitContactModule(); // alias -int registerAliasTokens(); +void registerAliasTokens(); void unregisterAliasTokens(); // system -int registerSystemTokens(); +void registerSystemTokens(); // external -int registerExternalTokens(); +void registerExternalTokens(); // miranda -int registerMirandaTokens(); +void registerMirandaTokens(); // str -int registerStrTokens(); +void registerStrTokens(); // variables -int registerVariablesTokens(); +void registerVariablesTokens(); void unregisterVariablesTokens(); int clearVariableRegister(bool bAll); // logic -int registerLogicTokens(); +void registerLogicTokens(); // math -int registerMathTokens(); +void registerMathTokens(); // metacontacts -int registerMetaContactsTokens(); +void registerMetaContactsTokens(); // options -int OptionsInit(WPARAM wParam, LPARAM lParam); +int OptionsInit(WPARAM wParam, LPARAM); // reg exp -int registerRegExpTokens(); +void registerRegExpTokens(); // inet -int registerInetTokens(); +void registerInetTokens(); // help INT_PTR showHelpService(WPARAM wParam, LPARAM lParam); INT_PTR showHelpExService(WPARAM wParam, LPARAM lParam); @@ -187,5 +211,3 @@ int iconsChanged(WPARAM wParam, LPARAM lParam); int ttoi(TCHAR *string); TCHAR *itot(int num); - -extern DWORD g_mirandaVersion; -- cgit v1.2.3