PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::trace::DecodeTrace Class Reference

#include <decodetrace.hpp>

Inheritance diagram for pv::views::trace::DecodeTrace:
Collaboration diagram for pv::views::trace::DecodeTrace:

Public Member Functions

 DecodeTrace (pv::Session &session, shared_ptr< SignalBase > signalbase, int index)
 
 ~DecodeTrace ()
 
bool enabled () const
 
shared_ptr< SignalBasebase () const
 
virtual void set_owner (TraceTreeItemOwner *owner)
 
pair< int, int > v_extents () const
 
void paint_back (QPainter &p, ViewItemPaintParams &pp)
 
void paint_mid (QPainter &p, ViewItemPaintParams &pp)
 
void paint_fore (QPainter &p, ViewItemPaintParams &pp)
 
void populate_popup_form (QWidget *parent, QFormLayout *form)
 
QMenu * create_header_context_menu (QWidget *parent)
 
virtual QMenu * create_view_context_menu (QWidget *parent, QPoint &click_pos)
 
virtual void delete_pressed ()
 
virtual void hover_point_changed (const QPoint &hp)
 
virtual void mouse_left_press_event (const QMouseEvent *event)
 
- Public Member Functions inherited from pv::views::trace::Trace
shared_ptr< data::SignalBasebase () const
 
virtual bool is_selectable (QPoint pos) const
 
virtual bool is_draggable (QPoint pos) const
 
virtual void set_segment_display_mode (SegmentDisplayMode mode)
 
virtual void on_setting_changed (const QString &key, const QVariant &value)
 
virtual void paint_label (QPainter &p, const QRect &rect, bool hover)
 
virtual void paint_error (QPainter &p, const ViewItemPaintParams &pp)
 
pv::widgets::Popupcreate_popup (QWidget *parent)
 
QRectF label_rect (const QRectF &rect) const
 
virtual QRectF hit_box_rect (const ViewItemPaintParams &pp) const
 
void set_current_segment (const int segment)
 
int get_current_segment () const
 
- Public Member Functions inherited from pv::views::trace::TraceTreeItem
 TraceTreeItem ()
 
TraceTreeItemOwnerowner () const
 
void select (bool select=true)
 
int layout_v_offset () const
 
void set_layout_v_offset (int v_offset)
 
int visual_v_offset () const
 
void set_visual_v_offset (int v_offset)
 
void force_to_v_offset (int v_offset)
 
void animate_to_layout_v_offset ()
 
int get_visual_y () const
 
void drag_by (const QPoint &delta)
 
QPoint drag_point (const QRect &rect) const
 
- Public Member Functions inherited from pv::views::trace::ViewItem
 ViewItem ()
 
bool selected () const
 
bool dragging () const
 
void drag ()
 
virtual void drag_release ()
 

Private Slots

void on_setting_changed (const QString &key, const QVariant &value)
 
void on_color_changed (const QColor &color)
 
void on_new_annotations ()
 
void on_delayed_trace_update ()
 
void on_decode_reset ()
 
void on_decode_finished ()
 
void on_pause_decode ()
 
void on_delete ()
 
void on_channel_selected (int)
 
void on_channels_updated ()
 
void on_init_state_changed (int)
 
void on_stack_decoder (srd_decoder *decoder)
 
void on_delete_decoder (int index)
 
void on_show_hide_decoder (int index)
 
void on_show_hide_row (int row_id)
 
void on_show_hide_class (QObject *sender)
 
void on_show_all_classes ()
 
void on_hide_all_classes ()
 
void on_row_container_resized (QWidget *sender)
 
void on_copy_annotation_to_clipboard ()
 
void on_export_row ()
 
void on_export_all_rows ()
 
void on_export_row_with_cursor ()
 
void on_export_all_rows_with_cursor ()
 
void on_export_row_from_here ()
 
void on_export_all_rows_from_here ()
 
void on_animation_timer ()
 
void on_hide_hidden_rows ()
 

