2 #include "ui_qxrdzingerdialog.h"
19 m_ZingerAlgorithm -> addItem(
"Default", 0);
21 int nmasks = masks->size();
26 for (
int i=0; i<nmasks; i++) {
30 QString lvl = masks->stackLevelName(i);
32 m_ZingerMask -> addItem(lvl, i);
33 m_ZingerDestination -> addItem(lvl, i);
39 int algIndex = m_ZingerAlgorithm -> findData(proc->get_ZingerAlgorithm());
40 int mskIndex = m_ZingerMask -> findData(proc->get_ZingerMask());
41 int dstIndex = m_ZingerDestination -> findData(proc->get_ZingerDestination());
43 m_ZingerAlgorithm -> setCurrentIndex(algIndex);
44 m_ZingerMask -> setCurrentIndex(mskIndex);
45 m_ZingerDestination -> setCurrentIndex(dstIndex);
47 m_ZingerSize1 -> setValue(proc->get_ZingerSize1());
48 m_ZingerSize2 -> setValue(proc->get_ZingerSize2());
49 m_ZingerThreshold -> setValue(proc->get_ZingerThreshold());
63 proc->set_ZingerAlgorithm (m_ZingerAlgorithm -> currentData().toInt());
64 proc->set_ZingerMask (m_ZingerMask -> currentData().toInt());
65 proc->set_ZingerDestination (m_ZingerDestination -> currentData().toInt());
66 proc->set_ZingerSize1 (m_ZingerSize1 -> value());
67 proc->set_ZingerSize2 (m_ZingerSize2 -> value());
68 proc->set_ZingerThreshold (m_ZingerThreshold -> value());
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
QxrdZingerDialog(QxrdDataProcessorWPtr procw, QWidget *parent=0)
QSharedPointer< QcepMaskData > QcepMaskDataPtr
QxrdDataProcessorWPtr m_Processor