From e743df09941ad6cf44c81b2bcfbc3396f0fc349c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 30 Jul 2022 15:08:07 +0300 Subject: WWI: - options moved to UI classes; - global variables -> CMOption<>; - code cleaning; --- plugins/WhenWasIt/src/WhenWasIt.cpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'plugins/WhenWasIt/src/WhenWasIt.cpp') diff --git a/plugins/WhenWasIt/src/WhenWasIt.cpp b/plugins/WhenWasIt/src/WhenWasIt.cpp index fe56baa9f4..5f5d718ea5 100644 --- a/plugins/WhenWasIt/src/WhenWasIt.cpp +++ b/plugins/WhenWasIt/src/WhenWasIt.cpp @@ -26,8 +26,6 @@ MWindowList hAddBirthdayWndsList = nullptr; CMPlugin g_plugin; -CommonData commonData = { 0 }; - ///////////////////////////////////////////////////////////////////////////////////////// PLUGININFOEX pluginInfoEx = { @@ -44,7 +42,27 @@ PLUGININFOEX pluginInfoEx = { }; CMPlugin::CMPlugin() : - PLUGIN(MODULENAME, pluginInfoEx) + PLUGIN(MODULENAME, pluginInfoEx), + foreground(MODULENAME, "Foreground", FOREGROUND_COLOR), + background(MODULENAME, "Background", BACKGROUND_COLOR), + checkInterval(MODULENAME, "CheckInterval", CHECK_INTERVAL), + daysInAdvance(MODULENAME, "DaysInAdvance", DAYS_TO_NOTIFY), + daysAfter(MODULENAME, "DaysAfter", DAYS_TO_NOTIFY_AFTER), + popupTimeout(MODULENAME, "PopupTimeout", POPUP_TIMEOUT), + popupTimeoutToday(MODULENAME, "PopupTimeoutToday", POPUP_TIMEOUT), + bUsePopups(MODULENAME, "UsePopups", true), + bUseDialog(MODULENAME, "UseDialog", true), + bIgnoreSubcontacts(MODULENAME, "IgnoreSubcontacts", false), + cShowAgeMode(MODULENAME, "ShowCurrentAge", false), + bNoBirthdaysPopup(MODULENAME, "NoBirthdaysPopup", false), + bOpenInBackground(MODULENAME, "OpenInBackground", false), + cSoundNearDays(MODULENAME, "SoundNearDays", BIRTHDAY_NEAR_DEFAULT_DAYS), + cDefaultModule(MODULENAME, "DefaultModule", 0), + lPopupClick(MODULENAME, "PopupLeftClick", 2), + rPopupClick(MODULENAME, "PopupRightClick", 1), + bOncePerDay(MODULENAME, "OncePerDay", false), + cDlgTimeout(MODULENAME, "DlgTimeout", POPUP_TIMEOUT), + notifyFor(MODULENAME, "NotifyFor", 0) {} ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3