-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
74 lines (49 loc) · 1.37 KB
/
Copy pathmainwindow.h
File metadata and controls
74 lines (49 loc) · 1.37 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDateTime>
#include <QFileInfo>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
QString currentFile;
QString file_name;
QString file_name_p;
QFile path_n;
int index_n;
int index_p;
bool isCreated = false;
QString words_n = 0;
QString letters_n = 0;
QString chars_n = 0;
private slots:
void on_SaveFile_triggered();
void on_SaveAs_triggered();
void on_OpenFile_triggered();
void on_SaveAsPDF_triggered();
void on_CloseFile_triggered();
void on_actionCopy_triggered();
void on_actionCut_triggered();
void on_actionPaste_triggered();
void on_actionUndo_triggered();
void on_actionRedo_triggered();
void on_actionInformation_triggered();
QString characterCounter();
QString letterCounter();
QString wordCounter();
void on_tabWidget_tabCloseRequested(int index);
void on_actionAddTab_triggered();
void on_actionRefresh_triggered();
void on_actionStatistics_triggered();
void on_tabWidget_currentChanged(int index);
private:
Ui::MainWindow *ui;
QString time = QDateTime::currentDateTime().toString("hh : mm : ss");
};
#endif // MAINWINDOW_H