2021-04-06 23:10:57 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui { class MainWindow; }
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
2021-04-07 21:13:15 +08:00
|
|
|
class EditorList;
|
|
|
|
|
2021-04-06 23:10:57 +08:00
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
2021-04-07 21:13:15 +08:00
|
|
|
private slots:
|
|
|
|
void on_actionNew_triggered();
|
|
|
|
|
2021-04-07 22:44:08 +08:00
|
|
|
void on_EditorTabsLeft_tabCloseRequested(int index);
|
|
|
|
|
2021-04-07 21:13:15 +08:00
|
|
|
private:
|
|
|
|
void setupActions();
|
|
|
|
|
2021-04-06 23:10:57 +08:00
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2021-04-07 21:13:15 +08:00
|
|
|
EditorList* mEditorList;
|
2021-04-06 23:10:57 +08:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|