Private Member Functions

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, const ViewItemPaintParams &pp, int y, const DecodeTraceRow &row) const
 
void draw_annotation_block (qreal start, qreal end, uint32_t ann_class, bool use_ann_format, QPainter &p, int y, const DecodeTraceRow &row) const
 
void draw_instant (const Annotation *a, QPainter &p, qreal x, int y) const
 
void draw_range (const Annotation *a, QPainter &p, qreal start, qreal end, int y, const ViewItemPaintParams &pp, int row_title_width) const
 
void draw_error (QPainter &p, const QString &message, const ViewItemPaintParams &pp)
 
void draw_unresolved_period (QPainter &p, int left, int right) const
 
pair< double, double > get_pixels_offset_samples_per_pixel () const
 
pair< uint64_t, uint64_t > get_view_sample_range (int x_start, int x_end) const
 
unsigned int get_row_y (const DecodeTraceRow *row) const
 
DecodeTraceRowget_row_at_point (const QPoint &point)
 
const QString get_annotation_at_point (const QPoint &point)
 
void update_stack_button ()
 
void create_decoder_form (int index, shared_ptr< Decoder > &dec, QWidget *parent, QFormLayout *form)
 
QComboBox * create_channel_selector (QWidget *parent, const data::decode::DecodeChannel *ch)
 
QComboBox * create_channel_selector_init_state (QWidget *parent, const data::decode::DecodeChannel *ch)
 
void export_annotations (deque< const Annotation * > &annotations) const
 
void initialize_row_widgets (DecodeTraceRow *r, unsigned int row_id)
 
void update_rows ()
 
void set_row_expanded (DecodeTraceRow *r)
 
void set_row_collapsed (DecodeTraceRow *r)
 
void update_expanded_rows ()
 

Private Attributes

pv::Sessionsession_
 
shared_ptr< data::DecodeSignaldecode_signal_
 
deque< DecodeTraceRowrows_
 
mutex row_modification_mutex_
 
map< QComboBox *, uint16_t > channel_id_map_
 
map< QComboBox *, uint16_t > init_state_map_
 
list< shared_ptr< pv::binding::Decoder > > bindings_
 
const Rowselected_row_
 
pair< uint64_t, uint64_t > selected_sample_range_
 
vector< pv::widgets::DecoderGroupBox * > decoder_forms_
 
QPushButton * stack_button_
 
unsigned int default_row_height_
 
unsigned int annotation_height_
 
unsigned int visible_rows_
 
int min_useful_label_width_
 
bool always_show_all_rows_
 
bool show_hidden_rows_
 
QSignalMapper delete_mapper_
 
QSignalMapper show_hide_mapper_
 
QSignalMapper row_show_hide_mapper_
 
QSignalMapper class_show_hide_mapper_
 
QTimer delayed_trace_updater_
 
QTimer animation_timer_
 
QTimer delayed_hidden_row_hider_
 
QPolygon default_marker_shape_
 

Static Private Attributes

static const QColor NoDecodeColor = QColor(0x88, 0x8A, 0x85)
 
static const QColor ExpandMarkerWarnColor = QColor(0xFF, 0xA5, 0x00)
 
static const QColor ExpandMarkerHiddenColor = QColor(0x69, 0x69, 0x69)
 
static const uint8_t ExpansionAreaHeaderAlpha = 10 * 255 / 100
 
static const uint8_t ExpansionAreaAlpha = 5 * 255 / 100
 
static const int ArrowSize = 6
 
static const double EndCapWidth = 5
 
static const int RowTitleMargin = 7
 
static const int DrawPadding = 100
 
static const int MaxTraceUpdateRate = 1
 
static const int AnimationDurationInTicks = 7
 
static const int HiddenRowHideDelay = 1000
 

Additional Inherited Members

- Public Types inherited from pv::views::trace::Trace
enum  SegmentDisplayMode {
  ShowLastSegmentOnly = 1, ShowLastCompleteSegmentOnly, ShowSingleSegmentOnly, ShowAllSegments,
  ShowAccumulatedIntensity
}
 
