IView Class Reference
[GUI_FRAMEWORK]

Search Toolkit Book for IView

#include <view.hpp>

Inheritance diagram for IView:

Inheritance graph
[legend]
List of all members.

Detailed Description

IView - represents a standard visual part of Workbench UI.

IView usually implements other UI-related interfaces such as IWMClient, IMenuContributor, IToolBarContext, IHelpContext etc.

IView lifetime shall be managed using CIRef and CRef smart pointers. Because of this classes that implement IView shall not derive from wxWindow. wxWindow has its own lifetime management policy that is not compatible with smart pointers.

It is recommended that all classes inherited from IView implement IRegSettings interface, this will allow the framework to save / restore view's settings automatically.

Definition at line 72 of file view.hpp.

Public Member Functions

virtual ~IView ()
virtual const CViewTypeDescriptorGetTypeDescriptor () const =0
 return an object providing meta information about thei view type
virtual void SetWorkbench (IWorkbench *workbench)=0
 connect / disconnect this view with / from Workbench
virtual void CreateViewWindow (wxWindow *parent)=0
 create Window corresponding to the view
virtual void DestroyViewWindow ()=0
 destroy Window corresponding to the view


Constructor & Destructor Documentation

virtual IView::~IView  )  [inline, virtual]
 

Definition at line 75 of file view.hpp.


Member Function Documentation

virtual void IView::CreateViewWindow wxWindow *  parent  )  [pure virtual]
 

create Window corresponding to the view

Implemented in CDataMiningView, CProjectTreeView, CProjectViewBase, CSelectionView, CwxGLTestView, CClockView, CDiagConsoleView, CEventView, CTaskView, CAlignSpanView, CAnnotCompareView, CCrossAlignView, CDotMatrixView, CMPCrossAlignView, CMultiAlignView, CPhyTreeView, CSeqTextView, CTextView, CFeatTableView, CViewGraphic, and CSnpTableView.

Referenced by CViewManagerService::x_DoAddToWorkbench().

virtual void IView::DestroyViewWindow  )  [pure virtual]
 

destroy Window corresponding to the view

Implemented in CDataMiningView, CProjectTreeView, CProjectViewBase, CSelectionView, CwxGLTestView, CClockView, CDiagConsoleView, CEventView, CTaskView, CAlignSpanView, CAnnotCompareView, CCrossAlignView, CDotMatrixView, CMPCrossAlignView, CMultiAlignView, CPhyTreeView, CSeqTextView, CTextView, CFeatTableView, CViewGraphic, and CSnpTableView.

virtual const CViewTypeDescriptor& IView::GetTypeDescriptor  )  const [pure virtual]
 

return an object providing meta information about thei view type

Implemented in CDataMiningView, CProjectTreeView, CProjectViewBase, CSelectionView, CwxGLTestView, CClockView, CDiagConsoleView, CEventView, CTaskView, CAlignSpanView, CAnnotCompareView, CCrossAlignView, CDotMatrixView, CMPCrossAlignView, CMultiAlignView, CPhyTreeView, CSeqTextView, CTextView, CFeatTableView, CViewGraphic, and CSnpTableView.

Referenced by CViewManagerService::AddToWorkbench(), CAppExplorerService::x_CreateProjectViewTreeItem(), CViewManagerService::x_DoRemoveViewFromWorkbench(), and CViewManagerService::x_GetViewRegistryPath().

virtual void IView::SetWorkbench IWorkbench workbench  )  [pure virtual]
 

connect / disconnect this view with / from Workbench

Implemented in CDataMiningView, CProjectTreeView, CProjectViewBase, CProjectView, CSelectionView, CwxGLTestView, CClockView, CDiagConsoleView, CEventView, CTaskView, and CViewGraphic.

Referenced by CViewManagerService::x_DoRemoveViewFromWorkbench().


The documentation for this class was generated from the following file:
Generated on Wed Dec 9 08:12:50 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:20:14 2009 by modify_doxy.py rev. 173732