projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved data and snapshot classes into pv::data namespace
[pulseview.git]
/
pv
/
view
/
signal.h
diff --git
a/pv/view/signal.h
b/pv/view/signal.h
index b3212394115df5c5b043d27969cb8dcdfd117d84..72019032e06a74e221f92c4d9ea0ddf57fa968e6 100644
(file)
--- a/
pv/view/signal.h
+++ b/
pv/view/signal.h
@@
-32,7
+32,9
@@
namespace pv {
namespace pv {
+namespace data {
class SignalData;
class SignalData;
+}
namespace view {
namespace view {
@@
-40,6
+42,7
@@
class Signal
{
private:
static const int LabelHitPadding;
{
private:
static const int LabelHitPadding;
+ static const int LabelHighlightRadius;
protected:
Signal(QString name);
protected:
Signal(QString name);
@@
-75,6
+78,16
@@
public:
*/
void set_v_offset(int v_offset);
*/
void set_v_offset(int v_offset);
+ /**
+ * Returns true if the signal has been selected by the user.
+ */
+ bool selected() const;
+
+ /**
+ * Selects or deselects the signal.
+ */
+ void select(bool select = true);
+
/**
* Paints the signal with a QPainter
* @param p the QPainter to paint into.
/**
* Paints the signal with a QPainter
* @param p the QPainter to paint into.
@@
-130,6
+143,8
@@
protected:
QColor _colour;
int _v_offset;
QColor _colour;
int _v_offset;
+ bool _selected;
+
QSizeF _text_size;
};
QSizeF _text_size;
};