X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.h;h=641f203bb9325745d9abdf5b3849424ef642a6c4;hb=f9abf97e78bc4825d80926b0ebc6cbaef40768b1;hp=22e8e4dbd2c3dbba58908d6a7a7a1208339bdfb0;hpb=9e40e83daf6a2851f4883468a4237849f984b336;p=pulseview.git diff --git a/pv/view/header.h b/pv/view/header.h index 22e8e4d..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" @@ -32,18 +30,23 @@ namespace pv { namespace view { -class Signal; +class Trace; class View; 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_signal( + std::shared_ptr get_mouse_over_trace( const QPoint &pt); void clear_selection(); @@ -62,28 +65,25 @@ private: void contextMenuEvent(QContextMenuEvent *event); + void keyPressEvent(QKeyEvent *e); + private slots: void on_signals_changed(); - void on_action_set_name_triggered(); - - void on_action_set_colour_triggered(); - void on_signals_moved(); + void on_trace_changed(); + signals: void signals_moved(); private: 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