X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fsignal.h;h=bdbd27a35f1b9554cde55dd75b1a441f0b1619b8;hb=3248fcde2deac2fc3fcddf0f3a5bb4695986eeb9;hp=86d2f38007a5b14455c95caca358aec759f89c12;hpb=aca00b1e0d3483926c53dfd856483a397f1c29a5;p=pulseview.git diff --git a/pv/view/signal.h b/pv/view/signal.h index 86d2f380..bdbd27a3 100644 --- a/pv/view/signal.h +++ b/pv/view/signal.h @@ -21,6 +21,8 @@ #ifndef PULSEVIEW_PV_VIEW_SIGNAL_H #define PULSEVIEW_PV_VIEW_SIGNAL_H +#include + #include #include @@ -51,6 +53,8 @@ public: */ void set_name(QString name); + virtual boost::shared_ptr data() const = 0; + /** * Returns true if the trace is visible and enabled. */ @@ -62,6 +66,13 @@ public: virtual void populate_popup_form(QWidget *parent, QFormLayout *form); + QMenu* create_context_menu(QWidget *parent); + + void delete_pressed(); + +private slots: + void on_disable(); + protected: sr_probe *const _probe;