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