1 #ifndef GUI_CORE___PROJECT_VIEW_BASE_IMPL__HPP
2 #define GUI_CORE___PROJECT_VIEW_BASE_IMPL__HPP
78 virtual void DestroyView();
80 virtual void InitialLayout();
81 virtual void Destroy();
95 virtual wxEvtHandler* GetCommandHandler();
97 virtual string GetIconAlias()
const;
100 virtual const wxMenu* GetMenu();
102 virtual void SetFingerprint(
const string&
fp);
108 virtual void SetWorkbench(
IWorkbench* workbench );
111 virtual void SetAsyncDestroy(
bool reset_hist_async) { m_ResetHistAsync = reset_hist_async; }
114 virtual void RefreshViewWindow();
118 virtual string GetSelClientLabel();
123 virtual void GetCompatibleToolBars( vector<string>&
names );
130 virtual string GetContentLabel()
const;
135 virtual void OnProjectChanged();
137 virtual void OnViewAttached(
IView& view );
138 virtual void OnViewReleased(
IView& view );
140 virtual void OnPrint();
146 virtual objects::CScope* x_GetScope()
const;
148 virtual const CObject* x_GetOrigObject()
const;
150 virtual bool x_HasProject()
const;
152 virtual void x_UpdateContentLabel();
155 virtual void x_DetachFromProject();
161 virtual void x_CreateMenuBarMenu();
166 void eh_OnProjectChanged(
CEvent* event );
167 void eh_OnViewAttached(
CEvent* event );
168 void eh_OnViewReleased(
CEvent* event );
214 virtual wxAuiToolBar*
CreateToolBar(
const string& name, wxWindow* parent);
218 wxAuiToolBar* x_CreateNavigationToolbar(wxWindow* parent);
219 wxAuiToolBar* x_CreateSelectionToolbar(wxWindow* parent);
CEvent - generic event implementation TODO TODO - Attachments.
CProjectViewBase - default implementation of IProjectView, the base class for CProjectView and CProje...
bool m_VisibleRangeChangeAllowed
this view's private color
static CIRef< IProjectViewLabel > m_LabelGenerator
CRef< objects::CScope > m_Scope
CRgbaColor m_Color
the selection service we speak to
unique_ptr< const wxMenu > m_MenuBarMenu
virtual void DestroyViewWindow()=0
destroy Window corresponding to the view
virtual const CViewTypeDescriptor & GetTypeDescriptor() const =0
return an object providing meta information about thei view type
ISelectionService * m_SelectionService
virtual void CreateViewWindow(wxWindow *parent)=0
create Window corresponding to the view
virtual wxWindow * GetWindow()=0
returns a pointer to the wxWindow representing the client
virtual void SetAsyncDestroy(bool reset_hist_async)
Set async destruction mode.
class CRgbaColor provides a simple abstraction for managing colors.
CUICommandRegistry is a centralized registry where all application commands should be registered.
CViewTypeDescriptor - holds description of a view type.
class IProjectView defines the abstract interface for views observing projects.
ELabelType
Retrieve a label for this view. The label has several different.
objects::CGBProjectHandle::TId TProjectId
ISelectionService - an interface.
IServiceLocator - an abstract mechanism for locating services.
IToolBarContext - represent a UI object that requires toolbars.
IView - represents a standard visual part of Workbench UI.
CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.
ELabel
Different flavors of label types for different GUI aspects.
IWorkbench is the central interface in the application framework.
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
static const struct name_t names[]
vector< SConstScopedObject > TConstScopedObjects
string GetLabel(const CSeq_id &id)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
#define NCBI_GUICORE_EXPORT
objects::CGBProjectHandle::TId GetProjectId(wxTreeCtrl &treeCtrl, const CItem &item)