QXRD
0.11.16
|
#include <qxrdapplication.h>
Public Slots | |
void | finish () |
void | chooseNewExperiment () |
void | chooseExistingExperiment () |
void | openRecentExperiment (QString path) |
void | activateExperiment (QString path) |
void | openExperiment (QString path) |
void | closeExperiment (QxrdExperimentWPtr exp) |
void | openedExperiment (QxrdExperimentThreadPtr expthrdw) |
void | closedExperiment (QxrdExperimentThreadPtr expthrdw) |
QList< QxrdExperimentWPtr > & | experiments () |
QxrdExperimentPtr | experiment (int i) |
void | openWelcomeWindow () |
void | closeWelcomeWindow () |
void | doAboutQxrd () |
void | doOpenQXRDWebPage () |
void | doOpenURL (QString url) |
void | possiblyQuit () |
void | editGlobalPreferences () |
void | debugChanged (qint64 newValue) |
void | readSettings () |
void | writeSettings () |
void | readSettings (QSettings *settings, QString section) |
void | writeSettings (QSettings *settings, QString section) |
void | doSavePreferences () |
void | doLoadPreferences () |
void | loadPreferences (QString path) |
void | savePreferences (QString path) |
void | splashMessage (QString msg) |
void | logMessage (QString msg) |
void | warningMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
void | statusMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime()) |
void | processEventCounter () |
QString | homePath () |
QString | currentPath () |
QString | rootPath () |
void | lockerTimerElapsed () |
virtual void | setDefaultObjectData (QcepDataObject *obj) |
Public Member Functions | |
QxrdApplication (int &argc, char **argv) | |
virtual | ~QxrdApplication () |
bool | init (QxrdApplicationWPtr app, int &argc, char **argv) |
QcepAllocatorWPtr | allocator () const |
QxrdNIDAQPluginInterfacePtr | nidaqPlugin () |
void | loadPlugins () |
void | tiffWarning (const char *module, const char *msg) |
void | tiffError (const char *module, const char *msg) |
bool | event (QEvent *ev) |
QStringList | makeStringListFromArgs (int argc, char **argv) |
void | readDefaultSettings () |
void | writeDefaultSettings () |
void | appendRecentExperiment (QString path) |
QString | normalizeExperimentName (QString filename) |
void | setNewExperimentSettings (QSettings &settings, int type, QString filename) |
bool | wantToQuit () |
void | incLockerCount () |
Public Member Functions inherited from QcepApplication | |
QcepApplication (int &argc, char **argv) | |
virtual void | printMessage (QString msg, QDateTime ts=QDateTime::currentDateTime())=0 |
virtual void | criticalMessage (QString msg, QDateTime ts=QDateTime::currentDateTime())=0 |
virtual void | setDefaultObjectData (QcepDataObject *obj)=0 |
Properties | |
QStringList | recentExperiments |
int | recentExperimentsSize |
QString | currentExperiment |
QString | currentDirectory |
qint64 | debug |
int | freshStart |
int | fileBrowserLimit |
int | messageWindowLines |
int | updateIntervalMsec |
int | argc |
QStringList | argv |
int | guiWanted |
int | startDetectors |
QStringList | cmdList |
QStringList | fileList |
int | lockerCount |
double | lockerRate |
Private Slots | |
void | hideSplash () |
Private Member Functions | |
void | setupTiffHandlers () |
Definition at line 27 of file qxrdapplication.h.
QxrdApplication::QxrdApplication | ( | int & | argc, |
char ** | argv | ||
) |
Definition at line 98 of file qxrdapplication.cpp.
References DEBUG_CONSTRUCTORS, qcepDebug(), QxrdCalibrantDSpacings::registerMetaTypes(), QxrdCalibrantDSpacing::registerMetaTypes(), QxrdPowderPoint::registerMetaTypes(), QcepProperty::registerMetaTypes(), and QxrdPowderPointVector::registerMetaTypes().
|
virtual |
Definition at line 270 of file qxrdapplication.cpp.
References DEBUG_CONSTRUCTORS, m_Saver, and qcepDebug().
|
slot |
Definition at line 1036 of file qxrdapplication.cpp.
References m_Experiments.
Referenced by QxrdWindow::populateExperimentsMenu().
QcepAllocatorWPtr QxrdApplication::allocator | ( | ) | const |
Definition at line 650 of file qxrdapplication.cpp.
References m_Allocator.
Referenced by QxrdGlobalPreferencesDialog::accept(), init(), and QxrdGlobalPreferencesDialog::QxrdGlobalPreferencesDialog().
void QxrdApplication::appendRecentExperiment | ( | QString | path | ) |
Definition at line 873 of file qxrdapplication.cpp.
Referenced by openedExperiment().
|
slot |
Definition at line 828 of file qxrdapplication.cpp.
References openExperiment().
Referenced by QxrdWindow::initialize(), and QxrdWelcomeWindow::QxrdWelcomeWindow().
|
slot |
Definition at line 823 of file qxrdapplication.cpp.
References openWelcomeWindow().
Referenced by QxrdWindow::initialize(), and QxrdWelcomeWindow::QxrdWelcomeWindow().
|
slot |
Definition at line 1014 of file qxrdapplication.cpp.
References m_Experiments, and m_ExperimentThreads.
Referenced by closeExperiment().
|
slot |
Definition at line 856 of file qxrdapplication.cpp.
References closedExperiment(), DEBUG_APP, and qcepDebug().
|
slot |
Definition at line 309 of file qxrdapplication.cpp.
References GUI_THREAD_CHECK, and m_WelcomeWindow.
Referenced by openedExperiment().
|
slot |
Definition at line 526 of file qxrdapplication.cpp.
References experiment(), INVOKE_CHECK, and logMessage().
Referenced by tiffError(), and tiffWarning().
|
slot |
Definition at line 544 of file qxrdapplication.cpp.
|
slot |
Definition at line 723 of file qxrdapplication.cpp.
References g_DebugLevel, and printMessage().
Referenced by init().
|
slot |
Definition at line 655 of file qxrdapplication.cpp.
References STR.
Referenced by QxrdWindow::initialize().
|
slot |
Definition at line 594 of file qxrdapplication.cpp.
References loadPreferences().
Referenced by QxrdWindow::initialize().
|
slot |
Definition at line 706 of file qxrdapplication.cpp.
Referenced by QxrdWindow::initialize().
|
slot |
Definition at line 711 of file qxrdapplication.cpp.
|
slot |
Definition at line 611 of file qxrdapplication.cpp.
References savePreferences().
Referenced by QxrdWindow::initialize().
|
slot |
Definition at line 716 of file qxrdapplication.cpp.
Referenced by init(), QxrdWindow::initialize(), and QxrdWelcomeWindow::QxrdWelcomeWindow().
bool QxrdApplication::event | ( | QEvent * | ev | ) |
Definition at line 780 of file qxrdapplication.cpp.
References printMessage().
|
slot |
Definition at line 1031 of file qxrdapplication.cpp.
References m_Experiments.
Referenced by criticalMessage(), printMessage(), statusMessage(), and warningMessage().
|
slot |
Definition at line 1026 of file qxrdapplication.cpp.
References m_Experiments.
|
slot |
Definition at line 283 of file qxrdapplication.cpp.
References DEBUG_APP, m_AllocatorThread, m_Experiments, m_ExperimentThreads, printMessage(), qcepDebug(), and writeSettings().
Referenced by init().
|
privateslot |
Definition at line 472 of file qxrdapplication.cpp.
References GUI_THREAD_CHECK, and m_Splash.
Referenced by init().
|
slot |
Definition at line 539 of file qxrdapplication.cpp.
void QxrdApplication::incLockerCount | ( | ) |
Definition at line 1145 of file qxrdapplication.cpp.
bool QxrdApplication::init | ( | QxrdApplicationWPtr | app, |
int & | argc, | ||
char ** | argv | ||
) |
Definition at line 144 of file qxrdapplication.cpp.
References allocator(), argc, debugChanged(), editGlobalPreferences(), finish(), hideSplash(), loadPlugins(), lockerTimerElapsed(), m_Allocator, m_AllocatorThread, m_Application, m_LastLockerTime, m_LockerTimer, m_Saver, m_SplashTimer, openExperiment(), openWelcomeWindow(), printMessage(), readSettings(), setupTiffHandlers(), STR, and QcepInt64Property::valueChanged().
void QxrdApplication::loadPlugins | ( | ) |
Definition at line 345 of file qxrdapplication.cpp.
References DEBUG_PLUGINS, m_NIDAQPluginInterface, printMessage(), qcepDebug(), splashMessage(), and xstr.
Referenced by init().
|
slot |
Definition at line 604 of file qxrdapplication.cpp.
References readSettings().
Referenced by doLoadPreferences().
|
slot |
Definition at line 1150 of file qxrdapplication.cpp.
References m_LastLockerCount, m_LastLockerTime, and printMessage().
Referenced by init().
|
slot |
Definition at line 481 of file qxrdapplication.cpp.
Referenced by criticalMessage(), printMessage(), and statusMessage().
QStringList QxrdApplication::makeStringListFromArgs | ( | int | argc, |
char ** | argv | ||
) |
QxrdNIDAQPluginInterfacePtr QxrdApplication::nidaqPlugin | ( | ) |
Definition at line 337 of file qxrdapplication.cpp.
References m_NIDAQPluginInterface.
QString QxrdApplication::normalizeExperimentName | ( | QString | filename | ) |
Definition at line 887 of file qxrdapplication.cpp.
|
slot |
Definition at line 988 of file qxrdapplication.cpp.
References appendRecentExperiment(), closeWelcomeWindow(), m_Experiments, m_ExperimentThreads, and printMessage().
Referenced by openExperiment().
|
slot |
Definition at line 840 of file qxrdapplication.cpp.
References m_Application, QxrdExperimentThread::newExperiment(), openedExperiment(), and printMessage().
Referenced by chooseExistingExperiment(), init(), QxrdWelcomeWindow::openMostRecent(), and openRecentExperiment().
|
slot |
Definition at line 977 of file qxrdapplication.cpp.
References openExperiment(), and printMessage().
Referenced by QxrdWindow::populateRecentExperimentsMenu(), and QxrdWelcomeWindow::QxrdWelcomeWindow().
|
slot |
Definition at line 297 of file qxrdapplication.cpp.
References GUI_THREAD_CHECK, and m_WelcomeWindow.
Referenced by chooseNewExperiment(), and init().
|
slot |
Definition at line 636 of file qxrdapplication.cpp.
References wantToQuit().
Referenced by QxrdWindow::initialize(), and QxrdWelcomeWindow::QxrdWelcomeWindow().
|
slot |
Definition at line 492 of file qxrdapplication.cpp.
References DEBUG_NOMESSAGES, experiment(), INVOKE_CHECK, logMessage(), and qcepDebug().
Referenced by debugChanged(), event(), finish(), init(), loadPlugins(), lockerTimerElapsed(), openedExperiment(), openExperiment(), openRecentExperiment(), processEventCounter(), QxrdGlobalSettings::QxrdGlobalSettings(), and QxrdGlobalSettings::~QxrdGlobalSettings().
|
slot |
Definition at line 78 of file qxrdapplication.cpp.
References DEBUG_APP, eventCounter, printMessage(), and qcepDebug().
void QxrdApplication::readDefaultSettings | ( | ) |
Definition at line 805 of file qxrdapplication.cpp.
|
slot |
Definition at line 554 of file qxrdapplication.cpp.
References m_SettingsMutex.
Referenced by init(), and loadPreferences().
|
slot |
Definition at line 563 of file qxrdapplication.cpp.
References m_Allocator, and QcepProperty::readSettings().
|
slot |
Definition at line 549 of file qxrdapplication.cpp.
|
slot |
Definition at line 621 of file qxrdapplication.cpp.
References writeSettings().
Referenced by doSavePreferences().
|
virtualslot |
void QxrdApplication::setNewExperimentSettings | ( | QSettings & | settings, |
int | type, | ||
QString | filename | ||
) |
Definition at line 899 of file qxrdapplication.cpp.
|
private |
Definition at line 754 of file qxrdapplication.cpp.
References qxrdTIFFErrorHandler(), and qxrdTIFFWarningHandler().
Referenced by init().
|
slot |
Definition at line 448 of file qxrdapplication.cpp.
References GUI_THREAD_CHECK, m_Splash, m_SplashTimer, and STR.
Referenced by loadPlugins().
|
slot |
Definition at line 510 of file qxrdapplication.cpp.
References DEBUG_NOMESSAGES, experiment(), INVOKE_CHECK, logMessage(), and qcepDebug().
void QxrdApplication::tiffError | ( | const char * | module, |
const char * | msg | ||
) |
Definition at line 771 of file qxrdapplication.cpp.
References criticalMessage(), and g_Application.
Referenced by qxrdTIFFErrorHandler().
void QxrdApplication::tiffWarning | ( | const char * | module, |
const char * | msg | ||
) |
Definition at line 762 of file qxrdapplication.cpp.
References criticalMessage(), and g_Application.
bool QxrdApplication::wantToQuit | ( | ) |
Definition at line 643 of file qxrdapplication.cpp.
Referenced by possiblyQuit().
|
slot |
Definition at line 485 of file qxrdapplication.cpp.
References experiment(), and INVOKE_CHECK.
void QxrdApplication::writeDefaultSettings | ( | ) |
Definition at line 814 of file qxrdapplication.cpp.
|
slot |
Definition at line 574 of file qxrdapplication.cpp.
References m_SettingsMutex.
Referenced by finish(), and savePreferences().
|
slot |
Definition at line 583 of file qxrdapplication.cpp.
References m_Allocator, and QcepProperty::writeSettings().
|
private |
Definition at line 202 of file qxrdapplication.h.
Referenced by allocator(), init(), readSettings(), and writeSettings().
|
private |
Definition at line 201 of file qxrdapplication.h.
|
private |
Definition at line 193 of file qxrdapplication.h.
Referenced by init(), and openExperiment().
|
private |
Definition at line 195 of file qxrdapplication.h.
Referenced by activateExperiment(), closedExperiment(), experiment(), experiments(), finish(), and openedExperiment().
|
private |
Definition at line 194 of file qxrdapplication.h.
Referenced by closedExperiment(), finish(), and openedExperiment().
|
private |
Definition at line 213 of file qxrdapplication.h.
Referenced by lockerTimerElapsed().
|
private |
Definition at line 212 of file qxrdapplication.h.
Referenced by init(), and lockerTimerElapsed().
|
private |
Definition at line 211 of file qxrdapplication.h.
Referenced by init().
|
private |
Definition at line 203 of file qxrdapplication.h.
Referenced by loadPlugins(), and nidaqPlugin().
|
private |
Definition at line 134 of file qxrdapplication.h.
|
private |
Definition at line 207 of file qxrdapplication.h.
|
private |
Definition at line 135 of file qxrdapplication.h.
Referenced by init(), and ~QxrdApplication().
|
private |
Definition at line 209 of file qxrdapplication.h.
Referenced by readSettings(), and writeSettings().
|
private |
Definition at line 198 of file qxrdapplication.h.
Referenced by hideSplash(), and splashMessage().
|
private |
Definition at line 197 of file qxrdapplication.h.
Referenced by init(), and splashMessage().
|
private |
Definition at line 200 of file qxrdapplication.h.
Referenced by closeWelcomeWindow(), and openWelcomeWindow().
|
readwrite |
Definition at line 168 of file qxrdapplication.h.
Referenced by init(), and makeStringListFromArgs().
|
readwrite |
Definition at line 171 of file qxrdapplication.h.
|
readwrite |
Definition at line 180 of file qxrdapplication.h.
|
readwrite |
Definition at line 147 of file qxrdapplication.h.
|
readwrite |
Definition at line 144 of file qxrdapplication.h.
|
readwrite |
Definition at line 153 of file qxrdapplication.h.
|
readwrite |
Definition at line 159 of file qxrdapplication.h.
|
readwrite |
Definition at line 183 of file qxrdapplication.h.
|
readwrite |
Definition at line 156 of file qxrdapplication.h.
|
readwrite |
Definition at line 174 of file qxrdapplication.h.
|
readwrite |
Definition at line 186 of file qxrdapplication.h.
|
readwrite |
Definition at line 189 of file qxrdapplication.h.
|
readwrite |
Definition at line 162 of file qxrdapplication.h.
|
readwrite |
Definition at line 138 of file qxrdapplication.h.
|
readwrite |
Definition at line 141 of file qxrdapplication.h.
|
readwrite |
Definition at line 177 of file qxrdapplication.h.
|
readwrite |
Definition at line 165 of file qxrdapplication.h.