Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerApplicationHelper Class Reference

#include <Base/QTApp/qSlicerApplicationHelper.h>

Inheritance diagram for qSlicerApplicationHelper:
Collaboration diagram for qSlicerApplicationHelper:

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 void recordProcessEntryPointTime ()
 
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 38 of file qSlicerApplicationHelper.h.

Member Typedef Documentation

◆ Self

◆ Superclass

Definition at line 42 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

◆ recordProcessEntryPointTime()

static void qSlicerApplicationHelper::recordProcessEntryPointTime ( )
static

Record the time when the process entry point is reached. Meant to be the first statement of main() or WinMain(). Called from qSlicerApplicationMainWrapper.cxx, which every application includes into its own Main.cxx, so custom applications are measured without having to ask for it.

It is used for measuring the time that it takes for the operating system loader to create the process, map the executable, load dynamic libraries that are required for the main application, initialize the C runtime, etc.

◆ 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: