PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::toolbars::MainBar Class Reference

#include <mainbar.hpp>

Inheritance diagram for pv::toolbars::MainBar:
Collaboration diagram for pv::toolbars::MainBar:

Signals

void new_view (Session *session, int type)
 
void show_decoder_selector (Session *session)
 
- Signals inherited from pv::views::trace::StandardBar
void segment_selected (int segment_id)
 

Public Member Functions

 MainBar (Session &session, QWidget *parent, pv::views::trace::View *view)
 
void update_device_list ()
 
void set_capture_state (pv::Session::capture_state state)
 
void reset_device_selector ()
 
QAction * action_new_view () const
 
QAction * action_open () const
 
QAction * action_save () const
 
QAction * action_save_as () const
 
QAction * action_save_selection_as () const
 
QAction * action_restore_setup () const
 
QAction * action_save_setup () const
 
QAction * action_connect () const
 
- Public Member Functions inherited from pv::views::trace::StandardBar
 StandardBar (Session &session, QWidget *parent, trace::View *view, bool add_default_widgets=true)
 
Sessionsession () const
 
QAction * action_view_zoom_in () const
 
QAction * action_view_zoom_out () const
 
QAction * action_view_zoom_fit () const
 
QAction * action_view_show_cursors () const
 

Protected Member Functions

void add_toolbar_widgets ()
 
bool eventFilter (QObject *watched, QEvent *event)
 
- Protected Member Functions inherited from pv::views::trace::StandardBar
virtual void show_multi_segment_ui (const bool state)
 

Private Slots

void show_session_error (const QString text, const QString info_text)
 
void export_file (shared_ptr< sigrok::OutputFormat > format, bool selection_only=false, QString file_name="")
 
void import_file (shared_ptr< sigrok::InputFormat > format)
 
void on_device_selected ()
 
void on_device_changed ()
 
void on_capture_state_changed (int state)
 
void on_sample_count_changed ()
 
void on_sample_rate_changed ()
 
void on_config_changed ()
 
void on_actionNewView_triggered (QAction *action=nullptr)
 
void on_actionOpen_triggered ()
 
void on_actionSave_triggered ()
 
void on_actionSaveAs_triggered ()
 
void on_actionSaveSelectionAs_triggered ()
 
void on_actionSaveSetup_triggered ()
 
void on_actionRestoreSetup_triggered ()
 
void on_actionConnect_triggered ()
 
void on_add_decoder_clicked ()
 
void on_add_math_signal_clicked ()
 

Private Member Functions

void run_stop ()
 
void select_init_device ()
 
void save_selection_to_file ()
 
void update_sample_rate_selector ()
 
void update_sample_rate_selector_value ()
 
void update_sample_count_selector ()
 
void update_device_config_widgets ()
 
void commit_sample_rate ()
 
void commit_sample_count ()
 

Private Attributes

QAction *const action_new_view_
 
QAction *const action_open_
 
QAction *const action_save_
 
QAction *const action_save_as_
 
QAction *const action_save_selection_as_
 
QAction *const action_restore_setup_
 
QAction *const action_save_setup_
 
QAction *const action_connect_
 
QToolButtonnew_view_button_
 
QToolButtonopen_button_
 
QToolButtonsave_button_
 
pv::widgets::DeviceToolButton device_selector_
 
pv::widgets::PopupToolButton configure_button_
 
QAction * configure_button_action_
 
pv::widgets::PopupToolButton channels_button_
 
QAction * channels_button_action_
 
pv::widgets::SweepTimingWidget sample_count_
 
pv::widgets::SweepTimingWidget sample_rate_
 
bool updating_sample_rate_
 
bool updating_sample_count_
 
bool sample_count_supported_
 
QToolButtonadd_math_signal_button_
 

Static Private Attributes

static const uint64_t MinSampleCount = 100ULL
 
static const uint64_t MaxSampleCount = 1000000000000ULL
 
static const uint64_t DefaultSampleCount = 1000000
 
static const char * SettingOpenDirectory = "MainWindow/OpenDirectory"
 
static const char * SettingSaveDirectory = "MainWindow/SaveDirectory"
 

Additional Inherited Members

- Protected Slots inherited from pv::views::trace::StandardBar
void on_actionViewZoomIn_triggered ()
 
