21 #ifndef __qSlicerApplication_h 22 #define __qSlicerApplication_h 29 #include <ctkSettingsDialog.h> 35 #include "qSlicerBaseQTGUIExport.h" 38 class qSlicerApplicationPrivate;
41 #ifdef Slicer_USE_PYTHONQT 47 class ctkErrorLogModel;
48 #ifdef Slicer_USE_QtTesting 49 class ctkQtTestingUtility;
78 virtual bool notify(QObject * receiver, QEvent * event);
81 Q_INVOKABLE ctkErrorLogModel* errorLogModel()
const;
89 #ifdef Slicer_USE_PYTHONQT 92 Q_INVOKABLE ctkPythonConsole * pythonConsole();
95 #ifdef Slicer_USE_QtTesting 96 Q_INVOKABLE ctkQtTestingUtility* testingUtility();
105 QMainWindow* mainWindow()
const;
113 void setToolTipsEnabled(
bool enable);
118 Q_INVOKABLE ctkSettingsDialog* settingsDialog()
const;
137 Q_INVOKABLE
virtual void logApplicationInformation()
const;
150 void confirmRestart(QString reason = QString());
152 #ifdef Slicer_BUILD_EXTENSIONMANAGER_SUPPORT 153 void openExtensionsManagerDialog();
157 int numberOfRecentLogFilesToKeep();
160 QStringList recentLogFiles();
164 QString currentLogFile()
const;
172 void setHasBorderInFullScreen(
bool);
179 void setRenderPaused(
bool pause);
200 void startupCompleted();
206 void renderPaused(
bool);
216 void setupFileLogging();
virtual void onSlicerApplicationLogicModified()
static qSlicerCoreApplication * application()
Return a reference to the application singleton.
void Q_SLICER_BASE_QTGUI_EXPORT qSlicerApplyPalette(QPalette &palette)
qSlicerCoreApplication Superclass
virtual void handleCommandLineArguments()
virtual void handlePreApplicationCommandLineArguments()
Abstract Superclass for all specific types of MRML nodes.