]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/decodetrace.hpp
Minor decode refactorizations
[pulseview.git] / pv / views / trace / decodetrace.hpp
index 9877dc11ff63c7ece0c0cdc945ab5b3c31cb6335..83f3a0848dff117730fce20b66d5ba3ac29bc0b3 100644 (file)
@@ -101,6 +101,7 @@ struct DecodeTraceRow {
 
        QColor row_color;
        map<uint32_t, QColor> ann_class_color;
+       map<uint32_t, QColor> ann_class_dark_color;
 };
 
 class ContainerWidget : public QWidget
@@ -185,7 +186,7 @@ public:
        virtual void mouse_left_press_event(const QMouseEvent* event);
 
 private:
-       void draw_annotations(vector<const Annotation*> annotations, QPainter &p,
+       void draw_annotations(deque<const Annotation*>& annotations, QPainter &p,
                const ViewItemPaintParams &pp, int y, const DecodeTraceRow& row);
 
        void draw_annotation(const Annotation* a, QPainter &p,
@@ -233,7 +234,7 @@ private:
        QComboBox* create_channel_selector_init_state(QWidget *parent,
                const data::decode::DecodeChannel *ch);
 
-       void export_annotations(vector<const Annotation*> *annotations) const;
+       void export_annotations(deque<const Annotation*>& annotations) const;
 
        void initialize_row_widgets(DecodeTraceRow* r, unsigned int row_id);
        void update_rows();