FACT++  1.0
void FactGui::handleFadFileFormat ( const DimData d)
inlineprivate

Definition at line 1638 of file FactGui.h.

References DimData::get(), kCalib, kDebug, kFits, kNone, kRaw, kZFits, and DimData::time.

Referenced by infoHandler().

1639  {
1640  if (!CheckSize(d, sizeof(uint16_t)))
1641  return;
1642 
1643  const uint16_t &fmt = d.get<uint16_t>();
1644 
1645  SetLedColor(fFadLedFileFormatNone, fmt==FAD::kNone ?kLedGreen:kLedGray, d.time);
1646  SetLedColor(fFadLedFileFormatDebug, fmt==FAD::kDebug?kLedGreen:kLedGray, d.time);
1647  SetLedColor(fFadLedFileFormatRaw, fmt==FAD::kRaw ?kLedGreen:kLedGray, d.time);
1648  SetLedColor(fFadLedFileFormatFits, fmt==FAD::kFits ?kLedGreen:kLedGray, d.time);
1649  SetLedColor(fFadLedFileFormatZFits, fmt==FAD::kZFits?kLedGreen:kLedGray, d.time);
1650  SetLedColor(fFadLedFileFormatCalib, fmt==FAD::kCalib?kLedGreen:kLedGray, d.time);
1651  }
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
void SetLedColor(QPushButton *button, LedColor_t col, const Time &t)
Definition: FactGui.h:156
const Time time
Definition: DimData.h:9
T get(uint32_t offset=0) const
Definition: DimData.h:29

+ Here is the call graph for this function:

+ Here is the caller graph for this function: