diff options
Diffstat (limited to 'plugins/NotesAndReminders/src/stdafx.h')
-rw-r--r-- | plugins/NotesAndReminders/src/stdafx.h | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/plugins/NotesAndReminders/src/stdafx.h b/plugins/NotesAndReminders/src/stdafx.h new file mode 100644 index 0000000000..16da30b03a --- /dev/null +++ b/plugins/NotesAndReminders/src/stdafx.h @@ -0,0 +1,113 @@ +#pragma once + +#include <windows.h> +#include <commctrl.h> +#include <time.h> +#include <richedit.h> + +#include <win2k.h> +#include <newpluginapi.h> +#include <m_database.h> +#include <m_utils.h> +#include <m_clistint.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_gui.h> + +#include <m_toptoolbar.h> + +#include "miscutils.h" +#include "resource.h" +#include "version.h" + +#define MODULENAME "StickyNotes" +#define SECTIONNAME LPGEN("Notes & Reminders") + +struct CMPlugin : public PLUGIN<CMPlugin> +{ + CMPlugin(); + + CMOption<BYTE> bShowNotesAtStart, bShowScrollbar, bAddContListMI, bShowNoteButtons; + CMOption<BYTE> bCloseAfterAddReminder, bUseMSI; + + int Load() override; + int Unload() override; +}; + +// font IDs used with LoadNRFont +#define NR_FONTID_CAPTION 0 +#define NR_FONTID_BODY 1 +#define NR_FONTID_MAX NR_FONTID_BODY + +// normal timer interval for reminder update processing +#define REMINDER_UPDATE_INTERVAL 10000 + +// short timer interval for reminder updates used as long as there are pending alarams in the event queue +#define REMINDER_UPDATE_INTERVAL_SHORT 5000 + +extern void CreateMsgWindow(void); +extern void DestroyMsgWindow(void); + +void NewNote(int Ax, int Ay, int Aw, int Ah, char *Data, ULARGE_INTEGER *ID, BOOL Visible, BOOL bOnTop, int scrollV); +void LoadNotes(BOOL bIsStartup); +void SaveNotes(void); +void DeleteNotes(void); +void ShowHideNotes(void); + +void LoadReminders(void); +void SaveReminders(void); +void DeleteReminders(void); +bool CheckRemindersAndStart(void); + +void InitSettings(void); +void TermSettings(void); +void LoadNRFont(int i, LOGFONTA *lf, COLORREF *colour); + +BOOL WS_Init(); +void WS_CleanUp(); + +wchar_t* GetDateFormatStr(); +wchar_t* GetTimeFormatStr(); + +extern HINSTANCE hmiranda; + +extern HICON g_hReminderIcon; + +extern LOGFONTA lfBody, lfCaption; +extern HFONT hBodyFont, hCaptionFont; + +extern long BodyColor; +extern long CaptionFontColor, BodyFontColor; + +extern int g_NoteTitleDate, g_NoteTitleTime; + +extern int g_NoteWidth, g_NoteHeight; + +extern int g_Transparency; + +extern char *g_RemindSMS; + +extern char *g_lpszAltBrowser; + +extern int g_reminderListGeom[4]; +extern int g_reminderListColGeom[2]; +extern int g_notesListGeom[4]; +extern int g_notesListColGeom[4]; + +extern IconItem iconList[]; + +INT_PTR PluginMenuCommandAddNew(WPARAM, LPARAM); +INT_PTR PluginMenuCommandShowHide(WPARAM, LPARAM); +INT_PTR PluginMenuCommandViewNotes(WPARAM, LPARAM); +INT_PTR PluginMenuCommandAllBringFront(WPARAM, LPARAM); +INT_PTR PluginMenuCommandDeleteNotes(WPARAM, LPARAM); + +INT_PTR PluginMenuCommandNewReminder(WPARAM, LPARAM); +INT_PTR PluginMenuCommandViewReminders(WPARAM, LPARAM); +INT_PTR PluginMenuCommandDeleteReminders(WPARAM, LPARAM); + +int OnOptInitialise(WPARAM, LPARAM); |