FACT++  1.0
void FactGui::handleDac ( QPushButton *  led,
QSpinBox *  box,
const DimData d,
int  idx 
)
inlineprivate

Definition at line 913 of file FactGui.h.

References DimData::ptr(), DimData::size(), and DimData::time.

914  {
915  if (d.size()==0)
916  {
917  box->setEnabled(false);
918  SetLedColor(led, kLedGray, d.time);
919  return;
920  }
921 
922  const uint16_t *ptr = d.ptr<uint16_t>()+idx*42;
923 
924  box->setEnabled(true);
925  box->setValue(ptr[40]==ptr[41]?ptr[40]:0);
926 
927  SetLedColor(led, ptr[40]==ptr[41]?kLedGreen:kLedOrange, d.time);
928  handleFadToolTip(d.time, led, ptr);
929  }
void handleFadToolTip(const Time &time, QWidget *w, T *ptr)
Definition: FactGui.h:1436
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
const T * ptr(uint32_t offset=0) const
Definition: DimData.h:32

+ Here is the call graph for this function: