-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
66 lines (53 loc) · 1.38 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMenuBar>
#include <QMainWindow>
#include <QApplication>
#include "assetmanager.h"
#include "codeeditor.h"
#include "textedittabwidget.h"
#include "fileviewwidget.h"
#include "settingswindow.h"
#include "appconfigobject.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0, QApplication *main = 0);
void load(AssetManager *);
~MainWindow();
private:
Ui::MainWindow *ui;
void resizeEvent(QResizeEvent* event);
void loadMenuBar();
void runUnitTests();
void resizeWithFileView();
void loadFileByName(QString &);
AssetManager * assetManager;
CodeEditor * codeEditor;
TextEditTabWidget * textEditTab;
FileViewWidget * fileView;
int fileViewWidth;
QMenuBar* menu_bar;
QMenu* file_menu;
QToolBar* file_toolbar;
SettingsWindow * settingsWindow;
QApplication * mainApp;
void loadFileToTree(QString dir);
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private slots:
void loadFile();
void loadFolder();
void createFile();
void saveFile();
void on_welcomeOpenProjectButton_clicked();
void on_welcomeCreateButton_clicked();
void launchSettingsWindow();
void updateSettings(AppConfigObject);
void loadUserCfg();
};
#endif // MAINWINDOW_H