X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fselectableitem.h;h=a062fa04223627fe9ac8a211c1887b58aba7d86b;hp=323c87e18743ff894255137af83cbc86c6fce5c3;hb=7ccd5a64548bccac7c172f9d5649f936044a5fa1;hpb=9b6378f147671e62f57887d51d01864d20e01475 diff --git a/pv/view/selectableitem.h b/pv/view/selectableitem.h index 323c87e1..a062fa04 100644 --- a/pv/view/selectableitem.h +++ b/pv/view/selectableitem.h @@ -30,6 +30,11 @@ class QMenu; class QWidget; namespace pv { + +namespace widgets { +class Popup; +} + namespace view { class SelectableItem : public QObject @@ -44,7 +49,7 @@ public: public: /** - * Returns true if the signal has been selected by the user. + * Returns true if the item has been selected by the user. */ bool selected() const; @@ -54,11 +59,11 @@ public: void select(bool select = true); public: - virtual void init_context_bar_actions(QWidget *parent) = 0; + virtual QMenu* create_context_menu(QWidget *parent); - virtual const std::list get_context_bar_actions() = 0; + virtual pv::widgets::Popup* create_popup(QWidget *parent) = 0; - virtual QMenu* create_context_menu(QWidget *parent); + virtual void delete_pressed(); protected: static QPen highlight_pen();