Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
2.6 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: PhoneEditDlg.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of PhoneEditDlg.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __PHONE__EDIT__DLG__H__INCLUDED__
  15. #define __PHONE__EDIT__DLG__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #include "..\DLIB\PhoneCallCenter.h"
  20. class CPhoneEditDlg : public CDialog
  21. {
  22. // Construction
  23. public:
  24. CPhoneEditDlg(CWnd* pParent = NULL);
  25. virtual ~CPhoneEditDlg();
  26. public:
  27. INT DoModal( CSensorArray* pSensorArray, CPhoneCallCenter::PPHONE_COMMAND_EX& pPhoneCommand );
  28. // Dialog Data
  29. //{{AFX_DATA(CPhoneEditDlg)
  30. enum { IDD = IDD_PHONE_EDIT_DLG };
  31. CEdit m_EditMessageRepeat;
  32. CSliderCtrl m_SliderWelcomeVolume;
  33. CSliderCtrl m_SliderWelcomeRate;
  34. CSliderCtrl m_SliderMessageVolume;
  35. CSliderCtrl m_SliderMessageRate;
  36. CComboBox m_ComboWelcomeVoice;
  37. CComboBox m_ComboMessageVoice;
  38. CEdit m_EditNumber;
  39. CEdit m_EditMessageWave;
  40. CEdit m_EditMessageText2Speech;
  41. CEdit m_EditWelcomeText2Speech;
  42. CEdit m_EditWelcomeWave;
  43. CButton m_ButtonMessageTest;
  44. CButton m_ButtonMessageFile;
  45. CButton m_ButtonWelcomeTest;
  46. CButton m_ButtonWelcomeFile;
  47. CListBox m_ListSrc;
  48. CListBox m_ListDst;
  49. //}}AFX_DATA
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CPhoneEditDlg)
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  55. //}}AFX_VIRTUAL
  56. // Implementation
  57. protected:
  58. // Generated message map functions
  59. //{{AFX_MSG(CPhoneEditDlg)
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnRadioMessage();
  62. afx_msg void OnRadioWelcome();
  63. virtual void OnOK();
  64. afx_msg void OnButtonAdd();
  65. afx_msg void OnButtonAddAll();
  66. afx_msg void OnButtonDelete();
  67. afx_msg void OnButtonDeleteAll();
  68. afx_msg void OnButtonMessageFile();
  69. afx_msg void OnButtonWelcomeFile();
  70. afx_msg void OnButtonMessageTest();
  71. afx_msg void OnButtonWelcomeTest();
  72. afx_msg void OnDestroy();
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. private:
  76. CPhoneCallCenter::PPHONE_COMMAND_EX m_pPhoneCommand;
  77. CSensorArray *m_pSensorArray;
  78. private:
  79. static BOOL EnumVoiceProc( LPCTSTR, LPWSTR, void* );
  80. BOOL EnumVoiceProc( LPCTSTR, LPWSTR );
  81. private:
  82. CLgWavePlayer m_WavePlayer;
  83. CLgWaveFile m_WaveFile;
  84. CLgSpeechPlayer m_SpeechPlayer;
  85. };
  86. //{{AFX_INSERT_LOCATION}}
  87. #endif