-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwindow.h
More file actions
55 lines (47 loc) · 1.32 KB
/
mainwindow.h
File metadata and controls
55 lines (47 loc) · 1.32 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTextEdit>
#include <QLabel>
#include <QActionGroup>
#include <readthread.h>
#include <QNetworkReply>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
private:
Ui::MainWindow *ui;
void createActions();
void createMenus();
ReadThread *tempReadThread;
bool saved;
bool opened;
void resizeEvent(QResizeEvent* event);
QString openedFileName;
QTextEdit *noteEdit;
void toggleActions(bool actionFind, bool actionFp, bool actionUpToPb,
bool actionSave, bool actionSaveA, bool actionDel, bool actionNew);
private slots:
void on_actionNew_triggered();
void on_actionSave_triggered();
void on_actionFind_triggered();
void on_actionFind_Replace_triggered();
void on_noteEdit_textChanged();
void on_actionWord_Wrap_toggled(bool arg1);
void on_actionOpen_triggered();
void on_actionSave_as_triggered();
void on_actionExit_triggered();
void read_finished();
void onPasteComplete(QNetworkReply *);
void on_actionDelete_triggered();
void on_actionUpload_triggered();
void on_actionTrending_triggered();
};
#endif // MAINWINDOW_H