, menu_decoders_add_(new pv::widgets::DecoderMenu(this, true))
#endif
{
+ qRegisterMetaType<util::Timestamp>("util::Timestamp");
+
setup_ui();
restore_ui_settings();
if (open_file_name.empty())
const pv::util::Timestamp& end_time = view_->cursors()->second()->time();
const uint64_t start_sample = start_time.convert_to<double>() * samplerate;
- const uint64_t end_sample = end_time.convert_to<double>() * samplerate;
+ const uint64_t end_sample = end_time.convert_to<double>() * samplerate;
- sample_range = std::make_pair(start_sample, end_sample);
+ sample_range = std::make_pair(start_sample, end_sample);
} else {
sample_range = std::make_pair(0, 0);
}
SLOT(capture_state_changed(int)));
connect(&session_, SIGNAL(device_selected()), this,
SLOT(device_selected()));
+ connect(&session_, SIGNAL(trigger_event(util::Timestamp)), view_,
+ SLOT(trigger_event(util::Timestamp)));
// Setup view_ events
connect(view_, SIGNAL(sticky_scrolling_changed(bool)), this,
SLOT(sticky_scrolling_changed(bool)));
connect(view_, SIGNAL(always_zoom_to_fit_changed(bool)), this,
SLOT(always_zoom_to_fit_changed(bool)));
+
}
void MainWindow::select_init_device() {