projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added initial sampling support
[pulseview.git]
/
mainwindow.cpp
diff --git
a/mainwindow.cpp
b/mainwindow.cpp
index 04f852d92fe053f85b2be6815bc43a567dc6fe7f..50847e2ac1268108b48ee1a0945c28966a39fcda 100644
(file)
--- a/
mainwindow.cpp
+++ b/
mainwindow.cpp
@@
-48,6
+48,8
@@
MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
_sampling_bar = new SamplingBar(this);
ui->setupUi(this);
_sampling_bar = new SamplingBar(this);
+ connect(_sampling_bar, SIGNAL(run_stop()), this,
+ SLOT(run_stop()));
addToolBar(_sampling_bar);
view = new SigView(session, this);
addToolBar(_sampling_bar);
view = new SigView(session, this);
@@
-72,3
+74,10
@@
void MainWindow::on_actionAbout_triggered()
About dlg(this);
dlg.exec();
}
About dlg(this);
dlg.exec();
}
+
+void MainWindow::run_stop()
+{
+ session.start_capture(
+ _sampling_bar->get_selected_device(),
+ _sampling_bar->get_sample_rate());
+}