X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fcursorpair.hpp;h=ba6b2a7097590120942ad530325bf48bb4321aa0;hb=2823de2c821f01b9b6d8df7fc972e290518075ae;hp=f506c2305937dd23b62a8531461694e3c9854510;hpb=66279897e318a2549557054d1204c862f7d99469;p=pulseview.git diff --git a/pv/views/trace/cursorpair.hpp b/pv/views/trace/cursorpair.hpp index f506c230..ba6b2a70 100644 --- a/pv/views/trace/cursorpair.hpp +++ b/pv/views/trace/cursorpair.hpp @@ -17,8 +17,8 @@ * along with this program; if not, see . */ -#ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSORPAIR_HPP -#define PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSORPAIR_HPP +#ifndef PULSEVIEW_PV_VIEWS_TRACE_CURSORPAIR_HPP +#define PULSEVIEW_PV_VIEWS_TRACE_CURSORPAIR_HPP #include "cursor.hpp" #include "pv/globalsettings.hpp" @@ -76,12 +76,18 @@ public: */ void set_time(const pv::util::Timestamp& time) override; + virtual const pv::util::Timestamp time() const override; + float get_x() const override; + virtual const pv::util::Timestamp delta(const pv::util::Timestamp& other) const override; + QPoint drag_point(const QRect &rect) const override; pv::widgets::Popup* create_popup(QWidget *parent) override; + QMenu* create_header_context_menu(QWidget *parent) override; + QRectF label_rect(const QRectF &rect) const override; /** @@ -122,10 +128,11 @@ private: QSizeF text_size_; QRectF label_area_; bool label_incomplete_; + bool show_interval_, show_frequency_, show_samples_; }; } // namespace trace } // namespace views } // namespace pv -#endif // PULSEVIEW_PV_VIEWS_TRACEVIEW_CURSORPAIR_HPP +#endif // PULSEVIEW_PV_VIEWS_TRACE_CURSORPAIR_HPP