Medical Imaging Interaction Toolkit  2016.11.0
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 ()
 
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 35 of file QmitkExtWorkbenchWindowAdvisor.h.

Constructor & Destructor Documentation

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

Definition at line 404 of file QmitkExtWorkbenchWindowAdvisor.cpp.

QmitkExtWorkbenchWindowAdvisor::~QmitkExtWorkbenchWindowAdvisor ( )

Definition at line 424 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Member Function Documentation

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 428 of file QmitkExtWorkbenchWindowAdvisor.cpp.

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

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 443 of file QmitkExtWorkbenchWindowAdvisor.cpp.

QList< QString > QmitkExtWorkbenchWindowAdvisor::GetPerspectiveExcludeList ( )

Definition at line 1344 of file QmitkExtWorkbenchWindowAdvisor.cpp.

bool QmitkExtWorkbenchWindowAdvisor::GetShowClosePerspectiveMenuItem ( )

Definition at line 460 of file QmitkExtWorkbenchWindowAdvisor.cpp.

bool QmitkExtWorkbenchWindowAdvisor::GetShowMemoryIndicator ( )

Definition at line 470 of file QmitkExtWorkbenchWindowAdvisor.cpp.

QList< QString > QmitkExtWorkbenchWindowAdvisor::GetViewExcludeList ( )

Definition at line 1354 of file QmitkExtWorkbenchWindowAdvisor.cpp.

void QmitkExtWorkbenchWindowAdvisor::onAbout ( )
protectedvirtualslot

Definition at line 938 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

void QmitkExtWorkbenchWindowAdvisor::onHelp ( )
protectedvirtualslot

Definition at line 928 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

void QmitkExtWorkbenchWindowAdvisor::onHelpOpenHelpPerspective ( )
protectedvirtualslot

Definition at line 933 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

void QmitkExtWorkbenchWindowAdvisor::onIntro ( )
protectedvirtualslot

Definition at line 923 of file QmitkExtWorkbenchWindowAdvisor.cpp.

Referenced by PostWindowCreate().

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 1359 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::WorkbenchWindowAdvisor::GetWindowConfigurer().

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 515 of file QmitkExtWorkbenchWindowAdvisor.cpp.

References berry::IPerspectiveRegistry::GetPerspectives(), berry::Platform::GetPreferencesService(), berry::IPreferencesService::GetSystemPreferences(), berry::IWorkbench::GetViewRegistry(), berry::IViewRegistry::GetViews(), berry::WorkbenchWindowAdvisor::GetWindowConfigurer(), berry::PlatformUI::GetWorkbench(), onAbout(), onHelp(), onHelpOpenHelpPerspective(), onIntro(), PartListenerForImageNavigator, PartListenerForViewNavigator, perspectives, berry::QtPreferences::QT_ICON_THEME, berry::QtPreferences::QT_STYLES_NODE, and USE_EXPERIMENTAL_COMMAND_CONTRIBUTIONS.

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 903 of file QmitkExtWorkbenchWindowAdvisor.cpp.

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

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 876 of file QmitkExtWorkbenchWindowAdvisor.cpp.

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

void QmitkExtWorkbenchWindowAdvisor::SetPerspectiveExcludeList ( const QList< QString > &  v)
void QmitkExtWorkbenchWindowAdvisor::SetProductName ( const QString &  product)
void QmitkExtWorkbenchWindowAdvisor::SetViewExcludeList ( const QList< QString > &  v)
void QmitkExtWorkbenchWindowAdvisor::SetWindowIcon ( const QString &  wndIcon)
void QmitkExtWorkbenchWindowAdvisor::ShowClosePerspectiveMenuItem ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowMemoryIndicator ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowMitkVersionInfo ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowNewWindowMenuItem ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowPerspectiveToolbar ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowVersionInfo ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowViewMenuItem ( bool  show)
void QmitkExtWorkbenchWindowAdvisor::ShowViewToolbar ( bool  show)

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