- Static Public Member Functions inherited from pv::views::trace::ViewItem
static QColor select_text_color (QColor background)
 
- Static Public Attributes inherited from pv::views::trace::ViewItem
static const QSizeF LabelPadding
 
static const int HighlightRadius = 3
 
- Protected Slots inherited from pv::views::trace::Trace
virtual void on_name_changed (const QString &text)
 
virtual void on_color_changed (const QColor &color)
 
virtual void on_error_message_changed (const QString &msg)
 
void on_popup_closed ()
 
- Protected Member Functions inherited from pv::views::trace::Trace
 Trace (shared_ptr< data::SignalBase > signal)
 
 ~Trace ()
 
void paint_axis (QPainter &p, ViewItemPaintParams &pp, int y)
 
void paint_hover_marker (QPainter &p)
 
void add_color_option (QWidget *parent, QFormLayout *form)
 
void create_popup_form ()
 
- Static Protected Member Functions inherited from pv::views::trace::ViewItem
static QPen highlight_pen ()
 
- Protected Attributes inherited from pv::views::trace::Trace
shared_ptr< data::SignalBasebase_
 
QPen axis_pen_
 
SegmentDisplayMode segment_display_mode_
 
bool show_hover_marker_
 
uint32_t context_menu_x_pos_
 
int current_segment_
 The ID of the currently displayed segment. More...
 
- Protected Attributes inherited from pv::views::trace::TraceTreeItem
TraceTreeItemOwnerowner_
 
int layout_v_offset_
 
int visual_v_offset_
 
- Protected Attributes inherited from pv::views::trace::ViewItem
QWidget * context_parent_
 
QPoint drag_point_
 
- Properties inherited from pv::views::trace::TraceTreeItem
int visual_v_offset
 

Detailed Description

Definition at line 118 of file decodetrace.hpp.

Constructor & Destructor Documentation

pv::views::trace::DecodeTrace::DecodeTrace ( pv::Session session,
shared_ptr< SignalBase signalbase,
int  index 
)

Definition at line 143 of file decodetrace.cpp.

Here is the call graph for this function:

pv::views::trace::DecodeTrace::~DecodeTrace ( )

Definition at line 228 of file decodetrace.cpp.

Here is the call graph for this function:

Member Function Documentation

shared_ptr< data::SignalBase > pv::views::trace::DecodeTrace::base ( ) const

Definition at line 247 of file decodetrace.cpp.

QComboBox * pv::views::trace::DecodeTrace::create_channel_selector ( QWidget *  parent,
const data::decode::DecodeChannel ch 
)
private

Definition at line 1138 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QComboBox * pv::views::trace::DecodeTrace::create_channel_selector_init_state ( QWidget *  parent,
const data::decode::DecodeChannel ch 
)
private

Definition at line 1170 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::create_decoder_form ( int  index,
shared_ptr< Decoder > &  dec,
QWidget *  parent,
QFormLayout *  form 
)
private

Definition at line 1065 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QMenu * pv::views::trace::DecodeTrace::create_header_context_menu ( QWidget *  parent)
virtual

Reimplemented from pv::views::trace::Trace.

Definition at line 480 of file decodetrace.cpp.

Here is the call graph for this function:

QMenu * pv::views::trace::DecodeTrace::create_view_context_menu ( QWidget *  parent,
QPoint &  click_pos 
)
virtual

Reimplemented from pv::views::trace::Trace.

Definition at line 494 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::delete_pressed ( )
virtual

Reimplemented from pv::views::trace::ViewItem.

Definition at line 605 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::draw_annotation ( const Annotation a,
QPainter &  p,
const ViewItemPaintParams pp,
int  y,
const DecodeTraceRow row 
) const
private

Definition at line 802 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::draw_annotation_block ( qreal  start,
qreal  end,
uint32_t  ann_class,
bool  use_ann_format,
QPainter &  p,
int  y,
const DecodeTraceRow row 
) const
private

