20 #ifndef PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP 21 #define PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP 27 #include <glibmm/variant.h> 30 #include <QDoubleSpinBox> 33 #include <QToolButton> 41 using std::shared_ptr;
91 void update_device_list();
95 void reset_device_selector();
97 QAction* action_new_view()
const;
98 QAction* action_open()
const;
99 QAction* action_save()
const;
100 QAction* action_save_as()
const;
101 QAction* action_save_selection_as()
const;
102 QAction* action_restore_setup()
const;
103 QAction* action_save_setup()
const;
104 QAction* action_connect()
const;
109 void select_init_device();
111 void save_selection_to_file();
113 void update_sample_rate_selector();
114 void update_sample_rate_selector_value();
115 void update_sample_count_selector();
116 void update_device_config_widgets();
117 void commit_sample_rate();
118 void commit_sample_count();
121 void show_session_error(
const QString text,
const QString info_text);
123 void export_file(shared_ptr<sigrok::OutputFormat>
format,
124 bool selection_only =
false, QString file_name =
"");
125 void import_file(shared_ptr<sigrok::InputFormat>
format);
127 void on_device_selected();
128 void on_device_changed();
129 void on_capture_state_changed(
int state);
130 void on_sample_count_changed();
131 void on_sample_rate_changed();
133 void on_config_changed();
135 void on_actionNewView_triggered(QAction* action =
nullptr);
137 void on_actionOpen_triggered();
138 void on_actionSave_triggered();
139 void on_actionSaveAs_triggered();
140 void on_actionSaveSelectionAs_triggered();
142 void on_actionSaveSetup_triggered();
143 void on_actionRestoreSetup_triggered();
145 void on_actionConnect_triggered();
147 void on_add_decoder_clicked();
148 void on_add_math_signal_clicked();
151 void add_toolbar_widgets();
153 bool eventFilter(
QObject *watched, QEvent *event);
156 void new_view(
Session *session,
int type);
157 void show_decoder_selector(
Session *session);
196 #endif // PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP libsigrok allows users to import and export data from files in various formats some of them as generic as others very specific For a list and make sure to check not so common and outright exotic ways to represent data and sigrok tries to suit as many needs as it can To see which formats your version of PulseView just click on the small arrow next to the _Open_ PulseView will ask for the file name to open Once you picked the you may be asked to specify the details of the format
bool sample_count_supported_
static const uint64_t MinSampleCount
pv::widgets::SweepTimingWidget sample_rate_
QAction *const action_open_
QAction *const action_restore_setup_
bool updating_sample_rate_
bool updating_sample_count_
QAction * configure_button_action_
QToolButton * save_button_
QAction *const action_new_view_
QAction *const action_connect_
pv::widgets::PopupToolButton channels_button_
QAction *const action_save_selection_as_
pv::widgets::SweepTimingWidget sample_count_
static const char * SettingSaveDirectory
Q_DECLARE_METATYPE(SharedPtrToSegment)
QAction * channels_button_action_
pv::widgets::DeviceToolButton device_selector_
QToolButton * add_math_signal_button_
static const uint64_t MaxSampleCount
QAction *const action_save_as_
pv::widgets::PopupToolButton configure_button_
static const char * SettingOpenDirectory
QAction *const action_save_setup_
QAction *const action_save_
static const uint64_t DefaultSampleCount