Changeset 12273
- Timestamp:
- 10/25/11 21:32:59 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r12217 r12273 2827 2827 SetLedColor(fStatusFeedbackLed, kLedGray, time); 2828 2828 2829 //fFeedbackWidget->setEnabled(s.index>=3); 2829 fFeedbackWidget->setEnabled(s.index>=3); 2830 fFeedbackStop->setEnabled(s.index>4); 2831 fFeedbackTempStart->setEnabled(s.index==4); 2832 fFeedbackTempOffset->setEnabled(s.index<=4); 2833 fFeedbackOutputEnable->setEnabled(s.index<=6); 2834 fFeedbackOutputDisable->setEnabled(s.index!=5 && s.index!=6); 2835 2836 fFeedbackFrameLeft->setEnabled(s.index!=5 && s.index!=7); 2837 fFeedbackCanvLeft->setEnabled(s.index!=5 && s.index!=7); 2830 2838 } 2831 2839 … … 3947 3955 hf->GetYaxis()->SetTitleOffset(0.55); 3948 3956 hf->GetXaxis()->SetTitle(""); 3949 hf->GetYaxis()->SetRangeUser(-99* 5, 99*5);3957 hf->GetYaxis()->SetRangeUser(-99*10, 99*10); 3950 3958 3951 3959 fGraphFeedbackCmd.Draw("LP"); -
trunk/FACT++/gui/MainWindow.cc
r12228 r12273 589 589 } 590 590 591 void MainWindow::on_fFeedbackTempStart_clicked() 592 { 593 Dim::SendCommand("FEEDBACK/START_TEMP_CONTROL", 594 (float)fFeedbackTempOffset->value()); 595 } 596 597 void MainWindow::on_fFeedbackOutputEnable_clicked() 598 { 599 Dim::SendCommand("FEEDBACK/ENABLE_OUTPUT", uint8_t(1)); 600 } 601 602 void MainWindow::on_fFeedbackOutputDisable_clicked() 603 { 604 Dim::SendCommand("FEEDBACK/ENABLE_OUTPUT", uint8_t(0)); 605 } 606 607 void MainWindow::on_fFeedbackStop_clicked() 608 { 609 Dim::SendCommand("FEEDBACK/STOP"); 610 } 611 591 612 void MainWindow::on_fBiasVoltDac_valueChanged(int val) 592 613 { -
trunk/FACT++/gui/MainWindow.h
r12179 r12273 159 159 void on_fFeedbackCmdMin_valueChanged(int); 160 160 void on_fFeedbackCmdMax_valueChanged(int); 161 void on_fFeedbackTempStart_clicked(); 162 void on_fFeedbackOutputEnable_clicked(); 163 void on_fFeedbackOutputDisable_clicked(); 164 void on_fFeedbackStop_clicked(); 161 165 162 166 // Tab: Bias -
trunk/FACT++/gui/design.ui
r12266 r12273 12 12 <y>0</y> 13 13 <width>1425</width> 14 <height>92 7</height>14 <height>925</height> 15 15 </rect> 16 16 </property> … … 53 53 </property> 54 54 <property name="currentIndex"> 55 <number> 10</number>55 <number>5</number> 56 56 </property> 57 57 <property name="documentMode"> … … 4474 4474 <layout class="QGridLayout" name="gridLayout_85" rowstretch="3,2"> 4475 4475 <item row="0" column="0"> 4476 <widget class="QFrame" name="f rame_7">4476 <widget class="QFrame" name="fFeedbackFrameLeft"> 4477 4477 <property name="sizePolicy"> 4478 4478 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> … … 4682 4682 </property> 4683 4683 <property name="value"> 4684 <number>- 500</number>4684 <number>-1000</number> 4685 4685 </property> 4686 4686 </widget> … … 4730 4730 </property> 4731 4731 <property name="value"> 4732 <number> 500</number>4732 <number>1000</number> 4733 4733 </property> 4734 4734 </widget> … … 4740 4740 </item> 4741 4741 <item row="1" column="0"> 4742 <widget class="QFrame" name="f rame_9">4742 <widget class="QFrame" name="fFeedbackCanvLeft"> 4743 4743 <property name="frameShape"> 4744 4744 <enum>QFrame::StyledPanel</enum> … … 4768 4768 </layout> 4769 4769 </widget> 4770 </item> 4771 <item row="0" column="2" rowspan="2"> 4772 <layout class="QVBoxLayout" name="verticalLayout_19"> 4773 <property name="rightMargin"> 4774 <number>0</number> 4775 </property> 4776 <item> 4777 <widget class="QGroupBox" name="groupBox_23"> 4778 <property name="title"> 4779 <string>Temp feedback</string> 4780 </property> 4781 <layout class="QGridLayout" name="gridLayout_99"> 4782 <item row="0" column="0"> 4783 <widget class="QLabel" name="label_247"> 4784 <property name="text"> 4785 <string>Voltage offset</string> 4786 </property> 4787 <property name="alignment"> 4788 <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> 4789 </property> 4790 </widget> 4791 </item> 4792 <item row="3" column="0"> 4793 <widget class="QDoubleSpinBox" name="fFeedbackTempOffset"> 4794 <property name="alignment"> 4795 <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> 4796 </property> 4797 <property name="suffix"> 4798 <string> V</string> 4799 </property> 4800 <property name="minimum"> 4801 <double>-2.500000000000000</double> 4802 </property> 4803 <property name="maximum"> 4804 <double>2.500000000000000</double> 4805 </property> 4806 <property name="singleStep"> 4807 <double>0.100000000000000</double> 4808 </property> 4809 </widget> 4810 </item> 4811 <item row="4" column="0"> 4812 <widget class="QPushButton" name="fFeedbackTempStart"> 4813 <property name="text"> 4814 <string>Start</string> 4815 </property> 4816 </widget> 4817 </item> 4818 </layout> 4819 </widget> 4820 </item> 4821 <item> 4822 <widget class="QGroupBox" name="groupBox_24"> 4823 <property name="title"> 4824 <string>Gain feedback</string> 4825 </property> 4826 <layout class="QGridLayout" name="gridLayout_100"> 4827 <item row="0" column="0"> 4828 <widget class="QPushButton" name="pushButton_5"> 4829 <property name="enabled"> 4830 <bool>false</bool> 4831 </property> 4832 <property name="text"> 4833 <string>Start</string> 4834 </property> 4835 </widget> 4836 </item> 4837 </layout> 4838 </widget> 4839 </item> 4840 <item> 4841 <widget class="QGroupBox" name="groupBox_25"> 4842 <property name="title"> 4843 <string>Global</string> 4844 </property> 4845 <layout class="QGridLayout" name="gridLayout_101"> 4846 <item row="3" column="0"> 4847 <widget class="QPushButton" name="fFeedbackStop"> 4848 <property name="text"> 4849 <string>Stop</string> 4850 </property> 4851 </widget> 4852 </item> 4853 <item row="1" column="0"> 4854 <widget class="QPushButton" name="fFeedbackOutputDisable"> 4855 <property name="text"> 4856 <string>Disable output</string> 4857 </property> 4858 </widget> 4859 </item> 4860 <item row="0" column="0"> 4861 <widget class="QPushButton" name="fFeedbackOutputEnable"> 4862 <property name="text"> 4863 <string>Enable output</string> 4864 </property> 4865 </widget> 4866 </item> 4867 <item row="2" column="0"> 4868 <spacer name="verticalSpacer_78"> 4869 <property name="orientation"> 4870 <enum>Qt::Vertical</enum> 4871 </property> 4872 <property name="sizeType"> 4873 <enum>QSizePolicy::Fixed</enum> 4874 </property> 4875 <property name="sizeHint" stdset="0"> 4876 <size> 4877 <width>20</width> 4878 <height>10</height> 4879 </size> 4880 </property> 4881 </spacer> 4882 </item> 4883 </layout> 4884 </widget> 4885 </item> 4886 <item> 4887 <spacer name="verticalSpacer_77"> 4888 <property name="orientation"> 4889 <enum>Qt::Vertical</enum> 4890 </property> 4891 <property name="sizeHint" stdset="0"> 4892 <size> 4893 <width>20</width> 4894 <height>40</height> 4895 </size> 4896 </property> 4897 </spacer> 4898 </item> 4899 </layout> 4770 4900 </item> 4771 4901 </layout>
Note:
See TracChangeset
for help on using the changeset viewer.