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;
52 #ifdef Slicer_BUILD_DICOM_SUPPORT 53 class ctkDICOMBrowser;
82 bool notify(QObject * receiver, QEvent * event)
override;
90 #ifdef Slicer_USE_PYTHONQT 93 Q_INVOKABLE ctkPythonConsole * pythonConsole();
96 #ifdef Slicer_USE_QtTesting 97 Q_INVOKABLE ctkQtTestingUtility* testingUtility();
106 QMainWindow* mainWindow()
const;
114 void setToolTipsEnabled(
bool enable);
119 Q_INVOKABLE ctkSettingsDialog* settingsDialog()
const;
138 Q_INVOKABLE
virtual void logApplicationInformation()
const;
140 #ifdef Slicer_BUILD_DICOM_SUPPORT 141 Q_INVOKABLE ctkDICOMBrowser* createDICOMBrowserForMainDatabase();
147 Q_INVOKABLE
static unsigned long int windowsOSBuildNumber();
151 Q_INVOKABLE
static unsigned int windowsActiveCodePage();
156 Q_INVOKABLE
static bool isCodePageUtf8();
169 void confirmRestart(QString reason = QString());
173 bool launchDesigner(
const QStringList& args = QStringList());
175 #ifdef Slicer_BUILD_EXTENSIONMANAGER_SUPPORT 176 void openExtensionsManagerDialog();
180 int numberOfRecentLogFilesToKeep();
183 QStringList recentLogFiles();
187 QString currentLogFile()
const;
195 void setHasBorderInFullScreen(
bool);
223 void startupCompleted();
229 void renderPaused(
bool);
234 void editNode(vtkObject*,
void*,
unsigned long)
override;
244 void setupFileLogging();
virtual void resumeRender()
virtual void onSlicerApplicationLogicModified()
virtual void pauseRender()
static qSlicerCoreApplication * application()
void Q_SLICER_BASE_QTGUI_EXPORT qSlicerApplyPalette(QPalette &palette)
qSlicerCoreApplication Superclass
virtual void handleCommandLineArguments()
virtual void setRenderPaused(bool pause)
virtual void editNode(vtkObject *, void *, unsigned long)
virtual void handlePreApplicationCommandLineArguments()
Abstract Superclass for all specific types of MRML nodes.