void SGMScanInfo::setStart(const SGMEnergyPosition &start, bool ignoreDatabaseId) { if( (start_ != start) || (!ignoreDatabaseId && ((start_.id() != start.id()) || (start_.name() != start.name())) ) ){ start_ = start; setModified(true); emit startChanged(); emit scanInfoChanged(); } }
void VESPERSSpatialLineScanConfiguration::setStart(double position) { if (start() != position){ scanAxisAt(0)->regionAt(0)->setRegionStart(position); emit startChanged(position); setModified(true); } }
void SegmentModel::setStart(const Curve::Point& pt) { if (pt != m_start) { m_start = pt; m_valid = false; on_startChanged(); startChanged(); } }
void RayCloudPlot::setStart(NDArray start) { bool success; auto conv = make3d(start, success); if (!success) return; m_start = conv; updateData(); emit startChanged(start); }
void QHtspDvrEntryModel::_removeRow(QHtspDvrEntry *dvrEntry) { disconnect(dvrEntry, SIGNAL(idChanged()), this, SLOT(_updateId())); disconnect(dvrEntry, SIGNAL(channelChanged()), this, SLOT(_updateChannel())); disconnect(dvrEntry, SIGNAL(stateChanged()), this, SLOT(_updateState())); disconnect(dvrEntry, SIGNAL(startChanged()), this, SLOT(_updateStart())); disconnect(dvrEntry, SIGNAL(stopChanged()), this, SLOT(_updateStop())); disconnect(dvrEntry, SIGNAL(titleChanged()), this, SLOT(_updateTitle())); if(dvrEntry->channel()) disconnect(dvrEntry->channel(), SIGNAL(nameChanged()), this, SLOT(_updateChannel())); int row = m_dvrEntries->indexOf(dvrEntry); beginRemoveRows(QModelIndex(), row, row); endRemoveRows(); }
void QHtspDvrEntryModel::_addRow(QHtspDvrEntry *dvrEntry) { int rows = rowCount() - 1; beginInsertRows(QModelIndex(), rows, rows); endInsertRows(); connect(dvrEntry, SIGNAL(idChanged()), this, SLOT(_updateId())); connect(dvrEntry, SIGNAL(channelChanged()), this, SLOT(_updateChannel())); connect(dvrEntry, SIGNAL(stateChanged()), this, SLOT(_updateState())); connect(dvrEntry, SIGNAL(startChanged()), this, SLOT(_updateStart())); connect(dvrEntry, SIGNAL(stopChanged()), this, SLOT(_updateStop())); connect(dvrEntry, SIGNAL(titleChanged()), this, SLOT(_updateTitle())); if(dvrEntry->channel()) connect(dvrEntry->channel(), SIGNAL(nameChanged()), this, SLOT(_updateChannel())); }
void SGMFastScanParameters::setScanInfo(const SGMScanInfo &scanInfo, bool ignoreDatabaseId){ disconnect(&scanInfo_, 0); scanInfo_ = scanInfo; if(!ignoreDatabaseId && (scanInfo_.start().id() != scanInfo.start().id()) ) scanInfo_.setStart(scanInfo.start(), false); if(!ignoreDatabaseId && (scanInfo_.middle().id() != scanInfo.middle().id()) ) scanInfo_.setMiddle(scanInfo.middle(), false); if(!ignoreDatabaseId && (scanInfo_.end().id() != scanInfo.end().id()) ) scanInfo_.setEnd(scanInfo.end(), false); connect(&scanInfo_, SIGNAL(startChanged()), this, SLOT(onStartChanged())); connect(&scanInfo_, SIGNAL(middleChanged()), this, SLOT(onMiddleChanged())); connect(&scanInfo_, SIGNAL(endChanged()), this, SLOT(onEndChanged())); connect(&scanInfo, SIGNAL(scanInfoChanged()), this, SIGNAL(scanInfoChanged())); }
DataRange::DataRange(QWidget *parent) : QWidget(parent) { setupUi(this); connect(_countFromEnd, SIGNAL(toggled(bool)), this, SLOT(countFromEndChanged())); connect(_readToEnd, SIGNAL(toggled(bool)), this, SLOT(readToEndChanged())); connect(_doSkip, SIGNAL(toggled(bool)), this, SLOT(doSkipChanged())); connect(_start, SIGNAL(textEdited(QString)), this, SLOT(startChanged())); connect(_range, SIGNAL(textEdited(QString)), this, SLOT(rangeChanged())); connect(_last, SIGNAL(textEdited(QString)), this, SLOT(lastChanged())); connect(_skip, SIGNAL(valueChanged(int)), this, SIGNAL(modified())); connect(_doFilter, SIGNAL(toggled(bool)), this, SIGNAL(modified())); connect(_countFromEnd, SIGNAL(toggled(bool)), this, SIGNAL(modified())); connect(_readToEnd, SIGNAL(toggled(bool)), this, SIGNAL(modified())); connect(_doSkip, SIGNAL(toggled(bool)), this, SIGNAL(modified())); connect(_startUnits, SIGNAL(currentIndexChanged(int)), this, SLOT(unitsChanged())); connect(_rangeUnits, SIGNAL(currentIndexChanged(int)), this, SLOT(unitsChanged())); _controlField0 = Range; _controlField1 = Start; }