X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.hpp;h=f8976cb7b2da84a22c0968715972e67affbfd3c1;hp=9877dc11ff63c7ece0c0cdc945ab5b3c31cb6335;hb=65bde9b3e02f7ad11f88ba4eac9d1c3ce7933437;hpb=adf9e02242336548a384c23dadc062af7a2ef83a diff --git a/pv/views/trace/decodetrace.hpp b/pv/views/trace/decodetrace.hpp index 9877dc11..f8976cb7 100644 --- a/pv/views/trace/decodetrace.hpp +++ b/pv/views/trace/decodetrace.hpp @@ -101,6 +101,7 @@ struct DecodeTraceRow { QColor row_color; map ann_class_color; + map 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 annotations, QPainter &p, + void draw_annotations(deque& 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 *annotations) const; + void export_annotations(deque& 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();