mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +00:00
bafad96bf3
fixes #30
45 lines
743 B
C++
45 lines
743 B
C++
#ifndef SECTIONSDOCK_H
|
|
#define SECTIONSDOCK_H
|
|
|
|
#include "DockWidget.h"
|
|
#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:
|
|
std::unique_ptr<Ui::SectionsDock> ui;
|
|
MainWindow *main;
|
|
SectionsWidget *sectionsWidget;
|
|
};
|
|
|
|
#endif // SECTIONSDOCK_H
|