mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 23:10:02 +02:00

* WIP * dacWidget * main WIP * advanced WIP * WIP * WIP * WIP * WIP * WIP * WIP * works * updated gui to chrono * review fixes * unitque ptrs in gui
91 lines
1.8 KiB
C++
Executable File
91 lines
1.8 KiB
C++
Executable File
#pragma once
|
|
|
|
#include "ui_form_tab_measurement.h"
|
|
|
|
class qDrawPlot;
|
|
|
|
#include "Detector.h"
|
|
|
|
class QStandardItemModel;
|
|
|
|
class qTabMeasurement:public QWidget, private Ui::TabMeasurementObject{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
qTabMeasurement(QWidget *parent, sls::Detector* detector, qDrawPlot* p);
|
|
~qTabMeasurement();
|
|
|
|
void Refresh();
|
|
|
|
public slots:
|
|
void AcquireFinished();
|
|
void AbortAcquire();
|
|
|
|
private slots:
|
|
void SetTimingMode(int val);
|
|
void SetNumMeasurements(int val);
|
|
void SetNumFrames(int val);
|
|
void SetNumTriggers(int val);
|
|
void SetNumSamples(int val);
|
|
void SetExposureTime();
|
|
void SetAcquisitionPeriod();
|
|
void SetDelay();
|
|
void SetFileWrite(bool val);
|
|
void SetFileName();
|
|
void SetRunIndex(int val);
|
|
void SetStartingFrameNumber(int val);
|
|
void UpdateProgress();
|
|
void StartAcquisition();
|
|
void StopAcquisition();
|
|
|
|
private:
|
|
void SetupWidgetWindow();
|
|
void Initialization();
|
|
void SetupTimingMode();
|
|
void EnableWidgetsforTimingMode();
|
|
|
|
void GetTimingMode();
|
|
void GetNumFrames();
|
|
void GetNumTriggers();
|
|
void GetNumSamples();
|
|
void GetExposureTime();
|
|
void GetAcquisitionPeriod();
|
|
void CheckAcqPeriodGreaterThanExp();
|
|
void GetDelay();
|
|
void GetFileWrite();
|
|
void GetFileName();
|
|
void GetRunIndex();
|
|
void GetStartingFrameNumber();
|
|
|
|
void ResetProgress();
|
|
|
|
void Enable(bool enable);
|
|
int VerifyOutputDirectoryError();
|
|
|
|
signals:
|
|
void EnableTabsSignal(bool);
|
|
void FileNameChangedSignal(QString);
|
|
private:
|
|
sls::Detector *det;
|
|
qDrawPlot *plot;
|
|
// enum for the timing mode
|
|
enum{
|
|
AUTO,
|
|
TRIGGER,
|
|
GATED,
|
|
BURST_TRIGGER,
|
|
NUMTIMINGMODES
|
|
};
|
|
QTimer *progressTimer;
|
|
//tool tip variables
|
|
QString acqPeriodTip;
|
|
QString errPeriodTip;
|
|
QPalette red;
|
|
bool delayImplemented;
|
|
bool sampleImplemented;
|
|
bool startingFnumImplemented;
|
|
bool isAcquisitionStopped{false};
|
|
int numMeasurements{1};
|
|
int currentMeasurement{0};
|
|
};
|