projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finalize segment decoding
[pulseview.git]
/
pv
/
views
/
trace
/
trace.hpp
diff --git
a/pv/views/trace/trace.hpp
b/pv/views/trace/trace.hpp
index 75705226780e8c7a7aea029806fbf5ffdf78b4d4..cd1c8af349f7014b80547549ed462f33eba63d16 100644
(file)
--- a/
pv/views/trace/trace.hpp
+++ b/
pv/views/trace/trace.hpp
@@
-126,6
+126,10
@@
public:
*/
QRectF label_rect(const QRectF &rect) const;
*/
QRectF label_rect(const QRectF &rect) const;
+ void set_current_segment(const int segment);
+
+ int get_current_segment() const;
+
protected:
/**
* Paints the background layer of the signal with a QPainter.
protected:
/**
* Paints the background layer of the signal with a QPainter.
@@
-166,6
+170,9
@@
protected:
SegmentDisplayMode segment_display_mode_;
SegmentDisplayMode segment_display_mode_;
+ /// The ID of the currently displayed segment
+ int current_segment_;
+
private:
pv::widgets::Popup *popup_;
QFormLayout *popup_form_;
private:
pv::widgets::Popup *popup_;
QFormLayout *popup_form_;