summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/SimpleStatusMsg/res/Version.rc38
-rw-r--r--plugins/SimpleStatusMsg/res/resource.rc277
-rw-r--r--plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj13
-rw-r--r--plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters9
-rw-r--r--plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj13
-rw-r--r--plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters9
-rw-r--r--plugins/SimpleStatusMsg/src/Version.h14
-rw-r--r--plugins/SimpleStatusMsg/src/awaymsg.cpp2
-rw-r--r--plugins/SimpleStatusMsg/src/commonheaders.h41
-rw-r--r--plugins/SimpleStatusMsg/src/main.cpp21
-rw-r--r--plugins/SimpleStatusMsg/src/msgbox.cpp2
-rw-r--r--plugins/SimpleStatusMsg/src/options.cpp6
-rw-r--r--plugins/SimpleStatusMsg/src/simplestatusmsg.h1
-rw-r--r--plugins/SimpleStatusMsg/src/stdafx.cpp18
-rw-r--r--plugins/SimpleStatusMsg/src/utils.cpp2
15 files changed, 247 insertions, 219 deletions
diff --git a/plugins/SimpleStatusMsg/res/Version.rc b/plugins/SimpleStatusMsg/res/Version.rc
new file mode 100644
index 0000000000..5bfbab4754
--- /dev/null
+++ b/plugins/SimpleStatusMsg/res/Version.rc
@@ -0,0 +1,38 @@
+// Microsoft Visual C++ generated resource script.
+//
+#ifdef APSTUDIO_INVOKED
+#error this file is not editable by Microsoft Visual C++
+#endif //APSTUDIO_INVOKED
+
+#include "afxres.h"
+#include "..\src\version.h"
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION __FILEVERSION_STRING
+ PRODUCTVERSION __FILEVERSION_STRING
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x0L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "000004b0"
+ BEGIN
+ VALUE "FileDescription", __DESCRIPTION
+ VALUE "InternalName", __PLUGIN_NAME
+ VALUE "LegalCopyright", __COPYRIGHT
+ VALUE "OriginalFilename", __FILENAME
+ VALUE "ProductName", __PLUGIN_NAME
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x0, 1200
+ END
+END
diff --git a/plugins/SimpleStatusMsg/res/resource.rc b/plugins/SimpleStatusMsg/res/resource.rc
index bc867a6823..8b5f91b33e 100644
--- a/plugins/SimpleStatusMsg/res/resource.rc
+++ b/plugins/SimpleStatusMsg/res/resource.rc
@@ -21,57 +21,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#pragma code_page(1250)
#endif //_WIN32
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,9,0,4
- PRODUCTVERSION 1,9,0,4
- FILEFLAGSMASK 0x3fL
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x40004L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "000004b0"
- BEGIN
- VALUE "Comments", "Licensed under the terms of the GNU General Public License"
- VALUE "CompanyName", "Bartosz 'Dezeath' Białek, Harven"
- VALUE "FileDescription", "Simple Status Message plugin for Miranda NG"
- VALUE "FileVersion", "1.9.0.4"
- VALUE "InternalName", "simplestatusmsg"
- VALUE "LegalCopyright", "Copyright © 2006-2011 Bartosz Białek, © 2005 Harven"
- VALUE "OriginalFilename", "simplestatusmsg.dll"
- VALUE "ProductName", "Simple Status Message"
- VALUE "ProductVersion", "1.9.0.4"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x0, 1200
- END
-END
-
-#endif // Neutral resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// Polish resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_PLK)
-#ifdef _WIN32
-LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
-#pragma code_page(1250)
-#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
@@ -138,132 +87,6 @@ BEGIN
DEFPUSHBUTTON "&Cancel",IDCANCEL,55,6,50,14,BS_CENTER | BS_VCENTER
END
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// DESIGNINFO
-//
-
-#ifdef APSTUDIO_INVOKED
-GUIDELINES DESIGNINFO
-BEGIN
- IDD_READAWAYMSG, DIALOG
- BEGIN
- LEFTMARGIN, 5
- RIGHTMARGIN, 182
- TOPMARGIN, 5
- BOTTOMMARGIN, 67
- END
-
- IDD_AWAYMSGBOX, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 201
- TOPMARGIN, 7
- BOTTOMMARGIN, 83
- END
-
- IDD_COPY, DIALOG
- BEGIN
- LEFTMARGIN, 7
- RIGHTMARGIN, 152
- TOPMARGIN, 7
- BOTTOMMARGIN, 18
- END
-END
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Icon
-//
-
-// Icon with lowest ID value placed first to ensure application icon
-// remains consistent on all systems.
-IDI_CROSS ICON "cross.ico"
-IDI_HISTORY ICON "history.ico"
-IDI_MESSAGE ICON "msg.ico"
-IDI_PLUS ICON "plus.ico"
-IDI_CHIST ICON "cbook.ico"
-IDI_COPY ICON "copy.ico"
-IDI_CSMSG ICON "csmsg.ico"
-IDI_GOTOURL ICON "gotourl.ico"
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Menu
-//
-
-IDR_EDITMENU MENU
-BEGIN
- POPUP ""
- BEGIN
- MENUITEM "%time%", IDM_VTIME
- MENUITEM "%date%", IDM_VDATE
- MENUITEM "%winampsong%", IDM_VWINAMPSONG
- MENUITEM "%rand(x,y)%", IDM_VRANDXY
- MENUITEM "%randmsg%", IDM_VRANDMSG
- MENUITEM "%randdefmsg%", IDM_VRANDDEFMSG
- MENUITEM SEPARATOR
- POPUP "Fortune"
- BEGIN
- MENUITEM "%fortunemsg%", ID__FORTUNE
- MENUITEM "%protofortunemsg%", ID__FORTUNEAWAYMSG_PROTOFORTUNEMSG
- MENUITEM "%statusfortunemsg%", ID__FORTUNEAWAYMSG_STATUSFORTUNEMSG
- END
- POPUP "Variables"
- BEGIN
- MENUITEM "?cinfo(contact,property)", ID__VARIABLES_CINFOCONTACTPROPERTY
- MENUITEM "?contact(string,property)", ID__VARIABLES_CONTACTSTRINGPROPERTY
- MENUITEM "?mstatus(protocol)", ID__VARIABLES_MSTATUSPROTOCOL
- MENUITEM "?lsdate(contact,format)", ID__VARIABLES_LSDATECONTACTFORMAT
- MENUITEM "?lsstatus(contact)", ID__VARIABLES_LSSTATUSCONTACT
- MENUITEM "?lstime(contact,format)", ID__VARIABLES_LSTIMECONTACTFORMAT
- MENUITEM "?dbsetting(contact,module,setting)", ID__VARIABLES_DBSETTINGCONTACTMODULESETTING
- MENUITEM "?txtfile(file,line)", ID__VARIABLES_TXTFILEFILELINE
- MENUITEM "?if(condition,true,false)", ID__VARIABLES_IFCONDITIONTRUEFALSE
- MENUITEM "?strcmp(string1,string2)", ID__VARIABLES_STRCMPSTRING1STRING2
- MENUITEM "?stricmp(string1,string2)", ID__VARIABLES_STRICMPSTRING1STRING2
- MENUITEM "?cdate(format)", ID__VARIABLES_CDATEFORMAT
- MENUITEM "?ctime(format)", ID__VARIABLES_CTIMEFORMAT
- MENUITEM "?replace(sub,string1,string2)", ID__VARIABLES_REPLACESUBSTRING1STRING2
- MENUITEM "?lower(string)", ID__VARIABLES_LOWERSTRING
- MENUITEM "?upper(string)", ID__VARIABLES_UPPERSTRING
- MENUITEM "?scroll(string,numchars,numchars)", ID__VARIABLES_SCROLLSTRINGNUMCHARSNUMCHARS
- MENUITEM SEPARATOR
- MENUITEM "More variables...", ID__VARIABLES_MOREVARIABLES
- END
- MENUITEM "Fortune", ID__FORTUNEAWAYMSG
- MENUITEM "Variables", ID__VARIABLES
- MENUITEM SEPARATOR
- MENUITEM "Cut", IDM_CUT
- MENUITEM "Copy", IDM_COPY
- MENUITEM "Paste", IDM_PASTE
- MENUITEM "Delete", IDM_DELETE
- MENUITEM SEPARATOR
- MENUITEM "Select All", IDM_SELECTALL
- END
-END
-
-#endif // Polish resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Dialog
-//
-
IDD_OPT_GENERAL DIALOGEX 0, 0, 307, 216
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
@@ -386,6 +209,30 @@ END
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
+ IDD_READAWAYMSG, DIALOG
+ BEGIN
+ LEFTMARGIN, 5
+ RIGHTMARGIN, 182
+ TOPMARGIN, 5
+ BOTTOMMARGIN, 67
+ END
+
+ IDD_AWAYMSGBOX, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 201
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 83
+ END
+
+ IDD_COPY, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 152
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 18
+ END
+
IDD_OPT_GENERAL, DIALOG
BEGIN
LEFTMARGIN, 7
@@ -420,7 +267,81 @@ BEGIN
END
#endif // APSTUDIO_INVOKED
-#endif // English (U.S.) resources
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_CROSS ICON "cross.ico"
+IDI_HISTORY ICON "history.ico"
+IDI_MESSAGE ICON "msg.ico"
+IDI_PLUS ICON "plus.ico"
+IDI_CHIST ICON "cbook.ico"
+IDI_COPY ICON "copy.ico"
+IDI_CSMSG ICON "csmsg.ico"
+IDI_GOTOURL ICON "gotourl.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Menu
+//
+
+IDR_EDITMENU MENU
+BEGIN
+ POPUP ""
+ BEGIN
+ MENUITEM "%time%", IDM_VTIME
+ MENUITEM "%date%", IDM_VDATE
+ MENUITEM "%winampsong%", IDM_VWINAMPSONG
+ MENUITEM "%rand(x,y)%", IDM_VRANDXY
+ MENUITEM "%randmsg%", IDM_VRANDMSG
+ MENUITEM "%randdefmsg%", IDM_VRANDDEFMSG
+ MENUITEM SEPARATOR
+ POPUP "Fortune"
+ BEGIN
+ MENUITEM "%fortunemsg%", ID__FORTUNE
+ MENUITEM "%protofortunemsg%", ID__FORTUNEAWAYMSG_PROTOFORTUNEMSG
+ MENUITEM "%statusfortunemsg%", ID__FORTUNEAWAYMSG_STATUSFORTUNEMSG
+ END
+ POPUP "Variables"
+ BEGIN
+ MENUITEM "?cinfo(contact,property)", ID__VARIABLES_CINFOCONTACTPROPERTY
+ MENUITEM "?contact(string,property)", ID__VARIABLES_CONTACTSTRINGPROPERTY
+ MENUITEM "?mstatus(protocol)", ID__VARIABLES_MSTATUSPROTOCOL
+ MENUITEM "?lsdate(contact,format)", ID__VARIABLES_LSDATECONTACTFORMAT
+ MENUITEM "?lsstatus(contact)", ID__VARIABLES_LSSTATUSCONTACT
+ MENUITEM "?lstime(contact,format)", ID__VARIABLES_LSTIMECONTACTFORMAT
+ MENUITEM "?dbsetting(contact,module,setting)", ID__VARIABLES_DBSETTINGCONTACTMODULESETTING
+ MENUITEM "?txtfile(file,line)", ID__VARIABLES_TXTFILEFILELINE
+ MENUITEM "?if(condition,true,false)", ID__VARIABLES_IFCONDITIONTRUEFALSE
+ MENUITEM "?strcmp(string1,string2)", ID__VARIABLES_STRCMPSTRING1STRING2
+ MENUITEM "?stricmp(string1,string2)", ID__VARIABLES_STRICMPSTRING1STRING2
+ MENUITEM "?cdate(format)", ID__VARIABLES_CDATEFORMAT
+ MENUITEM "?ctime(format)", ID__VARIABLES_CTIMEFORMAT
+ MENUITEM "?replace(sub,string1,string2)", ID__VARIABLES_REPLACESUBSTRING1STRING2
+ MENUITEM "?lower(string)", ID__VARIABLES_LOWERSTRING
+ MENUITEM "?upper(string)", ID__VARIABLES_UPPERSTRING
+ MENUITEM "?scroll(string,numchars,numchars)", ID__VARIABLES_SCROLLSTRINGNUMCHARSNUMCHARS
+ MENUITEM SEPARATOR
+ MENUITEM "More variables...", ID__VARIABLES_MOREVARIABLES
+ END
+ MENUITEM "Fortune", ID__FORTUNEAWAYMSG
+ MENUITEM "Variables", ID__VARIABLES
+ MENUITEM SEPARATOR
+ MENUITEM "Cut", IDM_CUT
+ MENUITEM "Copy", IDM_COPY
+ MENUITEM "Paste", IDM_PASTE
+ MENUITEM "Delete", IDM_DELETE
+ MENUITEM SEPARATOR
+ MENUITEM "Select All", IDM_SELECTALL
+ END
+END
+
+
+#endif // Neutral resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj
index 07d53ae21b..78a0c0555b 100644
--- a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj
+++ b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj
@@ -81,6 +81,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -107,6 +109,8 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -135,6 +139,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -166,6 +172,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -189,15 +197,20 @@
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\msgbox.cpp" />
<ClCompile Include="src\options.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h" />
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\simplestatusmsg.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters
index c797e51b5e..c9e41148e2 100644
--- a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters
+++ b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters
@@ -30,6 +30,9 @@
<ClCompile Include="src\utils.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h">
@@ -41,10 +44,16 @@
<ClInclude Include="src\simplestatusmsg.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj
index bc37126e23..d0c95bec3d 100644
--- a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj
+++ b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj
@@ -85,6 +85,8 @@
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -111,6 +113,8 @@
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -139,6 +143,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -170,6 +176,8 @@
<FloatingPointModel>Fast</FloatingPointModel>
<WarningLevel>Level3</WarningLevel>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>commonheaders.h</PrecompiledHeaderFile>
</ClCompile>
<ResourceCompile>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
@@ -193,15 +201,20 @@
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\msgbox.cpp" />
<ClCompile Include="src\options.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h" />
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\simplestatusmsg.h" />
+ <ClInclude Include="src\Version.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters
index c797e51b5e..c9e41148e2 100644
--- a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters
+++ b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters
@@ -30,6 +30,9 @@
<ClCompile Include="src\utils.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\commonheaders.h">
@@ -41,10 +44,16 @@
<ClInclude Include="src\simplestatusmsg.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="src\Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
</Project> \ No newline at end of file
diff --git a/plugins/SimpleStatusMsg/src/Version.h b/plugins/SimpleStatusMsg/src/Version.h
new file mode 100644
index 0000000000..8202a98614
--- /dev/null
+++ b/plugins/SimpleStatusMsg/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 1
+#define __MINOR_VERSION 9
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 4
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Simple status message"
+#define __FILENAME "SimpleStatusMsg.dll"
+#define __DESCRIPTION "Provides a simple way to set status and away messages."
+#define __AUTHOR "Bartosz 'Dezeath' Białek, Harven"
+#define __AUTHOREMAIL "dezred@gmail.com"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2006-2011 Bartosz Białek, 2005 Harven"
diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp
index c4954e77dd..60d26d3b56 100644
--- a/plugins/SimpleStatusMsg/src/awaymsg.cpp
+++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp
@@ -23,8 +23,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
static HANDLE hAwayMsgMenuItem;
static HANDLE hCopyMsgMenuItem;
diff --git a/plugins/SimpleStatusMsg/src/commonheaders.h b/plugins/SimpleStatusMsg/src/commonheaders.h
index 843a3555fa..5b6128774c 100644
--- a/plugins/SimpleStatusMsg/src/commonheaders.h
+++ b/plugins/SimpleStatusMsg/src/commonheaders.h
@@ -18,48 +18,45 @@ with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-// to enable all 0.9.0 core functions
-#define MIRANDA_VER 0x0A00
-// to enable custom langpacks
-#define MIRANDA_CUSTOM_LP
-
#define _WIN32_IE 0x0501
#define _CRT_SECURE_NO_WARNINGS
-#include <m_stdhdr.h>
-
#include <windows.h>
-#include <commctrl.h>
-#include <stdio.h>
-#include <string.h>
#include <time.h>
#include <newpluginapi.h>
-#include <m_button.h>
-#include <m_clist.h>
#include <m_clistint.h>
#include <m_skin.h>
-#include <m_system_cpp.h>
#include <m_options.h>
#include <m_langpack.h>
#include <m_protosvc.h>
-#include <m_utils.h>
#include <m_database.h>
#include <m_awaymsg.h>
#include <m_idle.h>
#include <m_icolib.h>
-#include <m_protoint.h>
#include <m_hotkeys.h>
#include <m_icq.h>
#include <win2k.h>
-#include "../../protocols/IcqOscarJ/src/icq_constants.h"
-#include "m_fortunemsg.h"
-#include "m_statusplugins.h"
-#include "m_toptoolbar.h"
-#include "m_variables.h"
-#include "m_simpleaway.h"
-#include "m_simplestatusmsg.h"
+#include <m_fortunemsg.h>
+#include <m_statusplugins.h>
+#include <m_toptoolbar.h>
+#include <m_variables.h>
+#include <m_simpleaway.h>
+#include <m_simplestatusmsg.h>
+#include "simplestatusmsg.h"
#include "resource.h"
+#include "Version.h"
+
+#define MTYPE_AUTOONLINE 0xE7 // Auto online message (internal only)
+#define MTYPE_AUTOAWAY 0xE8 // Auto away message
+#define MTYPE_AUTOBUSY 0xE9 // Auto occupied message
+#define MTYPE_AUTONA 0xEA // Auto not available message
+#define MTYPE_AUTODND 0xEB // Auto do not disturb message
+#define MTYPE_AUTOFFC 0xEC // Auto free for chat message
+
+extern UINT_PTR g_uUpdateMsgTimer;
+extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD);
+extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control);
diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp
index 95213ff9c3..61328bad26 100644
--- a/plugins/SimpleStatusMsg/src/main.cpp
+++ b/plugins/SimpleStatusMsg/src/main.cpp
@@ -17,9 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
-#include <io.h>
HINSTANCE g_hInst;
@@ -35,16 +34,16 @@ static HANDLE *hProtoStatusMenuItem;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Simple Status Message",
- PLUGIN_MAKE_VERSION(1, 9, 0, 4),
- "Provides a simple way to set status and away messages.",
- "Bartosz 'Dezeath' Białek, Harven",
- "dezred"/*antispam*/"@"/*antispam*/"gmail"/*antispam*/"."/*antispam*/"com",
- "© 2006-2011 Bartosz Białek, © 2005 Harven",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // {768CE156-34AC-45a3-B53B-0083C47615C4}
- { 0x768ce156, 0x34ac, 0x45a3, { 0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4 } }
+ // {768CE156-34AC-45A3-B53B-0083C47615C4}
+ {0x768ce156, 0x34ac, 0x45a3, {0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4}}
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
diff --git a/plugins/SimpleStatusMsg/src/msgbox.cpp b/plugins/SimpleStatusMsg/src/msgbox.cpp
index 15f7bfb487..240c26a441 100644
--- a/plugins/SimpleStatusMsg/src/msgbox.cpp
+++ b/plugins/SimpleStatusMsg/src/msgbox.cpp
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
#define I_ICON_DEL 0
#define I_ICON_HIST 1
diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp
index 76928064f3..4aef49ef2d 100644
--- a/plugins/SimpleStatusMsg/src/options.cpp
+++ b/plugins/SimpleStatusMsg/src/options.cpp
@@ -17,12 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "commonheaders.h"
-#include "simplestatusmsg.h"
-extern UINT_PTR g_uUpdateMsgTimer;
-extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD);
-extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control);
+#include "commonheaders.h"
static void RebuildStatusMenu(void)
{
diff --git a/plugins/SimpleStatusMsg/src/simplestatusmsg.h b/plugins/SimpleStatusMsg/src/simplestatusmsg.h
index 95b3311273..f78f04dcbc 100644
--- a/plugins/SimpleStatusMsg/src/simplestatusmsg.h
+++ b/plugins/SimpleStatusMsg/src/simplestatusmsg.h
@@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#ifndef SIMPLESTATUSMSG_H__
#define SIMPLESTATUSMSG_H__ 1
diff --git a/plugins/SimpleStatusMsg/src/stdafx.cpp b/plugins/SimpleStatusMsg/src/stdafx.cpp
new file mode 100644
index 0000000000..e7e41dae3c
--- /dev/null
+++ b/plugins/SimpleStatusMsg/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "commonheaders.h" \ No newline at end of file
diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp
index a6ff747867..7632dc1cf3 100644
--- a/plugins/SimpleStatusMsg/src/utils.cpp
+++ b/plugins/SimpleStatusMsg/src/utils.cpp
@@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+
#include "commonheaders.h"
-#include "simplestatusmsg.h"
static LIST<void> arProtoHooks(5);