2
|
1 #ifndef __statistics_h
|
|
2 #define __statistics_h
|
|
3 class Statistics;
|
|
4
|
|
5 class StatisticsTimer : public wxTimer {
|
|
6 public:
|
|
7 StatisticsTimer(Statistics* caller);
|
|
8 virtual void Notify();
|
|
9
|
|
10 private:
|
|
11 Statistics* statistics;
|
|
12 };
|
|
13
|
|
14 class Statistics {
|
|
15 public:
|
|
16 Statistics(page_t* page, wxPanel* frame);
|
|
17 void UpdateStatistics();
|
|
18
|
|
19 private:
|
|
20 std::string MinutesToDateString(int minutes);
|
|
21
|
|
22 wxPanel* panel;
|
|
23 AnimeListPage* anime_list;
|
|
24 wxStaticText* anime_list_data;
|
|
25
|
|
26 wxStaticText* score_distribution_title;
|
|
27 wxStaticText* score_distribution_labels;
|
|
28 //wxStaticText* score_distribution_graph; // how am I gonna do this
|
|
29
|
|
30 /* we don't HAVE a local database (yet ;)) */
|
|
31 //wxStaticText* local_database_title;
|
|
32 //wxStaticText* local_database_labels;
|
|
33 //wxStaticText* local_database_data;
|
|
34
|
|
35 wxStaticText* application_title;
|
|
36 wxStaticText* application_labels;
|
|
37 wxStaticText* application_data;
|
|
38 StatisticsTimer* timer;
|
|
39 };
|
1
|
40 #endif // __statistics_h |