cutter/src/widgets/SectionsDock.h

45 lines
743 B
C
Raw Normal View History

#ifndef SECTIONSDOCK_H
#define SECTIONSDOCK_H
#include "DockWidget.h"
2017-10-02 09:41:28 +00:00
#include <memory>
class MainWindow;
class SectionsWidget;
namespace Ui
{
class SectionsDock;
}
class SectionsDock : public DockWidget
{
Q_OBJECT
public:
explicit SectionsDock(MainWindow *main, QWidget *parent = 0);
~SectionsDock();
void setup() override;
void refresh() override;
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;
MainWindow *main;
SectionsWidget *sectionsWidget;
};
#endif // SECTIONSDOCK_H