#include "mainwindow.h"
#include "ui_mainwindow.h"
+#include "samplingbar.h"
#include "sigview.h"
extern "C" {
{
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);
ui->verticalLayout->addWidget(view);
}
About dlg(this);
dlg.exec();
}
+
+void MainWindow::run_stop()
+{
+ session.start_capture(
+ _sampling_bar->get_selected_device(),
+ _sampling_bar->get_sample_rate());
+}