mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
1a11e5ddcd
Adde option to set a dock widget as central widget. It influences resizing behavior of the splitters. The central widget will be stretched with the main window and remaing dock widgets and threir respective areas will be resized only vertically if docked left or right and horizontaly if docked top or bottom
33 lines
615 B
C++
33 lines
615 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
#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();
|
|
|
|
private:
|
|
static const QString kTableTopLayout;
|
|
static const QString kTableBottomLayout;
|
|
|
|
Ui::CMainWindow *ui;
|
|
|
|
ads::CDockManager* DockManager;
|
|
ads::CDockAreaWidget* StatusDockArea;
|
|
ads::CDockWidget* TimelineDockWidget;
|
|
};
|
|
#endif // MAINWINDOW_H
|