2020-08-20 22:36:02 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2020-09-21 14:39:39 +08:00
|
|
|
#include <QComboBox>
|
|
|
|
#include <QWidgetAction>
|
2020-08-20 22:36:02 +08:00
|
|
|
|
|
|
|
#include "DockManager.h"
|
|
|
|
#include "DockAreaWidget.h"
|
|
|
|
#include "DockWidget.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace Ui { class CMainWindow; }
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
class CMainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
CMainWindow(QWidget *parent = nullptr);
|
|
|
|
~CMainWindow();
|
|
|
|
|
2020-11-26 15:07:31 +08:00
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent* event) override;
|
|
|
|
|
2020-08-20 22:36:02 +08:00
|
|
|
private:
|
2020-09-21 14:39:39 +08:00
|
|
|
QAction* SavePerspectiveAction = nullptr;
|
|
|
|
QWidgetAction* PerspectiveListAction = nullptr;
|
|
|
|
QComboBox* PerspectiveComboBox = nullptr;
|
2020-08-20 22:36:02 +08:00
|
|
|
|
|
|
|
Ui::CMainWindow *ui;
|
|
|
|
|
|
|
|
ads::CDockManager* DockManager;
|
|
|
|
ads::CDockAreaWidget* StatusDockArea;
|
|
|
|
ads::CDockWidget* TimelineDockWidget;
|
2020-09-21 14:39:39 +08:00
|
|
|
|
|
|
|
void createPerspectiveUi();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void savePerspective();
|
2020-08-20 22:36:02 +08:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|