NCBI C++ ToolKit
|
Search Toolkit Book for CTextItem
#include <gui/widgets/text_widget/text_item.hpp>
Protected Member Functions | |
virtual void | x_Indent (CStyledTextOStream &ostream) const |
virtual void | x_RenderText (CStyledTextOStream &WXUNUSED(ostream), CTextPanelContext *WXUNUSED(context)) const |
Protected Attributes | |
size_t | m_LineCount |
wxSize | m_Size |
IContainer * | m_Container |
int | m_Index |
Definition at line 127 of file text_item.hpp.
|
inline |
Definition at line 130 of file text_item.hpp.
|
virtual |
Implements ITextItem.
Reimplemented in CCompositeTextItem, CFlatFileTextItem, CFlatFileLocusItem, CFastaTitleItem, CFastaSeqHdrItem, and CFastaSeqBlockItem.
Definition at line 88 of file text_item.cpp.
References context, CCalcSizeStream::GetSize(), m_LineCount, m_Size, ncbi::grid::netcache::search::fields::size, and x_RenderText().
Referenced by CExpandItem::CalcSize().
|
virtual |
Implements ITextItem.
Reimplemented in CCompositeTextItem, CFlatFileTextItem, and CFlatFileLocusItem.
Definition at line 135 of file text_item.cpp.
References CDrawTextOStream::AddMarker(), context, CSelectionHelper::Draw(), CTextPosition::GetCol(), CTextBlock::GetEnd(), CSelectionHelper::GetInstance(), CTextPosition::GetRow(), CTextBlock::GetStart(), GetStartLine(), ITextItem::IsSelectable(), CSelectionHelper::SetItem(), CTextBlock::ShiftRow(), TextPosToCollapsed(), and x_RenderText().
Referenced by CFlatFileTextItem::Draw(), and CExpandItem::Draw().
|
inlinevirtual |
Implements ITextItem.
Definition at line 134 of file text_item.hpp.
References m_Container, and m_Index.
|
inlinevirtual |
Reimplemented in CTextItemSeq_loc, CPlainTextItem, CXmlBaseItem, CInfoItem, CFlatFileSeqBlockCollapsed, CFlatFileFeatureCollapsed, CFastaTitleItem, CAsnElementItem, and CAsnBlockEndItem.
Definition at line 157 of file text_item.hpp.
Referenced by GetTextLeftMargin(), x_Indent(), and CExpandItem::x_LimitCollapsedSelection().
Implements ITextItem.
Reimplemented in CCompositeTextItem.
Definition at line 187 of file text_item.cpp.
References GetLineCount().
Referenced by CExpandItem::GetItemByLine().
|
inlinevirtual |
Implements ITextItem.
Reimplemented in CFastaSeqBlockItem.
Definition at line 148 of file text_item.hpp.
References m_LineCount.
Referenced by CFlatFileSeqIterator::CFlatFileSeqIterator(), CCompositeTextItem::GetItemByLine(), GetItemByLine(), CExpandItem::GetLineCount(), CAsnElementBlockCollapsed::TextPosToCollapsed(), CXmlClosedBlock::TextPosToCollapsed(), CAsnElementBlockCollapsed::TextPosToExpanded(), CXmlClosedBlock::TextPosToExpanded(), and CExpandItem::x_LimitCollapsedSelection().
|
inlinevirtual |
Implements ITextItem.
Definition at line 137 of file text_item.hpp.
References IContainer::GetItemPosition(), m_Container, and m_Index.
Referenced by CCompositeTextItem::GetItemPosition(), CTextItemPanel::MakePosVisible(), CTextSelectItem::MouseLeftDClick(), CTextSelectItem::MouseLeftDown(), CTextSelectItem::MouseLeftUp(), CTextSelectItem::MouseMove(), CFlatFileLocusItem::OnHyperlinkClick(), and CTextItemPanel::UpdateCaretPos().
|
inlinevirtual |
Implements ITextItem.
Definition at line 140 of file text_item.hpp.
References m_Size.
Referenced by CFlatFileLocusItem::CalcSize(), CAsnViewContext::CreateTooltipWindow(), CExpandItem::GetSize(), and MouseEvent().
|
inlinevirtual |
Implements ITextItem.
Definition at line 145 of file text_item.hpp.
References IContainer::GetItemStartLine(), m_Container, and m_Index.
Referenced by CFlatFileSeqBlockIterator::CFlatFileSeqBlockIterator(), CTextLineIterator::CTextLineIterator(), Draw(), CCompositeTextItem::GetItemStartLine(), CTextSelectItem::GetText(), CTextItemPanel::MakePosVisible(), CTextSelectItem::MouseLeftDClick(), CTextSelectItem::MouseLeftDown(), CTextSelectItem::MouseLeftUp(), CTextSelectItem::MouseMove(), CTextItemPanel::UpdateCaretPos(), CExpandItem::x_LimitCollapsedSelection(), and CTextLineIterator::x_Next().
|
virtual |
Implements ITextItem.
Definition at line 83 of file text_item.cpp.
References context, and GetIndent().
Referenced by CExpandItem::GetTextLeftMargin().
|
virtual |
Reimplemented from ITextItem.
Reimplemented in CTextSelectItem, CCompositeTextItem, CFlatFileTextItem, and CFlatFileLocusItem.
Definition at line 171 of file text_item.cpp.
References context, CSelectionHelper::GetInstance(), GetSize(), ITextItem::IsSelectable(), and CSelectionHelper::SetItem().
Referenced by CExpandItem::MouseEvent(), and CTextSelectItem::MouseEvent().
|
inline |
Definition at line 164 of file text_item.hpp.
References context, and x_RenderText().
Referenced by CAsnElementPrimitive::CreateItem(), CTextLineIterator::CTextLineIterator(), CTextItemPanel::MakePosVisible(), CTextItemPanel::UpdateCaretPos(), CExpandItem::x_LimitCollapsedSelection(), and CTextLineIterator::x_Next().
|
inlinevirtual |
Implements ITextItem.
Definition at line 132 of file text_item.hpp.
References m_Container, and m_Index.
Referenced by CExpandItem::CExpandItem(), and CExpandItem::UpdatePositions().
|
inlinevirtual |
Definition at line 150 of file text_item.hpp.
References m_LineCount.
Referenced by CExpandItem::CalcSize().
|
inlinevirtual |
Definition at line 162 of file text_item.hpp.
Referenced by Draw(), and CTextItemPanel::UpdateCaretPos().
|
inlinevirtual |
Definition at line 161 of file text_item.hpp.
Referenced by CTextSelectItem::x_CalcTextPos().
|
inlinevirtual |
Implements ITextItem.
Reimplemented in CCompositeTextItem.
Definition at line 159 of file text_item.hpp.
References ICompositeTraverser::ProcessItem().
Referenced by CExpandItem::Traverse().
|
protectedvirtual |
Definition at line 166 of file text_item.cpp.
References GetIndent(), and Indent().
Referenced by CAsnBlockEndItem::x_RenderText(), CAsnElementItem::x_RenderText(), CInfoItem::x_RenderText(), CXmlBaseItem::x_RenderText(), CPlainTextItem::x_RenderText(), CTextItemDefault::x_RenderText(), CTextItemSeq_align::x_RenderText(), CTextItemSeq_feat::x_RenderText(), and CTextItemSeq_loc::x_RenderText().
|
inlineprotectedvirtual |
Definition at line 169 of file text_item.hpp.
Referenced by CalcSize(), Draw(), CTextSelectItem::GetText(), CTextSelectItem::MouseLeftDClick(), RenderText(), and CTextSelectItem::x_CalcTextPos().
|
protected |
Definition at line 174 of file text_item.hpp.
Referenced by GetContainer(), GetPosition(), GetStartLine(), CCompositeTextItem::InsertItems(), CCompositeTextItem::ItemSizeChanged(), CCompositeTextItem::RemoveItem(), and SetContainer().
|
protected |
Definition at line 175 of file text_item.hpp.
Referenced by GetContainer(), GetPosition(), GetStartLine(), CCompositeTextItem::InsertItems(), CCompositeTextItem::ItemSizeChanged(), CCompositeTextItem::RemoveItem(), and SetContainer().
|
protected |
Definition at line 171 of file text_item.hpp.
Referenced by CFlatFileTextItem::CalcSize(), CalcSize(), GetLineCount(), SetLineCount(), CCompositeTextItem::UpdatePositions(), CFlatFileFeatureCollapsed::x_CalcLineCount(), CFlatFileHeader::x_CalcLineCount(), CFlatFileSeqBlockCollapsed::x_CalcLineCount(), and CFlatFileTextItem::x_CalcLineCount().
|
protected |
Definition at line 172 of file text_item.hpp.
Referenced by CFastaSeqBlockItem::CalcSize(), CFastaSeqHdrItem::CalcSize(), CFastaTitleItem::CalcSize(), CFlatFileLocusItem::CalcSize(), CFlatFileTextItem::CalcSize(), CalcSize(), GetSize(), and CCompositeTextItem::UpdatePositions().