Definition at line 824 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::draw_annotations ( deque< const Annotation * > &  annotations,
QPainter &  p,
const ViewItemPaintParams pp,
int  y,
const DecodeTraceRow row 
)
private

Definition at line 717 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::draw_error ( QPainter &  p,
const QString &  message,
const ViewItemPaintParams pp 
)
private
void pv::views::trace::DecodeTrace::draw_instant ( const Annotation a,
QPainter &  p,
qreal  x,
int  y 
) const
private

Definition at line 852 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::draw_range ( const Annotation a,
QPainter &  p,
qreal  start,
qreal  end,
int  y,
const ViewItemPaintParams pp,
int  row_title_width 
) const
private

Definition at line 866 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::draw_unresolved_period ( QPainter &  p,
int  left,
int  right 
) const
private

Definition at line 927 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool pv::views::trace::DecodeTrace::enabled ( ) const
virtual

Returns true if the item is visible and enabled.

Implements pv::views::trace::ViewItem.

Definition at line 242 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::export_annotations ( deque< const Annotation * > &  annotations) const
private

Definition at line 1186 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const QString pv::views::trace::DecodeTrace::get_annotation_at_point ( const QPoint &  point)
private

Definition at line 1032 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

pair< double, double > pv::views::trace::DecodeTrace::get_pixels_offset_samples_per_pixel ( ) const
private

Definition at line 959 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

DecodeTraceRow * pv::views::trace::DecodeTrace::get_row_at_point ( const QPoint &  point)
private

Definition at line 1015 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int pv::views::trace::DecodeTrace::get_row_y ( const DecodeTraceRow row) const
private

Definition at line 996 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

pair< uint64_t, uint64_t > pv::views::trace::DecodeTrace::get_view_sample_range ( int  x_start,
int  x_end 
) const
private

Determines the start and end sample for a given pixel range.

Parameters
x_startthe X coordinate of the start sample in the view
x_endthe X coordinate of the end sample in the view
Returns
Returns a pair containing the start sample and the end sample that correspond to the start and end coordinates.

Definition at line 981 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::hover_point_changed ( const QPoint &  hp)
virtual

Reimplemented from pv::views::trace::Trace.

Definition at line 610 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::initialize_row_widgets ( DecodeTraceRow r,
unsigned int  row_id 
)
private

Definition at line 1263 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::mouse_left_press_event ( const QMouseEvent *  event)
virtual

Handles left mouse button press events.

Parameters
eventthe mouse event that triggered this handler.

Reimplemented from pv::views::trace::ViewItem.

Definition at line 669 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::on_animation_timer ( )
privateslot

Definition at line 1806 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_channel_selected ( int  )
privateslot

Definition at line 1560 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_channels_updated ( )
privateslot

Definition at line 1574 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_color_changed ( const QColor &  color)
privateslot

Definition at line 1512 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_copy_annotation_to_clipboard ( )
privateslot

Definition at line 1695 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_decode_finished ( )
privateslot

Definition at line 1541 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_decode_reset ( )
privateslot

Definition at line 1533 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_delayed_trace_update ( )
privateslot

Definition at line 1527 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_delete ( )
privateslot

Definition at line 1555 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_delete_decoder ( int  index)
privateslot

Definition at line 1601 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_all_rows ( )
privateslot

Definition at line 1721 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_all_rows_from_here ( )
privateslot

Definition at line 1795 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_all_rows_with_cursor ( )
privateslot

Definition at line 1753 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_row ( )
privateslot

Definition at line 1715 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_row_from_here ( )
privateslot

Definition at line 1779 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_export_row_with_cursor ( )
privateslot

Definition at line 1727 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_hide_all_classes ( )
privateslot

Definition at line 1673 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_hide_hidden_rows ( )
privateslot

Definition at line 1852 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_init_state_changed ( int  )
privateslot

Definition at line 1580 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_new_annotations ( )
privateslot

Definition at line 1521 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_pause_decode ( )
privateslot

Definition at line 1547 of file decodetrace.cpp.

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_row_container_resized ( QWidget *  sender)
privateslot

