]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/decodetrace.hpp
DecodeTrace: Add buttons to show/hide all classes in a row
[pulseview.git] / pv / views / trace / decodetrace.hpp
index 9877dc11ff63c7ece0c0cdc945ab5b3c31cb6335..f8976cb7b2da84a22c0968715972e67affbfd3c1 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();
@@ -274,6 +275,8 @@ private Q_SLOTS:
        void on_show_hide_decoder(int index);
        void on_show_hide_row(int row_id);
        void on_show_hide_class(QWidget* sender);
+       void on_show_all_classes();
+       void on_hide_all_classes();
        void on_row_container_resized(QWidget* sender);
 
        void on_copy_annotation_to_clipboard();