1 #ifndef QXRDAPPLICATION_H
2 #define QXRDAPPLICATION_H
23 #ifdef HAVE_PERKIN_ELMER
39 #ifdef HAVE_PERKIN_ELMER
47 void tiffWarning(
const char* module,
const char *msg);
48 void tiffError(
const char* module,
const char *msg);
52 bool event(QEvent *ev);
106 void warningMessage(QString msg, QDateTime ts=QDateTime::currentDateTime());
107 void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime());
108 void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime());
109 void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime());
138 Q_PROPERTY(QStringList
recentExperiments READ get_RecentExperiments WRITE set_RecentExperiments)
153 Q_PROPERTY(qint64
debug READ get_Debug WRITE set_Debug)
156 Q_PROPERTY(
int freshStart READ get_FreshStart WRITE set_FreshStart STORED false)
168 Q_PROPERTY(
int argc READ get_Argc WRITE set_Argc STORED false)
171 Q_PROPERTY(QStringList argv READ get_Argv WRITE set_Argv STORED false)
174 Q_PROPERTY(
int guiWanted READ get_GuiWanted WRITE set_GuiWanted STORED false)
177 Q_PROPERTY(
int startDetectors READ get_StartDetectors WRITE set_StartDetectors STORED false)
180 Q_PROPERTY(QStringList
cmdList READ get_CmdList WRITE set_CmdList STORED false)
183 Q_PROPERTY(QStringList
fileList READ get_FileList WRITE set_FileList STORED false)
186 Q_PROPERTY(
int lockerCount READ get_LockerCount WRITE set_LockerCount STORED false)
189 Q_PROPERTY(
double lockerRate READ get_LockerRate WRITE set_LockerRate STORED false)
204 #ifdef HAVE_PERKIN_ELMER
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
void tiffError(const char *module, const char *msg)
QcepAllocatorWPtr m_Allocator
virtual ~QxrdApplication()
void appendRecentExperiment(QString path)
QxrdApplication(int &argc, char **argv)
void activateExperiment(QString path)
void lockerTimerElapsed()
QxrdExperimentPtr experiment(int i)
bool init(QxrdApplicationWPtr app, int &argc, char **argv)
void doOpenURL(QString url)
#define QCEP_DOUBLE_PROPERTY(propname)
void savePreferences(QString path)
void chooseExistingExperiment()
QList< QxrdExperimentWPtr > m_Experiments
void writeDefaultSettings()
QString currentExperiment
QSharedPointer< QxrdPerkinElmerPluginInterface > QxrdPerkinElmerPluginInterfacePtr
void debugChanged(qint64 newValue)
QList< QxrdExperimentWPtr > & experiments()
QxrdResponseTimer * m_ResponseTimer
int recentExperimentsSize
QxrdApplicationWPtr m_Application
void editGlobalPreferences()
QStringList makeStringListFromArgs(int argc, char **argv)
void openedExperiment(QxrdExperimentThreadPtr expthrdw)
void logMessage(QString msg)
QWeakPointer< QxrdApplication > QxrdApplicationWPtr
void tiffWarning(const char *module, const char *msg)
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
void openRecentExperiment(QString path)
#define QCEP_STRING_LIST_PROPERTY(propname)
QxrdWelcomeWindowPtr m_WelcomeWindow
QcepObjectNamer m_ObjectNamer
QSharedPointer< QcepAllocatorThread > QcepAllocatorThreadPtr
QStringList recentExperiments
QSharedPointer< QxrdExperimentThread > QxrdExperimentThreadPtr
QxrdNIDAQPluginInterfacePtr nidaqPlugin()
void processEventCounter()
QcepAllocatorThreadPtr m_AllocatorThread
#define QCEP_INTEGER_PROPERTY(propname)
QString normalizeExperimentName(QString filename)
void warningMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
void splashMessage(QString msg)
void setNewExperimentSettings(QSettings &settings, int type, QString filename)
void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
#define QCEP_STRING_PROPERTY(propname)
void loadPreferences(QString path)
QWeakPointer< QcepAllocator > QcepAllocatorWPtr
QSharedPointer< QcepSettingsSaver > QcepSettingsSaverPtr
void closeWelcomeWindow()
QSharedPointer< QxrdNIDAQPluginInterface > QxrdNIDAQPluginInterfacePtr
void chooseNewExperiment()
#define QCEP_INTEGER64_PROPERTY(propname)
void statusMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
virtual void setDefaultObjectData(QcepDataObject *obj)
void closedExperiment(QxrdExperimentThreadPtr expthrdw)
void criticalMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())
QList< QxrdExperimentThreadPtr > m_ExperimentThreads
QSharedPointer< QxrdSplashScreen > QxrdSplashScreenPtr
void readDefaultSettings()
QcepAllocatorWPtr allocator() const
QxrdNIDAQPluginInterfacePtr m_NIDAQPluginInterface
void closeExperiment(QxrdExperimentWPtr exp)
void openExperiment(QString path)
QxrdSplashScreenPtr m_Splash
QcepSettingsSaverPtr m_Saver