diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/RecentContacts/RecentContacts_10.vcxproj | 2 | ||||
-rw-r--r-- | plugins/RecentContacts/RecentContacts_10.vcxproj.filters | 6 | ||||
-rw-r--r-- | plugins/RecentContacts/RecentContacts_11.vcxproj | 2 | ||||
-rw-r--r-- | plugins/RecentContacts/RecentContacts_11.vcxproj.filters | 6 | ||||
-rw-r--r-- | plugins/RecentContacts/res/Version.rc | 38 | ||||
-rw-r--r-- | plugins/RecentContacts/res/resource.rc | 60 | ||||
-rw-r--r-- | plugins/RecentContacts/src/RecentContacts.cpp | 16 | ||||
-rw-r--r-- | plugins/RecentContacts/src/RecentContacts.h | 13 | ||||
-rw-r--r-- | plugins/RecentContacts/src/Version.h | 14 |
9 files changed, 94 insertions, 63 deletions
diff --git a/plugins/RecentContacts/RecentContacts_10.vcxproj b/plugins/RecentContacts/RecentContacts_10.vcxproj index 233564f662..f6c0854f45 100644 --- a/plugins/RecentContacts/RecentContacts_10.vcxproj +++ b/plugins/RecentContacts/RecentContacts_10.vcxproj @@ -183,9 +183,11 @@ <ItemGroup>
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\RecentContacts.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/RecentContacts/RecentContacts_10.vcxproj.filters b/plugins/RecentContacts/RecentContacts_10.vcxproj.filters index 1fa5431ddd..5784120421 100644 --- a/plugins/RecentContacts/RecentContacts_10.vcxproj.filters +++ b/plugins/RecentContacts/RecentContacts_10.vcxproj.filters @@ -32,10 +32,16 @@ <ClInclude Include="src\RecentContacts.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/RecentContacts/RecentContacts_11.vcxproj b/plugins/RecentContacts/RecentContacts_11.vcxproj index f6715eaeaa..96497b130c 100644 --- a/plugins/RecentContacts/RecentContacts_11.vcxproj +++ b/plugins/RecentContacts/RecentContacts_11.vcxproj @@ -187,9 +187,11 @@ <ItemGroup>
<ClInclude Include="src\resource.h" />
<ClInclude Include="src\RecentContacts.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/RecentContacts/RecentContacts_11.vcxproj.filters b/plugins/RecentContacts/RecentContacts_11.vcxproj.filters index 1fa5431ddd..5784120421 100644 --- a/plugins/RecentContacts/RecentContacts_11.vcxproj.filters +++ b/plugins/RecentContacts/RecentContacts_11.vcxproj.filters @@ -32,10 +32,16 @@ <ClInclude Include="src\RecentContacts.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/RecentContacts/res/Version.rc b/plugins/RecentContacts/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/RecentContacts/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/RecentContacts/res/resource.rc b/plugins/RecentContacts/res/resource.rc index 1425b886b8..a9a6110845 100644 --- a/plugins/RecentContacts/res/resource.rc +++ b/plugins/RecentContacts/res/resource.rc @@ -39,18 +39,21 @@ BEGIN WS_TABSTOP,0,0,150,200
END
-#endif // Russian resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-/////////////////////////////////////////////////////////////////////////////
-// German (Germany) resources
+IDD_LASTUC_OPT DIALOGEX 0, 0, 314, 240
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
+FONT 8, "MS Shell Dlg", 0, 0, 0x0
+BEGIN
+ GROUPBOX "Plugin settings",IDC_STATIC,7,7,300,226
+ EDITTEXT IDC_SHOWNCONTACTS,161,27,28,12,ES_AUTOHSCROLL
+ CONTROL "Number shown contacts:\n (0 to show all)",IDC_STATIC,
+ "Static",SS_LEFTNOWORDWRAP | WS_GROUP,24,27,121,17
+ LTEXT "Format of date and time\n(Look to readme for placeholders help)",
+ IDC_STATIC,24,50,133,22
+ EDITTEXT IDC_DATETIME,161,50,96,12,ES_AUTOHSCROLL
+ CONTROL "Hide offline contacts",IDC_HIDEOFFLINE,"Button",
+ BS_AUTOCHECKBOX | WS_TABSTOP,161,75,84,8
+END
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
-#ifdef _WIN32
-LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
-#pragma code_page(1252)
-#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
@@ -77,39 +80,6 @@ END #endif // APSTUDIO_INVOKED
-#endif // German (Germany) 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_LASTUC_OPT DIALOGEX 0, 0, 314, 240
-STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
-FONT 8, "MS Shell Dlg", 0, 0, 0x0
-BEGIN
- GROUPBOX "Plugin settings",IDC_STATIC,7,7,300,226
- EDITTEXT IDC_SHOWNCONTACTS,161,27,28,12,ES_AUTOHSCROLL
- CONTROL "Number shown contacts:\n (0 to show all)",IDC_STATIC,
- "Static",SS_LEFTNOWORDWRAP | WS_GROUP,24,27,121,17
- LTEXT "Format of date and time\n(Look to readme for placeholders help)",
- IDC_STATIC,24,50,133,22
- EDITTEXT IDC_DATETIME,161,50,96,12,ES_AUTOHSCROLL
- CONTROL "Hide offline contacts",IDC_HIDEOFFLINE,"Button",
- BS_AUTOCHECKBOX | WS_TABSTOP,161,75,84,8
-END
-
/////////////////////////////////////////////////////////////////////////////
//
@@ -140,7 +110,7 @@ BEGIN END
#endif // APSTUDIO_INVOKED
-#endif // English (U.S.) resources
+#endif // Russian resources
/////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/RecentContacts/src/RecentContacts.cpp b/plugins/RecentContacts/src/RecentContacts.cpp index 51f5ab24c0..81fa8437f9 100644 --- a/plugins/RecentContacts/src/RecentContacts.cpp +++ b/plugins/RecentContacts/src/RecentContacts.cpp @@ -35,15 +35,15 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) PLUGININFOEX pluginInfo =
{
sizeof(PLUGININFOEX),
- "Recent Contacts",
- PLUGIN_MAKE_VERSION(0,0,2,0),
- "Adds a menu item in main menu, which open the window with list of last used contacts names, sorted in order from most recent to least.",
- "ValeraVi, Kildor",
- "kostia@ngs.ru",
- "© 2005 ValeraVi, © 2009 Kildor",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- // 0e5f3b9d-ebcd-44d7-9374-d8e5d88df4e3
+ // {0E5F3B9D-EBCD-44D7-9374-D8E5D88DF4E3}
{0x0e5f3b9d, 0xebcd, 0x44d7, {0x93, 0x74, 0xd8, 0xe5, 0xd8, 0x8d, 0xf4, 0xe3}}
};
diff --git a/plugins/RecentContacts/src/RecentContacts.h b/plugins/RecentContacts/src/RecentContacts.h index 6eb98986a7..246bc9d8b0 100644 --- a/plugins/RecentContacts/src/RecentContacts.h +++ b/plugins/RecentContacts/src/RecentContacts.h @@ -1,28 +1,18 @@ -
-#pragma once
-
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_NONSTDC_NO_DEPRECATE
-#define MIRANDA_VER 0x0A00
#include <windows.h>
#include <commctrl.h>
#include <string>
#include <map>
#include <xfunctional>
-#include "resource.h"
#include <time.h>
#include <newpluginapi.h>
#include <m_clist.h>
-#include <m_contacts.h>
#include <m_langpack.h>
#include <m_database.h>
-#include <m_system.h>
-#include <m_system_cpp.h>
#include <m_message.h>
-#include <m_utils.h>
-#include <m_icolib.h>
#include <m_hotkeys.h>
#include <m_protosvc.h>
#include <m_options.h>
@@ -30,6 +20,9 @@ #include <m_toptoolbar.h>
+#include "resource.h"
+#include "Version.h"
+
#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore"
using namespace std;
diff --git a/plugins/RecentContacts/src/Version.h b/plugins/RecentContacts/src/Version.h new file mode 100644 index 0000000000..e959b4ddad --- /dev/null +++ b/plugins/RecentContacts/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 2
+#define __BUILD_NUM 0
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Recent contacts"
+#define __FILENAME "RecentContacts.dll"
+#define __DESCRIPTION "Adds a menu item in main menu, which open the window with list of last used contacts names, sorted in order from most recent to least."
+#define __AUTHOR "ValeraVi, Kildor"
+#define __AUTHOREMAIL "kostia@ngs.ru"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2005 ValeraVi, © 2009 Kildor"
|