Commit 0ea23ae9 authored by Renne Thomas's avatar Renne Thomas
Browse files

Disable refine when refine_no checked

parent 3bb2cb97
......@@ -106,7 +106,7 @@
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>5</number>
<number>4</number>
</property>
<widget class="QWidget" name="spectrum_tab">
<property name="sizePolicy">
......@@ -137,7 +137,7 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-199</y>
<y>0</y>
<width>984</width>
<height>655</height>
</rect>
......@@ -2255,7 +2255,7 @@
<property name="geometry">
<rect>
<x>0</x>
<y>-158</y>
<y>0</y>
<width>984</width>
<height>614</height>
</rect>
......@@ -3982,8 +3982,8 @@
<slot>doEdit(QString)</slot>
<hints>
<hint type="sourcelabel">
<x>568</x>
<y>35</y>
<x>969</x>
<y>228</y>
</hint>
<hint type="destinationlabel">
<x>464</x>
......@@ -3998,8 +3998,8 @@
<slot>doEdit(QString)</slot>
<hints>
<hint type="sourcelabel">
<x>568</x>
<y>69</y>
<x>969</x>
<y>271</y>
</hint>
<hint type="destinationlabel">
<x>798</x>
......@@ -4094,8 +4094,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>991</x>
<y>-4</y>
<x>1003</x>
<y>179</y>
</hint>
<hint type="destinationlabel">
<x>1460</x>
......@@ -4110,8 +4110,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>991</x>
<y>25</y>
<x>1003</x>
<y>218</y>
</hint>
<hint type="destinationlabel">
<x>1460</x>
......@@ -4126,8 +4126,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>998</x>
<y>62</y>
<x>1003</x>
<y>271</y>
</hint>
<hint type="destinationlabel">
<x>1476</x>
......@@ -4142,8 +4142,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>999</x>
<y>89</y>
<x>1003</x>
<y>304</y>
</hint>
<hint type="destinationlabel">
<x>1454</x>
......@@ -4158,8 +4158,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>994</x>
<y>123</y>
<x>1003</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>1478</x>
......@@ -4174,8 +4174,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>991</x>
<y>159</y>
<x>1003</x>
<y>370</y>
</hint>
<hint type="destinationlabel">
<x>1464</x>
......@@ -4190,8 +4190,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>992</x>
<y>197</y>
<x>1003</x>
<y>403</y>
</hint>
<hint type="destinationlabel">
<x>1467</x>
......@@ -4206,8 +4206,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>992</x>
<y>225</y>
<x>1003</x>
<y>436</y>
</hint>
<hint type="destinationlabel">
<x>1464</x>
......@@ -4222,8 +4222,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>992</x>
<y>258</y>
<x>1003</x>
<y>469</y>
</hint>
<hint type="destinationlabel">
<x>1460</x>
......@@ -4238,8 +4238,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>989</x>
<y>292</y>
<x>1003</x>
<y>502</y>
</hint>
<hint type="destinationlabel">
<x>1463</x>
......@@ -4254,8 +4254,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>989</x>
<y>321</y>
<x>1003</x>
<y>535</y>
</hint>
<hint type="destinationlabel">
<x>1461</x>
......@@ -4270,8 +4270,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>999</x>
<y>371</y>
<x>1003</x>
<y>576</y>
</hint>
<hint type="destinationlabel">
<x>1458</x>
......@@ -4286,8 +4286,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>999</x>
<y>397</y>
<x>1003</x>
<y>609</y>
</hint>
<hint type="destinationlabel">
<x>1473</x>
......@@ -4302,8 +4302,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>988</x>
<y>430</y>
<x>1003</x>
<y>642</y>
</hint>
<hint type="destinationlabel">
<x>1494</x>
......@@ -4318,8 +4318,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>990</x>
<y>588</y>
<x>1003</x>
<y>807</y>
</hint>
<hint type="destinationlabel">
<x>1437</x>
......@@ -4334,8 +4334,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>993</x>
<y>554</y>
<x>1003</x>
<y>774</y>
</hint>
<hint type="destinationlabel">
<x>1439</x>
......@@ -4350,8 +4350,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>986</x>
<y>527</y>
<x>1003</x>
<y>741</y>
</hint>
<hint type="destinationlabel">
<x>1439</x>
......@@ -4366,8 +4366,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>981</x>
<y>488</y>
<x>1003</x>
<y>708</y>
</hint>
<hint type="destinationlabel">
<x>1440</x>
......@@ -4382,8 +4382,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>986</x>
<y>460</y>
<x>1003</x>
<y>675</y>
</hint>
<hint type="destinationlabel">
<x>1438</x>
......@@ -4798,8 +4798,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>988</x>
<y>35</y>
<x>1003</x>
<y>195</y>
</hint>
<hint type="destinationlabel">
<x>-137</x>
......@@ -4814,8 +4814,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>989</x>
<y>65</y>
<x>1003</x>
<y>238</y>
</hint>
<hint type="destinationlabel">
<x>-98</x>
......@@ -4830,8 +4830,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>1002</x>
<y>94</y>
<x>1003</x>
<y>271</y>
</hint>
<hint type="destinationlabel">
<x>-249</x>
......@@ -4846,8 +4846,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>977</x>
<y>132</y>
<x>1003</x>
<y>304</y>
</hint>
<hint type="destinationlabel">
<x>-292</x>
......@@ -4862,8 +4862,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>981</x>
<y>163</y>
<x>1003</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>-209</x>
......@@ -4878,8 +4878,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>980</x>
<y>195</y>
<x>1003</x>
<y>370</y>
</hint>
<hint type="destinationlabel">
<x>-207</x>
......@@ -4894,8 +4894,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>995</x>
<y>235</y>
<x>1003</x>
<y>403</y>
</hint>
<hint type="destinationlabel">
<x>-178</x>
......@@ -4910,8 +4910,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>995</x>
<y>270</y>
<x>1003</x>
<y>436</y>
</hint>
<hint type="destinationlabel">
<x>-162</x>
......@@ -4926,8 +4926,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>980</x>
<y>296</y>
<x>1003</x>
<y>469</y>
</hint>
<hint type="destinationlabel">
<x>-303</x>
......@@ -4942,8 +4942,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>988</x>
<y>336</y>
<x>1003</x>
<y>502</y>
</hint>
<hint type="destinationlabel">
<x>-175</x>
......@@ -4958,8 +4958,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>994</x>
<y>362</y>
<x>1003</x>
<y>535</y>
</hint>
<hint type="destinationlabel">
<x>-193</x>
......@@ -4974,8 +4974,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>989</x>
<y>403</y>
<x>1003</x>
<y>568</y>
</hint>
<hint type="destinationlabel">
<x>-147</x>
......@@ -4990,8 +4990,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>988</x>
<y>427</y>
<x>1003</x>
<y>601</y>
</hint>
<hint type="destinationlabel">
<x>-49</x>
......@@ -5006,8 +5006,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>986</x>
<y>458</y>
<x>1003</x>
<y>634</y>
</hint>
<hint type="destinationlabel">
<x>-191</x>
......@@ -5022,8 +5022,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>985</x>
<y>501</y>
<x>1003</x>
<y>667</y>
</hint>
<hint type="destinationlabel">
<x>-225</x>
......@@ -5038,8 +5038,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>990</x>
<y>533</y>
<x>1003</x>
<y>700</y>
</hint>
<hint type="destinationlabel">
<x>-92</x>
......@@ -5054,8 +5054,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>996</x>
<y>563</y>
<x>1003</x>
<y>733</y>
</hint>
<hint type="destinationlabel">
<x>-88</x>
......@@ -5070,8 +5070,8 @@
<slot>doHelp()</slot>
<hints>
<hint type="sourcelabel">
<x>984</x>
<y>591</y>
<x>1003</x>
<y>766</y>
</hint>
<hint type="destinationlabel">
<x>-139</x>
......@@ -5287,6 +5287,38 @@
</hint>
</hints>
</connection>
<connection>
<sender>refine_no_radio_button</sender>
<signal>clicked()</signal>
<receiver>EditTandemPresetView</receiver>
<slot>doRefine()</slot>
<hints>
<hint type="sourcelabel">
<x>448</x>
<y>194</y>
</hint>
<hint type="destinationlabel">
<x>-94</x>
<y>164</y>
</hint>
</hints>
</connection>
<connection>
<sender>refine_yes_radio_button</sender>
<signal>clicked()</signal>
<receiver>EditTandemPresetView</receiver>
<slot>doRefine()</slot>
<hints>
<hint type="sourcelabel">
<x>390</x>
<y>196</y>
</hint>
<hint type="destinationlabel">
<x>-202</x>
<y>164</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>doCopy()</slot>
......@@ -5298,39 +5330,40 @@
<slot>accept()</slot>
<slot>doSelectDir()</slot>
<slot>doResultType()</slot>
<slot>doRefine()</slot>
</slots>
<buttongroups>
<buttongroup name="refine_button_group"/>
<buttongroup name="oresu_button_group"/>
<buttongroup name="sfmmeu_button_group"/>
<buttongroup name="pqa_button_group"/>
<buttongroup name="buttonGroup_3"/>
<buttongroup name="pstpb_button_group"/>
<buttongroup name="ruc_button_group"/>
<buttongroup name="buttonGroup_2"/>
<buttongroup name="buttonGroup_6"/>
<buttongroup name="sunlw_button_group"/>
<buttongroup name="buttonGroup"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_4"/>
<buttongroup name="syi_button_group"/>
<buttongroup name="rupmffr_button_group"/>
<buttongroup name="sci_button_group"/>
<buttongroup name="suca_button_group"/>
<buttongroup name="sai_button_group"/>
<buttongroup name="pstpb_button_group"/>
<buttongroup name="sir_button_group"/>
<buttongroup name="scp_button_group"/>
<buttongroup name="pcsemi_button_group"/>
<buttongroup name="ospec_button_group"/>
<buttongroup name="pqp_button_group"/>
<buttongroup name="buttonGroup_7"/>
<buttongroup name="sxi_button_group"/>
<buttongroup name="szi_button_group"/>
<buttongroup name="rss_button_group"/>
<buttongroup name="spmmeu_button_group"/>
<buttongroup name="sbi_button_group"/>
<buttongroup name="refine_button_group"/>
<buttongroup name="pqp_button_group"/>
<buttongroup name="buttonGroup_3"/>
<buttongroup name="sxi_button_group"/>
<buttongroup name="rcsemi_button_group"/>
<buttongroup name="oresu_button_group"/>
<buttongroup name="rpm_button_group"/>
<buttongroup name="ospec_button_group"/>
<buttongroup name="spmmie_button_group"/>
<buttongroup name="rcsemi_button_group"/>
<buttongroup name="sbi_button_group"/>
<buttongroup name="buttonGroup_5"/>
<buttongroup name="buttonGroup_4"/>
<buttongroup name="sci_button_group"/>
<buttongroup name="sai_button_group"/>
<buttongroup name="szi_button_group"/>
<buttongroup name="suca_button_group"/>
<buttongroup name="pcsemi_button_group"/>
<buttongroup name="buttonGroup_2"/>
<buttongroup name="sfmmeu_button_group"/>
<buttongroup name="sunlw_button_group"/>
<buttongroup name="buttonGroup_7"/>
<buttongroup name="syi_button_group"/>
<buttongroup name="rupmffr_button_group"/>
<buttongroup name="buttonGroup_6"/>
</buttongroups>
</ui>
......@@ -274,6 +274,62 @@ EditTandemPresetDialog::doResultType()
}
}
void
EditTandemPresetDialog::doRefine()
{
if(ui->refine_no_radio_button->isChecked())
{
ui->rmvev_edit->setDisabled(true);
ui->refpntm_edit->setDisabled(true);
ui->refpctm_edit->setDisabled(true);
ui->refmm_edit->setDisabled(true);
ui->refmm1_edit->setDisabled(true);
ui->refmm2_edit->setDisabled(true);
ui->refpmm_edit->setDisabled(true);
ui->refpmm1_edit->setDisabled(true);
ui->refpmm2_edit->setDisabled(true);
ui->refpmmotif_edit->setDisabled(true);
ui->refpmmotif1_edit->setDisabled(true);
ui->refpmmotif2_edit->setDisabled(true);
ui->rupmffr_no_radio_button->setDisabled(true);
ui->rupmffr_yes_radio_button->setDisabled(true);
ui->rcsemi_no_radio_button->setDisabled(true);
ui->rcsemi_yes_radio_button->setDisabled(true);
ui->ruc_yes_radio_button->setDisabled(true);
ui->ruc_no_radio_button->setDisabled(true);
ui->rss_yes_radio_button->setDisabled(true);
ui->rss_no_radio_button->setDisabled(true);
ui->rpm_yes_radio_button->setDisabled(true);
ui->rpm_no_radio_button->setDisabled(true);
}
else
{
ui->rmvev_edit->setDisabled(false);
ui->refpntm_edit->setDisabled(false);
ui->refpctm_edit->setDisabled(false);
ui->refmm_edit->setDisabled(false);
ui->refmm1_edit->setDisabled(false);
ui->refmm2_edit->setDisabled(false);
ui->refpmm_edit->setDisabled(false);
ui->refpmm1_edit->setDisabled(false);
ui->refpmm2_edit->setDisabled(false);
ui->refpmmotif_edit->setDisabled(false);
ui->refpmmotif1_edit->setDisabled(false);
ui->refpmmotif2_edit->setDisabled(false);
ui->rupmffr_no_radio_button->setDisabled(false);
ui->rupmffr_yes_radio_button->setDisabled(false);
ui->rcsemi_no_radio_button->setDisabled(false);
ui->rcsemi_yes_radio_button->setDisabled(false);
ui->ruc_yes_radio_button->setDisabled(false);
ui->ruc_no_radio_button->setDisabled(false);
ui->rss_yes_radio_button->setDisabled(false);
ui->rss_no_radio_button->setDisabled(false);
ui->rpm_yes_radio_button->setDisabled(false);
ui->rpm_no_radio_button->setDisabled(false);
}
}
void
EditTandemPresetDialog::doEdit(QString value)
{
......@@ -469,7 +525,7 @@ EditTandemPresetDialog::doHelp()
}
if(senderObjName == "rmvev_push_button")
{