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 ()
 
virtual int GetLeftMargin () const
 
virtual void RootInitialized ()
 
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 EditItem (ITextItem *item, bool controlDown, bool shiftDown)
 
virtual bool IsEditingEnabled () const
 
virtual bool FindSequence (const wxString &text)
 
virtual void InitDrawStream (CDrawTextOStream &stream, int startLine)
 
bool ShowEditIcons () const
 
CEditObject GetEditObject (CFlatFileTextItem &ffItem)
 
IBioseqEditorCB interface implementation
virtual void GetItemSelection (TFlatItemList &itemList)
 
virtual void GetCurrentSelection (TEditObjectList &objects)
 
virtual objects::CBioseq_Handle GetCurrentBioseq ()
 
virtual wxString GetWorkDir () const
 
- Public Member Functions inherited from CTextPanelContext
 CTextPanelContext (int leftMargin, objects::CScope *scope, const CSerialObject *so)
 
 ~CTextPanelContext ()
 
CTextItemPanelGetPanel ()
 
int GetIndentWidth () 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)
 
void SetFontDesc (const wxString &fontDesc)
 
const wxString & GetFontDesc () const
 
wxPoint GetDeviceOrigin () const
 
void SetDeviceOrigin (wxPoint drawDeviceOrigin)
 
void SetDeviceOrigin (wxDC &dc) const
 
ICanceledSetCanceled (ICanceled *canceled)
 
bool IsCanceled () const
 
void SetWorkDir (const wxString &workDir)
 
- Public Member Functions inherited from IBioseqEditorCB
virtual ~IBioseqEditorCB ()
 
virtual bool MayCreateFeatures () const
 

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
 
- 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
 
wxString m_WorkDir
 

Additional Inherited Members

- Public Attributes inherited from CTextPanelContext
bool m_ItemCollapsed
 

Detailed Description

Definition at line 59 of file flat_file_context.hpp.

Member Typedef Documentation

◆ TEditDesc

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

Definition at line 105 of file flat_file_context.hpp.

◆ TEditFeat

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

Definition at line 106 of file flat_file_context.hpp.

Constructor & Destructor Documentation

◆ CFlatFileViewContext()

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

Definition at line 91 of file flat_file_context.cpp.

◆ ~CFlatFileViewContext()

CFlatFileViewContext::~CFlatFileViewContext ( )

Definition at line 104 of file flat_file_context.cpp.

References m_BioseqEditor, and CTextPanelContext::m_Panel.

Member Function Documentation

◆ CreateMenu()

static wxMenu * CFlatFileViewContext::CreateMenu ( ) const
virtual

◆ EditItem()

void CFlatFileViewContext::EditItem ( ITextItem item,
bool  controlDown,
bool  shiftDown 
)
virtual

Reimplemented from CTextPanelContext.

Definition at line 291 of file flat_file_context.cpp.

References m_BioseqEditor.

◆ FindSequence()

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

◆ GetCurrentBioseq()

CBioseq_Handle CFlatFileViewContext::GetCurrentBioseq ( )
virtual

Implements IBioseqEditorCB.

Definition at line 755 of file flat_file_context.cpp.

References m_CurBioseq.

◆ GetCurrentSelection()

void CFlatFileViewContext::GetCurrentSelection ( TEditObjectList objects)
virtual

◆ GetEditObject()

CEditObject CFlatFileViewContext::GetEditObject ( CFlatFileTextItem ffItem)

◆ GetFormatter()

objects::IFormatter& CFlatFileViewContext::GetFormatter ( )
inline

◆ GetItemSelection()

void CFlatFileViewContext::GetItemSelection ( TFlatItemList itemList)
virtual

◆ GetLeftMargin()

int CFlatFileViewContext::GetLeftMargin ( ) const
virtual

Reimplemented from CTextPanelContext.

Definition at line 111 of file flat_file_context.cpp.

References CTextPanelContext::GetWWidth(), and ShowEditIcons().

◆ GetVisibleObjects()

void CFlatFileViewContext::GetVisibleObjects ( TConstScopedObjects objects)
virtual

◆ GetWorkDir()

wxString CFlatFileViewContext::GetWorkDir ( ) const
virtual

Implements IBioseqEditorCB.

Definition at line 760 of file flat_file_context.cpp.

References CTextPanelContext::m_WorkDir.

◆ InitDrawStream()

void CFlatFileViewContext::InitDrawStream ( CDrawTextOStream stream,
int  startLine 
)
virtual

◆ IsEditingEnabled()

virtual bool CFlatFileViewContext::IsEditingEnabled ( ) const
inlinevirtual

Reimplemented from CTextPanelContext.

Definition at line 95 of file flat_file_context.hpp.

References m_BioseqEditor.

Referenced by CFlatFileLocusItem::CalcSize().

◆ OnCollapseAllFeatures()

void CFlatFileViewContext::OnCollapseAllFeatures ( wxCommandEvent &  event)
protected

Definition at line 319 of file flat_file_context.cpp.

◆ OnCollapseSeqBlocks()

void CFlatFileViewContext::OnCollapseSeqBlocks ( wxCommandEvent &  event)
protected

Definition at line 359 of file flat_file_context.cpp.

◆ OnCollapseSequences()

void CFlatFileViewContext::OnCollapseSequences ( wxCommandEvent &  event)
protected

◆ OnEditBioseq()

static void CFlatFileViewContext::OnEditBioseq ( objects::CBioseq_Handle &  bh,
wxPoint  pos 
)

◆ OnExpandAll()

void CFlatFileViewContext::OnExpandAll ( wxCommandEvent &  event)
protected

◆ OnExpandAllFeatures()

void CFlatFileViewContext::OnExpandAllFeatures ( wxCommandEvent &  event)
protected

Definition at line 299 of file flat_file_context.cpp.

◆ OnExpandSeqBlocks()

void CFlatFileViewContext::OnExpandSeqBlocks ( wxCommandEvent &  event)
protected

Definition at line 339 of file flat_file_context.cpp.

◆ RegisterCommands()

void CFlatFileViewContext::RegisterCommands ( CUICommandRegistry cmd_reg,
wxFileArtProvider provider 
)
static

◆ RootInitialized()

void CFlatFileViewContext::RootInitialized ( )
virtual

◆ SetPanel()

void CFlatFileViewContext::SetPanel ( CTextItemPanel panel)
virtual

◆ ShowEditIcons()

bool CFlatFileViewContext::ShowEditIcons ( ) const

Definition at line 119 of file flat_file_context.cpp.

References m_BioseqEditor, and RunningInsideNCBI().

Referenced by GetLeftMargin(), and RootInitialized().

Member Data Documentation

◆ m_BioseqEditor

CIRef<IBioseqEditor> CFlatFileViewContext::m_BioseqEditor
protected

◆ m_CurBioseq

objects::CBioseq_Handle CFlatFileViewContext::m_CurBioseq
protected

Definition at line 118 of file flat_file_context.hpp.

Referenced by GetCurrentBioseq().

◆ m_Formatter

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

Definition at line 108 of file flat_file_context.hpp.

Referenced by GetFormatter().

◆ m_MarkedSeq

CTextBlock CFlatFileViewContext::m_MarkedSeq
protected

Definition at line 121 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 May 28 05:50:07 2024 by modify_doxy.py rev. 669887