Medical Imaging Interaction Toolkit  2023.04.00
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 
)

◆ ~QmitkExtWorkbenchWindowAdvisor()

QmitkExtWorkbenchWindowAdvisor::~QmitkExtWorkbenchWindowAdvisor ( )
override

Member Function Documentation

◆ CreateActionBarAdvisor()

berry::SmartPointer<berry::ActionBarAdvisor> 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.

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

◆ GetPerspectiveExcludeList()

QList<QString> QmitkExtWorkbenchWindowAdvisor::GetPerspectiveExcludeList ( )

◆ GetShowClosePerspectiveMenuItem()

bool QmitkExtWorkbenchWindowAdvisor::GetShowClosePerspectiveMenuItem ( )

◆ GetShowMemoryIndicator()

bool QmitkExtWorkbenchWindowAdvisor::GetShowMemoryIndicator ( )

◆ GetViewExcludeList()

QList<QString> QmitkExtWorkbenchWindowAdvisor::GetViewExcludeList ( )

◆ onAbout

virtual void QmitkExtWorkbenchWindowAdvisor::onAbout ( )
protectedvirtualslot

◆ onHelp

virtual void QmitkExtWorkbenchWindowAdvisor::onHelp ( )
protectedvirtualslot

◆ onHelpOpenHelpPerspective

virtual void QmitkExtWorkbenchWindowAdvisor::onHelpOpenHelpPerspective ( )
protectedvirtualslot

◆ onIntro

virtual void QmitkExtWorkbenchWindowAdvisor::onIntro ( )
protectedvirtualslot

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

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

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

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

◆ SetPerspectiveExcludeList()

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

◆ SetProductName()

void QmitkExtWorkbenchWindowAdvisor::SetProductName ( const QString &  product)

◆ SetViewExcludeList()

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

◆ SetWindowIcon()

void QmitkExtWorkbenchWindowAdvisor::SetWindowIcon ( const QString &  wndIcon)

◆ ShowClosePerspectiveMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowClosePerspectiveMenuItem ( bool  show)

◆ ShowMemoryIndicator()

void QmitkExtWorkbenchWindowAdvisor::ShowMemoryIndicator ( bool  show)

◆ ShowMitkVersionInfo()

void QmitkExtWorkbenchWindowAdvisor::ShowMitkVersionInfo ( bool  show)

◆ ShowNewWindowMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowNewWindowMenuItem ( bool  show)

◆ ShowPerspectiveToolbar()

void QmitkExtWorkbenchWindowAdvisor::ShowPerspectiveToolbar ( bool  show)

◆ ShowVersionInfo()

void QmitkExtWorkbenchWindowAdvisor::ShowVersionInfo ( bool  show)

◆ ShowViewMenuItem()

void QmitkExtWorkbenchWindowAdvisor::ShowViewMenuItem ( bool  show)

◆ ShowViewToolbar()

void QmitkExtWorkbenchWindowAdvisor::ShowViewToolbar ( bool  show)

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