Definition at line 1687 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_setting_changed ( const QString &  key,
const QVariant &  value 
)
privateslot

Definition at line 1504 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::on_show_all_classes ( )
privateslot

Definition at line 1659 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_show_hide_class ( QObject sender)
privateslot

Definition at line 1639 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_show_hide_decoder ( int  index)
privateslot

Definition at line 1611 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_show_hide_row ( int  row_id)
privateslot

Definition at line 1624 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::on_stack_decoder ( srd_decoder *  decoder)
privateslot

Definition at line 1593 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::paint_back ( QPainter &  p,
ViewItemPaintParams pp 
)
virtual

Paints the background layer of the trace with a QPainter

Parameters
pthe QPainter to paint into.
ppthe painting parameters object to paint with..

Reimplemented from pv::views::trace::Trace.

Definition at line 277 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::paint_fore ( QPainter &  p,
ViewItemPaintParams pp 
)
virtual

Paints the foreground layer of the trace with a QPainter

Parameters
pthe QPainter to paint into.
ppthe painting parameters object to paint with.

Reimplemented from pv::views::trace::ViewItem.

Definition at line 356 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::paint_mid ( QPainter &  p,
ViewItemPaintParams pp 
)
virtual

Paints the mid-layer of the trace with a QPainter

Parameters
pthe QPainter to paint into.
ppthe painting parameters object to paint with.

Reimplemented from pv::views::trace::ViewItem.

Definition at line 283 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::populate_popup_form ( QWidget *  parent,
QFormLayout *  form 
)
virtual

Reimplemented from pv::views::trace::Trace.

Definition at line 439 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::set_owner ( TraceTreeItemOwner owner)
virtual

Sets the owner this trace in the view trace hierachy.

Parameters
Thenew owner of the trace.

Reimplemented from pv::views::trace::TraceTreeItem.

Definition at line 252 of file decodetrace.cpp.

Here is the call graph for this function:

void pv::views::trace::DecodeTrace::set_row_collapsed ( DecodeTraceRow r)
private

Sets row r to collapsed state without forcing an update of the view

Definition at line 1469 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::set_row_expanded ( DecodeTraceRow r)
private

Sets row r to expanded state without forcing an update of the view

Definition at line 1454 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::update_expanded_rows ( )
private

Definition at line 1481 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::update_rows ( )
private

Definition at line 1382 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::DecodeTrace::update_stack_button ( )
private

Definition at line 412 of file decodetrace.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

pair< int, int > pv::views::trace::DecodeTrace::v_extents ( ) const
virtual

Computes the vertical extents of the contents of this row item.

Returns
A pair containing the minimum and maximum y-values.

Implements pv::views::trace::TraceTreeItem.

Definition at line 263 of file decodetrace.cpp.

Here is the caller graph for this function:

Member Data Documentation

bool pv::views::trace::DecodeTrace::always_show_all_rows_
private

Definition at line 323 of file decodetrace.hpp.

QTimer pv::views::trace::DecodeTrace::animation_timer_
private

Definition at line 328 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::AnimationDurationInTicks = 7
staticprivate

Definition at line 135 of file decodetrace.hpp.

unsigned int pv::views::trace::DecodeTrace::annotation_height_
private

Definition at line 319 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::ArrowSize = 6
staticprivate

Definition at line 129 of file decodetrace.hpp.

list< shared_ptr<pv::binding::Decoder> > pv::views::trace::DecodeTrace::bindings_
private

Definition at line 311 of file decodetrace.hpp.

map<QComboBox*, uint16_t> pv::views::trace::DecodeTrace::channel_id_map_
private

Definition at line 309 of file decodetrace.hpp.

QSignalMapper pv::views::trace::DecodeTrace::class_show_hide_mapper_
private

Definition at line 326 of file decodetrace.hpp.

shared_ptr<data::DecodeSignal> pv::views::trace::DecodeTrace::decode_signal_
private

Definition at line 304 of file decodetrace.hpp.

