2017-04-12 10:16:43 +00:00
|
|
|
#ifndef SECTIONSDOCK_H
|
|
|
|
#define SECTIONSDOCK_H
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
#include "dockwidget.h"
|
2017-10-02 09:41:28 +00:00
|
|
|
#include <memory>
|
2017-04-12 10:16:43 +00:00
|
|
|
|
|
|
|
class MainWindow;
|
2017-04-13 15:14:02 +00:00
|
|
|
class SectionsWidget;
|
2017-04-12 10:16:43 +00:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class SectionsDock;
|
|
|
|
}
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
class SectionsDock : public DockWidget
|
2017-04-12 10:16:43 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SectionsDock(MainWindow *main, QWidget *parent = 0);
|
|
|
|
~SectionsDock();
|
|
|
|
|
2017-04-13 15:14:02 +00:00
|
|
|
void setup() override;
|
|
|
|
|
|
|
|
void refresh() override;
|
2017-04-12 10:16:43 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void showSectionsContextMenu(const QPoint &pt);
|
|
|
|
|
|
|
|
void on_actionVertical_triggered();
|
|
|
|
|
|
|
|
void on_actionHorizontal_triggered();
|
|
|
|
|
|
|
|
private:
|
2017-10-02 09:41:28 +00:00
|
|
|
std::unique_ptr<Ui::SectionsDock> ui;
|
2017-04-12 10:16:43 +00:00
|
|
|
MainWindow *main;
|
2017-04-13 15:14:02 +00:00
|
|
|
SectionsWidget *sectionsWidget;
|
2017-04-12 10:16:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SECTIONSDOCK_H
|