+QMenu* Trace::create_context_menu(QWidget *parent)
+{
+ QMenu *const menu = SelectableItem::create_context_menu(parent);
+
+ QAction *const set_name = new QAction(tr("Set &Name..."), this);
+ connect(set_name, SIGNAL(triggered()),
+ this, SLOT(on_action_set_name_triggered()));
+ menu->addAction(set_name);
+
+ QAction *const set_colour = new QAction(tr("Set &Colour..."), this);
+ connect(set_colour, SIGNAL(triggered()),
+ this, SLOT(on_action_set_colour_triggered()));
+ menu->addAction(set_colour);
+
+ return menu;
+}
+
+pv::widgets::Popup* Trace::create_popup(QWidget *parent)
+{
+ using pv::widgets::Popup;
+ Popup *const popup = new Popup(parent);
+ QFormLayout *const form = new QFormLayout(popup);
+ popup->setLayout(form);
+ populate_popup_form(popup, form);
+ return popup;
+}
+