mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-16 05:35:43 +08:00
44 lines
850 B
C
44 lines
850 B
C
|
#ifndef MAINWINDOW_H
|
||
|
#define MAINWINDOW_H
|
||
|
|
||
|
#include <QMainWindow>
|
||
|
#include <QComboBox>
|
||
|
#include <QWidgetAction>
|
||
|
|
||
|
#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();
|
||
|
|
||
|
protected:
|
||
|
virtual void closeEvent(QCloseEvent* event) override;
|
||
|
|
||
|
private:
|
||
|
QAction* SavePerspectiveAction = nullptr;
|
||
|
QWidgetAction* PerspectiveListAction = nullptr;
|
||
|
QComboBox* PerspectiveComboBox = nullptr;
|
||
|
|
||
|
Ui::CMainWindow *ui;
|
||
|
|
||
|
ads::CDockManager* DockManager;
|
||
|
ads::CDockAreaWidget* StatusDockArea;
|
||
|
ads::CDockWidget* TimelineDockWidget;
|
||
|
|
||
|
void createPerspectiveUi();
|
||
|
|
||
|
private slots:
|
||
|
void savePerspective();
|
||
|
};
|
||
|
#endif // MAINWINDOW_H
|