X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fmarginwidget.hpp;h=6e98e4b083a3e2562835a1a111abb11284238e5b;hb=819e2e95555b2b3c2190f24a3cfa82250d1f34e5;hp=9ff4276b0dd6dc173400d171d811624198381c49;hpb=2acdb232d6bb452cfdfaea3ef5218fb4da592329;p=pulseview.git diff --git a/pv/view/marginwidget.hpp b/pv/view/marginwidget.hpp index 9ff4276..6e98e4b 100644 --- a/pv/view/marginwidget.hpp +++ b/pv/view/marginwidget.hpp @@ -21,6 +21,7 @@ #ifndef PULSEVIEW_PV_MARGINWIDGET_H #define PULSEVIEW_PV_MARGINWIDGET_H +#include #include namespace pv { @@ -35,6 +36,13 @@ class MarginWidget : public QWidget public: MarginWidget(pv::view::View &parent); + /** + * The extended area that the margin widget would like to be sized to. + * @remarks This area is the area specified by sizeHint, extended by + * the area to overlap the viewport. + */ + virtual QSize extended_size_hint() const = 0; + public Q_SLOTS: virtual void clear_selection(); @@ -43,6 +51,9 @@ Q_SIGNALS: protected: pv::view::View &view_; + QPoint mouse_point_; + QPoint mouse_down_point_; + bool dragging_; }; } // namespace view