diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-01 16:42:01 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-01 16:42:01 +0000 |
commit | b15ca763899cf22d5da3f4c75e1b5f37435118f9 (patch) | |
tree | aa63058f24e1dfeeaaa901d6e7664ebd6ec67f90 /plugins/StartupSilence/src/stdafx.h | |
parent | 6c18e42ff55c8bf4c4b11dbe2e970bc553d00467 (diff) |
StartupSilence: common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@14781 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StartupSilence/src/stdafx.h')
-rw-r--r-- | plugins/StartupSilence/src/stdafx.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/plugins/StartupSilence/src/stdafx.h b/plugins/StartupSilence/src/stdafx.h new file mode 100644 index 0000000000..f7c0c3043a --- /dev/null +++ b/plugins/StartupSilence/src/stdafx.h @@ -0,0 +1,77 @@ +#include <windows.h>
+#include <CommCtrl.h>
+#include <WinSock.h>
+
+#include <newpluginapi.h>
+#include <m_core.h>
+#include <m_clist.h>
+#include <m_skin.h>
+#include <m_popup.h>
+#include <m_langpack.h>
+#include <m_utils.h>
+#include <m_icolib.h>
+#include <m_options.h>
+#include <m_protocols.h>
+#include <m_system.h>
+#include <m_system_cpp.h>
+#include "win2k.h"
+
+#include <m_toptoolbar.h>
+
+#include "version.h"
+#include "resource.h"
+
+static INT_PTR AdvSt();
+static INT_PTR InitMenu();
+void InitSettings();
+void LoadSettings();
+void DefSettings();
+void IsMenu();
+void UpdateMenu();
+void UpdateTTB();
+
+INT_PTR SturtupSilenceEnabled(WPARAM wParam, LPARAM lParam);
+INT_PTR SilenceConnection(WPARAM wParam, LPARAM lParam);
+
+#define MODULE_NAME "StartupSilence"
+
+#define SS_SERVICE_NAME "StartupSilence/ToggleEnabled"
+
+//StartupSilence/SilenceConnection
+//external service for mute sound and popups according to plugin settings
+//wParam = 2 - SilenceConnection is on
+//wParam = 0 - SilenceConnection is off
+//lParam = 0 - not in use
+#define SS_SILENCE_CONNECTION "StartupSilence/SilenceConnection"
+
+#define POPUPONOFF "Popup/EnableDisableMenuCommand"
+
+#define MENU_NAME LPGEN("Silence at startup")
+#define DISABLE_SILENCE LPGEN("Toggle Silence OFF")
+#define ENABLE_SILENCE LPGEN("Toggle Silence ON")
+#define DISABLE_SILENCETTB LPGEN("Toggle Silence OFF TTB")
+#define ENABLE_SILENCETTB LPGEN("Toggle Silence ON TTB")
+#define ALL_ENABLED TranslateT("Sounds and popups are enabled")
+#define ALL_ENABLED_FLT LPGEN("Filtered mode ON")
+#define ALL_DISABLED TranslateT("Sounds and popups are disabled temporarily")
+#define ALL_DISABLED_FLT TranslateT("Sounds and popups are disabled temporarily.\nmRadio or Weather popups, etc. are allowed.")
+#define S_MODE_CHANGEDON TranslateT("Silent Startup mode changed to ON")
+#define S_MODE_CHANGEDOFF TranslateT("Silent Startup mode changed to OFF")
+#define SS_IS_ON Translate("Silence At Startup is ON")
+#define SS_IS_OFF Translate("Silence At Startup is OFF")
+#define TTBNAME Translate("Toggle Silence At Startup")
+#define NOTICE TranslateT(MENU_NAME)
+#define NEEDTTBMOD TranslateT("You have to install \"TopToolBar\" to use this option.")
+#define NEEDPOPUP TranslateT("You have to install \"YAPP\" or \"Popup+\" to use this option.")
+
+static IconItem iconList[] = {
+ {MENU_NAME, MENU_NAME, IDI_SSICON},
+ {ALL_ENABLED_FLT, ALL_ENABLED_FLT, IDI_SSFILTEREDON},
+ {DISABLE_SILENCE, DISABLE_SILENCE, IDI_SSDISABLE},
+ {ENABLE_SILENCE, ENABLE_SILENCE, IDI_SSENABLE}
+};
+
+static IconItem iconttbList[] = {
+ {DISABLE_SILENCETTB, DISABLE_SILENCETTB, IDI_SSDISABLETTB},
+ {ENABLE_SILENCETTB, ENABLE_SILENCETTB, IDI_SSENABLETTB}
+};
|