Ejemplo n.º 1
0
VESPERSMarCCDDetectorInfo &VESPERSMarCCDDetectorInfo::operator =(const VESPERSMarCCDDetectorInfo &other)
{
	if (this != &other){

		AMOldDetectorInfo::operator =(other);
		axes_ = other.axes();
		setAcquireTime(other.acquireTime());
	}

	return *this;
}
	connect(detector_, SIGNAL(connected(bool)), this, SLOT(setEnabled(bool)));

	isAcquiring_ = new QLabel;
	isAcquiring_->setPixmap(QIcon(":/OFF.png").pixmap(25));
	connect(detector_, SIGNAL(isAcquiringChanged(bool)), this, SLOT(onIsAcquiringChanged(bool)));

	state_ = new QLabel;
	connect(detector_, SIGNAL(stateChanged(VESPERSMarCCDDetector::State)), this, SLOT(onStateChanged(VESPERSMarCCDDetector::State)));

	acquireTime_ = new QDoubleSpinBox;
	acquireTime_->setSuffix(" s");
	acquireTime_->setDecimals(2);
	acquireTime_->setRange(0, 10000);
	acquireTime_->setAlignment(Qt::AlignCenter);
	connect(detector_, SIGNAL(acquireTimeChanged(double)), acquireTime_, SLOT(setValue(double)));
	connect(acquireTime_, SIGNAL(editingFinished()), this, SLOT(setAcquireTime()));

	QToolButton *startButton = new QToolButton;
	startButton->setIcon(QIcon(":/play_button_green.png"));
	connect(startButton, SIGNAL(clicked()), detector_, SLOT(start()));

	QToolButton *stopButton = new QToolButton;
	stopButton->setIcon(QIcon(":/red-stop-button.png"));
	connect(stopButton, SIGNAL(clicked()), detector_, SLOT(stop()));

	triggerMode_ = new QComboBox;
	triggerMode_->addItem("Free Run");
	triggerMode_->addItem("External Sync");
	connect(detector_, SIGNAL(triggerModeChanged(VESPERSMarCCDDetector::TriggerMode)), this, SLOT(onTriggerModeChanged(VESPERSMarCCDDetector::TriggerMode)));
	connect(triggerMode_, SIGNAL(currentIndexChanged(int)), this, SLOT(setTriggerMode(int)));