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

Definition at line 587 of file FactGui.h.

References DimData::c_str(), DimData::get(), DimData::size(), and DimData::time.

Referenced by infoHandler().

588  {
589  const bool connected = d.size()!=0;
590 
591  fLoggerFilenameNight->setEnabled(connected);
592  if (!connected)
593  return;
594 
595  fLoggerFilenameNight->setText(d.c_str()+4);
596 
597  const uint32_t files = d.get<uint32_t>();
598 
599  SetLedColor(fLoggerLedLog, files&1 ? kLedGreen : kLedGray, d.time);
600  SetLedColor(fLoggerLedRep, files&2 ? kLedGreen : kLedGray, d.time);
601  SetLedColor(fLoggerLedFits, files&4 ? kLedGreen : kLedGray, d.time);
602  }
void SetLedColor(QPushButton *button, LedColor_t col, const Time &t)
Definition: FactGui.h:156
const Time time
Definition: DimData.h:9
size_t size() const
Definition: DimData.h:39
T get(uint32_t offset=0) const
Definition: DimData.h:29
const char * c_str() const
Definition: DimData.h:37

+ Here is the call graph for this function:

+ Here is the caller graph for this function: