cpp/MainWindow.hpp
author viric <viriketo@gmail.com>
Sun, 13 Feb 2011 08:43:06 +0100
changeset 5 f2a2f64eb682
parent 2 5331bd08a294
child 6 66becdcbe5d9
permissions -rw-r--r--
Events don't work as I expect. tab makes save sentence, while enter should be
doing that.
viriketo@2
     1
#ifndef _HEADER_MAINWINDOW_HPP_
viriketo@2
     2
#define _HEADER_MAINWINDOW_HPP_
viriketo@2
     3
viriketo@2
     4
#include <wx/wx.h>
viriketo@5
     5
#include <wx/event.h>
viriketo@2
     6
viriketo@2
     7
class MainWindow : public wxFrame
viriketo@2
     8
{
viriketo@5
     9
    public:
viriketo@5
    10
        enum
viriketo@5
    11
        {
viriketo@5
    12
            ID_SKIP_QUESTION,
viriketo@5
    13
            ID_SAVE_SENTENCE
viriketo@5
    14
        };
viriketo@5
    15
viriketo@5
    16
        MainWindow();
viriketo@5
    17
viriketo@5
    18
        void OnSkipQuestion(wxCommandEvent &e);
viriketo@5
    19
        void OnSaveSentence(wxCommandEvent &e);
viriketo@5
    20
viriketo@5
    21
    DECLARE_EVENT_TABLE();
viriketo@2
    22
};
viriketo@2
    23
viriketo@2
    24
#endif /* _HEADER_MAINWINDOW_HPP_ */