X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.h;h=641f203bb9325745d9abdf5b3849424ef642a6c4;hb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;hp=024227820b6635008216b38b290ec230fce528d8;hpb=728fcafc9897d3ffb4a109b6248d88b0945128f5;p=pulseview.git diff --git a/pv/view/header.h b/pv/view/header.h index 0242278..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(); @@ -62,11 +65,15 @@ private: void contextMenuEvent(QContextMenuEvent *event); + void keyPressEvent(QKeyEvent *e); + private slots: void on_signals_changed(); void on_signals_moved(); + void on_trace_changed(); + signals: void signals_moved(); @@ -75,7 +82,7 @@ private: QPoint _mouse_down_point; bool _dragging; - std::list, int> > + std::list, int> > _drag_traces; };