Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkExtWorkbenchWindowAdvisor Class Reference

#include <QmitkExtWorkbenchWindowAdvisor.h>

Inheritance diagram for QmitkExtWorkbenchWindowAdvisor:
Collaboration diagram for QmitkExtWorkbenchWindowAdvisor:

Public Member Functions

 QmitkExtWorkbenchWindowAdvisor (berry::WorkbenchAdvisor *wbAdvisor, berry::IWorkbenchWindowConfigurer::Pointer configurer)
 
 ~QmitkExtWorkbenchWindowAdvisor () override
 
berry::SmartPointer< berry::ActionBarAdvisorCreateActionBarAdvisor (berry::SmartPointer< berry::IActionBarConfigurer > configurer) override
 
QWidget * CreateEmptyWindowContents (QWidget *parent) override
 
void PostWindowCreate () override
 
void PreWindowOpen () override
 
void PostWindowOpen () override
 
void PostWindowClose () override
 
void ShowViewToolbar (bool show)
 
void ShowPerspectiveToolbar (bool show)
 
void ShowVersionInfo (bool show)
 
void ShowMitkVersionInfo (bool show)
 
void ShowViewMenuItem (bool show)
 
void ShowNewWindowMenuItem (bool show)
 
void ShowClosePerspectiveMenuItem (bool show)
 
bool GetShowClosePerspectiveMenuItem ()
 
void ShowMemoryIndicator (bool show)
 
bool GetShowMemoryIndicator ()
 
void SetProductName (const QString &product)
 
void SetWindowIcon (const QString &wndIcon)
 
void SetPerspectiveExcludeList (const QList< QString > &v)
 
QList< QString > GetPerspectiveExcludeList ()
 
void SetViewExcludeList (const QList< QString > &v)
 
QList< QString > GetViewExcludeList ()
 
- Public Member Functions inherited from berry::WorkbenchWindowAdvisor
 WorkbenchWindowAdvisor (const SmartPointer< IWorkbenchWindowConfigurer > &configurer)
 
virtual ~WorkbenchWindowAdvisor ()
 
virtual void PostWindowRestore ()
 
virtual void OpenIntro ()
 
virtual bool PreWindowShellClose ()
 
virtual void CreateWindowContents (SmartPointer< Shell > shell)
 
virtual bool SaveState (SmartPointer< IMemento > memento)
 
virtual bool RestoreState (SmartPointer< IMemento > memento)
 

Protected Slots

virtual void onIntro ()
 
virtual void onHelp ()
 
virtual void onHelpOpenHelpPerspective ()
 
virtual void onAbout ()
 

Additional Inherited Members

- Protected Member Functions inherited from berry::WorkbenchWindowAdvisor
SmartPointer< IWorkbenchWindowConfigurerGetWindowConfigurer ()
 

Detailed Description

Definition at line 31 of file QmitkExtWorkbenchWindowAdvisor.h.

Constructor & Destructor Documentation

◆ QmitkExtWorkbenchWindowAdvisor()

QmitkExtWorkbenchWindowAdvisor::QmitkExtWorkbenchWindowAdvisor ( berry::WorkbenchAdvisor wbAdvisor,
berry::IWorkbenchWindowConfigurer::Pointer  configurer 
)

Definition at line 424 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ~QmitkExtWorkbenchWindowAdvisor()

QmitkExtWorkbenchWindowAdvisor::~QmitkExtWorkbenchWindowAdvisor ( )
override

Definition at line 444 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Member Function Documentation

◆ CreateActionBarAdvisor()

berry::ActionBarAdvisor::Pointer QmitkExtWorkbenchWindowAdvisor::CreateActionBarAdvisor ( berry::SmartPointer< berry::IActionBarConfigurer configurer)
overridevirtual

Creates a new action bar advisor to configure the action bars of the window via the given action bar configurer. The default implementation returns a new instance of ActionBarAdvisor.

Parameters
configurerthe action bar configurer for the window
Returns
the action bar advisor for the window

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 448 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::WorkbenchWindowAdvisor::CreateActionBarAdvisor(), and USE_EXPERIMENTAL_COMMAND_CONTRIBUTIONS.

◆ CreateEmptyWindowContents()

QWidget * QmitkExtWorkbenchWindowAdvisor::CreateEmptyWindowContents ( QWidget *  parent)
overridevirtual

Creates and returns the control to be shown when the window has no open pages. If null is returned, the default window background is shown.

The default implementation returns null. Subclasses may override.

Parameters
parentthe parent composite
Returns
the control or null

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 461 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ GetPerspectiveExcludeList()

QList< QString > QmitkExtWorkbenchWindowAdvisor::GetPerspectiveExcludeList ( )

Definition at line 1398 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ GetShowClosePerspectiveMenuItem()

bool QmitkExtWorkbenchWindowAdvisor::GetShowClosePerspectiveMenuItem ( )

Definition at line 478 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ GetShowMemoryIndicator()

bool QmitkExtWorkbenchWindowAdvisor::GetShowMemoryIndicator ( )

Definition at line 488 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ GetViewExcludeList()

QList< QString > QmitkExtWorkbenchWindowAdvisor::GetViewExcludeList ( )

Definition at line 1408 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ onAbout

void QmitkExtWorkbenchWindowAdvisor::onAbout ( )
protectedvirtualslot

◆ onHelp

