Search Toolkit Book for CProjectViewBase
CProjectViewBase - default implementation of IProjectView, the base class for CProjectView and CProjectViewComposite. More...
#include <gui/core/project_view_base_impl.hpp>
CProjectViewBase - default implementation of IProjectView, the base class for CProjectView and CProjectViewComposite.
Definition at line 63 of file project_view_base_impl.hpp.
◆ CProjectViewBase() CProjectViewBase::CProjectViewBase ( ) ◆ ~CProjectViewBase() ◆ CreateViewWindow() virtual void CProjectViewBase::CreateViewWindow ( wxWindow * parent ) pure virtualcreate Window corresponding to the view
Implements IView.
Implemented in CVcfTableView, CTextView, CAlnSummaryView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
Referenced by CMPCrossAlignView::InitView().
◆ DECLARE_EVENT_MAP() CProjectViewBase::DECLARE_EVENT_MAP ( ) private ◆ Destroy() void CProjectViewBase::Destroy ( void ) virtual ◆ DestroyView() void CProjectViewBase::DestroyView ( ) virtual ◆ DestroyViewWindow() virtual void CProjectViewBase::DestroyViewWindow ( ) pure virtualdestroy Window corresponding to the view
Implements IView.
Implemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
◆ eh_OnProjectChanged() void CProjectViewBase::eh_OnProjectChanged ( CEvent * event ) protectedprivate, non-virtual event handlers.
These functions are the primary direct handlers for the event handling mechanism and will forward event requests to public virtual functions on receipt
Definition at line 534 of file project_view_base_impl.cpp.
References _ASSERT, CProjectService::GetGBWorkspace(), CProjectViewEvent::GetProjectId(), IServiceLocator::GetServiceByType(), m_ProjectId, m_ProjectName, m_Workbench, OnProjectChanged(), RefreshViewWindow(), and x_UpdateContentLabel().
◆ eh_OnViewAttached() void CProjectViewBase::eh_OnViewAttached ( CEvent * event ) protected ◆ eh_OnViewReleased() void CProjectViewBase::eh_OnViewReleased ( CEvent * event ) protected ◆ GetClientLabel()returns the client label (name) to be displayed in UI
Implements IWMClient.
Definition at line 410 of file project_view_base_impl.cpp.
References IProjectView::eContent, IWMClient::eContent, IProjectView::eId, IProjectView::eProject, IProjectView::eType, IProjectView::eTypeAndContent, IWMClient::eTypeAndContent, GetLabel(), sAbbreviate(), sContentCleanup(), str(), and x_HasProject().
Referenced by CViewGraphic::GetDMContextName(), GetFingerprint(), GetSelClientLabel(), and CSimpleProjectView::InitView().
◆ GetColor() ◆ GetCommandHandler() wxEvtHandler * CProjectViewBase::GetCommandHandler ( ) virtual ◆ GetCompatibleToolBars() void CProjectViewBase::GetCompatibleToolBars ( vector< string > & names ) virtual ◆ GetContentLabel() string CProjectViewBase::GetContentLabel ( ) const virtualoverloadable hook for derived classes to customize the content aspect of a view's title.
This function is called from GetLabel() to present the content portion of the label; derived classes can specialize this function to provide a view-specific content label.
Definition at line 673 of file project_view_base_impl.cpp.
References m_ContentLabel.
Referenced by GetLabel().
◆ GetFingerprint() ◆ GetIconAlias() string CProjectViewBase::GetIconAlias ( ) const virtual ◆ GetId() size_t CProjectViewBase::GetId ( ) const virtual ◆ GetLabel()returns name of the plug-in created this view (view class name)
Implements IProjectView.
Definition at line 632 of file project_view_base_impl.cpp.
References IProjectView::eContent, IProjectView::eId, IProjectView::eProject, IProjectView::eType, IProjectView::eTypeAndContent, GetContentLabel(), GetId(), CUIObject::GetLabel(), GetTypeDescriptor(), m_LabelGenerator, m_ProjectName, and str().
Referenced by GetClientLabel(), CProjectView::GetReflectionInfo(), and x_DetachFromProject().
◆ GetMenu() const wxMenu * CProjectViewBase::GetMenu ( ) virtual ◆ GetProjectId() ◆ GetScope() CRef< CScope > CProjectViewBase::GetScope ( void ) const virtual ◆ GetSelClientLabel() string CProjectViewBase::GetSelClientLabel ( ) virtual ◆ GetServiceLocator() ◆ GetTypeDescriptor()return an object providing meta information about thei view type
Implements IView.
Implemented in CVcfTableView, CTextView, CAlnSummaryView, CProjectTableView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
Referenced by GetIconAlias(), GetLabel(), and x_ReportInvalidInputData().
◆ GetWindow() virtual wxWindow* CProjectViewBase::GetWindow ( ) pure virtualreturns a pointer to the wxWindow representing the client
Implements IWMClient.
Implemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
Referenced by GetCommandHandler(), CProjectView::GetMainObject(), CMPCrossAlignView::InitView(), CProjectView::OnBroadcastVisibleRange(), and CProjectView::SetWorkbench().
◆ InitialLayout() void CProjectViewBase::InitialLayout ( ) virtual ◆ OnPrint() void CProjectViewBase::OnPrint ( ) virtual ◆ OnProjectChanged() [1/2] void CProjectViewBase::OnProjectChanged ( ) virtual ◆ OnProjectChanged() [2/2]Implements IProjectView.
Reimplemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CProjectTableView, CSequinDesktopView, CViewGraphic, CFeatTableView, CPhyTreeView, CMultiAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
Definition at line 577 of file project_view_base_impl.cpp.
References _TRACE, and OnProjectChanged().
◆ OnSelectionChanged() ◆ OnViewAttached() void CProjectViewBase::OnViewAttached ( IView & view ) virtual ◆ OnViewReleased() void CProjectViewBase::OnViewReleased ( IView & view ) virtual ◆ RefreshViewWindow() void CProjectViewBase::RefreshViewWindow ( ) virtual ◆ SetAsyncDestroy() virtual void CProjectViewBase::SetAsyncDestroy ( bool reset_hist_async ) inlinevirtual ◆ SetColor() ◆ SetFingerprint() void CProjectViewBase::SetFingerprint ( const string & fp ) virtual ◆ SetLabelGenerator() ◆ SetWorkbench() void CProjectViewBase::SetWorkbench ( IWorkbench * workbench ) virtual ◆ x_AttachToProject() void CProjectViewBase::x_AttachToProject ( CGBDocument & doc ) protectedvirtualDefinition at line 167 of file project_view_base_impl.cpp.
References EXT_POINT__OPEN_PROJECT_VIEW_EXTENSION, GetExtensionAsInterface(), ITERATE, m_ProjectId, m_ProjectName, m_Scope, m_Workbench, CRef< C, Locker >::Reset(), and CGBDocument::x_AttachView().
Referenced by CProjectView::InitView(), CSimpleProjectView::InitView(), CTableView::InitView(), CMPCrossAlignView::InitView(), CMultiAlignView::InitView(), CPhyTreeView::InitView(), CSeqTextView::InitView(), CViewGraphic::InitView(), CSequinDesktopView::InitView(), CTextView::InitView(), CVcfTableView::InitView(), and CTableViewWithTextViewNav::InitView().
◆ x_CreateMenuBarMenu() void CProjectViewBase::x_CreateMenuBarMenu ( ) protectedvirtual ◆ x_DetachFromProject() void CProjectViewBase::x_DetachFromProject ( ) protectedvirtualDefinition at line 225 of file project_view_base_impl.cpp.
References _ASSERT, CAppTaskService::AddTask(), IProjectView::eTypeAndContent, CProjectService::GetGBWorkspace(), GetLabel(), CRef< C, Locker >::GetPointer(), IServiceLocator::GetServiceByType(), IWorkbench::GetServiceLocator(), kEmptyStr, m_ProjectId, m_ResetHistAsync, m_Scope, m_Workbench, CRef< C, Locker >::Reset(), CGBProjectHandle::sm_NullId, CGBDocument::x_DetachView(), and x_HasProject().
Referenced by DestroyView(), and CProjectView::InitView().
◆ x_GetOrigObject()Reimplemented in CTableViewWithTextViewNav, CVcfTableView, CTextView, CSequinDesktopView, CViewGraphic, CFeatTableView, CSeqTextView, CPhyTreeView, CMultiAlignView, CMPCrossAlignView, CDotMatrixView, CCrossAlignView, CAnnotCompareView, CAlignSpanView, CTableView, and CSimpleProjectView.
Definition at line 504 of file project_view_base_impl.cpp.
Referenced by CProjectView::GetMainObject(), and x_UpdateContentLabel().
◆ x_GetScope() CScope * CProjectViewBase::x_GetScope ( ) const protectedvirtualDefinition at line 496 of file project_view_base_impl.cpp.
References CRef< C, Locker >::GetPointer(), and GetScope().
Referenced by CProjectView::BroadcastVisibleRange(), CMPCrossAlignView::GetMainObject(), CSeqTextView::GetMainObject(), CProjectView::GetReflectionInfo(), CSimpleProjectView::GetSelection(), CCrossAlignView::GetSelection(), CDotMatrixView::GetSelection(), CMultiAlignView::GetSelection(), CPhyTreeView::GetSelection(), CSeqTextView::GetSelection(), CFeatTableView::GetSelection(), CViewGraphic::GetSelection(), CSequinDesktopView::GetSelection(), CTextView::GetSelection(), CPhyTreeView::OnBioTreeChanged(), CMultiAlignView::OnProjectChanged(), CViewGraphic::OnVisibleRangeChanged(), CPhyTreeView::RebuildObjectIndex(), CSimpleProjectView::x_ActivateTextView(), CCrossAlignView::x_OnSetSelection(), CDotMatrixView::x_OnSetSelection(), CMultiAlignView::x_OnSetSelection(), CSeqTextView::x_OnSetSelection(), CViewGraphic::x_OnSetSelection(), and CMultiAlignView::x_RebuildObjectIndex().
◆ x_HasProject() bool CProjectViewBase::x_HasProject ( ) const protectedvirtualDefinition at line 490 of file project_view_base_impl.cpp.
References m_ProjectId, and CGBProjectHandle::sm_NullId.
Referenced by DestroyView(), CTextView::GetActiveObjects(), GetClientLabel(), CProjectView::GetMainObject(), CTableView::GetMainObject(), CMPCrossAlignView::GetMainObject(), CSeqTextView::GetMainObject(), CSequinDesktopView::GetMainObject(), CTextView::GetMainObject(), CVcfTableView::GetMainObject(), CTableViewWithTextViewNav::GetMainObject(), CSimpleProjectView::GetSelection(), CTableView::GetSelection(), CSeqTextView::GetSelection(), CSequinDesktopView::GetSelection(), CTextView::GetSelection(), CVcfTableView::GetSelection(), CTableViewWithTextViewNav::GetSelection(), CAlignSpanView::GetSelection(), CCrossAlignView::GetSelection(), CDotMatrixView::GetSelection(), CMultiAlignView::GetSelection(), CPhyTreeView::GetSelection(), CFeatTableView::GetSelection(), CViewGraphic::GetSelection(), CAlignSpanView::GetVisibleRanges(), CMultiAlignView::OnProjectChanged(), CPhyTreeView::OnProjectChanged(), x_DetachFromProject(), CSimpleProjectView::x_OnSetSelection(), CTableView::x_OnSetSelection(), CPhyTreeView::x_OnSetSelection(), CSequinDesktopView::x_OnSetSelection(), CTextView::x_OnSetSelection(), CVcfTableView::x_OnSetSelection(), CAlignSpanView::x_PostAttachToProject(), CAnnotCompareView::x_PostAttachToProject(), CCrossAlignView::x_PostAttachToProject(), CDotMatrixView::x_PostAttachToProject(), CFeatTableView::x_PostAttachToProject(), CAlignSpanView::x_Update(), CFeatTableView::x_Update(), x_UpdateContentLabel(), and CProjectView::~CProjectView().
◆ x_ReportInvalidInputData()use this function to report incompatible data in InitView()
Definition at line 510 of file project_view_base_impl.cpp.
References CLabel::eContent, CUIObject::GetLabel(), CLabel::GetLabel(), GetTypeDescriptor(), NON_CONST_ITERATE, and ToWxString().
Referenced by CProjectView::InitView(), CSimpleProjectView::InitView(), CTableView::InitView(), CMPCrossAlignView::InitView(), CMultiAlignView::InitView(), CPhyTreeView::InitView(), CSeqTextView::InitView(), CViewGraphic::InitView(), CSequinDesktopView::InitView(), CTextView::InitView(), CVcfTableView::InitView(), and CTableViewWithTextViewNav::InitView().
◆ x_UpdateContentLabel() void CProjectViewBase::x_UpdateContentLabel ( ) protectedvirtualDefinition at line 708 of file project_view_base_impl.cpp.
References _ASSERT, CLabel::eDefault, CProjectService::GetGBWorkspace(), CLabel::GetLabel(), CRef< C, Locker >::GetPointer(), GetScope(), IServiceLocator::GetServiceByType(), m_ContentLabel, m_ProjectId, m_Workbench, s_CollidedIds(), CGBDocument::ViewLabelChanged(), x_GetOrigObject(), and x_HasProject().
Referenced by eh_OnProjectChanged(), CSimpleProjectView::InitView(), CTableView::InitView(), CMPCrossAlignView::InitView(), CSeqTextView::InitView(), CViewGraphic::InitView(), CSequinDesktopView::InitView(), CTextView::InitView(), CVcfTableView::InitView(), CTableViewWithTextViewNav::InitView(), CMultiAlignView::OnDSChanged(), CMPCrossAlignView::OnProjectChanged(), CMultiAlignView::OnProjectChanged(), CFeatTableView::OnProjectChanged(), CAlignSpanView::OnProjectChanged(), CAnnotCompareView::OnProjectChanged(), CCrossAlignView::OnProjectChanged(), CDotMatrixView::OnProjectChanged(), CPhyTreeView::OnProjectChanged(), CViewGraphic::SetOrigObject(), CAlignSpanView::x_PostAttachToProject(), CAnnotCompareView::x_PostAttachToProject(), CCrossAlignView::x_PostAttachToProject(), and CDotMatrixView::x_PostAttachToProject().
◆ m_Color ◆ m_ContentLabel string CProjectViewBase::m_ContentLabel protected ◆ m_Fingerprint string CProjectViewBase::m_Fingerprint protected ◆ m_LabelGenerator ◆ m_MenuBarMenu unique_ptr<const wxMenu> CProjectViewBase::m_MenuBarMenu protected ◆ m_ProjectId ◆ m_ProjectName string CProjectViewBase::m_ProjectName protected ◆ m_ResetHistAsync bool CProjectViewBase::m_ResetHistAsync protected ◆ m_Scope CRef<objects::CScope> CProjectViewBase::m_Scope protected ◆ m_SelectionService ◆ m_ViewId const size_t CProjectViewBase::m_ViewId protected ◆ m_VisibleRangeChangeAllowed bool CProjectViewBase::m_VisibleRangeChangeAllowed protected ◆ m_WorkbenchDefinition at line 173 of file project_view_base_impl.hpp.
Referenced by CSimpleProjectView::CloseWidget(), CSequinDesktopView::CloseWidget(), CTextView::CloseWidget(), DestroyView(), CMPCrossAlignView::DestroyView(), eh_OnProjectChanged(), CSequinDesktopView::GetAppSelection(), CTextView::GetAppSelection(), GetServiceLocator(), CProjectView::InitView(), CSimpleProjectView::InitView(), CTableView::InitView(), CMPCrossAlignView::InitView(), CMultiAlignView::InitView(), CPhyTreeView::InitView(), CSeqTextView::InitView(), CViewGraphic::InitView(), CSequinDesktopView::InitView(), CTextView::InitView(), CVcfTableView::InitView(), CTableViewWithTextViewNav::InitView(), CPhyTreeView::OnCreateSelectedSubtree(), CPhyTreeView::OnExportTree(), CMultiAlignView::OnOpenGraphicalView(), CViewGraphic::OnOpenGraphicalView(), CViewGraphic::OnProjectChanged(), CTextView::OnTextGotFocus(), CTextView::OnTextLostFocus(), CTextView::OnTextPositionChanged(), CViewGraphic::OnViewAttached(), CViewGraphic::OnViewReleased(), CViewGraphic::OnVisibleRangeChanged(), CSimpleProjectView::OnWidgetCommand(), CViewGraphic::OnWidgetRangeChanged(), RefreshViewWindow(), SetWorkbench(), CProjectView::SetWorkbench(), CViewGraphic::SetWorkbench(), CSimpleProjectView::ShowView(), CSequinDesktopView::ShowView(), CTextView::ShowView(), CSimpleProjectView::WidgetActivated(), x_AttachToProject(), CCrossAlignView::x_CreateMenuBarMenu(), CDotMatrixView::x_CreateMenuBarMenu(), x_DetachFromProject(), CTableViewWithTextViewNav::x_GetCmdProcessor(), CTableViewWithTextViewNav::x_GetFlatFileCtrl(), CProjectView::x_GetUndoManager(), CTableViewWithTextViewNav::x_GetViewObjects(), CVcfTableView::x_OnDataChanged(), CProjectView::x_OnDecoratePopupMenu(), CSequinDesktopView::x_OnRefreshData(), CSequinDesktopView::x_OnSingleMouseClick(), CTableView::x_OnUrlHover(), CVcfTableView::x_OnUrlHover(), CProjectView::x_OnWidgetItemActivated(), CTableView::x_QueryStatusChange(), CPhyTreeView::x_QueryStatusChange(), CVcfTableView::x_QueryStatusChange(), CTableViewWithTextViewNav::x_QueryStatusChange(), x_UpdateContentLabel(), and CTextView::~CTextView().
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4