summaryrefslogtreecommitdiff
path: root/plugins/StartupSilence/src/StartupSilence.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StartupSilence/src/StartupSilence.h')
-rw-r--r--plugins/StartupSilence/src/StartupSilence.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/plugins/StartupSilence/src/StartupSilence.h b/plugins/StartupSilence/src/StartupSilence.h
new file mode 100644
index 0000000000..055ffa0448
--- /dev/null
+++ b/plugins/StartupSilence/src/StartupSilence.h
@@ -0,0 +1,67 @@
+#include <windows.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_database.h>
+#include <m_icolib.h>
+#include <m_options.h>
+#include <m_system.h>
+#include <m_system_cpp.h>
+#include <m_toptoolbar.h>
+#include "version.h"
+#include "resource.h"
+#include "win2k.h"
+#include "CommCtrl.h"
+#include "WinSock.h"
+
+#if MIRANDA_VER >= 0x0A00
+static INT_PTR AdvSt();
+static INT_PTR initttb();
+static INT_PTR InitMenu();
+void InitSettings();
+void LoadSettings();
+void DefSettings();
+void IsMenu();
+void UpdateMenu();
+void UpdateTTB();
+
+INT_PTR SturtupSilenceEnabled(WPARAM wParam, LPARAM lParam);
+
+#define MODULE_NAME "StartupSilence"
+
+#define SS_SERVICE_NAME "StartupSilence/ToggleEnabled"
+
+#define POPUPONOFF "Popup/ToggleEnabled"
+#define POPUPONOFFPP "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_DISABLED TranslateT("Sounds and Popups are disabled temporary")
+#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("For use this option need TopToolBar module installed.")
+#define NEEDPOPUP TranslateT("For use this option need \"YAPP\" or \"PopUp+\" module installed.")
+
+static IconItem iconList[] = {
+ {MENU_NAME, MENU_NAME, IDI_SSICON},
+ {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}
+};
+#endif
+