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
CRef< objects::CScope > m_Scope
CConstRef< CSerialObjectm_SO
vector< ITextItem * > m_Hier
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

Definition at line 95 of file flat_file_context.hpp.

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

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
void CFlatFileViewContext::EditItem ( ITextItem item,
bool  controlDown,
bool  shiftDown 

Reimplemented from CTextPanelContext.

Definition at line 222 of file flat_file_context.cpp.

References m_BioseqEditor.

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

Implements IBioseqEditorCB.

Definition at line 653 of file flat_file_context.cpp.

References m_CurBioseq.

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

Reimplemented from CTextPanelContext.

Definition at line 91 of file flat_file_context.hpp.

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

Reimplemented from CTextPanelContext.

Definition at line 85 of file flat_file_context.hpp.

Referenced by CFlatFileLocusItem::CalcSize().

void CFlatFileViewContext::OnCollapseAllFeatures ( wxCommandEvent &  event)

Definition at line 250 of file flat_file_context.cpp.

void CFlatFileViewContext::OnCollapseSeqBlocks ( wxCommandEvent &  event)

Definition at line 290 of file flat_file_context.cpp.

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

Definition at line 230 of file flat_file_context.cpp.

void CFlatFileViewContext::OnExpandSeqBlocks ( wxCommandEvent &  event)

Definition at line 270 of file flat_file_context.cpp.

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

Reimplemented from CTextPanelContext.

Definition at line 90 of file flat_file_context.hpp.

void CFlatFileViewContext::SetPanel ( CTextItemPanel panel)

Member Data Documentation

CIRef<IBioseqEditor> CFlatFileViewContext::m_BioseqEditor

Definition at line 109 of file flat_file_context.hpp.

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

objects::CBioseq_Handle CFlatFileViewContext::m_CurBioseq

Definition at line 108 of file flat_file_context.hpp.

Referenced by GetCurrentBioseq().

bool CFlatFileViewContext::m_DblClickEditMode

Definition at line 113 of file flat_file_context.hpp.

CRef<objects::IFormatter> CFlatFileViewContext::m_Formatter

Definition at line 98 of file flat_file_context.hpp.

CTextBlock CFlatFileViewContext::m_MarkedSeq

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 rev. 533848