NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Slots | Public Member Functions | Protected Member Functions | List of all members
niftk::BaseWorkbenchWindowAdvisor Class Reference
Inheritance diagram for niftk::BaseWorkbenchWindowAdvisor:
Inheritance graph
[legend]
Collaboration diagram for niftk::BaseWorkbenchWindowAdvisor:
Collaboration graph
[legend]

Public Slots

void OnHelpAbout ()
 Opens the Help About dialog box. More...
 

Public Member Functions

 BaseWorkbenchWindowAdvisor (berry::WorkbenchAdvisor *wbAdvisor, berry::IWorkbenchWindowConfigurer::Pointer configurer)
 
virtual void PreWindowOpen () override
 We override the base class PreWindowOpen to specifically set QmitkExtWorkbenchWindowAdvisor::showVersionInfo and QmitkExtWorkbenchWindowAdvisor::showMitkVersionInfo to false. More...
 
virtual void PostWindowCreate () override
 We override the base class PostWindowCreate to customise the About dialog box to call our QmitkHelpAboutDialog, and to remove the Welcome dialog box. More...
 

Protected Member Functions

void OpenEditor (const QString &editorName)
 Directly tries to open the given editor: use sparingly. More...
 
void OpenEditorIfEnvironmentVariableIsON (const std::string &envVariable, const QString &editorName)
 Checks if the environment variable contains a string value "ON" or "1", and if so tries to open the given editor. More...
 

Constructor & Destructor Documentation

niftk::BaseWorkbenchWindowAdvisor::BaseWorkbenchWindowAdvisor ( berry::WorkbenchAdvisor *  wbAdvisor,
berry::IWorkbenchWindowConfigurer::Pointer  configurer 
)

Member Function Documentation

void niftk::BaseWorkbenchWindowAdvisor::OnHelpAbout ( )
slot

Opens the Help About dialog box.

void niftk::BaseWorkbenchWindowAdvisor::OpenEditor ( const QString &  editorName)
protected

Directly tries to open the given editor: use sparingly.

void niftk::BaseWorkbenchWindowAdvisor::OpenEditorIfEnvironmentVariableIsON ( const std::string envVariable,
const QString &  editorName 
)
protected

Checks if the environment variable contains a string value "ON" or "1", and if so tries to open the given editor.

void niftk::BaseWorkbenchWindowAdvisor::PostWindowCreate ( )
overridevirtual

We override the base class PostWindowCreate to customise the About dialog box to call our QmitkHelpAboutDialog, and to remove the Welcome dialog box.

Reimplemented in niftk::NiftyMIDASWorkbenchWindowAdvisor, and niftk::NiftyViewWorkbenchWindowAdvisor.

void niftk::BaseWorkbenchWindowAdvisor::PreWindowOpen ( )
overridevirtual

We override the base class PreWindowOpen to specifically set QmitkExtWorkbenchWindowAdvisor::showVersionInfo and QmitkExtWorkbenchWindowAdvisor::showMitkVersionInfo to false.


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