projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Derrived TimeMarker from SelectableItem
[pulseview.git]
/
pv
/
view
/
signal.h
diff --git
a/pv/view/signal.h
b/pv/view/signal.h
index 250d3ff36bf04c90ba542629e062f3aba8d99cd2..69c1f09cfd225ba67bb9fcc60ea1d95e3681cfbd 100644
(file)
--- a/
pv/view/signal.h
+++ b/
pv/view/signal.h
@@
-31,6
+31,10
@@
#include <stdint.h>
#include <stdint.h>
+#include <libsigrok/libsigrok.h>
+
+#include "selectableitem.h"
+
namespace pv {
namespace data {
namespace pv {
namespace data {
@@
-39,8
+43,10
@@
class SignalData;
namespace view {
namespace view {
-class Signal
+class Signal
: public SelectableItem
{
{
+ Q_OBJECT
+
private:
static const int LabelHitPadding;
static const int LabelHighlightRadius;
private:
static const int LabelHitPadding;
static const int LabelHighlightRadius;
@@
-48,7
+54,7
@@
private:
static const QPen SignalAxisPen;
protected:
static const QPen SignalAxisPen;
protected:
- Signal(
QString nam
e);
+ Signal(
const sr_probe *const prob
e);
public:
/**
public:
/**
@@
-156,6
+162,8
@@
private:
QRectF get_label_rect(int y, int right);
protected:
QRectF get_label_rect(int y, int right);
protected:
+ const sr_probe *const _probe;
+
QString _name;
QColor _colour;
int _v_offset;
QString _name;
QColor _colour;
int _v_offset;