NCBI C++ ToolKit
|
Search Toolkit Book for CFlatFileViewContext
#include <gui/widgets/seq/flat_file_context.hpp>
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< IBioseqEditor > | m_BioseqEditor |
CTextBlock | m_MarkedSeq |
Protected Attributes inherited from CTextPanelContext | |
CTextItemPanel * | m_Panel |
CRef< objects::CScope > | m_Scope |
CConstRef< CSerialObject > | m_SO |
vector< ITextItem * > | m_Hier |
ITextItem * | m_MouseOverItem |
set< ITextItem * > | m_SelectedItems |
wxString | m_WorkDir |
Additional Inherited Members | |
Public Attributes inherited from CTextPanelContext | |
bool | m_ItemCollapsed |
Definition at line 59 of file flat_file_context.hpp.
|
protected |
Definition at line 105 of file flat_file_context.hpp.
|
protected |
Definition at line 106 of file flat_file_context.hpp.
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 | ( | ) |
Definition at line 104 of file flat_file_context.cpp.
References m_BioseqEditor, and CTextPanelContext::m_Panel.
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 278 of file flat_file_context.cpp.
References CUICommandRegistry::CreateMenu(), CUICommandRegistry::GetInstance(), and Merge().
Reimplemented from CTextPanelContext.
Definition at line 291 of file flat_file_context.cpp.
References m_BioseqEditor.
Reimplemented from CTextPanelContext.
Definition at line 765 of file flat_file_context.cpp.
References buffer, CTextBlock::GetStart(), CTextItemPanel::GetTextSelection(), m_MarkedSeq, CTextPanelContext::m_Panel, CTextItemPanel::MakePosVisible(), CFlatFileSeqBlockIterator::NextSequence(), CTextBlock::Normalized(), CTextItemPanel::SetSelection(), CTextPosition::ShiftCol(), text(), ToStdString(), NStr::ToUpper(), and NStr::TruncateSpacesInPlace().
|
virtual |
Implements IBioseqEditorCB.
Definition at line 755 of file flat_file_context.cpp.
References m_CurBioseq.
|
virtual |
Implements IBioseqEditorCB.
Definition at line 723 of file flat_file_context.cpp.
References set< Key, Compare >::end(), set< Key, Compare >::find(), GetEditObject(), CExpandItem::GetExpandedItem(), set< Key, Compare >::insert(), ITERATE, CEditObject::m_Obj, and CTextPanelContext::m_SelectedItems.
CEditObject CFlatFileViewContext::GetEditObject | ( | CFlatFileTextItem & | ffItem | ) |
Definition at line 461 of file flat_file_context.cpp.
References ctx, data, CSeqFeatData_Base::e_Biosrc, CSeqdesc_Base::e_Molinfo, CSeqdesc_Base::e_Source, CSeqdesc_Base::e_Title, CSeqdesc_Base::e_User, CScope::eMissing_Null, NStr::EqualNocase(), CFlatItem::GetContext(), CSeq_feat_Base::GetData(), CDeflineItem::GetDefline(), CSequenceItem::GetFrom(), CSeqdesc_Base::GetMolinfo(), CFlatItem::GetObject(), CSeq_feat_Handle::GetOriginalSeq_feat(), CConstRef< C, Locker >::GetPointer(), CBioseq_Handle::GetRangeSeq_loc(), CBioseq_Handle::GetSeq_entry_Handle(), CSeqdesc_Base::GetSource(), CObject_id_Base::GetStr(), CSequenceItem::GetTo(), CUser_object_Base::GetType(), CSeqdesc_Base::IsPub(), CSeqdesc_Base::IsSource(), CObject_id_Base::IsStr(), and CFlatFileTextItem::m_Item.
Referenced by GetCurrentSelection().
|
inline |
Definition at line 76 of file flat_file_context.hpp.
References m_Formatter.
Referenced by CFlatFileTextItem::GetToolTipText(), CFlatFileTextItem::x_CalcLineCount(), CFlatFileFeatureCollapsed::x_GetText(), CFlatFileSeqBlockCollapsed::x_RenderText(), and CFlatFileTextItem::x_RenderText().
|
virtual |
Implements IBioseqEditorCB.
Definition at line 705 of file flat_file_context.cpp.
References CFlatFileTextItem::GetEditFlags(), CExpandItem::GetExpandedItem(), CFlatFileTextItem::GetFlatItem(), ITERATE, and CTextPanelContext::m_SelectedItems.
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 111 of file flat_file_context.cpp.
References CTextPanelContext::GetWWidth(), and ShowEditIcons().
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 221 of file flat_file_context.cpp.
References CCompositeTextItem::GetItem(), CCompositeTextItem::GetItemCount(), CTextItemPanel::GetRootItem(), i, CTextPanelContext::m_Panel, and ITextItem::Traverse().
|
virtual |
Implements IBioseqEditorCB.
Definition at line 760 of file flat_file_context.cpp.
References CTextPanelContext::m_WorkDir.
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 833 of file flat_file_context.cpp.
References CDrawTextOStream::AddMarker(), CTextPosition::GetCol(), CTextBlock::GetEnd(), CTextPosition::GetRow(), CTextBlock::GetStart(), i, CTextBlock::IsEmpty(), m_MarkedSeq, and CTextBlock::ShiftRow().
|
inlinevirtual |
Reimplemented from CTextPanelContext.
Definition at line 95 of file flat_file_context.hpp.
References m_BioseqEditor.
Referenced by CFlatFileLocusItem::CalcSize().
|
protected |
Definition at line 319 of file flat_file_context.cpp.
|
protected |
Definition at line 359 of file flat_file_context.cpp.
|
protected |
Definition at line 401 of file flat_file_context.cpp.
References CCompositeTextItem::GetItem(), CCompositeTextItem::GetItemCount(), CTextItemPanel::GetRootItem(), i, CTextItemPanel::Layout(), CTextPanelContext::m_Panel, ITextItem::Traverse(), CTextItemPanel::UpdateCaretPos(), and CCompositeTextItem::UpdatePositions().
static void CFlatFileViewContext::OnEditBioseq | ( | objects::CBioseq_Handle & | bh, |
wxPoint | pos | ||
) |
Definition at line 438 of file flat_file_context.cpp.
References CleanupSeparators(), CUICommandRegistry::CreateMenu(), CUICommandRegistry::GetInstance(), and Merge().
Referenced by CFlatFileLocusItem::OnHyperlinkClick().
|
protected |
Definition at line 417 of file flat_file_context.cpp.
References CTextItemPanel::GetRootItem(), CTextItemPanel::Layout(), CTextPanelContext::m_Panel, CCompositeTextItem::Traverse(), CTextItemPanel::UpdateCaretPos(), and CCompositeTextItem::UpdatePositions().
|
protected |
Definition at line 299 of file flat_file_context.cpp.
|
protected |
Definition at line 339 of file flat_file_context.cpp.
|
static |
Definition at line 231 of file flat_file_context.cpp.
References kCollapseAllFeatures, kCollapseSeqBlocks, kCollapseSequences, kExpandAllFeatures, kExpandSeqBlocks, NcbiEmptyString, and CUICommandRegistry::RegisterCommand().
Referenced by CTextPanel::RegisterCommands().
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 175 of file flat_file_context.cpp.
References CCompositeTextItem::GetItem(), CCompositeTextItem::GetItemCount(), CTextItemPanel::GetRootItem(), i, m_BioseqEditor, CTextPanelContext::m_Panel, ShowEditIcons(), and ITextItem::Traverse().
|
virtual |
Reimplemented from CTextPanelContext.
Definition at line 188 of file flat_file_context.cpp.
References m_BioseqEditor, CTextPanelContext::m_Panel, and CTextPanelContext::SetPanel().
bool CFlatFileViewContext::ShowEditIcons | ( | ) | const |
Definition at line 119 of file flat_file_context.cpp.
References m_BioseqEditor, and RunningInsideNCBI().
Referenced by GetLeftMargin(), and RootInitialized().
|
protected |
Definition at line 119 of file flat_file_context.hpp.
Referenced by EditItem(), IsEditingEnabled(), RootInitialized(), SetPanel(), ShowEditIcons(), and ~CFlatFileViewContext().
|
protected |
Definition at line 118 of file flat_file_context.hpp.
Referenced by GetCurrentBioseq().
|
protected |
Definition at line 108 of file flat_file_context.hpp.
Referenced by GetFormatter().
|
protected |
Definition at line 121 of file flat_file_context.hpp.
Referenced by FindSequence(), and InitDrawStream().