Changeset 11175 for trunk/FACT++/gui
- Timestamp:
- 06/24/11 14:19:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11174 r11175 390 390 DimStampedInfo fDimFadConnections; 391 391 DimStampedInfo fDimFadFwVersion; 392 DimStampedInfo fDimFadPllLock;393 DimStampedInfo fDimFadDrsEnabled;394 392 DimStampedInfo fDimFadStatus; 395 393 DimStampedInfo fDimFadStatistics; … … 1115 1113 SetLedColor(fFadLedFwVersion, d.qos?kLedGreen:kLedOrange, d.time); 1116 1114 } 1117 /* 1118 void handleFadPllLock(const DimData &d) 1119 { 1120 if (!CheckSize(d, 41*sizeof(uint8_t))) 1121 return; 1122 1123 // SetLedColor(fFadLedPllLock, d.qos?kLedGreen:kLedOrange, d.time); 1124 1125 const uint8_t *ptr = d.ptr<uint8_t>(); 1126 1127 ostringstream tip; 1128 tip << "<table border='1'><tr><th colspan='11'>" << Time().GetAsStr() << "</th></tr><tr><th></th>"; 1129 for (int b=0; b<10; b++) 1130 tip << "<th>" << b << "</th>"; 1131 tip << "</tr>"; 1132 1133 for (int c=0; c<4; c++) 1134 { 1135 tip << "<tr><th>" << c << "</th>"; 1136 for (int b=0; b<10; b++) 1137 { 1138 tip << "<td>" 1139 << (int)(ptr[c*10+b+1]&8) 1140 << (int)(ptr[c*10+b+1]&4) 1141 << (int)(ptr[c*10+b+1]&2) 1142 << (int)(ptr[c*10+b+1]&1) 1143 << "</td>"; 1144 } 1145 tip << "</tr>"; 1146 } 1147 tip << "</table>"; 1148 1149 fFadLedPllLock->setToolTip(tip.str().c_str()); 1150 } 1151 1152 void handleFadDrsEnabled(const DimData &d) 1153 { 1154 if (!CheckSize(d, 41*sizeof(uint8_t))) 1155 return; 1156 1157 const uint8_t *ptr = d.ptr<uint8_t>(); 1158 1159 // SetLedColor(fFadLedDrsEnabled, d.qos?(ptr[0]?kLedGreen:kLedRed):kLedOrange, d.time); 1160 1161 ostringstream tip; 1162 tip << "<table border='1'><tr><th colspan='11'>" << Time().GetAsStr() << "</th></tr><tr><th></th>"; 1163 for (int b=0; b<10; b++) 1164 tip << "<th>" << b << "</th>"; 1165 tip << "</tr>"; 1166 1167 for (int c=0; c<4; c++) 1168 { 1169 tip << "<tr><th>" << c << "</th>"; 1170 for (int b=0; b<10; b++) 1171 { 1172 tip << "<td>" 1173 << (ptr[c*10+b+1]?"on":"off") 1174 << "</td>"; 1175 } 1176 tip << "</tr>"; 1177 } 1178 tip << "</table>"; 1179 1180 fFadLedDrsEnabled->setToolTip(tip.str().c_str()); 1181 1182 } 1183 */ 1115 1184 1116 void SetFadLed(QPushButton *led, const DimData &d, uint16_t bitmask) 1185 1117 { … … 2024 1956 return PostInfoHandler(&FactGui::handleFadFwVersion); 2025 1957 2026 // if (getInfo()==&fDimFadPllLock)2027 // return PostInfoHandler(&FactGui::handleFadPllLock);2028 2029 // if (getInfo()==&fDimFadDrsEnabled)2030 // return PostInfoHandler(&FactGui::handleFadDrsEnabled);2031 2032 1958 if (getInfo()==&fDimFadStatus) 2033 1959 return PostInfoHandler(&FactGui::handleFadStatus); … … 2474 2400 fDimFadConnections ("FAD_CONTROL/CONNECTIONS", (void*)NULL, 0, this), 2475 2401 fDimFadFwVersion ("FAD_CONTROL/FIRMWARE_VERSION", (void*)NULL, 0, this), 2476 fDimFadPllLock ("FAD_CONTROL/PLL_LOCK", (void*)NULL, 0, this),2477 fDimFadDrsEnabled ("FAD_CONTROL/DRS_ENABLED", (void*)NULL, 0, this),2478 2402 fDimFadStatus ("FAD_CONTROL/STATUS", (void*)NULL, 0, this), 2479 2403 fDimFadStatistics ("FAD_CONTROL/STATISTICS", (void*)NULL, 0, this)
Note:
See TracChangeset
for help on using the changeset viewer.