Changeset 11174 for trunk/FACT++/gui
- Timestamp:
- 06/24/11 14:17:49 (14 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11169 r11174 392 392 DimStampedInfo fDimFadPllLock; 393 393 DimStampedInfo fDimFadDrsEnabled; 394 DimStampedInfo fDimFadStatus; 394 395 DimStampedInfo fDimFadStatistics; 395 396 … … 1114 1115 SetLedColor(fFadLedFwVersion, d.qos?kLedGreen:kLedOrange, d.time); 1115 1116 } 1116 1117 /* 1117 1118 void handleFadPllLock(const DimData &d) 1118 1119 { … … 1120 1121 return; 1121 1122 1122 SetLedColor(fFadLedPllLock, d.qos?kLedGreen:kLedOrange, d.time);1123 // SetLedColor(fFadLedPllLock, d.qos?kLedGreen:kLedOrange, d.time); 1123 1124 1124 1125 const uint8_t *ptr = d.ptr<uint8_t>(); … … 1156 1157 const uint8_t *ptr = d.ptr<uint8_t>(); 1157 1158 1158 SetLedColor(fFadLedDrsEnabled, d.qos?(ptr[0]?kLedGreen:kLedRed):kLedOrange, d.time);1159 // SetLedColor(fFadLedDrsEnabled, d.qos?(ptr[0]?kLedGreen:kLedRed):kLedOrange, d.time); 1159 1160 1160 1161 ostringstream tip; … … 1178 1179 1179 1180 fFadLedDrsEnabled->setToolTip(tip.str().c_str()); 1181 1182 } 1183 */ 1184 void SetFadLed(QPushButton *led, const DimData &d, uint16_t bitmask) 1185 { 1186 const uint16_t quality = d.ptr<uint16_t>()[0]; 1187 const uint16_t value = d.ptr<uint16_t>()[1]; 1188 const uint16_t *ptr = d.ptr<uint16_t>()+2; 1189 1190 SetLedColor(led, quality&bitmask?(value&bitmask?kLedGreen:kLedRed):kLedOrange, d.time); 1191 1192 ostringstream tip; 1193 tip << "<table border='1'><tr><th colspan='11'>" << d.time.GetAsStr() << "</th></tr><tr><th></th>"; 1194 for (int b=0; b<10; b++) 1195 tip << "<th>" << b << "</th>"; 1196 tip << "</tr>"; 1197 1198 for (int c=0; c<4; c++) 1199 { 1200 tip << "<tr><th>" << dec << c << "</th>" << hex; 1201 for (int b=0; b<10; b++) 1202 { 1203 tip << "<td>" 1204 << (ptr[c*10+b]&bitmask) 1205 << "</td>"; 1206 } 1207 tip << "</tr>"; 1208 } 1209 tip << "</table>"; 1210 1211 led->setToolTip(tip.str().c_str()); 1212 } 1213 1214 void handleFadStatus(const DimData &d) 1215 { 1216 if (!CheckSize(d, 42*sizeof(uint16_t))) 1217 return; 1218 1219 SetFadLed(fFadLedDrsEnabled, d, FAD::EventHeader::kDenable); 1220 SetFadLed(fFadLedDrsWrite, d, FAD::EventHeader::kDwrite); 1221 SetFadLed(fFadLedRefClockTooLow, d, FAD::EventHeader::kRefClkTooLow); 1222 SetFadLed(fFadLedBusy, d, FAD::EventHeader::kBusy); 1223 SetFadLed(fFadLedTriggerLine, d, FAD::EventHeader::kTriggerLine); 1224 SetFadLed(fFadLedContTrigger, d, FAD::EventHeader::kContTrigger); 1225 SetFadLed(fFadLedSocket, d, FAD::EventHeader::kSock17); 1226 SetFadLed(fFadLedPllLock, d, 0xf000); 1227 1180 1228 1181 1229 } … … 1976 2024 return PostInfoHandler(&FactGui::handleFadFwVersion); 1977 2025 1978 if (getInfo()==&fDimFadPllLock) 1979 return PostInfoHandler(&FactGui::handleFadPllLock); 1980 1981 if (getInfo()==&fDimFadDrsEnabled) 1982 return PostInfoHandler(&FactGui::handleFadDrsEnabled); 2026 // if (getInfo()==&fDimFadPllLock) 2027 // return PostInfoHandler(&FactGui::handleFadPllLock); 2028 2029 // if (getInfo()==&fDimFadDrsEnabled) 2030 // return PostInfoHandler(&FactGui::handleFadDrsEnabled); 2031 2032 if (getInfo()==&fDimFadStatus) 2033 return PostInfoHandler(&FactGui::handleFadStatus); 1983 2034 1984 2035 if (getInfo()==&fDimFadStatistics) … … 2425 2476 fDimFadPllLock ("FAD_CONTROL/PLL_LOCK", (void*)NULL, 0, this), 2426 2477 fDimFadDrsEnabled ("FAD_CONTROL/DRS_ENABLED", (void*)NULL, 0, this), 2478 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2427 2479 fDimFadStatistics ("FAD_CONTROL/STATISTICS", (void*)NULL, 0, this) 2428 2480 { -
trunk/FACT++/gui/design.ui
r11172 r11174 3126 3126 </item> 3127 3127 <item row="2" column="0"> 3128 <widget class="QPushButton" name="fFadLedD write">3128 <widget class="QPushButton" name="fFadLedDrsWrite"> 3129 3129 <property name="enabled"> 3130 3130 <bool>true</bool> … … 3498 3498 </item> 3499 3499 <item row="7" column="0"> 3500 <widget class="QPushButton" name="fFadLedCont inousTrigger">3500 <widget class="QPushButton" name="fFadLedContTrigger"> 3501 3501 <property name="enabled"> 3502 3502 <bool>true</bool> … … 3897 3897 </item> 3898 3898 <item row="4" column="1"> 3899 <widget class="QPushButton" name="f StatusDNSLed_11">3899 <widget class="QPushButton" name="fFadLedRefClockTooLow"> 3900 3900 <property name="enabled"> 3901 3901 <bool>true</bool>
Note:
See TracChangeset
for help on using the changeset viewer.