NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CFlatFileViewContext Class Reference

Search Toolkit Book for CFlatFileViewContext

#include <gui/widgets/seq/flat_file_context.hpp>

+ Inheritance diagram for CFlatFileViewContext:
+ Collaboration diagram for CFlatFileViewContext:

Public Member Functions

 CFlatFileViewContext (objects::IFormatter &formatter, objects::CScope &scope, const CSerialObject *so, IBioseqEditor *bioseqEditor)
 
 ~CFlatFileViewContext ()
 
objects::IFormatter & GetFormatter ()
 
virtual wxMenu * CreateMenu () const
 
virtual void SetPanel (CTextItemPanel *panel)
 
virtual void GetVisibleObjects (TConstScopedObjects &objects)
 
void OnEditBioseq (objects::CBioseq_Handle &bh, wxPoint pos)
 
virtual void GetCurrentSelection (TEditObjectList &objects)
 
virtual objects::CBioseq_Handle GetCurrentBioseq ()
 
virtual void EditItem (ITextItem *item, bool controlDown, bool shiftDown)
 
virtual bool IsEditingEnabled () const
 
virtual bool FindSequence (const wxString &text)
 
virtual void InitDrawStream (CDrawTextOStream &stream, int startLine)
 
virtual void SetDblClickEditMode (bool editMode)
 
virtual bool GetDblClickEditMode () const
 
- Public Member Functions inherited from CTextPanelContext
 CTextPanelContext (int leftMargin, objects::CScope *scope, const CSerialObject *so)
 
 ~CTextPanelContext ()
 
CTextItemPanelGetPanel ()
 
int GetIndentWidth () const
 
int GetLeftMargin () const
 
void SelectItem (ITextItem *item, bool controlDown, bool shiftDown)
 
bool IsItemSelected (ITextItem *item)
 
void GetSelectedObjects (TConstObjects &objs)
 
void SetSelectedObjects (const TConstObjects &objs)
 
void GetActiveObjects (TConstScopedObjects &objects)
 
void GetActiveObjects (vector< TConstScopedObjects > &objects)
 
void GetSelectedObjects (TConstScopedObjects &objects)
 
virtual void GetMainObjects (TConstScopedObjects &objects)
 
const set< ITextItem * > & GetSelectedTextItems (void)
 
void ClearMouseMove ()
 
void AddHier (ITextItem *item)
 
void MouseOverItem (ITextItem *item)
 
void TriggerTooltip ()
 
virtual void MouseMoveInContainer (ITextItem *)
 
virtual wxWindow * CreateTooltipWindow ()
 
ITextItemGetHighlightedItem ()
 
void SetHighlightedItem (ITextItem *pItem)
 
objects::CScope * GetScope ()
 
void CalcWSize (wxDC &dc)
 
wxSize GetWSize () const
 
void SetWSize (wxSize wSize)
 
int GetWWidth () const
 
int GetWHeight () const
 
void SetFontDesc (wxWindow &wnd)
 
const wxString & GetFontDesc () const
 
wxPoint GetDeviceOrigin () const
 
void SetDeviceOrigin (wxPoint drawDeviceOrigin)
 
void SetDeviceOrigin (wxDC &dc) const
 
ICanceledSetCanceled (ICanceled *canceled)
 
bool IsCanceled () const
 
- Public Member Functions inherited from IBioseqEditorCB
virtual ~IBioseqEditorCB ()
 

Static Public Member Functions

static void RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)
 

Protected Types

typedef pair< const objects::CSeqdesc *, objects::CBioseqContext * > TEditDesc
 
typedef pair< objects::CSeq_feat_Handle, objects::CBioseqContext * > TEditFeat
 

Protected Member Functions

void OnExpandAllFeatures (wxCommandEvent &event)
 
void OnCollapseAllFeatures (wxCommandEvent &event)
 
void OnExpandSeqBlocks (wxCommandEvent &event)
 
void OnCollapseSeqBlocks (wxCommandEvent &event)
 
void OnCollapseSequences (wxCommandEvent &event)
 
void OnExpandAll (wxCommandEvent &event)
 

Protected Attributes

CRef< objects::IFormatter > m_Formatter
 
objects::CBioseq_Handle m_CurBioseq
 
CIRef< IBioseqEditorm_BioseqEditor
 
CTextBlock m_MarkedSeq
 
bool m_DblClickEditMode
 
- Protected Attributes inherited from CTextPanelContext
CTextItemPanelm_Panel
 
CRef< objects::CScope > m_Scope
 
CConstRef< CSerialObjectm_SO
 
vector< ITextItem * > m_Hier
 
ITextItemm_MouseOverItem
 
set< ITextItem * > m_SelectedItems
 

Additional Inherited Members

- Public Attributes inherited from CTextPanelContext
bool m_ItemCollapsed
 

Detailed Description

Definition at line 58 of file flat_file_context.hpp.

