Exemple #1
0
AMScanExemplarDictionary::AMScanExemplarDictionary(AMScanExemplar *exemplar, QObject *parent) :
	AMOldScanParametersDictionary(parent)
{
	exemplar_ = exemplar;
	if(exemplar_)
		connect(exemplar_, SIGNAL(settingsChanged()), this, SLOT(reoperate()));
	loadKeywordReplacementDictionary();
}
AMScanDictionary::AMScanDictionary(AMScan *scan, QObject *parent) :
	AMOldScanParametersDictionary(parent)
{
	scan_ = scan;
	if(scan_){
		connect(scan_, SIGNAL(nameChanged(QString)), this, SLOT(reoperate()));
		connect(scan_, SIGNAL(numberChanged(int)), this, SLOT(reoperate()));
		connect(scan_, SIGNAL(dateTimeChanged(QDateTime)), this, SLOT(reoperate()));
		connect(scan_, SIGNAL(sampleIdChanged(int)), this, SLOT(reoperate()));
		connect(scan_, SIGNAL(scanConfigurationChanged()), this, SLOT(reoperate()));
		connect(scan_, SIGNAL(loadedFromDb()), this, SLOT(reoperate()));
	}
	loadKeywordReplacementDictionary();
}