]> sigrok.org Git - pulseview.git/blobdiff - pv/view/selectableitem.h
Initialise Trace widgets when the trace is received by the View
[pulseview.git] / pv / view / selectableitem.h
index 69204b29478b901ec703ee858ab3ba457ad318ec..467da0f2cbf0b7140edf87fb9e3be0b34b3c79e6 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <list>
 
-#include <QObject>
+#include <QPen>
 
 class QAction;
 
@@ -34,6 +34,9 @@ class SelectableItem : public QObject
 {
        Q_OBJECT
 
+private:
+       static const int HighlightRadius;
+
 public:
        SelectableItem();
 
@@ -48,6 +51,14 @@ public:
         */
        void select(bool select = true);
 
+public:
+       virtual void init_context_bar_actions(QWidget *parent) = 0;
+
+       virtual const std::list<QAction*> get_context_bar_actions() = 0;
+
+protected:
+       static QPen highlight_pen();
+
 private:
        bool _selected;
 };