FACT++  1.0
template<typename T , class S >
void FactGui::handleFadMinMax ( const DimData d,
QPushButton *  led,
S *  wmin,
S *  wmax = 0 
)
inlineprivate

Definition at line 1457 of file FactGui.h.

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

1458  {
1459  if (!CheckSize(d, 42*sizeof(T)))
1460  return;
1461 
1462  const T *ptr = d.ptr<T>();
1463  const T min = ptr[40];
1464  const T max = ptr[41];
1465 
1466  if (max==0 && min>max)
1467  SetLedColor(led, kLedGray, d.time);
1468  else
1469  SetLedColor(led, min==max?kLedGreen: kLedOrange, d.time);
1470 
1471  if (!wmax && max!=min)
1472  wmin->setValue(0);
1473  else
1474  wmin->setValue(min);
1475 
1476  if (wmax)
1477  wmax->setValue(max);
1478 
1479  handleFadToolTip(d.time, led, ptr);
1480  }
bool CheckSize(const DimData &d, size_t sz, bool print=true) const
Definition: FactGui.h:639
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
const T * ptr(uint32_t offset=0) const
Definition: DimData.h:32

+ Here is the call graph for this function: