From 55f3f8ff12e1a7388706b8ccdae139ca946742dc Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 2 Mar 2013 19:32:56 +0000 Subject: removed not used headers added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3852 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NotesAndReminders/src/Version.h | 14 ++++++++++++ plugins/NotesAndReminders/src/globals.h | 34 ++++++++++++--------------- plugins/NotesAndReminders/src/main.cpp | 38 +++++++++++++++---------------- plugins/NotesAndReminders/src/options.cpp | 3 --- 4 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 plugins/NotesAndReminders/src/Version.h (limited to 'plugins/NotesAndReminders/src') diff --git a/plugins/NotesAndReminders/src/Version.h b/plugins/NotesAndReminders/src/Version.h new file mode 100644 index 0000000000..6e1d0faab9 --- /dev/null +++ b/plugins/NotesAndReminders/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 0 +#define __RELEASE_NUM 5 +#define __BUILD_NUM 1 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Sticky Notes & Reminders" +#define __FILENAME "NotesReminders.dll" +#define __DESCRIPTION "Sticky Notes & Reminders Implementation for Miranda NG." +#define __AUTHOR "Joe Kucera, Lubomir Kolev Ivanov, Georg Fischer" +#define __AUTHOREMAIL "jokusoftware@users.sourceforge.net; d00mEr@dir.bg" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2003-2005 Joe Kucera, Lubomir Ivanov" diff --git a/plugins/NotesAndReminders/src/globals.h b/plugins/NotesAndReminders/src/globals.h index 56076f83d6..35a7188126 100644 --- a/plugins/NotesAndReminders/src/globals.h +++ b/plugins/NotesAndReminders/src/globals.h @@ -2,31 +2,25 @@ #include #include -#include #include #include -#include -#include -#include - -#include "win2k.h" -#include "newpluginapi.h" -#include "m_system.h" -#include "m_database.h" -#include "m_clist.h" -#include "m_langpack.h" -#include "m_options.h" -#include "m_skin.h" -#include "m_fontservice.h" -#include "m_hotkeys.h" -#include "m_icolib.h" - -#include "m_toptoolbar.h" -#include "miscutils.h" -#include "resource.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "miscutils.h" +#include "resource.h" +#include "Version.h" #define MODULENAME "StickyNotes" #define SECTIONNAME LPGEN("Notes & Reminders") diff --git a/plugins/NotesAndReminders/src/main.cpp b/plugins/NotesAndReminders/src/main.cpp index a099178f7d..4738d1496f 100644 --- a/plugins/NotesAndReminders/src/main.cpp +++ b/plugins/NotesAndReminders/src/main.cpp @@ -19,13 +19,13 @@ extern TREEELEMENT *RemindersList; static PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), - "Sticky Notes & Reminders", - PLUGIN_MAKE_VERSION(0,0,5,1), - "Sticky Notes & Reminders Implementation for Miranda NG.", - "Joe Kucera, Lubomir Kolev Ivanov, Georg Fischer", - "jokusoftware@users.sourceforge.net; d00mEr@dir.bg", - "(C) 2003,2005 Joe Kucera, Lubomir Ivanov", - "http://d00mer.freeshell.org/miranda/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, {0x842a6668, 0xf9da, 0x4968, {0xbf, 0xd7, 0xd2, 0xbd, 0x9d, 0xf8, 0x48, 0xee}} // {842A6668-F9DA-4968-BFD7-D2BD9DF848EE} }; @@ -38,7 +38,7 @@ void BringAllNotesToFront(STICKYNOTE *pActive); void CloseNotesList(); void CloseReminderList(); -INT_PTR PluginMenuCommandAddNew(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandAddNew(WPARAM w, LPARAM l) { STICKYNOTE *PSN = NewNote(0,0,0,0,NULL,NULL,TRUE,TRUE,0); if(PSN) @@ -46,44 +46,44 @@ INT_PTR PluginMenuCommandAddNew(WPARAM w,LPARAM l) return 0; } -INT_PTR PluginMenuCommandDeleteAll(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandDeleteAll(WPARAM w, LPARAM l) { if (g_Stickies && MessageBox(NULL, TranslateT("Are you sure you want to delete all notes?"), TranslateT(SECTIONNAME), MB_OKCANCEL) == IDOK) DeleteNotes(); return 0; } -INT_PTR PluginMenuCommandShowHide(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandShowHide(WPARAM w, LPARAM l) { ShowHideNotes(); return 0; } -INT_PTR PluginMenuCommandViewNotes(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandViewNotes(WPARAM w, LPARAM l) { ListNotes(); return 0; } -INT_PTR PluginMenuCommandAllBringFront(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandAllBringFront(WPARAM w, LPARAM l) { BringAllNotesToFront(NULL); return 0; } -INT_PTR PluginMenuCommandNewReminder(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandNewReminder(WPARAM w, LPARAM l) { NewReminder(); return 0; } -INT_PTR PluginMenuCommandViewReminders(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandViewReminders(WPARAM w, LPARAM l) { ListReminders(); return 0; } -INT_PTR PluginMenuCommandDeleteReminders(WPARAM w,LPARAM l) +INT_PTR PluginMenuCommandDeleteReminders(WPARAM w, LPARAM l) { if (RemindersList && MessageBox(NULL, TranslateT("Are you sure you want to delete all reminders?"), TranslateT(SECTIONNAME), MB_OKCANCEL) == IDOK) DeleteReminders(); @@ -122,7 +122,7 @@ int OnOptInitialise(WPARAM w, LPARAM L) odp.position = 900002000; odp.hInstance = hinstance; odp.pszTemplate = MAKEINTRESOURCEA(IDD_STNOTEOPTIONS); - odp.ptszTitle = _T(SECTIONNAME); + odp.ptszTitle = SECTIONNAME; odp.ptszGroup = LPGENT("Plugins"); odp.pfnDlgProc = DlgProcOptions; odp.flags = ODPF_TCHAR; @@ -130,7 +130,7 @@ int OnOptInitialise(WPARAM w, LPARAM L) return 0; } -int OnTopToolBarInit(WPARAM w,LPARAM L) +int OnTopToolBarInit(WPARAM w, LPARAM L) { TTBButton ttb = {0}; ttb.cbSize = sizeof(TTBButton); @@ -177,7 +177,7 @@ static void InitServices() CreateServiceFunction(MODULENAME"/OpenTriggeredReminder",OpenTriggeredReminder); } -int OnModulesLoaded(WPARAM wparam,LPARAM lparam) +int OnModulesLoaded(WPARAM wparam, LPARAM lparam) { // register fonts and hotkeys RegisterFontServiceFonts(); @@ -343,7 +343,7 @@ extern "C" __declspec(dllexport) int Load(void) InitServices(); WS_Init(); - hkModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED,OnModulesLoaded); + hkModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); InitIcons(); return 0; diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp index 385c8a004a..3f3b889409 100644 --- a/plugins/NotesAndReminders/src/options.cpp +++ b/plugins/NotesAndReminders/src/options.cpp @@ -1,11 +1,8 @@ #include "globals.h" - - // min allowed alpha (don't want 0 because it's a waste of resources as well as might confuse user) #define MIN_ALPHA 30 - extern HANDLE hkFontChange; extern HANDLE hkColorChange; -- cgit v1.2.3