-
Notifications
You must be signed in to change notification settings - Fork 0
/
noteswriter.h
80 lines (53 loc) · 1.62 KB
/
noteswriter.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
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
75
76
77
78
79
80
#ifndef NOTESWRITER_H
#define NOTESWRITER_H
#include <QMainWindow>
#include <QFile>
#include <QFileDialog>
#include <QTextStream>
#include <QMessageBox>
#include <QDir>
#include <QPrinter>
#include <QPrintDialog>
#include <QDesktopServices>
#include <QUrl>
#include <QFontDialog>
#include <QFont>
#include <QColorDialog>
#include <QColor>
#include <QCloseEvent>
namespace Ui {
class NotesWriter;
}
class NotesWriter : public QMainWindow
{
Q_OBJECT
public:
explicit NotesWriter(QWidget *parent = nullptr);
~NotesWriter();
protected:
void closeEvent(QCloseEvent *event)override;
private slots:
void on_actionGo_to_University_of_Plymouth_triggered();
void on_actionNew_Writer_triggered();
void on_actionOpen_triggered();
void on_actionSave_triggered();
void on_actionSave_As_triggered();
void on_actionPrint_triggered();
void on_actionClose_Writer_triggered();
void on_actionCut_triggered();
void on_actionCopy_triggered();
void on_actionPaste_triggered();
void on_actionSelect_Font_triggered();
void on_actionSelect_Font_Color_triggered();
void on_actionSelect_Font_Highlighter_Color_triggered();
void on_actionChange_Writer_Background_Color_triggered();
void on_actionUndo_triggered();
void on_actionRedo_triggered();
void on_actionAbout_Writer_triggered();
void on_actionAbout_QT_triggered();
void on_actionGo_to_Google_triggered();
private:
Ui::NotesWriter *ui;
QString filePath = ""; //Holds the current path of the file
};
#endif // NOTESWRITER_H