annotate src/include/statistics.h @ 4:5af270662505

Set override functions as override
author Paper <mrpapersonic@gmail.com>
date Sat, 12 Aug 2023 12:08:16 -0400
parents 23d0d9319a00
children 07a9095eaeed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
1 #ifndef __statistics_h
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
2 #define __statistics_h
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
3 class Statistics;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
4
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
5 class StatisticsTimer : public wxTimer {
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
6 public:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7 StatisticsTimer(Statistics* caller);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
8 virtual void Notify();
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
9
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
10 private:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 Statistics* statistics;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
12 };
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
14 class Statistics {
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15 public:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16 Statistics(page_t* page, wxPanel* frame);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
17 void UpdateStatistics();
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
18
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
19 private:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
20 std::string MinutesToDateString(int minutes);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
21
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
22 wxPanel* panel;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
23 AnimeListPage* anime_list;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
24 wxStaticText* anime_list_data;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
25
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
26 wxStaticText* score_distribution_title;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
27 wxStaticText* score_distribution_labels;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
28 //wxStaticText* score_distribution_graph; // how am I gonna do this
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
29
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
30 /* we don't HAVE a local database (yet ;)) */
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
31 //wxStaticText* local_database_title;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
32 //wxStaticText* local_database_labels;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
33 //wxStaticText* local_database_data;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
34
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
35 wxStaticText* application_title;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
36 wxStaticText* application_labels;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
37 wxStaticText* application_data;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
38 StatisticsTimer* timer;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
39 };
1
1ae666fdf9e2 *: initial commit
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
40 #endif // __statistics_h