--- a/cpp/MainWindow.cpp Sun Feb 13 08:27:44 2011 +0100
+++ b/cpp/MainWindow.cpp Sun Feb 13 08:43:06 2011 +0100
@@ -1,10 +1,17 @@
#include <wx/wx.h>
#include <wx/image.h>
+#include <iostream>
#include "MainWindow.hpp"
#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 )
+END_EVENT_TABLE ()
+
MainWindow::MainWindow()
- :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition)
+ :wxFrame(0, wxID_ANY, _("Lingvigilo"), wxDefaultPosition, wxDefaultSize,
+ wxSTAY_ON_TOP)
{
wxBoxSizer *s = new wxBoxSizer(wxVERTICAL);
wxStaticText *label = new wxStaticText(this, wxID_ANY,
@@ -17,3 +24,15 @@
SetSizerAndFit(s);
}
+
+void
+MainWindow::OnSkipQuestion(wxCommandEvent &e)
+{
+ std::cerr << "Skip Question" << std::endl;
+}
+
+void
+MainWindow::OnSaveSentence(wxCommandEvent &e)
+{
+ std::cerr << "Save Sentence" << std::endl;
+}