00001
00002
00003
00004 #include <wx/wx.h>
00005 #include <vector>
00006
00007 #include "global.h"
00008 #include "ExerciseManager.h"
00009 #include "date_btn.h"
00010 #include "utils.h"
00011
00012 #ifndef _EXERCISE_H_
00013 #define _EXERCISE_H_
00014
00015 using namespace Limiro;
00016
00017 class exercise
00018 {
00019 public:
00020 exercise();
00021 void initialise(wxWindow *screen, CatalogList catalogs);
00022 void show_statistics();
00023 void destroy();
00024 bool check();
00025 void help();
00026 protected:
00027 void create_buttons();
00028 void destroy_buttons();
00029
00030 Limiro::ExerciseManager* manager;
00031 wxStaticText* question_btn;
00032 wxButton* help_btn;
00033 wxButton* check_btn;
00034 wxButton* quit_btn;
00035 wxTextCtrl* entry_btn;
00036 date_btn* date;
00037 wxRadioButton** choices_btn;
00038 int choices_count;
00039 wxWindow* window;
00040 wxBoxSizer* sizer;
00041 int richtig;
00042 int anzahl;
00043 };
00044
00045
00046 #endif // _EXERCISE_H_