Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cs/gui/acdc
1 result
Show changes
Commits on Source (6)
gui acdc.png

161 KiB | W: 0px | H: 0px

gui acdc.png

1.19 MiB | W: 0px | H: 0px

gui acdc.png
gui acdc.png
gui acdc.png
gui acdc.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -5,6 +5,7 @@
#include <cumacros.h>
#include <quapps.h>
#include <qulabel.h>
#include <quwriter.h>
// cumbia
#include "ui_acdc.h"
......@@ -23,6 +24,8 @@ Acdc::Acdc(CumbiaPool *cumbia_pool, QWidget *parent) :
// cumbia
connect(ui->cbShowUnits, SIGNAL(toggled(bool)), this, SLOT(m_show_units(bool)));
m_show_units(false);
connect(ui->bStopAll, SIGNAL(clicked()), this, SLOT(m_stop_all()));
}
Acdc::~Acdc()
......@@ -35,4 +38,23 @@ void Acdc::m_show_units(bool show) {
l->setDisplayUnitEnabled(show);
}
void Acdc::m_stop_all() {
QStringList tgts;
foreach(QGroupBox *gb, findChildren<QGroupBox *>(QRegularExpression("gbM\\d"))) {
foreach(QuInputOutput *io, gb->findChildren<QuInputOutput *>()) {
QString dev = io->source().section('/', 0, io->source().count('/') - 1);
tgts << dev + "->Stop";
}
}
if(tgts.size() > 0)
tgts << "pos/dmrc/dmrc_pos.01->Stop";
foreach(const QString &t, tgts) {
printf("executing \e[1;32m%s\e[0m\n", qstoc(t));
QuWriter *w = new QuWriter(this, cu_pool, m_ctrl_factory_pool);
w->setAutoDestroy(true);
w->setTarget(t);
w->execute();
}
}
......@@ -24,6 +24,7 @@ public:
private slots:
void m_show_units(bool show);
void m_stop_all();
private:
Ui::Acdc *ui;
// cumbia
......
This diff is collapsed.