mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
a614e3cc3d
Added new emptydockarea example
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
|