PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::tabular_decoder::AnnotationCollectionModel Class Reference

#include <view.hpp>

Inheritance diagram for pv::views::tabular_decoder::AnnotationCollectionModel:
Collaboration diagram for pv::views::tabular_decoder::AnnotationCollectionModel:

Public Member Functions

 AnnotationCollectionModel (QObject *parent=nullptr)
 
int get_hierarchy_level (const Annotation *ann) const
 
QVariant data_from_ann (const Annotation *ann, int index) const
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
uint8_t first_hidden_column () const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent_idx=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent_idx=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent_idx=QModelIndex()) const override
 
void set_signal_and_segment (data::DecodeSignal *signal, uint32_t current_segment)
 
void set_hide_hidden (bool hide_hidden)
 
void update_annotations_without_hidden ()
 
QModelIndex update_highlighted_rows (QModelIndex first, QModelIndex last, int64_t sample_num)
 

Private Slots

void on_annotation_visibility_changed ()
 

Private Attributes

vector< QVariant > header_data_
 
const deque< const Annotation * > * all_annotations_
 
deque< const Annotation * > all_annotations_without_hidden_
 
const deque< const Annotation * > * dataset_
 
data::DecodeSignalsignal_
 
uint8_t first_hidden_column_
 
uint32_t prev_segment_
 
uint64_t prev_last_row_
 
int64_t highlight_sample_num_
 
bool had_highlight_before_
 
bool hide_hidden_
 

Detailed Description

Definition at line 61 of file view.hpp.

Constructor & Destructor Documentation

pv::views::tabular_decoder::AnnotationCollectionModel::AnnotationCollectionModel ( QObject parent = nullptr)

Definition at line 42 of file model.cpp.

Member Function Documentation

int pv::views::tabular_decoder::AnnotationCollectionModel::columnCount ( const QModelIndex &  parent_idx = QModelIndex()) const
override

Definition at line 210 of file model.cpp.

Here is the caller graph for this function:

QVariant pv::views::tabular_decoder::AnnotationCollectionModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 100 of file model.cpp.

Here is the call graph for this function:

QVariant pv::views::tabular_decoder::AnnotationCollectionModel::data_from_ann ( const Annotation ann,
int  index 
) const

Definition at line 77 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint8_t pv::views::tabular_decoder::AnnotationCollectionModel::first_hidden_column ( ) const

Definition at line 159 of file model.cpp.

Here is the caller graph for this function:

Qt::ItemFlags pv::views::tabular_decoder::AnnotationCollectionModel::flags ( const QModelIndex &  index) const
override

Definition at line 151 of file model.cpp.

int pv::views::tabular_decoder::AnnotationCollectionModel::get_hierarchy_level ( const Annotation ann) const

Definition at line 67 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QVariant pv::views::tabular_decoder::AnnotationCollectionModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 164 of file model.cpp.

QModelIndex pv::views::tabular_decoder::AnnotationCollectionModel::index ( int  row,
int  column,
const QModelIndex &  parent_idx = QModelIndex() 
) const
override

Definition at line 176 of file model.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::AnnotationCollectionModel::on_annotation_visibility_changed ( )
privateslot

Definition at line 356 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QModelIndex pv::views::tabular_decoder::AnnotationCollectionModel::parent ( const QModelIndex &  index) const
override

Definition at line 193 of file model.cpp.

int pv::views::tabular_decoder::AnnotationCollectionModel::rowCount ( const QModelIndex &  parent_idx = QModelIndex()) const
override

Definition at line 200 of file model.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::AnnotationCollectionModel::set_hide_hidden ( bool  hide_hidden)

Definition at line 271 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::AnnotationCollectionModel::set_signal_and_segment ( data::DecodeSignal signal,
uint32_t  current_segment 
)

Definition at line 217 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::AnnotationCollectionModel::update_annotations_without_hidden ( )

Definition at line 293 of file model.cpp.

Here is the caller graph for this function:

QModelIndex pv::views::tabular_decoder::AnnotationCollectionModel::update_highlighted_rows ( QModelIndex  first,
QModelIndex  last,
int64_t  sample_num 
)

Definition at line 315 of file model.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const deque<const Annotation*>* pv::views::tabular_decoder::AnnotationCollectionModel::all_annotations_
private

Definition at line 96 of file view.hpp.

deque<const Annotation*> pv::views::tabular_decoder::AnnotationCollectionModel::all_annotations_without_hidden_
private

Definition at line 97 of file view.hpp.

const deque<const Annotation*>* pv::views::tabular_decoder::AnnotationCollectionModel::dataset_
private

Definition at line 98 of file view.hpp.

uint8_t pv::views::tabular_decoder::AnnotationCollectionModel::first_hidden_column_
private

Definition at line 100 of file view.hpp.

bool pv::views::tabular_decoder::AnnotationCollectionModel::had_highlight_before_
private

Definition at line 104 of file view.hpp.

vector<QVariant> pv::views::tabular_decoder::AnnotationCollectionModel::header_data_
private

Definition at line 95 of file view.hpp.

bool pv::views::tabular_decoder::AnnotationCollectionModel::hide_hidden_
private

Definition at line 105 of file view.hpp.

int64_t pv::views::tabular_decoder::AnnotationCollectionModel::highlight_sample_num_
private

Definition at line 103 of file view.hpp.

uint64_t pv::views::tabular_decoder::AnnotationCollectionModel::prev_last_row_
private

Definition at line 102 of file view.hpp.

uint32_t pv::views::tabular_decoder::AnnotationCollectionModel::prev_segment_
private

Definition at line 101 of file view.hpp.

data::DecodeSignal* pv::views::tabular_decoder::AnnotationCollectionModel::signal_
private

Definition at line 99 of file view.hpp.


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