void on_actionViewZoomOut_triggered ()
 
void on_actionViewZoomFit_triggered (bool checked)
 
void on_actionViewShowCursors_triggered ()
 
void on_cursor_state_changed (bool show)
 
void on_actionSDMLast_triggered ()
 
void on_actionSDMLastComplete_triggered ()
 
void on_actionSDMSingle_triggered ()
 
void on_always_zoom_to_fit_changed (bool state)
 
void on_new_segment (int new_segment_id)
 
void on_segment_changed (int segment_id)
 
void on_segment_selected (int ui_segment_id)
 
void on_segment_display_mode_changed (int mode, bool segment_selectable)
 
- Protected Attributes inherited from pv::views::trace::StandardBar
Sessionsession_
 
trace::Viewview_
 
QAction *const action_view_zoom_in_
 
QAction *const action_view_zoom_out_
 
QAction *const action_view_zoom_fit_
 
QAction *const action_view_show_cursors_
 
QToolButtonsegment_display_mode_selector_
 
QAction *const action_sdm_last_
 
QAction *const action_sdm_last_complete_
 
QAction *const action_sdm_single_
 
QSpinBox * segment_selector_
 

Detailed Description

Definition at line 66 of file mainbar.hpp.

Constructor & Destructor Documentation

pv::toolbars::MainBar::MainBar ( Session session,
QWidget *  parent,
pv::views::trace::View view 
)

Definition at line 91 of file mainbar.cpp.

Here is the call graph for this function:

Member Function Documentation

QAction * pv::toolbars::MainBar::action_connect ( ) const

Definition at line 349 of file mainbar.cpp.

QAction* pv::toolbars::MainBar::action_new_view ( ) const
QAction * pv::toolbars::MainBar::action_open ( ) const

Definition at line 329 of file mainbar.cpp.

QAction* pv::toolbars::MainBar::action_restore_setup ( ) const
QAction * pv::toolbars::MainBar::action_save ( ) const

Definition at line 334 of file mainbar.cpp.

QAction * pv::toolbars::MainBar::action_save_as ( ) const

Definition at line 339 of file mainbar.cpp.

QAction * pv::toolbars::MainBar::action_save_selection_as ( ) const

Definition at line 344 of file mainbar.cpp.

QAction* pv::toolbars::MainBar::action_save_setup ( ) const
void pv::toolbars::MainBar::add_toolbar_widgets ( )
protectedvirtual

Reimplemented from pv::views::trace::StandardBar.

Definition at line 927 of file mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::commit_sample_count ( )
private

Definition at line 599 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::commit_sample_rate ( )
private

Definition at line 572 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool pv::toolbars::MainBar::eventFilter ( QObject watched,
QEvent *  event 
)
protected

Definition at line 949 of file mainbar.cpp.

Here is the call graph for this function:

void pv::toolbars::MainBar::export_file ( shared_ptr< sigrok::OutputFormat >  format,
bool  selection_only = false,
QString  file_name = "" 
)
privateslot

Definition at line 636 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::import_file ( shared_ptr< sigrok::InputFormat >  format)
privateslot

Definition at line 729 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::new_view ( Session session,
int  type 
)
signal

Definition at line 276 of file moc_mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionConnect_triggered ( )
privateslot

Definition at line 901 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionNewView_triggered ( QAction *  action = nullptr)
privateslot

Definition at line 816 of file mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionOpen_triggered ( )
privateslot

Definition at line 825 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionRestoreSetup_triggered ( )
privateslot

Definition at line 884 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionSave_triggered ( )
privateslot

Definition at line 844 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionSaveAs_triggered ( )
privateslot

Definition at line 857 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionSaveSelectionAs_triggered ( )
privateslot

Definition at line 862 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_actionSaveSetup_triggered ( )
privateslot

Definition at line 867 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_add_decoder_clicked ( )
privateslot

Definition at line 916 of file mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_add_math_signal_clicked ( )
privateslot

Definition at line 921 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_capture_state_changed ( int  state)
privateslot

Definition at line 789 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_config_changed ( )
privateslot

Definition at line 806 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_device_changed ( )
privateslot

Definition at line 783 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_device_selected ( )
privateslot

Definition at line 773 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_sample_count_changed ( )
privateslot

