00001
00002
00003
00004 #include <wx/wx.h>
00005 #include <vector>
00006
00007 #include "control_statistics.h"
00008 #include "global.h"
00009 #include "TestManager.h"
00010 #include "date_btn.h"
00011 #include "utils.h"
00012 #include "timer.h"
00013
00014 #ifndef _CONTROL_H_
00015 #define _CONTROL_H_
00016
00017 using namespace Limiro;
00018
00019 class control
00020 {
00021 public:
00022 control();
00023 void initialise(wxWindow *screen, CatalogList catalogs, int count,int time);
00024 void show_statistics();
00025 void destroy();
00026 bool check();
00027 void info();
00028 void out();
00029 void refresh();
00030 protected:
00031
00032 Limiro::TestManager* manager;
00033
00034 wxButton* info_btn;
00035 wxButton* out_btn;
00036 wxButton* check_btn;
00037 wxStaticText* time_text;
00038 std::vector<wxStaticText*> questions_btn;
00039 std::vector<wxTextCtrl*> entries_btn;
00040 std::vector<date_btn*> dates_btn;
00041 std::vector<wxRadioButton**> choices_btn;
00042 std::vector<int> choices_counts;
00043 int choices_count;
00044 wxWindow* parent;
00045 wxBoxSizer* sizer;
00046 wxScrolledWindow* window;
00047 my_timer* timer;
00048
00049 int questions_count;
00050 int right;
00051 int count;
00052
00053 std::vector<std::string> wrong_answered_questions;
00054 std::vector<std::string> correct_answers;
00055 };
00056
00057
00058 #endif // _CONTROL_H_