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);
121 QString nodeModule(
vtkMRMLNode* node,
double *confidence=
nullptr)
const;
123 Q_INVOKABLE ctkSettingsDialog* settingsDialog()
const;
124 Q_INVOKABLE
void openSettingsDialog(
const QString& settingsPanel=QString());
142 Q_INVOKABLE
virtual void logApplicationInformation()
const;
144 #ifdef Slicer_BUILD_DICOM_SUPPORT 145 Q_INVOKABLE ctkDICOMBrowser* createDICOMBrowserForMainDatabase();
151 Q_INVOKABLE
static unsigned long int windowsOSBuildNumber();
155 Q_INVOKABLE
static unsigned int windowsActiveCodePage();
160 Q_INVOKABLE
static bool isCodePageUtf8();
169 void openNodeModule(
vtkMRMLNode* node, QString role=QString(), QString context=QString());
173 void confirmRestart(QString reason = QString());
177 bool launchDesigner(
const QStringList& args = QStringList());
179 #ifdef Slicer_BUILD_EXTENSIONMANAGER_SUPPORT 180 void openExtensionsManagerDialog();
184 void openExtensionsCatalogWebsite();
188 int numberOfRecentLogFilesToKeep();
191 QStringList recentLogFiles();
195 QString currentLogFile()
const;
203 void setHasBorderInFullScreen(
bool);
234 void startupCompleted();
240 void renderPaused(
bool);
245 void editNode(vtkObject*,
void*,
unsigned long)
override;
255 void setupFileLogging();
virtual void resumeRender()
virtual void onSlicerApplicationLogicModified()
virtual void pauseRender()
virtual bool loadFiles(const QStringList &filePaths, vtkMRMLMessageCollection *userMessages=nullptr)
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.