Member Typedef Documentation

typedef pair<const objects::CSeqdesc*, objects::CBioseqContext*> CFlatFileViewContext::TEditDesc
protected

Definition at line 95 of file flat_file_context.hpp.

typedef pair<objects::CSeq_feat_Handle, objects::CBioseqContext*> CFlatFileViewContext::TEditFeat
protected

Definition at line 96 of file flat_file_context.hpp.

Constructor & Destructor Documentation

CFlatFileViewContext::CFlatFileViewContext ( objects::IFormatter &  formatter,
objects::CScope &  scope,
const CSerialObject so,
IBioseqEditor bioseqEditor 
)

Definition at line 89 of file flat_file_context.cpp.

CFlatFileViewContext::~CFlatFileViewContext ( )

Definition at line 103 of file flat_file_context.cpp.

References m_BioseqEditor, and CTextPanelContext::m_Panel.

Member Function Documentation

static wxMenu * CFlatFileViewContext::CreateMenu ( ) const
virtual
void CFlatFileViewContext::EditItem ( ITextItem item,
bool  controlDown,
bool  shiftDown 
)
virtual

Reimplemented from CTextPanelContext.

Definition at line 222 of file flat_file_context.cpp.

References m_BioseqEditor.

bool CFlatFileViewContext::FindSequence ( const wxString &  text)
virtual
CBioseq_Handle CFlatFileViewContext::GetCurrentBioseq ( )
virtual

Implements IBioseqEditorCB.

Definition at line 653 of file flat_file_context.cpp.

References m_CurBioseq.

void CFlatFileViewContext::GetCurrentSelection ( TEditObjectList objects)
virtual
virtual bool CFlatFileViewContext::GetDblClickEditMode ( ) const
inlinevirtual

Reimplemented from CTextPanelContext.

Definition at line 91 of file flat_file_context.hpp.

objects::IFormatter& CFlatFileViewContext::GetFormatter ( )
inline
void CFlatFileViewContext::GetVisibleObjects ( TConstScopedObjects objects)
virtual
void CFlatFileViewContext::InitDrawStream ( CDrawTextOStream stream,
int  startLine 
)
virtual
virtual bool CFlatFileViewContext::IsEditingEnabled ( ) const
inlinevirtual

Reimplemented from CTextPanelContext.

Definition at line 85 of file flat_file_context.hpp.

Referenced by CFlatFileLocusItem::CalcSize().

void CFlatFileViewContext::OnCollapseAllFeatures ( wxCommandEvent &  event)
protected

Definition at line 250 of file flat_file_context.cpp.

void CFlatFileViewContext::OnCollapseSeqBlocks ( wxCommandEvent &  event)
protected

Definition at line 290 of file flat_file_context.cpp.

void CFlatFileViewContext::OnCollapseSequences ( wxCommandEvent &  event)
protected
static void CFlatFileViewContext::OnEditBioseq ( objects::CBioseq_Handle &  bh,
wxPoint  pos 
)
void CFlatFileViewContext::OnExpandAll ( wxCommandEvent &  event)
protected
void CFlatFileViewContext::OnExpandAllFeatures ( wxCommandEvent &  event)
protected

Definition at line 230 of file flat_file_context.cpp.

void CFlatFileViewContext::OnExpandSeqBlocks ( wxCommandEvent &  event)
protected

Definition at line 270 of file flat_file_context.cpp.

void CFlatFileViewContext::RegisterCommands ( CUICommandRegistry cmd_reg,
wxFileArtProvider provider 
)
static
virtual void CFlatFileViewContext::SetDblClickEditMode ( bool  editMode)
inlinevirtual

Reimplemented from CTextPanelContext.

Definition at line 90 of file flat_file_context.hpp.

void CFlatFileViewContext::SetPanel ( CTextItemPanel panel)
virtual

Member Data Documentation

CIRef<IBioseqEditor> CFlatFileViewContext::m_BioseqEditor
protected

Definition at line 109 of file flat_file_context.hpp.

Referenced by EditItem(), SetPanel(), and ~CFlatFileViewContext().

objects::CBioseq_Handle CFlatFileViewContext::m_CurBioseq
protected

Definition at line 108 of file flat_file_context.hpp.

Referenced by GetCurrentBioseq().

bool CFlatFileViewContext::m_DblClickEditMode
protected

Definition at line 113 of file flat_file_context.hpp.

CRef<objects::IFormatter> CFlatFileViewContext::m_Formatter
protected

Definition at line 98 of file flat_file_context.hpp.

CTextBlock CFlatFileViewContext::m_MarkedSeq
protected

Definition at line 111 of file flat_file_context.hpp.

Referenced by FindSequence(), and InitDrawStream().


The documentation for this class was generated from the following files:
Modified on Tue Jul 25 19:57:57 2017 by modify_doxy.py rev. 533848