cpp/MainWindow.cpp
changeset 6 66becdcbe5d9
parent 5 f2a2f64eb682
--- a/cpp/MainWindow.cpp	Sun Feb 13 08:43:06 2011 +0100
+++ b/cpp/MainWindow.cpp	Sun Feb 13 22:51:39 2011 +0100
@@ -5,10 +5,14 @@
 #include "TextBox.hpp"
 
 BEGIN_EVENT_TABLE (MainWindow, wxFrame)
-    EVT_COMMAND (wxID_ANY, ID_SKIP_QUESTION, MainWindow::OnSkipQuestion )
-    EVT_COMMAND (wxID_ANY, ID_SAVE_SENTENCE, MainWindow::OnSaveSentence )
+    EVT_COMMAND (wxID_ANY, EV_SKIP_QUESTION, MainWindow::OnSkipQuestion )
+    EVT_COMMAND (wxID_ANY, EV_SAVE_SENTENCE, MainWindow::OnSaveSentence )
 END_EVENT_TABLE ()
 
+DEFINE_EVENT_TYPE(EV_SKIP_QUESTION)
+DEFINE_EVENT_TYPE(EV_SAVE_SENTENCE)
+
+
 MainWindow::MainWindow()
     :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition, wxDefaultSize,
             wxSTAY_ON_TOP)