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

Definition at line 604 of file FactGui.h.

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

Referenced by infoHandler().

605  {
606  const bool connected = d.size()!=0;
607 
608  fLoggerFilenameRun->setEnabled(connected);
609  if (!connected)
610  return;
611 
612  fLoggerFilenameRun->setText(d.c_str()+4);
613 
614  const uint32_t files = d.get<uint32_t>();
615 
616  SetLedColor(fLoggerLedLog, files&1 ? kLedGreen : kLedGray, d.time);
617  SetLedColor(fLoggerLedRep, files&2 ? kLedGreen : kLedGray, d.time);
618  SetLedColor(fLoggerLedFits, files&4 ? kLedGreen : kLedGray, d.time);
619  }
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: