]> sigrok.org Git - pulseview.git/blobdiff - pv/view/flag.hpp
Header: Make get_mouse_over_item return shared_ptr<ViewItem>
[pulseview.git] / pv / view / flag.hpp
index 659d5cc1c55143aaa88bf45113f980f9a2483cf9..c4e4cbb2c211b8b11e7ba96cebcfe274d6651f23 100644 (file)
 #ifndef PULSEVIEW_PV_VIEW_FLAG_H
 #define PULSEVIEW_PV_VIEW_FLAG_H
 
+#include <memory>
+
 #include "timemarker.hpp"
 
+class QMenu;
+
 namespace pv {
 namespace view {
 
-class Flag : public TimeMarker
+class Flag : public TimeMarker,
+       public std::enable_shared_from_this<pv::view::Flag>
 {
        Q_OBJECT
 
@@ -59,7 +64,13 @@ public:
 
        pv::widgets::Popup* create_popup(QWidget *parent);
 
+       QMenu* create_context_menu(QWidget *parent);
+
+       void delete_pressed();
+
 private Q_SLOTS:
+       void on_delete();
+
        void on_text_changed(const QString &text);
 
 private: