X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.h;h=641f203bb9325745d9abdf5b3849424ef642a6c4;hb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;hp=806cc985c3d482877539cc07d6f90ee77c22cea5;hpb=5ed1adf555e0f0fb36d5b4b36f2be17745b5c8ae;p=pulseview.git diff --git a/pv/view/header.h b/pv/view/header.h index 806cc98..641f203 100644 --- a/pv/view/header.h +++ b/pv/view/header.h @@ -21,10 +21,8 @@ #ifndef PULSEVIEW_PV_VIEW_HEADER_H #define PULSEVIEW_PV_VIEW_HEADER_H -#include -#include - #include +#include #include #include "marginwidget.h" @@ -39,11 +37,16 @@ class Header : public MarginWidget { Q_OBJECT +private: + static const int Padding; + public: Header(View &parent); + QSize sizeHint() const; + private: - boost::shared_ptr get_mouse_over_trace( + std::shared_ptr get_mouse_over_trace( const QPoint &pt); void clear_selection(); @@ -69,6 +72,8 @@ private slots: void on_signals_moved(); + void on_trace_changed(); + signals: void signals_moved(); @@ -77,7 +82,7 @@ private: QPoint _mouse_down_point; bool _dragging; - std::list, int> > + std::list, int> > _drag_traces; };