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

#include <view.hpp>

Inheritance diagram for pv::views::decoder_binary::View:
Collaboration diagram for pv::views::decoder_binary::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_selected_class_changed (int index)
 
void on_signal_name_changed (const QString &name)
 
void on_new_binary_data (unsigned int segment_id, void *decoder, unsigned int bin_class_id)
 
void on_decoder_stacked (void *decoder)
 
void on_decoder_removed (void *decoder)
 
void on_actionSave_triggered (QAction *action=nullptr)
 
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 () const
 
void save_data_as_hex_dump (bool with_offset=false, bool with_ascii=false) const
 

Private Attributes

QWidget * parent_
 
QComboBox * decoder_selector_
 
QComboBox * format_selector_
 
QComboBox * class_selector_
 
QStackedWidget * stacked_widget_
 
QHexViewhex_view_
 
QToolButtonsave_button_
 
QAction * save_action_
 
data::DecodeSignalsignal_
 
const data::decode::Decoderdecoder_
 
uint32_t bin_class_id_
 
bool binary_data_exists_
 

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 54 of file view.hpp.

Constructor & Destructor Documentation

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

Definition at line 60 of file view.cpp.

Here is the call graph for this function:

pv::views::decoder_binary::View::~View ( )

Definition at line 142 of file view.cpp.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 172 of file view.cpp.

Here is the call graph for this function:

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

Definition at line 164 of file view.cpp.

Here is the call graph for this function:

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

Implements pv::views::ViewBase.

Definition at line 147 of file view.cpp.

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

Definition at line 474 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 463 of file view.cpp.

Here is the caller graph for this function:

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

Definition at line 438 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 489 of file view.cpp.

Here is the call graph for this function:

void pv::views::decoder_binary::View::on_new_binary_data ( unsigned int  segment_id,
void *  decoder,
unsigned int  bin_class_id 
)
privateslot

Definition at line 431 of file view.cpp.

Here is the caller graph for this function:

void pv::views::decoder_binary::View::on_selected_class_changed ( int  index)
privateslot

Definition at line 390 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 358 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 401 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 508 of file view.cpp.

Here is the call graph for this function:

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

Definition at line 200 of file view.cpp.

Here is the call graph for this function:

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

Definition at line 231 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::decoder_binary::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 152 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from pv::views::ViewBase.

Definition at line 224 of file view.cpp.

Here is the call graph for this function:

void pv::views::decoder_binary::View::save_data ( ) const
private

Definition at line 258 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::decoder_binary::View::save_data_as_hex_dump ( bool  with_offset = false,
bool  with_ascii = false 
) const
private

Definition at line 298 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from pv::views::ViewBase.

Definition at line 219 of file view.cpp.

Here is the call graph for this function:

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

Definition at line 241 of file view.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

uint32_t pv::views::decoder_binary::View::bin_class_id_
private

Definition at line 112 of file view.hpp.

bool pv::views::decoder_binary::View::binary_data_exists_
private

Definition at line 113 of file view.hpp.

QComboBox * pv::views::decoder_binary::View::class_selector_
private

Definition at line 103 of file view.hpp.

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

Definition at line 111 of file view.hpp.

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

Definition at line 103 of file view.hpp.

QComboBox * pv::views::decoder_binary::View::format_selector_
private

Definition at line 103 of file view.hpp.

QHexView* pv::views::decoder_binary::View::hex_view_
private

Definition at line 105 of file view.hpp.

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

Definition at line 101 of file view.hpp.

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

Definition at line 108 of file view.hpp.

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

Definition at line 107 of file view.hpp.

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

Definition at line 110 of file view.hpp.

QStackedWidget* pv::views::decoder_binary::View::stacked_widget_
private

Definition at line 104 of file view.hpp.


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