1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef STATISTICS_H |
5 | #define STATISTICS_H |
6 | |
7 | #include "ui_statistics.h" |
8 | #include <QVariant> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | struct StatisticalData |
13 | { |
14 | int wordsSource; |
15 | int ; |
16 | int ; |
17 | int wordsFinished; |
18 | int charsFinished; |
19 | int ; |
20 | int wordsUnfinished; |
21 | int charsUnfinished; |
22 | int ; |
23 | int translatedMsgNoDanger; |
24 | int translatedMsgDanger; |
25 | int obsoleteMsg; |
26 | int unfinishedMsgNoDanger; |
27 | int unfinishedMsgDanger; |
28 | }; |
29 | |
30 | class Statistics : public QDialog, public Ui::Statistics |
31 | { |
32 | Q_OBJECT |
33 | |
34 | public: |
35 | Statistics(QWidget *parent = 0, Qt::WindowFlags fl = {}); |
36 | ~Statistics() {} |
37 | |
38 | public slots: |
39 | virtual void updateStats(const StatisticalData &newStats); |
40 | |
41 | protected slots: |
42 | virtual void languageChange(); |
43 | }; |
44 | |
45 | QT_END_NAMESPACE |
46 | |
47 | #endif // STATISTICS_H |
48 | |