void hide_hover_annotation();
- void hover_point_changed();
-
void create_decoder_form(int index,
std::shared_ptr<pv::data::decode::Decoder> &dec,
QWidget *parent, QFormLayout *form);
void commit_channels();
+public:
+ void hover_point_changed();
+
private Q_SLOTS:
void on_new_decode_data();
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)
label_size.width(), label_size.height());
}
+void Trace::hover_point_changed()
+{
+}
+
QColor Trace::get_text_colour() const
{
return (_colour.lightness() > 64) ? Qt::black : Qt::white;
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
*/
QRectF get_label_rect(int right);
+public:
+ virtual void hover_point_changed();
+
protected:
/**
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();
connect(_cursorheader, SIGNAL(selection_changed()),
this, SIGNAL(selection_changed()));
+ connect(this, SIGNAL(hover_point_changed()),
+ this, SLOT(on_hover_point_changed()));
+
setViewport(_viewport);
_viewport->installEventFilter(this);
update_layout();
}
+void View::on_hover_point_changed()
+{
+ const vector< shared_ptr<Trace> > traces(get_traces());
+ for (shared_ptr<Trace> t : traces)
+ t->hover_point_changed();
+}
+
} // namespace view
} // namespace pv
void on_geometry_updated();
+ void on_hover_point_changed();
+
private:
SigSession &_session;