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
......
......@@ -28,7 +28,7 @@
<height>776</height>
</rect>
</property>
<widget class="QGroupBox" name="groupBox_9">
<widget class="QGroupBox" name="gbM6">
<property name="geometry">
<rect>
<x>500</x>
......@@ -37,6 +37,49 @@
<height>161</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -160,7 +203,7 @@
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<widget class="QGroupBox" name="gbM8">
<property name="geometry">
<rect>
<x>960</x>
......@@ -169,6 +212,49 @@
<height>151</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -176,10 +262,16 @@
<string>M8</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="2" column="1">
<widget class="QuInputOutput" name="tReaderWriter_8">
<item row="0" column="1">
<widget class="QuInputOutput" name="tReaderWriter_7">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="source">
<string>pos/movers/r_m8_dmrc_pos.02/AxisCurrentPosition</string>
<string>pos/movers/p_m8_dmrc_pos.02/AxisCurrentPosition</string>
</property>
<property name="target" stdset="0">
<string/>
......@@ -199,18 +291,8 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Roll</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QuLed" name="tLed_7">
<item row="3" column="2">
<widget class="QuLed" name="tLed_9">
<property name="rectangular">
<bool>true</bool>
</property>
......@@ -218,12 +300,22 @@
<bool>false</bool>
</property>
<property name="source">
<string>pos/movers/p_m8_dmrc_pos.02/State</string>
<string>pos/movers/y_m8_dmrc_pos.02/State</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QuLed" name="tLed_9">
<item row="0" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Pitch</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QuLed" name="tLed_7">
<property name="rectangular">
<bool>true</bool>
</property>
......@@ -231,7 +323,7 @@
<bool>false</bool>
</property>
<property name="source">
<string>pos/movers/y_m8_dmrc_pos.02/State</string>
<string>pos/movers/p_m8_dmrc_pos.02/State</string>
</property>
</widget>
</item>
......@@ -245,53 +337,144 @@
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QuInputOutput" name="tReaderWriter_9">
<property name="source">
<string>pos/movers/y_m8_dmrc_pos.02/AxisCurrentPosition</string>
<item row="2" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>Roll</string>
</property>
<property name="target" stdset="0">
<string/>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QuInputOutput" name="tReaderWriter_7">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<item row="2" column="1">
<widget class="QuInputOutput" name="tReaderWriter_8">
<property name="source">
<string>pos/movers/p_m8_dmrc_pos.02/AxisCurrentPosition</string>
<string>pos/movers/r_m8_dmrc_pos.02/AxisCurrentPosition</string>
</property>
<property name="target" stdset="0">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Pitch</string>
<item row="3" column="1">
<widget class="QuInputOutput" name="tReaderWriter_9">
<property name="source">
<string>pos/movers/y_m8_dmrc_pos.02/AxisCurrentPosition</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
<property name="target" stdset="0">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox">
<widget class="QGroupBox" name="gbM1">
<property name="geometry">
<rect>
<x>99</x>
<y>190</y>
<x>76</x>
<y>164</y>
<width>241</width>
<height>161</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -428,7 +611,7 @@
<bool>true</bool>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<widget class="QGroupBox" name="gbM5">
<property name="geometry">
<rect>
<x>179</x>
......@@ -437,10 +620,47 @@
<height>161</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
......@@ -557,7 +777,7 @@
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_10">
<widget class="QGroupBox" name="gbM7">
<property name="geometry">
<rect>
<x>740</x>
......@@ -566,6 +786,49 @@
<height>161</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>241</red>
<green>106</green>
<blue>23</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -680,7 +943,7 @@
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_8">
<widget class="QGroupBox" name="gbM3">
<property name="geometry">
<rect>
<x>789</x>
......@@ -689,6 +952,103 @@
<height>131</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -792,15 +1152,58 @@
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_5">
<widget class="QGroupBox" name="gbM4">
<property name="geometry">
<rect>
<x>1109</x>
<y>200</y>
<x>1070</x>
<y>164</y>
<width>241</width>
<height>161</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -915,7 +1318,7 @@
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_6">
<widget class="QGroupBox" name="gbM2">
<property name="geometry">
<rect>
<x>460</x>
......@@ -924,6 +1327,103 @@
<height>131</height>
</rect>
</property>
<property name="palette">
<palette>
<active>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</active>
<inactive>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</inactive>
<disabled>
<colorrole role="WindowText">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="Text">
<brush brushstyle="SolidPattern">
<color alpha="255">
<red>190</red>
<green>190</green>
<blue>190</blue>
</color>
</brush>
</colorrole>
<colorrole role="PlaceholderText">
<brush brushstyle="NoBrush">
<color alpha="128">
<red>46</red>
<green>117</green>
<blue>182</blue>
</color>
</brush>
</colorrole>
</disabled>
</palette>
</property>
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="autoFillBackground">
<bool>true</bool>
</property>
......@@ -1034,16 +1534,158 @@
<string>Show Units</string>
</property>
</widget>
<widget class="QLabel" name="label_18">
<property name="geometry">
<rect>
<x>1240</x>
<y>640</y>
<width>61</width>
<height>35</height>
</rect>
</property>
<property name="text">
<string>Delay</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_4">
<property name="geometry">
<rect>
<x>1230</x>
<y>460</y>
<width>231</width>
<height>75</height>
</rect>
</property>
<property name="title">
<string>Mobile Branch Filter </string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QuLabel" name="lMobileBranch">
<property name="source">
<string>pos/mover1d/flt-var_dmrc_pos.01/Instrument</string>
</property>
</widget>
</item>
<item>
<widget class="QuComboBox" name="cbMobileBranch">
<property name="target">
<string>pos/mover1d/flt-var_dmrc_pos.01/Instrument</string>
</property>
<property name="executeOnIndexChanged">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QGroupBox" name="groupBox_7">
<property name="geometry">
<rect>
<x>1230</x>
<y>550</y>
<width>231</width>
<height>75</height>
</rect>
</property>
<property name="title">
<string>Fixed Branch Filter</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QuLabel" name="lStaticBranch">
<property name="source">
<string>pos/mover1d/flt-fix_dmrc_pos.01/Instrument</string>
</property>
</widget>
</item>
<item>
<widget class="QuComboBox" name="cbStaticBranch">
<property name="target">
<string>pos/mover1d/flt-fix_dmrc_pos.01/Instrument</string>
</property>
<property name="executeOnIndexChanged">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QuLabel" name="quLabel_2">
<property name="geometry">
<rect>
<x>1310</x>
<y>690</y>
<width>141</width>
<height>40</height>
</rect>
</property>
<property name="source">
<string>fb/pos/acdc_pos.01/State</string>
</property>
</widget>
<widget class="QLabel" name="label_20">
<property name="geometry">
<rect>
<x>1240</x>
<y>690</y>
<width>61</width>
<height>35</height>
</rect>
</property>
<property name="text">
<string>Feedback</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QuButton" name="bStopAll">
<property name="geometry">
<rect>
<x>30</x>
<y>730</y>
<width>80</width>
<height>26</height>
</rect>
</property>
<property name="text">
<string>Stop All</string>
</property>
</widget>
<widget class="QuInputOutput" name="quioDelay">
<property name="geometry">
<rect>
<x>1310</x>
<y>640</y>
<width>141</width>
<height>40</height>
</rect>
</property>
<property name="source">
<string>pos/dmrc/dmrc_pos.01/Delay</string>
</property>
</widget>
<zorder>label</zorder>
<zorder>groupBox_2</zorder>
<zorder>groupBox_10</zorder>
<zorder>groupBox_8</zorder>
<zorder>groupBox_5</zorder>
<zorder>groupBox_6</zorder>
<zorder>groupBox_9</zorder>
<zorder>groupBox_3</zorder>
<zorder>groupBox</zorder>
<zorder>gbM5</zorder>
<zorder>gbM7</zorder>
<zorder>gbM3</zorder>
<zorder>gbM4</zorder>
<zorder>gbM2</zorder>
<zorder>gbM6</zorder>
<zorder>gbM8</zorder>
<zorder>gbM1</zorder>
<zorder>cbShowUnits</zorder>
<zorder>label_18</zorder>
<zorder>groupBox_4</zorder>
<zorder>groupBox_7</zorder>
<zorder>quLabel_2</zorder>
<zorder>label_20</zorder>
<zorder>bStopAll</zorder>
<zorder>quioDelay</zorder>
</widget>
</widget>
</item>
......@@ -1051,11 +1693,26 @@
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>
<customwidget>
<class>QuLabel</class>
<extends>QLabel</extends>
<header>qulabel.h</header>
</customwidget>
<customwidget>
<class>QuLed</class>
<extends>QWidget</extends>
<header>quled.h</header>
</customwidget>
<customwidget>
<class>QuComboBox</class>
<extends>QComboBox</extends>
<header>qucombobox.h</header>
</customwidget>
<customwidget>
<class>QuButton</class>
<extends>QPushButton</extends>
<header>qubutton.h</header>
</customwidget>
<customwidget>
<class>QuInputOutput</class>
<extends>QFrame</extends>
......