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

#include <view.hpp>

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

Public Member Functions

 View (Session &session, bool is_main_view=false, QMainWindow *parent=nullptr)
 
 ~View ()
 
virtual ViewType get_type () const
 
virtual void reset_view_state ()
 
virtual void clear_decode_signals ()
 
virtual void add_decode_signal (shared_ptr< data::DecodeSignal > signal)
 
virtual void remove_decode_signal (shared_ptr< data::DecodeSignal > signal)
 
virtual void save_settings (QSettings &settings) const
 
virtual void restore_settings (QSettings &settings)
 
- Public Member Functions inherited from pv::views::ViewBase
 ViewBase (Session &session, bool is_main_view=false, QMainWindow *parent=nullptr)
 
bool is_main_view () const
 
Sessionsession ()
 
const Sessionsession () const
 
vector< shared_ptr< data::SignalBase > > signalbases () const
 
virtual void clear_signalbases ()
 
virtual void add_signalbase (const shared_ptr< data::SignalBase > signalbase)
 
virtual void remove_signalbase (const shared_ptr< data::SignalBase > signalbase)
 
virtual void focus_on_range (uint64_t start_sample, uint64_t end_sample)
 
- Public Member Functions inherited from pv::MetadataObjObserverInterface
virtual void on_metadata_object_created (MetadataObject *obj)
 
virtual void on_metadata_object_deleted (MetadataObject *obj)
 
virtual void on_metadata_object_changed (MetadataObject *obj, MetadataValueType value_type)
 

Private Slots

void on_selected_decoder_changed (int index)
 
void on_hide_hidden_changed (bool checked)
 
void on_view_mode_changed (int index)
 
void on_signal_name_changed (const QString &name)
 
void on_signal_color_changed (const QColor &color)
 
void on_new_annotations ()
 
void on_decoder_reset ()
 
void on_decoder_stacked (void *decoder)
 
void on_decoder_removed (void *decoder)
 
void on_actionSave_triggered (QAction *action=nullptr)
 
void on_table_item_clicked (const QModelIndex &index)
 
void on_table_item_double_clicked (const QModelIndex &index)
 
void on_table_header_requested (const QPoint &pos)
 
void on_table_header_toggled (bool checked)
 
virtual void on_metadata_object_changed (MetadataObject *obj, MetadataValueType value_type)
 
virtual void perform_delayed_view_update ()
 

Private Member Functions

void reset_data ()
 
void update_data ()
 
void save_data_as_csv (unsigned int save_type) const
 

Private Attributes

QWidget * parent_
 
QComboBox * decoder_selector_
 
QCheckBox * hide_hidden_cb_
 
QComboBox * view_mode_selector_
 
QToolButtonsave_button_
 
QAction * save_action_
 
CustomTableViewtable_view_
 
AnnotationCollectionModelmodel_
 
CustomFilterProxyModelfilter_proxy_model_
 
data::DecodeSignalsignal_
 
const data::decode::Decoderdecoder_
 

Additional Inherited Members

- Public Slots inherited from pv::views::ViewBase
virtual void trigger_event (int segment_id, util::Timestamp location)
 
virtual void signals_changed ()
 
virtual void capture_state_updated (int state)
 
virtual void on_new_segment (int new_segment_id)
 
virtual void on_segment_completed (int new_segment_id)
 
virtual void perform_delayed_view_update ()
 
- Static Public Attributes inherited from pv::views::ViewBase
static const int MaxViewAutoUpdateRate = 25
 
- Protected Attributes inherited from pv::views::ViewBase
Sessionsession_
 
const bool is_main_view_
 
util::TimeUnit time_unit_
 
vector< shared_ptr< data::SignalBase > > signalbases_
 
uint32_t current_segment_
 The ID of the currently displayed segment. More...
 
QTimer delayed_view_updater_
 

Detailed Description

Definition at line 145 of file view.hpp.

Constructor & Destructor Documentation

pv::views::tabular_decoder::View::View ( Session session,
bool  is_main_view = false,
QMainWindow parent = nullptr 
)
explicit

Definition at line 151 of file view.cpp.

Here is the call graph for this function:

