summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-26 19:30:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-26 19:30:07 +0000
commitbca327466d9461ee453ae2cb9e0175f7c9895b2b (patch)
tree16eb73866ac1209ecaef9a10bb379b802c9c9968
parentef522ce54a4a2e2b737759b619e667ef819540c6 (diff)
added precompiled header
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/HistorySweeperLight/historysweeperlight_10.vcxproj20
-rw-r--r--plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters6
-rw-r--r--plugins/HistorySweeperLight/historysweeperlight_11.vcxproj20
-rw-r--r--plugins/HistorySweeperLight/historysweeperlight_11.vcxproj.filters6
-rw-r--r--plugins/HistorySweeperLight/res/Version.rc38
-rw-r--r--plugins/HistorySweeperLight/res/historysweeperlight.rc145
-rw-r--r--plugins/HistorySweeperLight/src/historysweeperlight.h5
-rw-r--r--plugins/HistorySweeperLight/src/main.cpp23
-rw-r--r--plugins/HistorySweeperLight/src/options.cpp48
-rw-r--r--plugins/HistorySweeperLight/src/resource.h44
-rw-r--r--plugins/HistorySweeperLight/src/stdafx.cpp18
-rw-r--r--plugins/HistorySweeperLight/src/version.h37
12 files changed, 259 insertions, 151 deletions
diff --git a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj
index ddc039521b..8b1f496b8a 100644
--- a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj
+++ b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj
@@ -78,8 +78,10 @@
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -101,8 +103,10 @@
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -127,8 +131,10 @@
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -156,8 +162,10 @@
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -179,6 +187,9 @@
<ClCompile Include="src\historysweeperlight.cpp" />
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\options.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\historysweeperlight.h" />
@@ -187,6 +198,7 @@
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\historysweeperlight.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters
index 8e33f1e2f8..5eeca0a6cf 100644
--- a/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters
+++ b/plugins/HistorySweeperLight/historysweeperlight_10.vcxproj.filters
@@ -24,6 +24,9 @@
<ClCompile Include="src\options.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\historysweeperlight.h">
@@ -40,5 +43,8 @@
<ResourceCompile Include="res\historysweeperlight.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/HistorySweeperLight/historysweeperlight_11.vcxproj b/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj
index cbbfdd7d4a..8b86964b96 100644
--- a/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj
+++ b/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj
@@ -82,8 +82,10 @@
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -105,8 +107,10 @@
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -131,8 +135,10 @@
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -160,8 +166,10 @@
<StringPooling>true</StringPooling>
<FunctionLevelLinking>true</FunctionLevelLinking>
<WarningLevel>Level3</WarningLevel>
- <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>..\..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<ExceptionHandling>false</ExceptionHandling>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <PrecompiledHeaderFile>historysweeperlight.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies>
@@ -183,6 +191,9 @@
<ClCompile Include="src\historysweeperlight.cpp" />
<ClCompile Include="src\main.cpp" />
<ClCompile Include="src\options.cpp" />
+ <ClCompile Include="src\stdafx.cpp">
+ <PrecompiledHeader>Create</PrecompiledHeader>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\historysweeperlight.h" />
@@ -191,6 +202,7 @@
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\historysweeperlight.rc" />
+ <ResourceCompile Include="res\Version.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
diff --git a/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj.filters b/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj.filters
index 8e33f1e2f8..5eeca0a6cf 100644
--- a/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj.filters
+++ b/plugins/HistorySweeperLight/historysweeperlight_11.vcxproj.filters
@@ -24,6 +24,9 @@
<ClCompile Include="src\options.cpp">
<Filter>Source Files</Filter>
</ClCompile>
+ <ClCompile Include="src\stdafx.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="src\historysweeperlight.h">
@@ -40,5 +43,8 @@
<ResourceCompile Include="res\historysweeperlight.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/HistorySweeperLight/res/Version.rc b/plugins/HistorySweeperLight/res/Version.rc
new file mode 100644
index 0000000000..5bfbab4754
--- /dev/null
+++ b/plugins/HistorySweeperLight/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/HistorySweeperLight/res/historysweeperlight.rc b/plugins/HistorySweeperLight/res/historysweeperlight.rc
index 17d59a3855..69890044f8 100644
--- a/plugins/HistorySweeperLight/res/historysweeperlight.rc
+++ b/plugins/HistorySweeperLight/res/historysweeperlight.rc
@@ -1,83 +1,102 @@
-// Generated by ResEdit 1.4.13
-// Copyright (C) 2006-2010
-// http://www.resedit.net
-
-#include <windows.h>
+// Microsoft Visual C++ generated resource script.
+//
#include "..\src\resource.h"
-#include "..\src\version.h"
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+// Русский (Россия) resources
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_RUS)
+LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
+#pragma code_page(1251)
+
+/////////////////////////////////////////////////////////////////////////////
//
-// Dialog resources
+// Dialog
//
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+
IDD_OPT_HISTORYSWEEPER DIALOGEX 0, 0, 313, 240
-STYLE DS_SHELLFONT | WS_VISIBLE | WS_CHILDWINDOW
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
-FONT 8, "MS Shell Dlg", 0, 0, 1
-{
- GROUPBOX "History Sweeper Light", IDC_STATIC, 0, 0, 313, 240
- LTEXT "Sweep history for this contacts:", IDC_STATIC, 8, 12, 296, 10
- CONTROL "", IDC_LIST, "CListControl", 0x500101D2, 8, 22, 297, 139, 0x00000200
- ICON "", IDC_ACT1, 8, 164, 21, 20, SS_ICON
- LTEXT "Action 1", IDC_STATIC, 22, 164, 118, 10
- COMBOBOX IDC_SSOLDER, 8, 177, 140, 70, WS_TABSTOP | WS_VSCROLL | WS_TABSTOP | CBS_DROPDOWNLIST
- ICON "", IDC_ACT2, 165, 164, 21, 20, SS_ICON
- LTEXT "Action 2", IDC_STATIC, 179, 164, 118, 10
- COMBOBOX IDC_SSKEEP, 165, 177, 140, 70, WS_TABSTOP | WS_VSCROLL | WS_TABSTOP | CBS_DROPDOWNLIST
- AUTOCHECKBOX "Sweep on closing message window", IDC_SWEEPONCLOSE, 8, 197, 294, 10
- AUTOCHECKBOX "Clicking on the icon in the status bar will change settings", IDC_HISTMW, 8, 211, 294, 10
- AUTOCHECKBOX "Use UNSAFE mode (sweep fastest as possible, but dangerous for DB)", IDC_UNSAFEMODE, 8, 225, 294, 10
-}
-
+FONT 8, "MS Shell Dlg", 0, 0, 0x1
+BEGIN
+ GROUPBOX "History Sweeper Light",IDC_STATIC,0,0,313,240
+ LTEXT "Sweep history for this contacts:",IDC_STATIC,8,12,296,10
+ CONTROL "",IDC_LIST,"CListControl",WS_TABSTOP | 0x1d2,8,22,297,139,WS_EX_CLIENTEDGE
+ ICON "",IDC_ACT1,8,164,20,20
+ LTEXT "Action 1",IDC_STATIC,22,164,118,10
+ COMBOBOX IDC_SSOLDER,8,177,140,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+ ICON "",IDC_ACT2,165,164,20,20
+ LTEXT "Action 2",IDC_STATIC,179,164,118,10
+ COMBOBOX IDC_SSKEEP,165,177,140,70,CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
+ CONTROL "Sweep on closing message window",IDC_SWEEPONCLOSE,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,197,294,10
+ CONTROL "Clicking on the icon in the status bar will change settings",IDC_HISTMW,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,211,294,10
+ CONTROL "Use UNSAFE mode (sweep fastest as possible, but dangerous for DB)",IDC_UNSAFEMODE,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,225,294,10
+END
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
//
-// Icon resources
+// TEXTINCLUDE
//
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-IDI_ACT1 ICON "act1.ico"
+1 TEXTINCLUDE
+BEGIN
+ "..\\src\\resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-IDI_ACT2 ICON "act2.ico"
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+#endif // APSTUDIO_INVOKED
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-IDI_ACTG ICON "actG.ico"
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-IDI_ACTDEL ICON "actDel.ico"
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDI_ACTG ICON "actG.ico"
+IDI_ACT1 ICON "act1.ico"
+IDI_ACT2 ICON "act2.ico"
+IDI_ACTDEL ICON "actDel.ico"
+
+#endif // Русский (Россия) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
//
-// Version Information resources
+// Generated from the TEXTINCLUDE 3 resource.
//
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION __FILEVERSION_STRING
- PRODUCTVERSION __FILEVERSION_STRING
- FILEOS VOS__WINDOWS32
- FILETYPE VFT_DLL
- FILESUBTYPE VFT2_UNKNOWN
- FILEFLAGSMASK 0x00000017
- FILEFLAGS 0x00000000
-{
- BLOCK "StringFileInfo"
- {
- BLOCK "040904b0"
- {
- VALUE "FileDescription", "History Sweeper Light Miranda NG Plugin"
- VALUE "FileVersion", __VERSION_STRING
- VALUE "InternalName", "History Sweeper Light"
- VALUE "LegalCopyright", "Copyright (C) Boris Krasnovskiy 2006-2009, (C) 2010, 2011 tico-tico"
- VALUE "OriginalFilename", "historysweeperlight.dll"
- VALUE "ProductName", "History Sweeper Light Miranda NG Plugin"
- VALUE "ProductVersion", __VERSION_STRING
- }
- }
- BLOCK "VarFileInfo"
- {
- VALUE "Translation", 0x0409, 0x04B0
- }
-}
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/plugins/HistorySweeperLight/src/historysweeperlight.h b/plugins/HistorySweeperLight/src/historysweeperlight.h
index a1b67c464e..407f3973d2 100644
--- a/plugins/HistorySweeperLight/src/historysweeperlight.h
+++ b/plugins/HistorySweeperLight/src/historysweeperlight.h
@@ -21,19 +21,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef __HISTORYSWEEPERLIGHT_H__
#define __HISTORYSWEEPERLIGHT_H__
-#define MIRANDA_VER 0x0A00
-
#if !defined( _WIN64 )
#define _USE_32BIT_TIME_T
#endif
#include <windows.h>
-#include <commctrl.h>
#include <time.h>
#include <win2k.h>
#include <newpluginapi.h>
-#include <m_clc.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_options.h>
@@ -43,6 +39,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <m_skin.h>
#include "resource.h"
+#include "version.h"
// Plugin name
#define ModuleName "History Sweeper Light"
diff --git a/plugins/HistorySweeperLight/src/main.cpp b/plugins/HistorySweeperLight/src/main.cpp
index 59ee86b329..6f1133dbea 100644
--- a/plugins/HistorySweeperLight/src/main.cpp
+++ b/plugins/HistorySweeperLight/src/main.cpp
@@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "historysweeperlight.h"
-#include "version.h"
HINSTANCE hInst;
@@ -29,22 +28,22 @@ int hLangpack;
static PLUGININFOEX pluginInfoEx =
{
- // about plugin
sizeof(PLUGININFOEX),
- "History Sweeper Light",
- __VERSION_DWORD,
- "This plugin can sweep system history, history from all contacts or only from chosen; also it may sweep history older than certain time; and may do it at Miranda NG startup/shutdown.",
- "Sergey V. Gershovich a.k.a. Jazzy$, Boris Krasnovskiy, tico-tico",
- "",
- "© 2002-2003 Sergey V. Gershovich a.k.a. Jazzy$, 2006-2009 Boris Krasnovskiy, 2010, 2011 tico-tico",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- { 0x1d9bf74a, 0x44a8, 0x4b3f, { 0xa6, 0xe5, 0x73, 0x6, 0x9d, 0x3a, 0x89, 0x79 } } // {1D9BF74A-44A8-4b3f-A6E5-73069D3A8979}
+ // {1D9BF74A-44A8-4B3F-A6E5-73069D3A8979}
+ {0x1d9bf74a, 0x44a8, 0x4b3f, {0xa6, 0xe5, 0x73, 0x6, 0x9d, 0x3a, 0x89, 0x79}}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
+ hInst = hinstDLL;
return TRUE;
}
diff --git a/plugins/HistorySweeperLight/src/options.cpp b/plugins/HistorySweeperLight/src/options.cpp
index 5ca89ed4c0..cba8459859 100644
--- a/plugins/HistorySweeperLight/src/options.cpp
+++ b/plugins/HistorySweeperLight/src/options.cpp
@@ -21,30 +21,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "historysweeperlight.h"
-// Time Stamps strings
-const char* time_stamp_strings[] =
-{
- LPGEN("Delete older than 1 day"),
- LPGEN("Delete older than 3 days"),
- LPGEN("Delete older than 7 days"),
- LPGEN("Delete older than 2 weeks (14 days)"),
- LPGEN("Delete older than 1 month (30 days)"),
- LPGEN("Delete older than 3 months (90 days)"),
- LPGEN("Delete older than 6 months (180 days)"),
- LPGEN("Delete older than 1 year (365 days)")
-};
-
-const char* keep_strings[] =
-{
- LPGEN("Keep 1 last event"),
- LPGEN("Keep 2 last events"),
- LPGEN("Keep 5 last events"),
- LPGEN("Keep 10 last events"),
- LPGEN("Keep 20 last events"),
- LPGEN("Keep 50 last events")
-};
-
-static IconItem iconList[] =
+// Time Stamps strings
+const char* time_stamp_strings[] =
+{
+ LPGEN("Delete older than 1 day"),
+ LPGEN("Delete older than 3 days"),
+ LPGEN("Delete older than 7 days"),
+ LPGEN("Delete older than 2 weeks (14 days)"),
+ LPGEN("Delete older than 1 month (30 days)"),
+ LPGEN("Delete older than 3 months (90 days)"),
+ LPGEN("Delete older than 6 months (180 days)"),
+ LPGEN("Delete older than 1 year (365 days)")
+};
+
+const char* keep_strings[] =
+{
+ LPGEN("Keep 1 last event"),
+ LPGEN("Keep 2 last events"),
+ LPGEN("Keep 5 last events"),
+ LPGEN("Keep 10 last events"),
+ LPGEN("Keep 20 last events"),
+ LPGEN("Keep 50 last events")
+};
+
+static IconItem iconList[] =
{
{ "Default Action", "actG", IDI_ACTG },
{ "Action 1", "act1", IDI_ACT1 },
diff --git a/plugins/HistorySweeperLight/src/resource.h b/plugins/HistorySweeperLight/src/resource.h
index bfa91d1d4e..c6e2c3710d 100644
--- a/plugins/HistorySweeperLight/src/resource.h
+++ b/plugins/HistorySweeperLight/src/resource.h
@@ -1,18 +1,28 @@
-#ifndef IDC_STATIC
-#define IDC_STATIC (-1)
-#endif
-
-#define IDD_OPT_HISTORYSWEEPER 101
-#define IDI_ACTG 102
-#define IDI_ACT1 103
-#define IDI_ACT2 104
-#define IDI_ACTDEL 105
-#define IDC_LIST 106
-#define IDC_SSOLDER 107
-#define IDC_UNSAFEMODE 108
-#define IDC_SWEEPONCLOSE 109
-#define IDC_SSKEEP 110
-#define IDC_HISTMW 111
-#define IDC_ACT1 112
-#define IDC_ACT2 113
+//{{NO_DEPENDENCIES}}
+// Включаемый файл, созданный в Microsoft Visual C++.
+// Используется D:\MNG_orig\plugins\HistorySweeperLight\res\historysweeperlight.rc
+//
+#define IDD_OPT_HISTORYSWEEPER 101
+#define IDI_ACTG 102
+#define IDI_ACT1 103
+#define IDI_ACT2 104
+#define IDI_ACTDEL 105
+#define IDC_LIST 106
+#define IDC_SSOLDER 107
+#define IDC_UNSAFEMODE 108
+#define IDC_SWEEPONCLOSE 109
+#define IDC_SSKEEP 110
+#define IDC_HISTMW 111
+#define IDC_ACT1 112
+#define IDC_ACT2 113
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 101
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
diff --git a/plugins/HistorySweeperLight/src/stdafx.cpp b/plugins/HistorySweeperLight/src/stdafx.cpp
new file mode 100644
index 0000000000..b141ddc9b1
--- /dev/null
+++ b/plugins/HistorySweeperLight/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 "historysweeperlight.h" \ No newline at end of file
diff --git a/plugins/HistorySweeperLight/src/version.h b/plugins/HistorySweeperLight/src/version.h
index 245200a539..928409d123 100644
--- a/plugins/HistorySweeperLight/src/version.h
+++ b/plugins/HistorySweeperLight/src/version.h
@@ -1,23 +1,14 @@
-/*
-Plugin of Miranda IM for communicating with users of the MSN Messenger protocol.
-Copyright (c) 2008-2009 Boris Krasnovskiy.
-Copyright (C) 2010, 2011 tico-tico
-
-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; either version 2
-of the License, or (at your option) any later version.
-
-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/>.
-*/
-
-#define __FILEVERSION_STRING 0,0,0,7
-#define __VERSION_STRING "0.0.0.7"
-#define __VERSION_DWORD PLUGIN_MAKE_VERSION(0, 0, 0, 7)
-
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 7
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "History sweeper light"
+#define __FILENAME "HistorySweeperLight.dll"
+#define __DESCRIPTION "This plugin can sweep system history, history from all contacts or only from chosen; also it may sweep history older than certain time; and may do it at Miranda NG startup/shutdown."
+#define __AUTHOR "Sergey V. Gershovich a.k.a. Jazzy$, Boris Krasnovskiy, tico-tico"
+#define __AUTHOREMAIL ""
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2002-2003 Sergey V. Gershovich a.k.a. Jazzy$, 2006-2009 Boris Krasnovskiy, 2010-2011 tico-tico"