DecodeTrace: Simplified and reduced calls to View
[pulseview.git] / pv / view / decodetrace.h
index e5a9c0b6ad03b4cfbb215576ad5d4d40977883ca..0ff75dea641c330ef0ece9935387712b90d89d3f 100644 (file)
@@ -30,6 +30,7 @@
 #include <QSignalMapper>
 
 #include <pv/prop/binding/decoderoptions.h>
+#include <pv/data/decode/row.h>
 
 struct srd_channel;
 struct srd_decoder;
@@ -153,13 +154,9 @@ private:
         */
        std::pair<uint64_t, uint64_t> get_sample_range(int x_start, int x_end) const;
 
-       bool hover_point_is_over_trace();
+       int get_row_at_point(const QPoint &point);
 
-       int get_row_at_hover_point();
-
-       const QString get_annotation_at_hover_point();
-
-       void show_hover_annotation();
+       const QString get_annotation_at_point(const QPoint &point);
 
        void hide_hover_annotation();
 
@@ -203,7 +200,7 @@ private:
        std::list<ChannelSelector> _channel_selectors;
        std::vector<pv::widgets::DecoderGroupBox*> _decoder_forms;
 
-       std::vector<QString> _cur_row_headings;
+       std::vector<data::decode::Row> _visible_rows;
        int _text_height, _row_height;
 
        QSignalMapper _delete_mapper, _show_hide_mapper;