增加继电器1,2
This commit is contained in:
parent
d32e5bfb55
commit
b2a2227fda
@ -1216,3 +1216,19 @@ void CConfiguration::on_treeView_Available_pressed(const QModelIndex &index)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CConfiguration::on_radioButton_11_clicked()
|
||||||
|
{
|
||||||
|
m_curentRLY = 1;
|
||||||
|
ui->label_3->setText(ui->radioButton_11->text()+":");
|
||||||
|
ViewRelay(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CConfiguration::on_radioButton_12_clicked()
|
||||||
|
{
|
||||||
|
m_curentRLY = 2;
|
||||||
|
ui->label_3->setText(ui->radioButton_12->text()+":");
|
||||||
|
ViewRelay(2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,10 @@ private slots:
|
|||||||
|
|
||||||
void on_treeView_Available_pressed(const QModelIndex &index);
|
void on_treeView_Available_pressed(const QModelIndex &index);
|
||||||
|
|
||||||
|
void on_radioButton_11_clicked();
|
||||||
|
|
||||||
|
void on_radioButton_12_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::CConfiguration *ui;
|
Ui::CConfiguration *ui;
|
||||||
|
|
||||||
|
|||||||
168
Configuration.ui
168
Configuration.ui
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>1052</width>
|
<width>1052</width>
|
||||||
<height>640</height>
|
<height>659</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -112,6 +112,9 @@ color: rgb(27, 30, 35);</string>
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>选择继电器</string>
|
<string>选择继电器</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -122,89 +125,104 @@ color: rgb(27, 30, 35);</string>
|
|||||||
<height>0</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||||
<item>
|
<item>
|
||||||
<widget class="Line" name="line">
|
<widget class="Line" name="line">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>150</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QRadioButton" name="radioButton_1">
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||||
<property name="text">
|
<property name="spacing">
|
||||||
<string>继电器3</string>
|
<number>18</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_11">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_2">
|
<string>继电器1</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器4</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_12">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_3">
|
<string>继电器2</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器5</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_1">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_4">
|
<string>继电器3</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器6</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_2">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_5">
|
<string>继电器4</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器7</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_3">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_6">
|
<string>继电器5</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器8</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_4">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_7">
|
<string>继电器6</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器9</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_5">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_8">
|
<string>继电器7</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器10</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_6">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_9">
|
<string>继电器8</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器11</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
</item>
|
<widget class="QRadioButton" name="radioButton_7">
|
||||||
<item>
|
<property name="text">
|
||||||
<widget class="QRadioButton" name="radioButton_10">
|
<string>继电器9</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>继电器12</string>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
</widget>
|
<item>
|
||||||
|
<widget class="QRadioButton" name="radioButton_8">
|
||||||
|
<property name="text">
|
||||||
|
<string>继电器10</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="radioButton_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>继电器11</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="radioButton_10">
|
||||||
|
<property name="text">
|
||||||
|
<string>继电器12</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user