QXRD
0.11.16
|
#include <qxrdexperiment.h>
Public Slots | |
void | newLogFile (QString path) |
void | openNewLogFile () const |
void | executeCommand (QString cmd) |
QString | systemCommand (QString cmd) |
QString | defaultDataDirectory (QString path) const |
QString | defaultLogName (QString path) const |
QString | defaultScanName (QString path) const |
QString | experimentFilePath () const |
QString | logFilePath () const |
QString | scanFilePath () const |
void | setExperimentFilePath (QString path) |
void | saveExperimentCopyAs (QString path) |
void | saveExperimentAs (QString path) |
void | readSettings () |
void | writeSettings () |
void | readSettings (QSettings *settings, QString section) |
void | writeSettings (QSettings *settings, QString section) |
void | logMessage (QString msg) const |
void | splashMessage (QString msg) |
void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
void | printLine (QString msg) |
void | saveExperiment () |
void | completeWork (int amt) |
void | commenceWork (int amt) |
void | finishedWork (int amt) |
void | updateCompletionPercentage (int, int) |
void | dump () |
QColor | pickColor (QColor start=QColor(Qt::white)) |
void | evaluateScriptFiles (QStringList files) |
void | evaluateScriptFile (QString path) |
Public Slots inherited from QcepExperiment | |
QString | defaultExperimentDirectory (QString path) const |
QString | defaultExperimentFileName (QString path) const |
QString | defaultExperimentName (QString path) const |
Public Slots inherited from QcepObject | |
virtual void | printLine (QString line) |
virtual void | printMessage (QString msg, QDateTime dt=QDateTime::currentDateTime()) const |
virtual void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) const |
virtual QString | settingsScript () |
QString | scriptValueLiteral (QVariant v) |
Properties | |
QString | dataDirectory |
QString | logFileName |
QString | scanFileName |
QString | scanFileExtension |
int | scanDataNegative |
int | defaultLayout |
int | workCompleted |
int | workTarget |
int | completionPercentage |
QString | defaultScript |
QStringList | extraScriptFiles |
int | fontSize |
int | spacing |
Properties inherited from QcepExperiment | |
int | experimentKind |
QString | experimentDirectory |
QString | experimentFileName |
QString | experimentName |
QString | experimentDescription |
Properties inherited from QcepObject | |
QString | name |
Private Member Functions | |
void | closeLogFile () const |
void | openLogFile () const |
void | readInitialLogFile () |
void | closeScanFile () |
Additional Inherited Members | |
Static Public Member Functions inherited from QcepObject | |
static int | allocatedObjects () |
static int | deletedObjects () |
static QSet< QcepObject * > | allocatedObjectsSet () |
static QString | addSlashes (QString str) |
Protected Attributes inherited from QcepExperiment | |
QcepSettingsSaverPtr | m_SettingsSaver |
Definition at line 50 of file qxrdexperiment.h.
QxrdExperiment::QxrdExperiment | ( | QxrdExperimentThreadWPtr | expthrd, |
QString | path, | ||
QxrdApplicationWPtr | app | ||
) |
Definition at line 44 of file qxrdexperiment.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
|
virtual |
Definition at line 361 of file qxrdexperiment.cpp.
References closeLogFile(), closeScanFile(), DEBUG_APP, DEBUG_CONSTRUCTORS, m_Application, QcepExperiment::m_SettingsSaver, and qcepDebug().
QxrdAcquisitionWPtr QxrdExperiment::acquisition | ( | ) | const |
QxrdCalibrantDSpacingsWPtr QxrdExperiment::calibrantDSpacings | ( | ) | const |
Definition at line 511 of file qxrdexperiment.cpp.
References m_CalibrantDSpacings.
QxrdCalibrantDSpacingsModelWPtr QxrdExperiment::calibrantDSpacingsModel | ( | ) | const |
Definition at line 516 of file qxrdexperiment.cpp.
References m_CalibrantDSpacingsModel.
QxrdCalibrantLibraryWPtr QxrdExperiment::calibrantLibrary | ( | ) | const |
Definition at line 501 of file qxrdexperiment.cpp.
References m_CalibrantLibrary.
QxrdCalibrantLibraryModelWPtr QxrdExperiment::calibrantLibraryModel | ( | ) | const |
Definition at line 506 of file qxrdexperiment.cpp.
References m_CalibrantLibraryModel.
QxrdCenterFinderWPtr QxrdExperiment::centerFinder | ( | ) | const |
Definition at line 526 of file qxrdexperiment.cpp.
References m_DataProcessor.
|
private |
Definition at line 659 of file qxrdexperiment.cpp.
References m_LogFile, and m_LogFileMutex.
Referenced by ~QxrdExperiment().
|
private |
Definition at line 709 of file qxrdexperiment.cpp.
References m_ScanFile, and m_ScanFileMutex.
Referenced by ~QxrdExperiment().
|
slot |
Definition at line 954 of file qxrdexperiment.cpp.
|
slot |
Definition at line 949 of file qxrdexperiment.cpp.
|
slot |
Definition at line 392 of file qxrdexperiment.cpp.
References m_Application, and m_Window.
QxrdDataProcessorWPtr QxrdExperiment::dataProcessor | ( | ) | const |
QcepDatasetModelPtr QxrdExperiment::dataset | ( | ) |
|
slot |
Definition at line 843 of file qxrdexperiment.cpp.
|
slot |
Definition at line 848 of file qxrdexperiment.cpp.
References QcepExperiment::defaultExperimentName().
Referenced by setExperimentFilePath().
|
slot |
Definition at line 853 of file qxrdexperiment.cpp.
References QcepExperiment::defaultExperimentName().
Referenced by setExperimentFilePath().
|
slot |
Definition at line 965 of file qxrdexperiment.cpp.
|
slot |
Definition at line 987 of file qxrdexperiment.cpp.
References m_ScriptEngine, and printMessage().
Referenced by evaluateScriptFiles().
|
slot |
Definition at line 980 of file qxrdexperiment.cpp.
References evaluateScriptFile().
|
slot |
Definition at line 553 of file qxrdexperiment.cpp.
References m_ScriptEngine.
|
slot |
Definition at line 858 of file qxrdexperiment.cpp.
Referenced by readSettings(), and writeSettings().
QxrdExperimentThreadWPtr QxrdExperiment::experimentThread | ( | ) |
Definition at line 301 of file qxrdexperiment.cpp.
References m_ExperimentThread.
QxrdFileSaverWPtr QxrdExperiment::fileSaver | ( | ) | const |
Definition at line 471 of file qxrdexperiment.cpp.
References m_FileSaver.
Referenced by initialize().
|
slot |
Definition at line 959 of file qxrdexperiment.cpp.
void QxrdExperiment::initialize | ( | QSettings * | settings | ) |
Definition at line 86 of file qxrdexperiment.cpp.
References QxrdScriptEngine::evaluateSimpleServerCommand(), QxrdScriptEngine::evaluateSpecCommand(), QxrdSimpleServer::executeCommand(), fileSaver(), QxrdSimpleServer::finishedCommand(), m_Acquisition, m_Application, m_CalibrantDSpacings, m_CalibrantDSpacingsModel, m_CalibrantLibrary, m_CalibrantLibraryModel, m_DataProcessor, m_Dataset, m_DatasetModel, m_FileSaver, m_FileSaverThread, m_ScriptEngine, m_Server, m_ServerThread, QcepExperiment::m_SettingsSaver, m_SimpleServer, m_SimpleServerThread, m_WindowSettings, printMessage(), readSettings(), QxrdScriptEngine::simpleServerResultAvailable(), QxrdScriptEngine::specResultAvailable(), splashMessage(), STR, updateCompletionPercentage(), and QcepIntProperty::valueChanged().
Referenced by openWindows().
QxrdIntegratorWPtr QxrdExperiment::integrator | ( | ) | const |
Definition at line 537 of file qxrdexperiment.cpp.
References m_DataProcessor.
FILE * QxrdExperiment::logFile | ( | ) |
Definition at line 640 of file qxrdexperiment.cpp.
References m_LogFile, and m_LogFileMutex.
Referenced by readInitialLogFile().
|
slot |
Definition at line 892 of file qxrdexperiment.cpp.
Referenced by openLogFile(), and readInitialLogFile().
|
slot |
Definition at line 647 of file qxrdexperiment.cpp.
References m_LogFile, m_LogFileMutex, and openLogFile().
Referenced by printMessage().
|
slot |
Definition at line 572 of file qxrdexperiment.cpp.
References m_LogFile, m_LogFileMutex, and openLogFile().
Referenced by setExperimentFilePath().
void QxrdExperiment::newScanFile | ( | QString | path | ) |
Definition at line 672 of file qxrdexperiment.cpp.
References m_ScanFile, m_ScanFileMutex, and openScanFile().
Referenced by setExperimentFilePath().
|
private |
Definition at line 602 of file qxrdexperiment.cpp.
References logFilePath(), m_LogFile, and m_LogFileMutex.
Referenced by logMessage(), newLogFile(), and openNewLogFile().
|
slot |
Definition at line 588 of file qxrdexperiment.cpp.
References m_LogFile, m_LogFileMutex, and openLogFile().
Referenced by QxrdAcquisitionDialog::QxrdAcquisitionDialog().
void QxrdExperiment::openScanFile | ( | ) |
Definition at line 688 of file qxrdexperiment.cpp.
References m_ScanFile, m_ScanFileMutex, and scanFilePath().
Referenced by newScanFile().
void QxrdExperiment::openWindows | ( | ) |
Definition at line 306 of file qxrdexperiment.cpp.
References QxrdScriptEngine::appResultAvailable(), QxrdScriptEngine::evaluateAppCommand(), QxrdWindow::executeCommand(), QxrdWindow::finishedCommand(), GUI_THREAD_CHECK, initialize(), m_Acquisition, m_Application, m_DataProcessor, m_ScriptEngine, m_Window, m_WindowSettings, readInitialLogFile(), and splashMessage().
|
slot |
Definition at line 973 of file qxrdexperiment.cpp.
|
slot |
|
slot |
Definition at line 420 of file qxrdexperiment.cpp.
References DEBUG_NOMESSAGES, logMessage(), m_Window, and qcepDebug().
Referenced by evaluateScriptFile(), initialize(), QxrdExperimentSettings::QxrdExperimentSettings(), saveExperimentCopyAs(), setExperimentFilePath(), and QxrdExperimentSettings::~QxrdExperimentSettings().
|
private |
Definition at line 618 of file qxrdexperiment.cpp.
References logFile(), logFilePath(), m_LogFileMutex, and m_Window.
Referenced by openWindows().
|
slot |
Definition at line 719 of file qxrdexperiment.cpp.
References experimentFilePath(), and m_ExperimentFileMutex.
Referenced by initialize(), and readSettings().
|
slot |
Definition at line 736 of file qxrdexperiment.cpp.
References m_Acquisition, m_CalibrantLibrary, m_DataProcessor, m_Mutex, m_Server, m_SimpleServer, m_WindowSettings, QxrdDetectorThread::PerkinElmerDetector, QcepObject::readSettings(), and readSettings().
|
slot |
Definition at line 906 of file qxrdexperiment.cpp.
References writeSettings().
Referenced by QxrdWindow::initialize().
|
slot |
Definition at line 911 of file qxrdexperiment.cpp.
References setExperimentFilePath(), and writeSettings().
|
slot |
Definition at line 920 of file qxrdexperiment.cpp.
References printMessage(), and writeSettings().
FILE * QxrdExperiment::scanFile | ( | ) |
|
slot |
Definition at line 899 of file qxrdexperiment.cpp.
Referenced by openScanFile().
QxrdScriptEngineWPtr QxrdExperiment::scriptEngine | ( | ) |
|
slot |
Definition at line 865 of file qxrdexperiment.cpp.
References DEBUG_PREFS, QcepExperiment::defaultExperimentDirectory(), QcepExperiment::defaultExperimentFileName(), QcepExperiment::defaultExperimentName(), defaultLogName(), defaultScanName(), m_Window, newLogFile(), newScanFile(), printMessage(), and qcepDebug().
Referenced by saveExperimentAs().
QxrdSimpleServerWPtr QxrdExperiment::simpleServer | ( | ) |
QxrdSimpleServerThreadWPtr QxrdExperiment::simpleServerThread | ( | ) |
Definition at line 491 of file qxrdexperiment.cpp.
References m_SimpleServerThread.
QxrdServerWPtr QxrdExperiment::specServer | ( | ) |
QxrdServerThreadWPtr QxrdExperiment::specServerThread | ( | ) |
|
slot |
Definition at line 383 of file qxrdexperiment.cpp.
References m_Application.
Referenced by initialize(), and openWindows().
|
slot |
Definition at line 406 of file qxrdexperiment.cpp.
References m_Application, and m_Window.
|
slot |
Definition at line 562 of file qxrdexperiment.cpp.
|
slot |
Definition at line 937 of file qxrdexperiment.cpp.
Referenced by initialize().
QxrdWindowPtr QxrdExperiment::window | ( | ) |
|
slot |
Definition at line 784 of file qxrdexperiment.cpp.
References experimentFilePath(), and m_ExperimentFileMutex.
Referenced by saveExperiment(), saveExperimentAs(), saveExperimentCopyAs(), and writeSettings().
|
slot |
Definition at line 809 of file qxrdexperiment.cpp.
References m_Acquisition, m_CalibrantLibrary, m_DataProcessor, m_Server, m_SimpleServer, m_WindowSettings, QcepObject::writeSettings(), and writeSettings().
|
private |
Definition at line 165 of file qxrdexperiment.h.
Referenced by acquisition(), initialize(), openWindows(), readSettings(), and writeSettings().
|
private |
Definition at line 148 of file qxrdexperiment.h.
Referenced by criticalMessage(), initialize(), openWindows(), splashMessage(), statusMessage(), and ~QxrdExperiment().
|
private |
Definition at line 163 of file qxrdexperiment.h.
Referenced by calibrantDSpacings(), and initialize().
|
private |
Definition at line 164 of file qxrdexperiment.h.
Referenced by calibrantDSpacingsModel(), and initialize().
|
private |
Definition at line 161 of file qxrdexperiment.h.
Referenced by calibrantLibrary(), initialize(), readSettings(), and writeSettings().
|
private |
Definition at line 162 of file qxrdexperiment.h.
Referenced by calibrantLibraryModel(), and initialize().
|
private |
Definition at line 160 of file qxrdexperiment.h.
Referenced by centerFinder(), dataProcessor(), initialize(), integrator(), openWindows(), readSettings(), and writeSettings().
|
private |
Definition at line 175 of file qxrdexperiment.h.
Referenced by initialize().
|
private |
Definition at line 176 of file qxrdexperiment.h.
Referenced by dataset(), and initialize().
|
private |
Definition at line 167 of file qxrdexperiment.h.
|
private |
Definition at line 166 of file qxrdexperiment.h.
|
private |
Definition at line 183 of file qxrdexperiment.h.
Referenced by readSettings(), and writeSettings().
|
private |
Definition at line 149 of file qxrdexperiment.h.
Referenced by experimentThread().
|
private |
Definition at line 169 of file qxrdexperiment.h.
Referenced by fileSaver(), and initialize().
|
private |
Definition at line 168 of file qxrdexperiment.h.
Referenced by initialize().
|
mutableprivate |
Definition at line 178 of file qxrdexperiment.h.
Referenced by closeLogFile(), logFile(), logMessage(), newLogFile(), openLogFile(), and openNewLogFile().
|
mutableprivate |
Definition at line 177 of file qxrdexperiment.h.
Referenced by closeLogFile(), logFile(), logMessage(), newLogFile(), openLogFile(), openNewLogFile(), and readInitialLogFile().
|
private |
Definition at line 152 of file qxrdexperiment.h.
Referenced by readSettings().
|
private |
Definition at line 181 of file qxrdexperiment.h.
Referenced by closeScanFile(), newScanFile(), openScanFile(), and scanFile().
|
private |
Definition at line 180 of file qxrdexperiment.h.
Referenced by closeScanFile(), newScanFile(), and openScanFile().
|
private |
Definition at line 172 of file qxrdexperiment.h.
Referenced by evaluateScriptFile(), executeCommand(), initialize(), openWindows(), and scriptEngine().
|
private |
Definition at line 173 of file qxrdexperiment.h.
|
private |
Definition at line 157 of file qxrdexperiment.h.
Referenced by initialize(), readSettings(), specServer(), and writeSettings().
|
private |
Definition at line 156 of file qxrdexperiment.h.
Referenced by initialize(), and specServerThread().
|
private |
Definition at line 159 of file qxrdexperiment.h.
Referenced by initialize(), readSettings(), simpleServer(), and writeSettings().
|
private |
Definition at line 158 of file qxrdexperiment.h.
Referenced by initialize(), and simpleServerThread().
|
private |
Definition at line 154 of file qxrdexperiment.h.
Referenced by criticalMessage(), openWindows(), printLine(), printMessage(), readInitialLogFile(), setExperimentFilePath(), statusMessage(), and window().
|
private |
Definition at line 153 of file qxrdexperiment.h.
Referenced by initialize(), openWindows(), readSettings(), and writeSettings().
|
readwrite |
Definition at line 210 of file qxrdexperiment.h.
|
readwrite |
Definition at line 186 of file qxrdexperiment.h.
|
readwrite |
Definition at line 201 of file qxrdexperiment.h.
|
readwrite |
Definition at line 213 of file qxrdexperiment.h.
|
readwrite |
Definition at line 216 of file qxrdexperiment.h.
|
readwrite |
Definition at line 219 of file qxrdexperiment.h.
|
readwrite |
Definition at line 189 of file qxrdexperiment.h.
|
readwrite |
Definition at line 198 of file qxrdexperiment.h.
|
readwrite |
Definition at line 195 of file qxrdexperiment.h.
|
readwrite |
Definition at line 192 of file qxrdexperiment.h.
|
readwrite |
Definition at line 222 of file qxrdexperiment.h.
|
readwrite |
Definition at line 204 of file qxrdexperiment.h.
|
readwrite |
Definition at line 207 of file qxrdexperiment.h.