2019-01-24 17:13:04 +00:00
|
|
|
#ifndef OVERVIEWWIDGET_H
|
|
|
|
#define OVERVIEWWIDGET_H
|
|
|
|
|
|
|
|
#include "CutterDockWidget.h"
|
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
class OverviewView;
|
|
|
|
|
|
|
|
class OverviewWidget : public CutterDockWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit OverviewWidget(MainWindow *main, QAction *action = nullptr);
|
|
|
|
~OverviewWidget();
|
|
|
|
OverviewView *graphView;
|
|
|
|
|
|
|
|
private:
|
|
|
|
RefreshDeferrer *refreshDeferrer;
|
2019-03-06 20:30:39 +00:00
|
|
|
/**
|
|
|
|
* @brief this takes care of scaling the overview when the widget is resized
|
2019-01-24 18:04:39 +00:00
|
|
|
*/
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
2019-01-24 17:13:04 +00:00
|
|
|
|
|
|
|
private slots:
|
2019-03-06 20:30:39 +00:00
|
|
|
/**
|
|
|
|
* @brief update the overview
|
2019-01-24 17:13:04 +00:00
|
|
|
*/
|
|
|
|
void updateContents();
|
2019-02-07 20:39:37 +00:00
|
|
|
|
|
|
|
signals:
|
2019-03-06 20:30:39 +00:00
|
|
|
/**
|
|
|
|
* @brief emit signal to update the rect
|
2019-02-07 20:39:37 +00:00
|
|
|
*/
|
|
|
|
void resized();
|
2019-01-24 17:13:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // OverviewWIDGET_H
|