#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
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: