summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-01-29 06:06:33 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-01-29 06:06:33 +0000
commit55d1905cffff485f577d49654a18362cbcfb61ec (patch)
tree8ee949f54dcf001568037ecc0b8ebb01fe2bd153 /plugins/FingerprintNG/src
parent5befe30aa1ff4a3a8c227e3a8f44fa4d58ab7334 (diff)
added option for disabling secure overlay
git-svn-id: http://svn.miranda-ng.org/main/trunk@3327 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FingerprintNG/src')
-rw-r--r--plugins/FingerprintNG/src/finger_groups.h5
-rw-r--r--plugins/FingerprintNG/src/global.h2
-rw-r--r--plugins/FingerprintNG/src/masks.cpp2
-rw-r--r--plugins/FingerprintNG/src/options.cpp5
-rw-r--r--plugins/FingerprintNG/src/resource.h4
-rw-r--r--plugins/FingerprintNG/src/version.h6
6 files changed, 9 insertions, 15 deletions
diff --git a/plugins/FingerprintNG/src/finger_groups.h b/plugins/FingerprintNG/src/finger_groups.h
index e760bc8d31..9bb796e8ca 100644
--- a/plugins/FingerprintNG/src/finger_groups.h
+++ b/plugins/FingerprintNG/src/finger_groups.h
@@ -103,6 +103,11 @@ case OVERLAYS_UNICODE_CASE:
return _T("Client icons/Overlays/Platform");
break;
+case OVERLAYS_SECURITY_CASE:
+ if ( db_get_b(NULL, "Finger", "GroupOverlaysSecurity", 1))
+ return _T("Client icons/Overlays/Security");
+ break;
+
case OVERLAYS_PROTO_CASE:
if ( db_get_b(NULL, "Finger", "GroupOverlaysProtos", 1))
return _T("Client icons/Overlays/Protocol");
diff --git a/plugins/FingerprintNG/src/global.h b/plugins/FingerprintNG/src/global.h
index ccd1bf8782..d6f860bed8 100644
--- a/plugins/FingerprintNG/src/global.h
+++ b/plugins/FingerprintNG/src/global.h
@@ -120,7 +120,7 @@ typedef struct _foundInfo
#define OVERLAYS_PLATFORM_CASE 3021 // platforms overlays
#define OVERLAYS_PROTO_CASE 3022 // protocols overlays
#define OVERLAYS_UNICODE_CASE 3023 // unicode overlay
-//#define OVERLAYS_SECURITY_CASE 3023 // security overlays
+#define OVERLAYS_SECURITY_CASE 3024 // security overlays
/*
#define OVERLAYS_RESOURCE_ALT_CASE 24 // alternative (old style) overlays
diff --git a/plugins/FingerprintNG/src/masks.cpp b/plugins/FingerprintNG/src/masks.cpp
index e7a09036e7..4879b8183f 100644
--- a/plugins/FingerprintNG/src/masks.cpp
+++ b/plugins/FingerprintNG/src/masks.cpp
@@ -807,7 +807,7 @@ int DEFAULT_KN_FP_OVERLAYS3_COUNT = SIZEOF(def_kn_fp_overlays3_mask);
//#############################################################################################################################################################################
KN_FP_MASK def_kn_fp_overlays4_mask[] =
{// {"Client_IconName", _T("|^*Mask*|*names*"), _T("Icon caption"), IDI_RESOURCE_ID, CLIENT_CASE, OVERLAY? },
- {"client_SecureIM_over", _T("*Secure*IM*"), _T("SecureIM overlay"), IDI_SECUREIM_OVERLAY, OVERLAYS_PLATFORM_CASE },
+ {"client_SecureIM_over", _T("*Secure*IM*"), _T("SecureIM overlay"), IDI_SECUREIM_OVERLAY, OVERLAYS_SECURITY_CASE },
};
int DEFAULT_KN_FP_OVERLAYS4_COUNT = SIZEOF(def_kn_fp_overlays4_mask); \ No newline at end of file
diff --git a/plugins/FingerprintNG/src/options.cpp b/plugins/FingerprintNG/src/options.cpp
index 704627d9b8..82caec4b3e 100644
--- a/plugins/FingerprintNG/src/options.cpp
+++ b/plugins/FingerprintNG/src/options.cpp
@@ -53,7 +53,7 @@ static settings[] =
{IDC_GROUP_OVERLAYS_PLATFORM, "GroupOverlaysPlatform"},
{IDC_GROUP_OVERLAYS_UNICODE, "GroupOverlaysUnicode"},
{IDC_GROUP_OVERLAYS_PROTO, "GroupOverlaysProtos"},
-// {IDC_GROUP_OVERLAYS_SECURITY, "GroupOtherProtos"}
+ {IDC_GROUP_OVERLAYS_SECURITY, "GroupOverlaysSecurity"}
};
/*static void OptDlgChanged(HWND hwndDlg, BOOL show)
@@ -117,8 +117,7 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP
case IDC_GROUP_OVERLAYS_PLATFORM:
case IDC_GROUP_OVERLAYS_PROTO:
case IDC_GROUP_OVERLAYS_UNICODE:
-// case IDC_GROUP_OVERLAYS_SECURITY:
- //OptDlgChanged(hwndDlg, false);
+ case IDC_GROUP_OVERLAYS_SECURITY:
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
diff --git a/plugins/FingerprintNG/src/resource.h b/plugins/FingerprintNG/src/resource.h
index 1b0e6e4cc8..bfdc167fe6 100644
--- a/plugins/FingerprintNG/src/resource.h
+++ b/plugins/FingerprintNG/src/resource.h
@@ -686,10 +686,6 @@
//#define IDC_GROUP_OVERLAYS_RESOURCE_ALT 10048
-
-#define IDS_IDENTIFY 11001
-//#define IDC_OPTCHANGENOTE 11002
-
//###############################################
// Next default values for new objects
diff --git a/plugins/FingerprintNG/src/version.h b/plugins/FingerprintNG/src/version.h
index 62eb7a3135..71fa0676f1 100644
--- a/plugins/FingerprintNG/src/version.h
+++ b/plugins/FingerprintNG/src/version.h
@@ -23,14 +23,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#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 "Fingerprint NG"
-#define __INTERNAL_NAME "Fingerprint NG"
#define __FILENAME "Fingerprint.dll"
#define __DESCRIPTION "Fingerprint NG (client version) icons module for Miranda NG."
#define __AUTHOR "faith_healer, ghazan, mataes"