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.
#ifndef _HEADER_MAINWINDOW_HPP_
#define _HEADER_MAINWINDOW_HPP_

#include <wx/wx.h>
#include <wx/event.h>

class MainWindow : public wxFrame
{
    public:
        enum
        {
            ID_SKIP_QUESTION,
            ID_SAVE_SENTENCE
        };

        MainWindow();

        void OnSkipQuestion(wxCommandEvent &e);
        void OnSaveSentence(wxCommandEvent &e);

    DECLARE_EVENT_TABLE();
};

#endif /* _HEADER_MAINWINDOW_HPP_ */