annotate src/include/statistics.h @ 7:07a9095eaeed

Update Refactored some code, moved some around
author Paper <mrpapersonic@gmail.com>
date Thu, 24 Aug 2023 23:11:38 -0400
parents 23d0d9319a00
children b1f73678ef61
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
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
3 #include <QWidget>
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
4 #include <QFrame>
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
5 #include <QPlainTextEdit>
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
6 #include "anime_list.h"
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
7
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
8 class StatisticsWidget : public QFrame {
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
9 public:
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
10 StatisticsWidget(AnimeListWidget* listwidget, QWidget* parent = nullptr);
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
11 void UpdateStatistics();
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
12
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
13 private:
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
14 std::string MinutesToDateString(int minutes);
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
15
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
16 AnimeListWidget* anime_list;
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
17 QPlainTextEdit* anime_list_data;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
18
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
19 //QPlainTextEdit* score_distribution_title;
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
20 //QPlainTextEdit* score_distribution_labels;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
21 //wxStaticText* score_distribution_graph; // how am I gonna do this
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
22
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
23 /* we don't HAVE a local database (yet ;)) */
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
24 //wxStaticText* local_database_title;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
25 //wxStaticText* local_database_labels;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
26 //wxStaticText* local_database_data;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
27
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
28 QPlainTextEdit* application_data;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
29 };
1
1ae666fdf9e2 *: initial commit
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
30 #endif // __statistics_h