vector<pv::widgets::DecoderGroupBox*> pv::views::trace::DecodeTrace::decoder_forms_
private

Definition at line 316 of file decodetrace.hpp.

QPolygon pv::views::trace::DecodeTrace::default_marker_shape_
private

Definition at line 330 of file decodetrace.hpp.

unsigned int pv::views::trace::DecodeTrace::default_row_height_
private

Definition at line 319 of file decodetrace.hpp.

QTimer pv::views::trace::DecodeTrace::delayed_hidden_row_hider_
private

Definition at line 328 of file decodetrace.hpp.

QTimer pv::views::trace::DecodeTrace::delayed_trace_updater_
private

Definition at line 328 of file decodetrace.hpp.

QSignalMapper pv::views::trace::DecodeTrace::delete_mapper_
private

Definition at line 325 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::DrawPadding = 100
staticprivate

Definition at line 132 of file decodetrace.hpp.

const double pv::views::trace::DecodeTrace::EndCapWidth = 5
staticprivate

Definition at line 130 of file decodetrace.hpp.

const QColor pv::views::trace::DecodeTrace::ExpandMarkerHiddenColor = QColor(0x69, 0x69, 0x69)
staticprivate

Definition at line 125 of file decodetrace.hpp.

const QColor pv::views::trace::DecodeTrace::ExpandMarkerWarnColor = QColor(0xFF, 0xA5, 0x00)
staticprivate

Definition at line 124 of file decodetrace.hpp.

const uint8_t pv::views::trace::DecodeTrace::ExpansionAreaAlpha = 5 * 255 / 100
staticprivate

Definition at line 127 of file decodetrace.hpp.

const uint8_t pv::views::trace::DecodeTrace::ExpansionAreaHeaderAlpha = 10 * 255 / 100
staticprivate

Definition at line 126 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::HiddenRowHideDelay = 1000
staticprivate

Definition at line 136 of file decodetrace.hpp.

map<QComboBox*, uint16_t> pv::views::trace::DecodeTrace::init_state_map_
private

Definition at line 310 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::MaxTraceUpdateRate = 1
staticprivate

Definition at line 134 of file decodetrace.hpp.

int pv::views::trace::DecodeTrace::min_useful_label_width_
private

Definition at line 322 of file decodetrace.hpp.

const QColor pv::views::trace::DecodeTrace::NoDecodeColor = QColor(0x88, 0x8A, 0x85)
staticprivate

Definition at line 123 of file decodetrace.hpp.

mutex pv::views::trace::DecodeTrace::row_modification_mutex_
mutableprivate

Definition at line 307 of file decodetrace.hpp.

QSignalMapper pv::views::trace::DecodeTrace::row_show_hide_mapper_
private

Definition at line 326 of file decodetrace.hpp.

deque<DecodeTraceRow> pv::views::trace::DecodeTrace::rows_
private

Definition at line 306 of file decodetrace.hpp.

const int pv::views::trace::DecodeTrace::RowTitleMargin = 7
staticprivate

Definition at line 131 of file decodetrace.hpp.

const Row* pv::views::trace::DecodeTrace::selected_row_
private

Definition at line 313 of file decodetrace.hpp.

pair<uint64_t, uint64_t> pv::views::trace::DecodeTrace::selected_sample_range_
private

Definition at line 314 of file decodetrace.hpp.

pv::Session& pv::views::trace::DecodeTrace::session_
private

Definition at line 303 of file decodetrace.hpp.

bool pv::views::trace::DecodeTrace::show_hidden_rows_
private

Definition at line 323 of file decodetrace.hpp.

QSignalMapper pv::views::trace::DecodeTrace::show_hide_mapper_
private

Definition at line 325 of file decodetrace.hpp.

QPushButton* pv::views::trace::DecodeTrace::stack_button_
private

Definition at line 317 of file decodetrace.hpp.

unsigned int pv::views::trace::DecodeTrace::visible_rows_
private

Definition at line 320 of file decodetrace.hpp.


The documentation for this class was generated from the following files: