return make_pair(start, end);
}
+void DecodeTrace::hover_point_changed()
+{
+}
+
void DecodeTrace::create_decoder_form(int index,
shared_ptr<data::decode::Decoder> &dec, QWidget *parent,
QFormLayout *form)
*/
std::pair<uint64_t, uint64_t> get_sample_range(int x_start, int x_end) const;
+ void hover_point_changed();
+
void create_decoder_form(int index,
std::shared_ptr<pv::data::decode::Decoder> &dec,
QWidget *parent, QFormLayout *form);
const int Trace::LabelHitPadding = 2;
Trace::Trace(QString name) :
+ _view(NULL),
_name(name),
_v_offset(0),
_popup(NULL),
void Trace::set_view(pv::view::View *view)
{
assert(view);
+
+ if (_view)
+ disconnect(_view, SIGNAL(hover_point_changed()),
+ this, SLOT(on_hover_point_changed()));
+
_view = view;
+
+ connect(view, SIGNAL(hover_point_changed()),
+ this, SLOT(on_hover_point_changed()));
}
void Trace::paint_back(QPainter &p, int left, int right)
add_colour_option(parent, form);
}
+void Trace::hover_point_changed()
+{
+}
+
void Trace::on_popup_closed()
{
_popup = NULL;
colour_changed();
}
+void Trace::on_hover_point_changed()
+{
+ hover_point_changed();
+}
+
} // namespace view
} // namespace pv
virtual void populate_popup_form(QWidget *parent, QFormLayout *form);
+ virtual void hover_point_changed();
+
private Q_SLOTS:
void on_text_changed(const QString &text);
void on_popup_closed();
+ void on_hover_point_changed();
+
Q_SIGNALS:
void visibility_changed();
void text_changed();