X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.h;h=cb1d36246c3d76abb40b21ef89c7905f3f7062cf;hb=a2ae0205f2737dfd8f7647f9eae2fdcb47a0ad25;hp=ff058863c2d536a598b5b83a199801bd2ba9b1e5;hpb=54401bbb93fbbd9b0de4874bf02c24b710643fe7;p=pulseview.git diff --git a/pv/view/header.h b/pv/view/header.h index ff05886..cb1d362 100644 --- a/pv/view/header.h +++ b/pv/view/header.h @@ -22,10 +22,12 @@ #define PULSEVIEW_PV_VIEW_HEADER_H #include +#include -#include +#include +#include -#include +#include "marginwidget.h" namespace pv { namespace view { @@ -33,7 +35,7 @@ namespace view { class Signal; class View; -class Header : public QWidget +class Header : public MarginWidget { Q_OBJECT @@ -44,6 +46,8 @@ private: boost::shared_ptr get_mouse_over_signal( const QPoint &pt); + void clear_selection(); + private: void paintEvent(QPaintEvent *event); @@ -63,16 +67,17 @@ private slots: void on_action_set_colour_triggered(); + void on_signals_moved(); + signals: void signals_moved(); private: - View &_view; - QPoint _mouse_point; QPoint _mouse_down_point; - std::map _mouse_down_signal_offsets; + std::list, int> > + _drag_sigs; boost::shared_ptr _context_signal; QAction *_action_set_name;