-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote_creator.h
More file actions
58 lines (39 loc) · 1.11 KB
/
note_creator.h
File metadata and controls
58 lines (39 loc) · 1.11 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
#ifndef NOTE_CREATOR_H
#define NOTE_CREATOR_H
#include <QDebug>
#include <QMainWindow>
#include <QFile>
#include <QFileDialog>
#include <QTextStream>
#include <QString>
#include <QProcess>
#include <QSettings>
#include <QCloseEvent>
#include "about_dialog_box.h"
QT_BEGIN_NAMESPACE
namespace Ui { class note_creator; }
QT_END_NAMESPACE
class note_creator : public QMainWindow
{
Q_OBJECT
public:
note_creator(QWidget *parent = nullptr);
~note_creator();
QString settings_file;
QSettings ini_settings;
void readSettings();
private slots:
void on_launch_button_clicked();
void on_dropdown_file_exit_triggered();
void on_actionAbout_Note_Creator_triggered();
void on_open_button_clicked();
void on_set_button_clicked();
void writeSettings();
void closeEvent(QCloseEvent *event);
private:
Ui::note_creator *ui;
// Make note_creator window the parent to about_dialog_box
// so when closing main window the about window will also close
about_dialog_box *about_box_pointer;
};
#endif // NOTE_CREATOR_H