2017-02-27 01:13:56 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include "DockManager.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
2017-03-23 22:57:15 +08:00
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent* event) override;
|
2017-02-27 01:13:56 +08:00
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
|
|
virtual ~MainWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
ads::CDockManager* m_DockManager;
|
|
|
|
void createContent();
|
2017-03-23 22:57:15 +08:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_actionSaveState_triggered(bool);
|
|
|
|
void on_actionRestoreState_triggered(bool);
|
2017-02-27 01:13:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|