diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-18 16:14:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-18 16:14:20 +0000 |
commit | a88908d79295c22362b9c66edef2d185b7e64f01 (patch) | |
tree | f3b9efe910e6f2418259083906b21288433e8452 | |
parent | 082f19f7b21686c2a30867a2dc604e61a47d8b20 (diff) |
old useless junk removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@7731 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | include/delphi/m_hotkeys.inc | 11 | ||||
-rw-r--r-- | include/m_hotkeys.h | 2 | ||||
-rw-r--r-- | plugins/Actman/ua/i_uaplaces.inc | 4 | ||||
-rw-r--r-- | plugins/Actman30/ua/i_uaplaces.inc | 8 | ||||
-rw-r--r-- | plugins/QuickSearch/sr_global.pas | 4 | ||||
-rw-r--r-- | plugins/Watrack/popup/popups.pas | 2 | ||||
-rw-r--r-- | plugins/Watrack/status/status.pas | 2 | ||||
-rw-r--r-- | plugins/Watrack/templates/i_expkey.inc | 2 | ||||
-rw-r--r-- | plugins/mRadio/i_hotkey.inc | 38 | ||||
-rw-r--r-- | src/modules/skin/hotkeys.cpp | 2 |
10 files changed, 33 insertions, 42 deletions
diff --git a/include/delphi/m_hotkeys.inc b/include/delphi/m_hotkeys.inc index e0bda35da1..e838a95118 100644 --- a/include/delphi/m_hotkeys.inc +++ b/include/delphi/m_hotkeys.inc @@ -1,8 +1,8 @@ {
Miranda IM: the free IM client for Microsoft* Windows*
-Copyright 2000-2007 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
+Copyright 2000-2007 Miranda ICQ/IM project,
+all portions of this codebase are copyrighted to the people
listed in contributors.txt.
This program is free software; you can redistribute it and/or
@@ -40,13 +40,6 @@ type PHOTKEYDESC = ^THOTKEYDESC;
const
- {$IFNDEF Win64}
- HOTKEYDESC_SIZE_V1 = 7*SizeOf(dword); //(offsetof(HOTKEYDESC, dwFlags))
- {$ELSE}
- HOTKEYDESC_SIZE_V1 = SizeOf(HOTKEYDESC);
- {$ENDIF}
-
-const
HKF_MIRANDA_LOCAL = $8000;
{ use this macro to defile hotkey codes like this:
diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h index 33ebde9817..effe9df65b 100644 --- a/include/m_hotkeys.h +++ b/include/m_hotkeys.h @@ -51,8 +51,6 @@ typedef struct DWORD dwFlags;
} HOTKEYDESC;
-#define HOTKEYDESC_SIZE_V1 (offsetof(HOTKEYDESC, dwFlags))
-
#define HKF_MIRANDA_LOCAL 0x8000
extern int hLangpack;
diff --git a/plugins/Actman/ua/i_uaplaces.inc b/plugins/Actman/ua/i_uaplaces.inc index 9ee2a79b0c..806cbe302c 100644 --- a/plugins/Actman/ua/i_uaplaces.inc +++ b/plugins/Actman/ua/i_uaplaces.inc @@ -224,8 +224,8 @@ begin if (ActionItem.flags and UAF_HKREGGED)=0 then
begin
FillChar(hkd,SizeOf(hkd),0);
- hkd.cbSize := SizeOf(hkd); // HOTKEYDESC_SIZE_V1 for pre-0.9
- hkd.dwFlags := HKD_UNICODE; // since 0.9 only
+ hkd.cbSize := SizeOf(hkd);
+ hkd.dwFlags := HKD_UNICODE;
hkd.pszName := ActionItem.szNameID;
hkd.pszDescription.w:= ActionItem.szActDescr;
hkd.pszSection .w:= MODULE_NAME;
diff --git a/plugins/Actman30/ua/i_uaplaces.inc b/plugins/Actman30/ua/i_uaplaces.inc index 0b8ee9468d..bbd6571aaa 100644 --- a/plugins/Actman30/ua/i_uaplaces.inc +++ b/plugins/Actman30/ua/i_uaplaces.inc @@ -225,8 +225,8 @@ begin if (ActionItem.flags and UAF_HKREGGED)=0 then
begin
FillChar(hkd,SizeOf(hkd),0);
- hkd.cbSize := SizeOf(hkd); // HOTKEYDESC_SIZE_V1 for pre-0.9
- hkd.dwFlags := HKD_UNICODE; // since 0.9 only
+ hkd.cbSize := SizeOf(hkd);
+ hkd.dwFlags := HKD_UNICODE;
hkd.pszName := ActionItem.szNameID;
hkd.pszDescription.w:= ActionItem.szActDescr;
hkd.pszSection .w:= MODULE_NAME;
@@ -626,8 +626,8 @@ begin if ActionItem.szTTBTooltip =nil then
pc1:=pc
else pc1:=ActionItem.szTTBTooltip;
-
- if ((ActionItem.flags and UAF_2STATE)=0) or
+
+ if ((ActionItem.flags and UAF_2STATE)=0) or
(ActionItem.szTTBTooltipPressed=nil) then
pc2:=pc1
else
diff --git a/plugins/QuickSearch/sr_global.pas b/plugins/QuickSearch/sr_global.pas index 76d9b08de7..fe6a0864e2 100644 --- a/plugins/QuickSearch/sr_global.pas +++ b/plugins/QuickSearch/sr_global.pas @@ -121,7 +121,7 @@ type flags :dword; // QSO_* options
end;
-
+
procedure reghotkeys;
procedure unreghotkeys;
@@ -198,7 +198,7 @@ begin FillChar(hkrec,SizeOf(hkrec),0);
with hkrec do
begin
- cbSize :=HOTKEYDESC_SIZE_V1;
+ cbSize :=SizeOf(hkrec);
pszName :=HKN_GLOBAL;
pszDescription.a:='QuickSearch window hotkey';
pszSection.a :=qs_name;
diff --git a/plugins/Watrack/popup/popups.pas b/plugins/Watrack/popup/popups.pas index b671c60346..f22a9c44bd 100644 --- a/plugins/Watrack/popup/popups.pas +++ b/plugins/Watrack/popup/popups.pas @@ -319,7 +319,7 @@ begin FillChar(hkrec,SizeOf(hkrec),0);
with hkrec do
begin
- cbSize :=HOTKEYDESC_SIZE_V1;
+ cbSize :=SizeOf(hkrec);
pszName :=HKN_POPUP;
pszDescription.a:='WATrack popup hotkey';
pszSection.a :=PluginName;
diff --git a/plugins/Watrack/status/status.pas b/plugins/Watrack/status/status.pas index 1ffbeb6b84..0bdc7cdcb5 100644 --- a/plugins/Watrack/status/status.pas +++ b/plugins/Watrack/status/status.pas @@ -22,7 +22,7 @@ begin FillChar(hkrec,SizeOf(hkrec),0);
with hkrec do
begin
- cbSize :=HOTKEYDESC_SIZE_V1;
+ cbSize :=SizeOf(hkrec);
pszName :=HKN_INSERT;
pszDescription.a:='Global WATrack hotkey';
pszSection.a :=PluginName;
diff --git a/plugins/Watrack/templates/i_expkey.inc b/plugins/Watrack/templates/i_expkey.inc index f6594acebb..960fd1a43e 100644 --- a/plugins/Watrack/templates/i_expkey.inc +++ b/plugins/Watrack/templates/i_expkey.inc @@ -22,7 +22,7 @@ begin FillChar(hkrec,SizeOf(hkrec),0);
with hkrec do
begin
- cbSize :=HOTKEYDESC_SIZE_V1;
+ cbSize :=SizeOf(hkrec);
pszName :=HKN_EXPORT;
pszDescription.a:='WATrack data insert hotkey';
pszSection.a :=PluginName;
diff --git a/plugins/mRadio/i_hotkey.inc b/plugins/mRadio/i_hotkey.inc index 44e4910699..380c714623 100644 --- a/plugins/mRadio/i_hotkey.inc +++ b/plugins/mRadio/i_hotkey.inc @@ -30,33 +30,33 @@ begin FillChar(hkrec,SizeOf(hkrec),0);
- hkrec.cbSize :=HOTKEYDESC_SIZE_V1;
- hkrec.pszSection.a :=PluginName;
- hkrec.pszService :=MS_RADIO_HOTKEY;
+ hkrec.cbSize := SizeOf(hkrec);
+ hkrec.pszSection.a := PluginName;
+ hkrec.pszService := MS_RADIO_HOTKEY;
- hkrec.DefHotKey :=DefRadioKeyPlay;
- hkrec.pszName :=HKN_PLAYPAUSE;
- hkrec.pszDescription.a:='Play/Pause';
- hkrec.lParam :=MRC_PAUSE;
+ hkrec.DefHotKey := DefRadioKeyPlay;
+ hkrec.pszName := HKN_PLAYPAUSE;
+ hkrec.pszDescription.a:= 'Play/Pause';
+ hkrec.lParam := MRC_PAUSE;
CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
- hkrec.DefHotKey :=DefRadioKeyStop;
- hkrec.pszName :=HKN_STOP;
- hkrec.pszDescription.a:='Stop';
- hkrec.lParam :=MRC_STOP;
+ hkrec.DefHotKey := DefRadioKeyStop;
+ hkrec.pszName := HKN_STOP;
+ hkrec.pszDescription.a:= 'Stop';
+ hkrec.lParam := MRC_STOP;
CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
- hkrec.DefHotKey :=DefRadioKeyMute;
- hkrec.pszName :=HKN_MUTE;
- hkrec.pszDescription.a:='Mute';
- hkrec.lParam :=MRC_MUTE;
+ hkrec.DefHotKey := DefRadioKeyMute;
+ hkrec.pszName := HKN_MUTE;
+ hkrec.pszDescription.a:= 'Mute';
+ hkrec.lParam := MRC_MUTE;
CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
//??
- hkrec.DefHotKey :=DefRadioKeyRecord;
- hkrec.pszName :=HKN_RECORD;
- hkrec.pszDescription.a:='Start/Stop Record';
- hkrec.lParam :=MRC_RECORD;
+ hkrec.DefHotKey := DefRadioKeyRecord;
+ hkrec.pszName := HKN_RECORD;
+ hkrec.pszDescription.a:= 'Start/Stop Record';
+ hkrec.lParam := MRC_RECORD;
CallService(MS_HOTKEY_REGISTER,0,lparam(@hkrec));
end;
diff --git a/src/modules/skin/hotkeys.cpp b/src/modules/skin/hotkeys.cpp index 95928b7aa3..279466dbf7 100644 --- a/src/modules/skin/hotkeys.cpp +++ b/src/modules/skin/hotkeys.cpp @@ -129,7 +129,7 @@ static INT_PTR svcHotkeyUnsubclass(WPARAM wParam, LPARAM) static INT_PTR svcHotkeyRegister(WPARAM wParam, LPARAM lParam)
{
HOTKEYDESC *desc = (HOTKEYDESC *)lParam;
- if (desc->cbSize != sizeof(HOTKEYDESC) && desc->cbSize != HOTKEYDESC_SIZE_V1)
+ if (desc->cbSize != sizeof(HOTKEYDESC))
return 0;
THotkeyItem *item = (THotkeyItem*)mir_alloc(sizeof(THotkeyItem));
|