From 8d3307adf7ba64b75fb4de363f873c97286b0e9b Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 2 Apr 2013 13:26:06 +0000 Subject: - XSoundNotify - adopted git-svn-id: http://svn.miranda-ng.org/main/trunk@4284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/XSoundNotify/src/SettingsDialog.h | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 plugins/XSoundNotify/src/SettingsDialog.h (limited to 'plugins/XSoundNotify/src/SettingsDialog.h') diff --git a/plugins/XSoundNotify/src/SettingsDialog.h b/plugins/XSoundNotify/src/SettingsDialog.h new file mode 100644 index 0000000000..8f22f1ea75 --- /dev/null +++ b/plugins/XSoundNotify/src/SettingsDialog.h @@ -0,0 +1,52 @@ +#ifndef __XSN_SETTINGS_DIALOG_H +#define __XSN_SETTINGS_DIALOG_H + +class SettingsDialog : public CDialogImpl +{ +private: + CComboBox _userCombo; + CComboBox _protoCombo; + CButton _chooseButton; + CButton _resetButton; + CButton _playButton; + CStatic _soundLabel; + SoundNotifyDataStorage & _dataStorage; + +public: + SettingsDialog(SoundNotifyDataStorage & dataStorage); + virtual ~SettingsDialog() {} + static BOOL DlgProcCluiOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); + +public: + enum {IDD = IDD_DIALOG1}; + + BEGIN_MSG_MAP(SettingsDialog) + MESSAGE_HANDLER(WM_INITDIALOG, onInitDialog) + COMMAND_HANDLER(IDC_COMBO_PROTO, CBN_SELCHANGE, onSelectProtocol) + COMMAND_HANDLER(IDC_COMBO_USERS, CBN_SELCHANGE, onSelectUser) + COMMAND_ID_HANDLER(IDOK, onOk) + COMMAND_ID_HANDLER(IDCANCEL, onCancel) + COMMAND_ID_HANDLER(IDC_BUTTON_CHOOSE_SOUND, onChooseSound) + COMMAND_ID_HANDLER(IDC_BUTTON_RESET_SOUND, onResetSound) + COMMAND_ID_HANDLER(IDC_BUTTON_TEST_PLAY, onTestPlay) + END_MSG_MAP() + + virtual BOOL PreTranslateMessage(MSG* pMsg); + +protected: + LRESULT onInitDialog(UINT, WPARAM, LPARAM, BOOL&); + + LRESULT onOk(WORD, WORD, HWND, BOOL&); + LRESULT onCancel(WORD, WORD, HWND, BOOL &); + LRESULT onSelectProtocol(WORD, WORD, HWND, BOOL&); + LRESULT onSelectUser(WORD, WORD, HWND, BOOL &); + LRESULT onChooseSound(WORD, WORD, HWND , BOOL&); + LRESULT onResetSound(WORD, WORD, HWND , BOOL&); + LRESULT onTestPlay(WORD, WORD, HWND , BOOL&); + + void addProtocolItem(ProtocolTable::value_type & value); + + void setSoundLabelText(LPCTSTR text); +}; + +#endif -- cgit v1.2.3