pv::views::tabular_decoder::View::~View ( )

Definition at line 265 of file view.cpp.

Here is the call graph for this function:

Member Function Documentation

void pv::views::tabular_decoder::View::add_decode_signal ( shared_ptr< data::DecodeSignal signal)
virtual

Definition at line 290 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::clear_decode_signals ( )
virtual

Definition at line 282 of file view.cpp.

Here is the call graph for this function:

ViewType pv::views::tabular_decoder::View::get_type ( ) const
virtual

Implements pv::views::ViewBase.

Definition at line 270 of file view.cpp.

void pv::views::tabular_decoder::View::on_actionSave_triggered ( QAction *  action = nullptr)
privateslot

Definition at line 600 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_decoder_removed ( void *  decoder)
privateslot

Definition at line 589 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_decoder_reset ( )
privateslot

Definition at line 559 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_decoder_stacked ( void *  decoder)
privateslot

Definition at line 566 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_hide_hidden_changed ( bool  checked)
privateslot

Definition at line 482 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_metadata_object_changed ( MetadataObject obj,
MetadataValueType  value_type 
)
privatevirtualslot

Definition at line 663 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::on_new_annotations ( )
privateslot

Definition at line 546 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_selected_decoder_changed ( int  index)
privateslot

Definition at line 452 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_signal_color_changed ( const QColor &  color)
privateslot

Definition at line 538 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_signal_name_changed ( const QString &  name)
privateslot

Definition at line 517 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_table_header_requested ( const QPoint &  pos)
privateslot

Definition at line 630 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_table_header_toggled ( bool  checked)
privateslot

Definition at line 653 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_table_item_clicked ( const QModelIndex &  index)
privateslot

Definition at line 610 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_table_item_double_clicked ( const QModelIndex &  index)
privateslot

Definition at line 618 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::on_view_mode_changed ( int  index)
privateslot

Definition at line 490 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::perform_delayed_view_update ( )
privatevirtualslot

Definition at line 702 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::remove_decode_signal ( shared_ptr< data::DecodeSignal signal)
virtual

Definition at line 313 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::reset_data ( )
private

Definition at line 351 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::reset_view_state ( )
virtual

Resets the view to its default state after construction. It does however not reset the signal bases or any other connections with the session.

Reimplemented from pv::views::ViewBase.

Definition at line 275 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::restore_settings ( QSettings settings)
virtual

Reimplemented from pv::views::ViewBase.

Definition at line 340 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::save_data_as_csv ( unsigned int  save_type) const
private

Definition at line 362 of file view.cpp.

Here is the caller graph for this function:

void pv::views::tabular_decoder::View::save_settings ( QSettings settings) const
virtual

Reimplemented from pv::views::ViewBase.

Definition at line 332 of file view.cpp.

Here is the call graph for this function:

void pv::views::tabular_decoder::View::update_data ( )
private

Definition at line 357 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const data::decode::Decoder* pv::views::tabular_decoder::View::decoder_
private

Definition at line 214 of file view.hpp.

QComboBox* pv::views::tabular_decoder::View::decoder_selector_
private

Definition at line 202 of file view.hpp.

CustomFilterProxyModel* pv::views::tabular_decoder::View::filter_proxy_model_
private

Definition at line 211 of file view.hpp.

QCheckBox* pv::views::tabular_decoder::View::hide_hidden_cb_
private

Definition at line 203 of file view.hpp.

AnnotationCollectionModel* pv::views::tabular_decoder::View::model_
private

Definition at line 210 of file view.hpp.

QWidget* pv::views::tabular_decoder::View::parent_
private

Definition at line 200 of file view.hpp.

QAction* pv::views::tabular_decoder::View::save_action_
private

Definition at line 207 of file view.hpp.

QToolButton* pv::views::tabular_decoder::View::save_button_
private

Definition at line 206 of file view.hpp.

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

Definition at line 213 of file view.hpp.

CustomTableView* pv::views::tabular_decoder::View::table_view_
private

Definition at line 209 of file view.hpp.

QComboBox* pv::views::tabular_decoder::View::view_mode_selector_
private

Definition at line 204 of file view.hpp.


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