X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fheader.h;h=806cc985c3d482877539cc07d6f90ee77c22cea5;hb=6e89374a6796f8d5d9cc61b0a2f7e98562a034ae;hp=35f16de1b36eb7bab29f69ca1cea801b0f7320bc;hpb=da2bebfb824ac5328ef2a22121a4041d0dc37431;p=pulseview.git diff --git a/pv/view/header.h b/pv/view/header.h index 35f16de1..806cc985 100644 --- a/pv/view/header.h +++ b/pv/view/header.h @@ -27,15 +27,15 @@ #include #include -#include +#include "marginwidget.h" namespace pv { namespace view { -class Signal; +class Trace; class View; -class Header : public QWidget +class Header : public MarginWidget { Q_OBJECT @@ -43,9 +43,11 @@ public: Header(View &parent); private: - boost::shared_ptr get_mouse_over_signal( + boost::shared_ptr get_mouse_over_trace( const QPoint &pt); + void clear_selection(); + private: void paintEvent(QPaintEvent *event); @@ -60,26 +62,23 @@ private: void contextMenuEvent(QContextMenuEvent *event); + void keyPressEvent(QKeyEvent *e); + private slots: - void on_action_set_name_triggered(); + void on_signals_changed(); - void on_action_set_colour_triggered(); + void on_signals_moved(); signals: void signals_moved(); private: - View &_view; - QPoint _mouse_point; QPoint _mouse_down_point; + bool _dragging; - std::list, int> > - _drag_sigs; - - boost::shared_ptr _context_signal; - QAction *_action_set_name; - QAction *_action_set_colour; + std::list, int> > + _drag_traces; }; } // namespace view