X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodesignal.h;h=c1b53d5711fc87a9abefe8fcd5bd85db5c8896aa;hp=22e0f3d07c02b31bd6b4bf75da4e212eb31b7a79;hb=38db1a87b23e84068c7f176d5a189564078a6260;hpb=03ce95a9bb81c05bae0da9de189d280214db67c3 diff --git a/pv/view/decodesignal.h b/pv/view/decodesignal.h index 22e0f3d0..c1b53d57 100644 --- a/pv/view/decodesignal.h +++ b/pv/view/decodesignal.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_DECODESIGNAL_H -#define PULSEVIEW_PV_DECODESIGNAL_H +#ifndef PULSEVIEW_PV_VIEW_DECODESIGNAL_H +#define PULSEVIEW_PV_VIEW_DECODESIGNAL_H #include "trace.h" @@ -46,6 +46,8 @@ public: bool enabled() const; + const boost::shared_ptr& decoder() const; + void set_view(pv::view::View *view); /** @@ -66,13 +68,7 @@ public: QMenu* create_context_menu(QWidget *parent); -private: - - /** - * When painting into the rectangle, calculate the y - * offset of the zero point. - **/ - int get_nominal_offset(const QRect &rect) const; + void delete_pressed(); private slots: void on_new_decode_data(); @@ -88,4 +84,4 @@ private: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_DECODESIGNAL_H +#endif // PULSEVIEW_PV_VIEW_DECODESIGNAL_H