-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.h
49 lines (41 loc) · 900 Bytes
/
widget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
QT_BEGIN_NAMESPACE
class QPushButton;
class QTextEdit;
class QLineSeries;
class QChart;
class QChartView;
class QLabel;
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
int alphabet[33] = {0};
Widget(QWidget *parent = nullptr);
~Widget();
void writeSettings();
void readSettings();
private:
QTextEdit *textEdit;
QPushButton *insertTextObjectButton;
QPushButton *insertFileObjectButton;
QPushButton *insertSaveObjectButton;
QLineSeries *series;
QChart *chart;
QChartView *chartView;
QLabel * lblStatLabel;
private slots:
void insertTextObject();
void insertFileObject();
void insertStatLabel();
void saveStat();
private:
void insertSeries();
void addTextDB();
void addFileDB();
void caseLetters(QString);
};
#endif // WIDGET_H