1 #ifndef QXRDEXPERIMENT_H
2 #define QXRDEXPERIMENT_H
4 #define _CRT_SECURE_NO_WARNINGS
10 #include <QSharedPointer>
11 #include <QScriptEngine>
12 #include <QScriptEngineDebugger>
112 void readSettings(QSettings *settings, QString section);
117 void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
118 void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
119 void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
const;
130 QColor
pickColor(QColor start=QColor(Qt::white));
186 Q_PROPERTY(QString
dataDirectory READ get_DataDirectory WRITE set_DataDirectory)
189 Q_PROPERTY(QString
logFileName READ get_LogFileName WRITE set_LogFileName)
192 Q_PROPERTY(QString
scanFileName READ get_ScanFileName WRITE set_ScanFileName)
201 Q_PROPERTY(
int defaultLayout READ get_DefaultLayout WRITE set_DefaultLayout STORED false)
204 Q_PROPERTY(
int workCompleted READ get_WorkCompleted WRITE set_WorkCompleted STORED false)
207 Q_PROPERTY(
int workTarget READ get_WorkTarget WRITE set_WorkTarget STORED false)
213 Q_PROPERTY(QString
defaultScript READ get_DefaultScript WRITE set_DefaultScript)
216 Q_PROPERTY(QStringList
extraScriptFiles READ get_ExtraScriptFiles WRITE set_ExtraScriptFiles)
219 Q_PROPERTY(
int fontSize READ get_FontSize WRITE set_FontSize)
222 Q_PROPERTY(
int spacing READ get_Spacing WRITE set_Spacing)
226 #endif // QXRDEXPERIMENT_H
QxrdCenterFinderWPtr centerFinder() const
QSharedPointer< QxrdWindow > QxrdWindowPtr
void commenceWork(int amt)
QxrdCalibrantLibraryWPtr calibrantLibrary() const
QWeakPointer< QxrdDataProcessor > QxrdDataProcessorWPtr
QWeakPointer< QxrdSimpleServerThread > QxrdSimpleServerThreadWPtr
QScriptEngineDebugger * m_ScriptEngineDebugger
QString defaultScanName(QString path) const
void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QSharedPointer< QxrdAcquisition > QxrdAcquisitionPtr
void openNewLogFile() const
QSharedPointer< QxrdCalibrantLibraryModel > QxrdCalibrantLibraryModelPtr
QWeakPointer< QxrdCenterFinder > QxrdCenterFinderWPtr
QxrdFileSaverThreadPtr m_FileSaverThread
void readInitialLogFile()
QSharedPointer< QxrdWindowSettings > QxrdWindowSettingsPtr
QSharedPointer< QxrdCalibrantLibrary > QxrdCalibrantLibraryPtr
QSharedPointer< QxrdDataProcessor > QxrdDataProcessorPtr
void initialize(QSettings *settings)
QSharedPointer< QxrdScriptEngine > QxrdScriptEnginePtr
QcepDatasetModelPtr m_DatasetModel
QxrdCalibrantLibraryModelWPtr calibrantLibraryModel() const
void evaluateScriptFiles(QStringList files)
QWeakPointer< QxrdApplication > QxrdApplicationWPtr
QString experimentFilePath() const
QxrdFileSaverWPtr fileSaver() const
void executeCommand(QString cmd)
virtual ~QxrdExperiment()
QString scanFilePath() const
QWeakPointer< QxrdCalibrantDSpacings > QxrdCalibrantDSpacingsWPtr
QxrdCalibrantLibraryPtr m_CalibrantLibrary
#define QCEP_STRING_LIST_PROPERTY(propname)
QSharedPointer< QxrdCalibrantDSpacingsModel > QxrdCalibrantDSpacingsModelPtr
void newScanFile(QString path)
void newLogFile(QString path)
QxrdDataProcessorPtr m_DataProcessor
QSharedPointer< QxrdSimpleServerThread > QxrdSimpleServerThreadPtr
QxrdAcquisitionPtr m_Acquisition
QWeakPointer< QxrdSimpleServer > QxrdSimpleServerWPtr
QxrdServerThreadWPtr specServerThread()
#define QCEP_INTEGER_PROPERTY(propname)
QWeakPointer< QxrdCalibrantLibraryModel > QxrdCalibrantLibraryModelWPtr
QxrdAcquisitionWPtr acquisition() const
QxrdScriptEnginePtr m_ScriptEngine
QString defaultDataDirectory(QString path) const
void printLine(QString msg)
QxrdSimpleServerWPtr simpleServer()
QString defaultLogName(QString path) const
QWeakPointer< QxrdFileSaver > QxrdFileSaverWPtr
QWeakPointer< QxrdExperimentThread > QxrdExperimentThreadWPtr
QWeakPointer< QxrdCalibrantDSpacingsModel > QxrdCalibrantDSpacingsModelWPtr
QxrdSimpleServerWPtr m_SimpleServer
void saveExperimentCopyAs(QString path)
QSharedPointer< QxrdCalibrantDSpacings > QxrdCalibrantDSpacingsPtr
#define QCEP_STRING_PROPERTY(propname)
QxrdSimpleServerThreadPtr m_SimpleServerThread
QWeakPointer< QxrdDetector > QxrdDetectorWPtr
QxrdApplicationWPtr m_Application
QxrdExperimentThreadWPtr experimentThread()
void completeWork(int amt)
QxrdServerWPtr specServer()
QxrdCalibrantDSpacingsPtr m_CalibrantDSpacings
QWeakPointer< QxrdCalibrantLibrary > QxrdCalibrantLibraryWPtr
QxrdIntegratorWPtr integrator() const
QxrdWindowSettingsPtr m_WindowSettings
QString scanFileExtension
QcepDatasetModelPtr dataset()
QWeakPointer< QxrdServer > QxrdServerWPtr
QString logFilePath() const
QxrdExperiment(QxrdExperimentThreadWPtr expthrd, QString path, QxrdApplicationWPtr app)
QSharedPointer< QxrdServerThread > QxrdServerThreadPtr
QMutex m_ExperimentFileMutex
void saveExperimentAs(QString path)
QWeakPointer< QxrdIntegrator > QxrdIntegratorWPtr
QxrdCalibrantDSpacingsModelWPtr calibrantDSpacingsModel() const
void logMessage(QString msg) const
void updateCompletionPercentage(int, int)
QStringList extraScriptFiles
QWeakPointer< QxrdServerThread > QxrdServerThreadWPtr
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
QWeakPointer< QxrdScriptEngine > QxrdScriptEngineWPtr
QxrdServerThreadPtr m_ServerThread
QString systemCommand(QString cmd)
QSharedPointer< QcepDataset > QcepDatasetPtr
QxrdDetectorThreadPtr m_DetectorThread
QSharedPointer< QxrdFileSaverThread > QxrdFileSaverThreadPtr
void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
QxrdCalibrantDSpacingsWPtr calibrantDSpacings() const
QxrdScriptEngineWPtr scriptEngine()
QSharedPointer< QxrdDetectorThread > QxrdDetectorThreadPtr
void finishedWork(int amt)
QxrdCalibrantDSpacingsModelPtr m_CalibrantDSpacingsModel
void evaluateScriptFile(QString path)
void setExperimentFilePath(QString path)
QxrdDetectorWPtr m_Detector
QxrdDataProcessorWPtr dataProcessor() const
QSharedPointer< QcepDatasetModel > QcepDatasetModelPtr
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime()) const
void splashMessage(QString msg)
QxrdCalibrantLibraryModelPtr m_CalibrantLibraryModel
void closeLogFile() const
QColor pickColor(QColor start=QColor(Qt::white))
QxrdSimpleServerThreadWPtr simpleServerThread()
QxrdFileSaverWPtr m_FileSaver
QxrdExperimentThreadWPtr m_ExperimentThread