cpp/MainWindow.cpp
changeset 6 66becdcbe5d9
parent 5 f2a2f64eb682
equal deleted inserted replaced
5:f2a2f64eb682 6:66becdcbe5d9
     3 #include <iostream>
     3 #include <iostream>
     4 #include "MainWindow.hpp"
     4 #include "MainWindow.hpp"
     5 #include "TextBox.hpp"
     5 #include "TextBox.hpp"
     6 
     6 
     7 BEGIN_EVENT_TABLE (MainWindow, wxFrame)
     7 BEGIN_EVENT_TABLE (MainWindow, wxFrame)
     8     EVT_COMMAND (wxID_ANY, ID_SKIP_QUESTION, MainWindow::OnSkipQuestion )
     8     EVT_COMMAND (wxID_ANY, EV_SKIP_QUESTION, MainWindow::OnSkipQuestion )
     9     EVT_COMMAND (wxID_ANY, ID_SAVE_SENTENCE, MainWindow::OnSaveSentence )
     9     EVT_COMMAND (wxID_ANY, EV_SAVE_SENTENCE, MainWindow::OnSaveSentence )
    10 END_EVENT_TABLE ()
    10 END_EVENT_TABLE ()
       
    11 
       
    12 DEFINE_EVENT_TYPE(EV_SKIP_QUESTION)
       
    13 DEFINE_EVENT_TYPE(EV_SAVE_SENTENCE)
       
    14 
    11 
    15 
    12 MainWindow::MainWindow()
    16 MainWindow::MainWindow()
    13     :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition, wxDefaultSize,
    17     :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition, wxDefaultSize,
    14             wxSTAY_ON_TOP)
    18             wxSTAY_ON_TOP)
    15 {
    19 {