Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions
qSlicerApplicationHelper Class Reference

#include <Base/QTApp/qSlicerApplicationHelper.h>

Inheritance diagram for qSlicerApplicationHelper:
Inheritance graph
[legend]
Collaboration diagram for qSlicerApplicationHelper:
Collaboration graph
[legend]

Public Types

typedef qSlicerApplicationHelper Self
 
typedef QObject Superclass
 

Public Member Functions

 qSlicerApplicationHelper (QObject *parent=nullptr)
 
 ~qSlicerApplicationHelper () override
 

Static Public Member Functions

static Q_INVOKABLE bool checkRenderingCapabilities ()
 
template<typename SlicerMainWindowType >
static int postInitializeApplication (qSlicerApplication &app, QScopedPointer< QSplashScreen > &splashScreen, QScopedPointer< SlicerMainWindowType > &window)
 
static void preInitializeApplication (const char *argv0, ctkProxyStyle *style)
 
static Q_INVOKABLE int runAsAdmin (QString executable, QString parameters=QString(), QString workingDir=QString())
 
static void setupModuleFactoryManager (qSlicerModuleFactoryManager *moduleFactoryManager)
 
static void showMRMLEventLoggerWidget ()
 

Detailed Description

Definition at line 37 of file qSlicerApplicationHelper.h.

Member Typedef Documentation

◆ Self

Definition at line 42 of file qSlicerApplicationHelper.h.

◆ Superclass

Definition at line 41 of file qSlicerApplicationHelper.h.

Constructor & Destructor Documentation

◆ qSlicerApplicationHelper()

qSlicerApplicationHelper::qSlicerApplicationHelper ( QObject *  parent = nullptr)

◆ ~qSlicerApplicationHelper()

qSlicerApplicationHelper::~qSlicerApplicationHelper ( )
override

Member Function Documentation

◆ checkRenderingCapabilities()

static Q_INVOKABLE bool qSlicerApplicationHelper::checkRenderingCapabilities ( )
static

Display a warning popup if rendering capabilities do not meet requirements. If user chooses not to continue then this method returns false. Known limitation: currently this method only works reliably on Windows operating system. See more information at https://issues.slicer.org/view.php?id=4252

◆ postInitializeApplication()

template<typename SlicerMainWindowType >
static int qSlicerApplicationHelper::postInitializeApplication ( qSlicerApplication app,
QScopedPointer< QSplashScreen > &  splashScreen,
QScopedPointer< SlicerMainWindowType > &  window 
)
static

Perform initialization steps on the application.

Returns
If return value is non-zero then the application will terminate using the returned value as exit code.

◆ preInitializeApplication()

static void qSlicerApplicationHelper::preInitializeApplication ( const char *  argv0,
ctkProxyStyle *  style 
)
static

◆ runAsAdmin()

static Q_INVOKABLE int qSlicerApplicationHelper::runAsAdmin ( QString  executable,
QString  parameters = QString(),
QString  workingDir = QString() 
)
static

Run command as administrator (UAC on Windows, sudo on linux) Currently only works on Windows. Returns error code (0=success).

◆ setupModuleFactoryManager()

static void qSlicerApplicationHelper::setupModuleFactoryManager ( qSlicerModuleFactoryManager moduleFactoryManager)
static

◆ showMRMLEventLoggerWidget()

static void qSlicerApplicationHelper::showMRMLEventLoggerWidget ( )
static

The documentation for this class was generated from the following file: