35 connect(m_AcquireButton, &QAbstractButton::clicked, m_ActionAcquire, &QAction::triggered);
36 connect(m_CancelButton, &QAbstractButton::clicked, m_ActionCancel, &QAction::triggered);
37 connect(m_TriggerButton, &QAbstractButton::clicked, m_ActionTrigger, &QAction::triggered);
38 connect(m_DarkAcquireButton, &QAbstractButton::clicked, m_ActionAcquireDark, &QAction::triggered);
45 acq -> prop_ExposureTime() -> linkTo(
this -> m_ExposureTime);
46 acq -> prop_SummedExposures() -> linkTo(
this -> m_SummedExposures);
47 acq -> prop_SkippedExposures() -> linkTo(
this -> m_SkippedExposures);
48 acq -> prop_SkippedExposuresAtStart() -> linkTo(
this -> m_SkippedExposuresAtStart);
49 acq -> prop_DarkSummedExposures() -> linkTo(
this -> m_DarkSummedExposures);
50 acq -> prop_FilePattern() -> linkTo(
this -> m_FilePattern);
51 acq -> prop_FileIndex() -> linkTo(
this -> m_FileIndex);
52 acq -> prop_PhasesInGroup() -> linkTo(
this -> m_PhasesInGroup);
53 acq -> prop_PreTriggerFiles() -> linkTo(
this -> m_PreTriggerFiles);
54 acq -> prop_PostTriggerFiles() -> linkTo(
this -> m_PostTriggerFiles);
55 acq -> prop_DroppedFrames() -> linkTo(
this -> m_DroppedFrames);
57 acq -> prop_UserComment1() -> linkTo(
this -> m_UserComment1);
58 acq -> prop_UserComment2() -> linkTo(
this -> m_UserComment2);
59 acq -> prop_UserComment3() -> linkTo(
this -> m_UserComment3);
60 acq -> prop_UserComment4() -> linkTo(
this -> m_UserComment4);
62 acq -> prop_LiveViewAtIdle() -> linkTo(
this -> m_LiveViewAtIdle);
63 acq -> prop_AcquisitionCancelsLiveView() -> linkTo(
this -> m_AcquisitionCancelsLiveView);
64 acq -> prop_RetryDropped() -> linkTo(
this -> m_RetryDropped);
66 printf(
"acq == NULL in QxrdAcquisitionDialog::QxrdAcquisitionDialog");
74 exp -> prop_ExperimentDirectory() -> linkTo(
this -> m_ExperimentDirectory);
75 exp -> prop_LogFileName() -> linkTo(
this -> m_LogFileName);
76 exp -> prop_DataDirectory() -> linkTo(
this -> m_DataDirectory);
77 exp -> prop_ScanFileName() -> linkTo(
this -> m_ScanFileName);
87 procp -> prop_Average() -> linkTo(
this -> m_AverageDisplay);
88 procp -> prop_CorrectionQueueLength() -> linkTo(
this -> m_CorrectionBacklog);
89 procp -> prop_IntegrationQueueLength() -> linkTo(
this -> m_IntegrationBacklog);
90 procp -> prop_SaverQueueLength() -> linkTo(
this -> m_SaverBacklog);
107 menu->addSeparator();
108 menu->addAction(m_ActionAcquire);
109 menu->addAction(m_ActionTrigger);
110 menu->addAction(m_ActionAcquireDark);
111 menu->addAction(m_ActionCancel);
119 acqp -> setupExposureMenu(
this -> m_ExposureTime);
125 QString dir = QFileDialog::getExistingDirectory(
this,
"Output Directory", m_ExperimentDirectory->text(), QFileDialog::ShowDirsOnly);
128 m_ExperimentDirectory->setText(dir);
134 QDir pwd(m_ExperimentDirectory->text());
135 QFileInfo initial(pwd, m_LogFileName->text());
137 QString file = QFileDialog::getSaveFileName(
this,
"Log File", initial.absoluteFilePath());
140 m_LogFileName->setText(pwd.relativeFilePath(file));
146 QDir pwd(m_ExperimentDirectory->text());
147 QFileInfo initial(pwd, m_ScanFileName->text());
149 QString file = QFileDialog::getSaveFileName(
this,
"Scan File", initial.absoluteFilePath());
152 m_ScanFileName->setText(pwd.relativeFilePath(file));
158 QDockWidget::changeEvent(e);
160 case QEvent::LanguageChange:
182 acqp -> acquireDark();
197 m_AcquireButton -> setEnabled(
true);
198 m_ActionAcquire -> setEnabled(
true);
200 m_TriggerButton -> setEnabled(
false);
201 m_ActionTrigger -> setEnabled(
false);
203 m_CancelButton -> setEnabled(
false);
204 m_ActionCancel -> setEnabled(
false);
206 m_DarkAcquireButton -> setEnabled(
true);
207 m_ActionAcquireDark -> setEnabled(
true);
215 m_AcquireButton -> setEnabled(
false);
216 m_ActionAcquire -> setEnabled(
false);
218 if (acq -> get_PreTriggerFiles() > 0) {
219 m_TriggerButton -> setEnabled(
true);
220 m_ActionTrigger -> setEnabled(
true);
222 m_TriggerButton -> setEnabled(
false);
223 m_ActionTrigger -> setEnabled(
false);
226 m_CancelButton -> setEnabled(
true);
227 m_ActionCancel -> setEnabled(
true);
229 m_DarkAcquireButton -> setEnabled(
false);
230 m_ActionAcquireDark -> setEnabled(
false);
236 m_AcquireButton -> setEnabled(
true);
237 m_ActionAcquire -> setEnabled(
true);
239 m_TriggerButton -> setEnabled(
false);
240 m_ActionTrigger -> setEnabled(
false);
242 m_CancelButton -> setEnabled(
false);
243 m_ActionCancel -> setEnabled(
false);
245 m_DarkAcquireButton -> setEnabled(
true);
246 m_ActionAcquireDark -> setEnabled(
true);
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
QxrdDataProcessorWPtr m_DataProcessor
QSharedPointer< QxrdWindow > QxrdWindowPtr
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
QSharedPointer< QxrdAcquisition > QxrdAcquisitionPtr
void openNewLogFile() const
QxrdAcquisitionDialog(QxrdExperimentWPtr doc, QxrdWindowWPtr win, QxrdAcquisitionWPtr acq, QxrdDataProcessorWPtr proc, QWidget *parent)
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
QxrdAcquisitionWPtr m_Acquisition
void changeEvent(QEvent *e)
QWeakPointer< QxrdWindow > QxrdWindowWPtr
void setupAcquireMenu(QMenu *menu)
QxrdExperimentWPtr m_Experiment
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
void doEditDetectorPreferences()
void browseOutputDirectory()