cpp/MainWindow.hpp
author viric <viriketo@gmail.com>
Sun, 13 Feb 2011 22:51:39 +0100
changeset 6 66becdcbe5d9
parent 5 f2a2f64eb682
permissions -rw-r--r--
Ara em va allò dels events
#ifndef _HEADER_MAINWINDOW_HPP_
#define _HEADER_MAINWINDOW_HPP_

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

BEGIN_DECLARE_EVENT_TYPES()
    DECLARE_EVENT_TYPE(EV_SKIP_QUESTION, -1)
    DECLARE_EVENT_TYPE(EV_SAVE_SENTENCE, -2)
END_DECLARE_EVENT_TYPES()

class MainWindow : public wxFrame
{
    public:
        MainWindow();

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

    DECLARE_EVENT_TABLE();
};

#endif /* _HEADER_MAINWINDOW_HPP_ */