2021-04-06 23:10:57 +08:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "ui_mainwindow.h"
|
2021-04-07 21:13:15 +08:00
|
|
|
#include "editorlist.h"
|
2021-04-06 23:10:57 +08:00
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
|
|
: QMainWindow(parent)
|
|
|
|
, ui(new Ui::MainWindow)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2021-04-07 21:13:15 +08:00
|
|
|
mEditorList = new EditorList(ui->EditorTabsLeft,
|
|
|
|
ui->EditorTabsRight,
|
|
|
|
ui->EditorPanelSplitter,
|
|
|
|
ui->EditorPanel);
|
|
|
|
setupActions();
|
2021-04-06 23:10:57 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
2021-04-07 21:13:15 +08:00
|
|
|
void MainWindow::setupActions() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::on_actionNew_triggered()
|
|
|
|
{
|
|
|
|
mEditorList->NewEditor("",etAuto,false,true);
|
|
|
|
}
|