annotate src/include/statistics.h @ 8:b1f73678ef61

update text paragraphs are now their own objects, as they should be
author Paper <mrpapersonic@gmail.com>
date Sat, 26 Aug 2023 03:39:34 -0400
parents 07a9095eaeed
children
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);
8
Paper <mrpapersonic@gmail.com>
parents: 7
diff changeset
15 std::string SecondsToDateString(int seconds);
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
16
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
17 AnimeListWidget* anime_list;
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
18 QPlainTextEdit* anime_list_data;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
19
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
20 //QPlainTextEdit* score_distribution_title;
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
21 //QPlainTextEdit* score_distribution_labels;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
22 //wxStaticText* score_distribution_graph; // how am I gonna do this
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
23
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
24 /* we don't HAVE a local database (yet ;)) */
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
25 //wxStaticText* local_database_title;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
26 //wxStaticText* local_database_labels;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
27 //wxStaticText* local_database_data;
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
28
7
Paper <mrpapersonic@gmail.com>
parents: 2
diff changeset
29 QPlainTextEdit* application_data;
2
Paper <mrpapersonic@gmail.com>
parents: 1
diff changeset
30 };
1
1ae666fdf9e2 *: initial commit
Paper <mrpapersonic@gmail.com>
parents:
diff changeset
31 #endif // __statistics_h