Definition at line 794 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::on_sample_rate_changed ( )
privateslot

Definition at line 800 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::reset_device_selector ( )

Definition at line 324 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::run_stop ( )
private
void pv::toolbars::MainBar::save_selection_to_file ( )
private
void pv::toolbars::MainBar::select_init_device ( )
private
void pv::toolbars::MainBar::set_capture_state ( pv::Session::capture_state  state)

Definition at line 313 of file mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::show_decoder_selector ( Session session)
signal

Definition at line 283 of file moc_mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::show_session_error ( const QString  text,
const QString  info_text 
)
privateslot

Definition at line 627 of file mainbar.cpp.

Here is the caller graph for this function:

void pv::toolbars::MainBar::update_device_config_widgets ( )
private

Definition at line 528 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::update_device_list ( )

Definition at line 298 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::update_sample_count_selector ( )
private

Definition at line 462 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::update_sample_rate_selector ( )
private

Definition at line 354 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::toolbars::MainBar::update_sample_rate_selector_value ( )
private

Definition at line 440 of file mainbar.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QAction* const pv::toolbars::MainBar::action_connect_
private

Definition at line 167 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_new_view_
private

Definition at line 160 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_open_
private

Definition at line 161 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_restore_setup_
private

Definition at line 165 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_save_
private

Definition at line 162 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_save_as_
private

Definition at line 163 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_save_selection_as_
private

Definition at line 164 of file mainbar.hpp.

QAction* const pv::toolbars::MainBar::action_save_setup_
private

Definition at line 166 of file mainbar.hpp.

QToolButton* pv::toolbars::MainBar::add_math_signal_button_
private

Definition at line 190 of file mainbar.hpp.

pv::widgets::PopupToolButton pv::toolbars::MainBar::channels_button_
private

Definition at line 176 of file mainbar.hpp.

QAction* pv::toolbars::MainBar::channels_button_action_
private

Definition at line 177 of file mainbar.hpp.

pv::widgets::PopupToolButton pv::toolbars::MainBar::configure_button_
private

Definition at line 173 of file mainbar.hpp.

QAction* pv::toolbars::MainBar::configure_button_action_
private

Definition at line 174 of file mainbar.hpp.

const uint64_t pv::toolbars::MainBar::DefaultSampleCount = 1000000
staticprivate

Definition at line 73 of file mainbar.hpp.

pv::widgets::DeviceToolButton pv::toolbars::MainBar::device_selector_
private

Definition at line 171 of file mainbar.hpp.

const uint64_t pv::toolbars::MainBar::MaxSampleCount = 1000000000000ULL
staticprivate

Definition at line 72 of file mainbar.hpp.

const uint64_t pv::toolbars::MainBar::MinSampleCount = 100ULL
staticprivate

Definition at line 71 of file mainbar.hpp.

QToolButton* pv::toolbars::MainBar::new_view_button_
private

Definition at line 169 of file mainbar.hpp.

QToolButton * pv::toolbars::MainBar::open_button_
private

Definition at line 169 of file mainbar.hpp.

pv::widgets::SweepTimingWidget pv::toolbars::MainBar::sample_count_
private

Definition at line 179 of file mainbar.hpp.

bool pv::toolbars::MainBar::sample_count_supported_
private

Definition at line 184 of file mainbar.hpp.

pv::widgets::SweepTimingWidget pv::toolbars::MainBar::sample_rate_
private

Definition at line 180 of file mainbar.hpp.

QToolButton * pv::toolbars::MainBar::save_button_
private

Definition at line 169 of file mainbar.hpp.

const char * pv::toolbars::MainBar::SettingOpenDirectory = "MainWindow/OpenDirectory"
staticprivate

Name of the setting used to remember the directory containing the last file that was opened.

Definition at line 79 of file mainbar.hpp.

const char * pv::toolbars::MainBar::SettingSaveDirectory = "MainWindow/SaveDirectory"
staticprivate

Name of the setting used to remember the directory containing the last file that was saved.

Definition at line 85 of file mainbar.hpp.

bool pv::toolbars::MainBar::updating_sample_count_
private

Definition at line 182 of file mainbar.hpp.

bool pv::toolbars::MainBar::updating_sample_rate_
private

Definition at line 181 of file mainbar.hpp.


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