summaryrefslogtreecommitdiff
path: root/plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp')
-rw-r--r--plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp75
1 files changed, 75 insertions, 0 deletions
diff --git a/plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp b/plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp
new file mode 100644
index 0000000000..2a64b0fb6a
--- /dev/null
+++ b/plugins/WinterSpeak/src/SpeechApi51Lexicon.cpp
@@ -0,0 +1,75 @@
+#include "Common.h"
+#include "SpeechApi51Lexicon.h"
+#include "SpeechApi51.h"
+
+
+extern HINSTANCE g_hInst;
+
+//------------------------------------------------------------------------------
+SpeechApi51Lexicon::SpeechApi51Lexicon(HWND window) : m_parent_window(window), m_window(0)
+{
+}
+
+//------------------------------------------------------------------------------
+SpeechApi51Lexicon::~SpeechApi51Lexicon()
+{
+}
+
+//------------------------------------------------------------------------------
+bool SpeechApi51Lexicon::display()
+{
+ m_window = CreateDialog(
+ g_hInst,
+ MAKEINTRESOURCE(IDD_TTS_LEXICON),
+ m_parent_window,
+ dialogEvent);
+
+ if (!m_window)
+ {
+ return false;
+ }
+
+ ShowWindow(m_window, SW_SHOW);
+
+/* WNDCLASS wc;
+
+ wc.style = 0;
+! wc.lpfnWndProc = (WNDPROC)MainWndProc; // Window procedure for this class.
+ wc.cbClsExtra = 0; // No per-class extra data.
+! wc.cbWndExtra = 0; // No per-window extra data.
+ wc.hInstance = hInstance; // Application that owns the class.
+ wc.hIcon = NULL;
+ wc.hCursor = NULL;
+ wc.hbrBackground = NULL;
+ wc.lpszMenuName = NULL;
+ wc.lpszClassName = "Comdlg32WClass"; // Name used in call to CreateWindow.
+
+ return (RegisterClass(&wc));*/
+
+ return true;
+}
+
+//------------------------------------------------------------------------------
+INT_PTR CALLBACK SpeechApi51Lexicon::dialogEvent(HWND hwndDlg, UINT uMsg, WPARAM wParam,
+ LPARAM lParam)
+{
+
+ return TRUE;
+}
+
+//------------------------------------------------------------------------------
+void SpeechApi51Lexicon::addLexicon()
+{
+}
+
+//------------------------------------------------------------------------------
+void SpeechApi51Lexicon::deleteLexicon()
+{
+}
+
+//------------------------------------------------------------------------------
+void SpeechApi51Lexicon::displayLexicon()
+{
+}
+
+//------------------------------------------------------------------------------ \ No newline at end of file