Mercurial > minori
diff src/include/statistics.h @ 1:1ae666fdf9e2
*: initial commit
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 08 Aug 2023 19:49:15 -0400 |
parents | |
children | 23d0d9319a00 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/include/statistics.h Tue Aug 08 19:49:15 2023 -0400 @@ -0,0 +1,40 @@ +#ifndef __statistics_h +#define __statistics_h +class Statistics; + +class StatisticsTimer : public wxTimer { + public: + StatisticsTimer(Statistics* caller); + virtual void Notify(); + + private: + Statistics* statistics; +}; + +class Statistics { + public: + Statistics(page_t* page, wxPanel* frame); + void UpdateStatistics(); + + private: + std::string MinutesToDateString(int minutes); + + wxPanel* panel; + AnimeListPage* anime_list; + wxStaticText* anime_list_data; + + wxStaticText* score_distribution_title; + wxStaticText* score_distribution_labels; + //wxStaticText* score_distribution_graph; // how am I gonna do this + + /* we don't HAVE a local database (yet ;)) */ + //wxStaticText* local_database_title; + //wxStaticText* local_database_labels; + //wxStaticText* local_database_data; + + wxStaticText* application_title; + wxStaticText* application_labels; + wxStaticText* application_data; + StatisticsTimer* timer; +}; +#endif // __statistics_h \ No newline at end of file