X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fdecodesignal.h;h=e95c982225f92e9e126d0c40b0850f5dbeaed1fd;hp=673d65499509a409ca1266c5fbcd693ed4d97cd4;hb=b6b267bba9d55d23fe5c3537e4785238d4377ad7;hpb=9cef95672622f4ecdb21edef9d81a10c789daf1e diff --git a/pv/view/decodesignal.h b/pv/view/decodesignal.h index 673d6549..e95c9822 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" @@ -44,10 +44,10 @@ public: DecodeSignal(pv::SigSession &session, boost::shared_ptr decoder, int index); - void init_context_bar_actions(QWidget *parent); - bool enabled() const; + const boost::shared_ptr& decoder() const; + void set_view(pv::view::View *view); /** @@ -66,7 +66,9 @@ public: **/ void paint_mid(QPainter &p, int left, int right); - const std::list get_context_bar_actions(); + QMenu* create_context_menu(QWidget *parent); + + void delete_pressed(); private: @@ -79,6 +81,8 @@ private: private slots: void on_new_decode_data(); + void on_delete(); + private: boost::shared_ptr _decoder; @@ -88,4 +92,4 @@ private: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_DECODESIGNAL_H +#endif // PULSEVIEW_PV_VIEW_DECODESIGNAL_H