summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-17 16:15:51 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-17 16:15:51 +0000
commit2cb8a32203cf2ef237a30f0ffac8e64a9a495c48 (patch)
treeb36e7d6d86415b65bd91a0f359c10797ff43b2b1
parent61138785bb35de7bbf7977dd41a91a206aff80b7 (diff)
cosmetic settings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@462 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/SpellChecker/Version.h20
-rw-r--r--plugins/SpellChecker/Version.rc38
-rw-r--r--plugins/SpellChecker/commons.h1
-rw-r--r--plugins/SpellChecker/resource.rc3
-rw-r--r--plugins/SpellChecker/spellchecker.cpp22
-rw-r--r--plugins/SpellChecker/spellchecker.vcxproj2
-rw-r--r--plugins/SpellChecker/spellchecker.vcxproj.filters6
7 files changed, 79 insertions, 13 deletions
diff --git a/plugins/SpellChecker/Version.h b/plugins/SpellChecker/Version.h
new file mode 100644
index 0000000000..a30cb4f177
--- /dev/null
+++ b/plugins/SpellChecker/Version.h
@@ -0,0 +1,20 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 2
+#define __RELEASE_NUM 6
+#define __BUILD_NUM 0
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+#define __FILEVERSION_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
+
+#define __STRINGIFY_IMPL(x) #x
+#define __STRINGIFY(x) __STRINGIFY_IMPL(x)
+#define __VERSION_STRING __STRINGIFY(__FILEVERSION_DOTS)
+
+#define __PLUGIN_NAME "Spell Checker"
+#define __INTERNAL_NAME "SpellChecker"
+#define __FILENAME "SpellChecker.dll"
+#define __DESCRIPTION "Spell checker for the message windows. Uses Hunspell to do the checking."
+#define __AUTHOR "Ricardo Pescuma Domenecci, FREAK_THEMIGHTY"
+#define __AUTHOREMAIL "pescuma@miranda-im.org"
+#define __AUTHORWEB "http://pescuma.org/miranda/spellchecker"
+#define __COPYRIGHT "© 2006-2010 Ricardo Pescuma Domenecci"
diff --git a/plugins/SpellChecker/Version.rc b/plugins/SpellChecker/Version.rc
new file mode 100644
index 0000000000..e637f0cb33
--- /dev/null
+++ b/plugins/SpellChecker/Version.rc
@@ -0,0 +1,38 @@
+// Microsoft Visual C++ generated resource script.
+//
+#include "afxres.h"
+#include "version.h"
+
+#ifdef _WIN32
+LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
+#endif //_WIN32
+
+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/SpellChecker/commons.h b/plugins/SpellChecker/commons.h
index cf9ed36c97..f40628c0cb 100644
--- a/plugins/SpellChecker/commons.h
+++ b/plugins/SpellChecker/commons.h
@@ -76,6 +76,7 @@ using namespace std;
#include "../utils/scope.h"
#include "resource.h"
+#include "Version.h"
#include "m_spellchecker.h"
#include "options.h"
#include "autoreplace.h"
diff --git a/plugins/SpellChecker/resource.rc b/plugins/SpellChecker/resource.rc
index d4c4ab2ae4..4316c607bc 100644
--- a/plugins/SpellChecker/resource.rc
+++ b/plugins/SpellChecker/resource.rc
@@ -197,5 +197,4 @@ END
/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
+#endif // not APSTUDIO_INVOKED \ No newline at end of file
diff --git a/plugins/SpellChecker/spellchecker.cpp b/plugins/SpellChecker/spellchecker.cpp
index 7207f4a71a..c121b57cda 100644
--- a/plugins/SpellChecker/spellchecker.cpp
+++ b/plugins/SpellChecker/spellchecker.cpp
@@ -25,13 +25,13 @@ Boston, MA 02111-1307, USA.
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
- "Spell Checker",
- PLUGIN_MAKE_VERSION(0,2,6,0),
- "Spell checker for the message windows. Uses Hunspell to do the checking.",
- "Ricardo Pescuma Domenecci, FREAK_THEMIGHTY",
- "pescuma@miranda-im.org",
- "© 2006-2010 Ricardo Pescuma Domenecci",
- "http://pescuma.org/miranda/spellchecker",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
0, //doesn't replace anything built-in
{ 0x36753ae3, 0x840b, 0x4797, { 0x94, 0xa5, 0xfd, 0x9f, 0x58, 0x52, 0xb9, 0x42 } } // {36753AE3-840B-4797-94A5-FD9F5852B942}
@@ -192,8 +192,8 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
// add our modules to the KnownModules list
CallService("DBEditorpp/RegisterSingleModule", (WPARAM) MODULE_NAME, 0);
- // updater plugin support
- if(ServiceExists(MS_UPDATE_REGISTER))
+ // updater plugin support
+ if(ServiceExists(MS_UPDATE_REGISTER))
{
Update upd = {0};
char szCurrentVersion[30];
@@ -220,10 +220,10 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
upd.pbVersion = (BYTE *)CreateVersionStringPluginEx(&pluginInfo, szCurrentVersion);
upd.cpbVersion = (int)strlen((char *)upd.pbVersion);
- CallService(MS_UPDATE_REGISTER, 0, (LPARAM)&upd);
+ CallService(MS_UPDATE_REGISTER, 0, (LPARAM)&upd);
}
- // Folders plugin support
+ // Folders plugin support
if (ServiceExists(MS_FOLDERS_REGISTER_PATH))
{
hDictionariesFolder = FoldersRegisterCustomPathT(LPGEN("Spell Checker"), LPGEN("Dictionaries"), DICTIONARIES_FOLDER);
diff --git a/plugins/SpellChecker/spellchecker.vcxproj b/plugins/SpellChecker/spellchecker.vcxproj
index cad8a4e5c8..85986f7b95 100644
--- a/plugins/SpellChecker/spellchecker.vcxproj
+++ b/plugins/SpellChecker/spellchecker.vcxproj
@@ -194,6 +194,7 @@
<ClInclude Include="hunspell\replist.hxx" />
<ClInclude Include="hunspell\suggestmgr.hxx" />
<ClInclude Include="hunspell\w_char.hxx" />
+ <ClInclude Include="Version.h" />
</ItemGroup>
<ItemGroup>
<None Include="res\no_spellcheck.ico" />
@@ -206,6 +207,7 @@
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="resource.rc" />
+ <ResourceCompile Include="Version.rc" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="ardialog.cpp" />
diff --git a/plugins/SpellChecker/spellchecker.vcxproj.filters b/plugins/SpellChecker/spellchecker.vcxproj.filters
index 89743ca4ce..c923a6345a 100644
--- a/plugins/SpellChecker/spellchecker.vcxproj.filters
+++ b/plugins/SpellChecker/spellchecker.vcxproj.filters
@@ -105,6 +105,9 @@
<ClInclude Include="hunspell\w_char.hxx">
<Filter>Header Files\hunspell Header Files</Filter>
</ClInclude>
+ <ClInclude Include="Version.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="res\no_spellcheck.ico">
@@ -133,6 +136,9 @@
<ResourceCompile Include="resource.rc">
<Filter>Resource Files</Filter>
</ResourceCompile>
+ <ResourceCompile Include="Version.rc">
+ <Filter>Resource Files</Filter>
+ </ResourceCompile>
</ItemGroup>
<ItemGroup>
<ClCompile Include="ardialog.cpp">