void QmitkExtWorkbenchWindowAdvisor::onHelp ( )
protectedvirtualslot

Definition at line 986 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

◆ onHelpOpenHelpPerspective

void QmitkExtWorkbenchWindowAdvisor::onHelpOpenHelpPerspective ( )
protectedvirtualslot

Definition at line 991 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

◆ onIntro

void QmitkExtWorkbenchWindowAdvisor::onIntro ( )
protectedvirtualslot

Definition at line 981 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

◆ PostWindowClose()

void QmitkExtWorkbenchWindowAdvisor::PostWindowClose ( )
overridevirtual

Performs arbitrary actions after the window is closed.

This method is called after the window's controls have been disposed. Clients must not call this method directly (although super calls are okay). The default implementation does nothing. Subclasses may override.

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 1413 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::WorkbenchWindowAdvisor::GetWindowConfigurer().

◆ PostWindowCreate()

void QmitkExtWorkbenchWindowAdvisor::PostWindowCreate ( )
overridevirtual

Performs arbitrary actions after the window has been created (possibly after being restored), but has not yet been opened.

This method is called after the window has been created from scratch, or when it has been restored from a previously-saved window. In the latter case, this method is called after PostWindowRestore(). Clients must not call this method directly (although super calls are okay). The default implementation does nothing. Subclasses may override.

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 533 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::WorkbenchPlugin::GetDefault(), berry::IPerspectiveRegistry::GetPerspectives(), berry::AbstractUICTKPlugin::GetPreferencesService(), berry::IWorkbench::GetViewRegistry(), berry::IViewRegistry::GetViews(), berry::WorkbenchWindowAdvisor::GetWindowConfigurer(), berry::PlatformUI::GetWorkbench(), onAbout(), onHelp(), onHelpOpenHelpPerspective(), onIntro(), PartListenerForImageNavigator, PartListenerForViewNavigator, perspectives, berry::QtPreferences::QT_SHOW_TOOLBAR_CATEGORY_NAMES, berry::QtPreferences::QT_STYLES_NODE, berry::QtStyleManager::ThemeIcon(), and USE_EXPERIMENTAL_COMMAND_CONTRIBUTIONS.

◆ PostWindowOpen()

void QmitkExtWorkbenchWindowAdvisor::PostWindowOpen ( )
overridevirtual

Performs arbitrary actions after the window has been opened (possibly after being restored).

This method is called after the window has been opened. This method is called after the window has been created from scratch, or when it has been restored from a previously-saved window. Clients must not call this method directly (although super calls are okay). The default implementation does nothing. Subclasses may override.

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 961 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References mitk::IDataStorageService::GetDataStorage(), berry::WorkbenchWindowAdvisor::GetWindowConfigurer(), mitk::WorkbenchUtil::OpenEditor(), and berry::WorkbenchWindowAdvisor::PostWindowOpen().

◆ PreWindowOpen()

void QmitkExtWorkbenchWindowAdvisor::PreWindowOpen ( )
overridevirtual

Performs arbitrary actions before the window is opened.

This method is called before the window's controls have been created. Clients must not call this method directly (although super calls are okay). The default implementation does nothing. Subclasses may override. Typical clients will use the window configurer to tweak the workbench window in an application-specific way; however, filling the window's menu bar, tool bar, and status line must be done in ActionBarAdvisor::FillActionBars(), which is called immediately after this method is called.

Reimplemented from berry::WorkbenchWindowAdvisor.

Definition at line 934 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::WorkbenchWindowAdvisor::GetWindowConfigurer(), and PerspectiveListenerForMenu.

◆ SetPerspectiveExcludeList()

void QmitkExtWorkbenchWindowAdvisor::SetPerspectiveExcludeList ( const QList< QString > &  v)

Definition at line 1393 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ SetProductName()

void QmitkExtWorkbenchWindowAdvisor::SetProductName ( const QString &  product)

Definition at line 523 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ SetViewExcludeList()

void QmitkExtWorkbenchWindowAdvisor::SetViewExcludeList ( const QList< QString > &  v)

Definition at line 1403 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ SetWindowIcon()

void QmitkExtWorkbenchWindowAdvisor::SetWindowIcon ( const QString &  wndIcon)

Definition at line 528 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowClosePerspectiveMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowClosePerspectiveMenuItem ( bool  show)

Definition at line 473 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowMemoryIndicator()

void QmitkExtWorkbenchWindowAdvisor::ShowMemoryIndicator ( bool  show)

Definition at line 483 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowMitkVersionInfo()

void QmitkExtWorkbenchWindowAdvisor::ShowMitkVersionInfo ( bool  show)

Definition at line 518 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowNewWindowMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowNewWindowMenuItem ( bool  show)

Definition at line 493 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowPerspectiveToolbar()

void QmitkExtWorkbenchWindowAdvisor::ShowPerspectiveToolbar ( bool  show)

Definition at line 508 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowVersionInfo()

void QmitkExtWorkbenchWindowAdvisor::ShowVersionInfo ( bool  show)

Definition at line 513 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowViewMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowViewMenuItem ( bool  show)

Definition at line 503 of file QmitkExtWorkbenchWindowAdvisor.cpp.

◆ ShowViewToolbar()

void QmitkExtWorkbenchWindowAdvisor::ShowViewToolbar ( bool  show)

Definition at line 498 of file QmitkExtWorkbenchWindowAdvisor.cpp.


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