X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Ftrace.hpp;h=0c493d7206b56577c8915c8d5cf90962895376ef;hb=be843692f664e44d26458063042cc5d41a13df57;hp=758b2e97c46e0142238b842e8b3d42c013fda747;hpb=1931b5f932cf068d073bc798f11dd21ede5389a2;p=pulseview.git diff --git a/pv/views/trace/trace.hpp b/pv/views/trace/trace.hpp index 758b2e9..0c493d7 100644 --- a/pv/views/trace/trace.hpp +++ b/pv/views/trace/trace.hpp @@ -94,6 +94,7 @@ private: protected: Trace(shared_ptr channel); + ~Trace(); public: /** @@ -116,7 +117,7 @@ public: */ virtual void paint_label(QPainter &p, const QRect &rect, bool hover); - virtual QMenu* create_context_menu(QWidget *parent); + virtual QMenu* create_header_context_menu(QWidget *parent); pv::widgets::Popup* create_popup(QWidget *parent); @@ -127,6 +128,14 @@ public: */ QRectF label_rect(const QRectF &rect) const; + /** + * Computes the outline rectangle of the viewport hit-box. + * @param rect the rectangle of the viewport area. + * @return Returns the rectangle of the hit-box. + * @remarks The default implementation returns an empty hit-box. + */ + virtual QRectF hit_box_rect(const ViewItemPaintParams &pp) const; + void set_current_segment(const int segment); int get_current_segment() const;