-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
49 lines (36 loc) · 968 Bytes
/
mainwindow.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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "project.h"
#include "document.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
//QString root;
void newFile();
void openFile(const QString &path = QString());
void openProject(const QString &root = QString());
private:
Ui::MainWindow *ui;
Project *project;
QTabWidget *editor = nullptr;
//Document *editor;
Highlighter *highlighter;// do I need a highlighter for every single tab?
void setupEditor();
void setupFileMenu();
void setupHelpMenu();
private slots:
void on_actionNew_triggered();// new file
void on_actionOpen_triggered();
void on_actionOpen_Project_triggered();
void on_actionSave_triggered();
void on_actionSave_All_triggered();
// new script action
};
#endif // MAINWINDOW_H