NCBI C++ ToolKit
Public Member Functions | List of all members
ITextItem Class Referenceabstract

Search Toolkit Book for ITextItem

#include <gui/widgets/text_widget/text_item.hpp>

+ Inheritance diagram for ITextItem:

Public Member Functions

 ITextItem ()
 
virtual ~ITextItem ()
 
virtual wxPoint GetPosition () const =0
 
virtual void SetContainer (IContainer *container, int index)=0
 
virtual void GetContainer (IContainer *&container, int &index)=0
 
virtual wxSize GetSize () const =0
 
virtual wxRect GetRect () const
 
virtual void MouseEvent (wxMouseEvent &, CTextPanelContext &)
 
virtual int GetStartLine () const =0
 
virtual size_t GetLineCount () const =0
 
virtual ITextItemGetItemByLine (int lineNum, bool expanded)=0
 
virtual int GetTextLeftMargin (CTextPanelContext *context) const =0
 
virtual void CalcSize (wxDC &dc, CTextPanelContext *context)=0
 
virtual void Draw (wxDC &dc, const wxRect &updateRect, CTextPanelContext *context)=0
 
virtual string GetToolTipText (CTextPanelContext *) const
 
virtual void FillContextMenu (wxMenu &WXUNUSED(menu)) const
 
virtual void GetText (wxTextOutputStream &os, const CTextBlock &block, CTextPanelContext *context)=0
 
virtual const CConstRef< CObjectGetAssosiatedObject () const
 
virtual objects::CScope * GetAssosiatedScope () const
 
virtual bool IsSelectable () const
 
virtual bool Traverse (ICompositeTraverser &)=0
 
CTextBlock GetItemBlock () const
 
virtual ITextItemClone ()
 

Detailed Description

Definition at line 66 of file text_item.hpp.

Constructor & Destructor Documentation

◆ ITextItem()

ITextItem::ITextItem ( )
inline

Definition at line 71 of file text_item.hpp.

References CAtomicCounter::Add(), and gITextItemCount.

◆ ~ITextItem()

virtual ITextItem::~ITextItem ( )
inlinevirtual

Definition at line 72 of file text_item.hpp.

References CAtomicCounter::Add(), and gITextItemCount.

Member Function Documentation

◆ CalcSize()

virtual void ITextItem::CalcSize ( wxDC &  dc,
CTextPanelContext context 
)
pure virtual

◆ Clone()

virtual ITextItem* ITextItem::Clone ( void  )
inlinevirtual

Reimplemented in CAsnHeaderItem, and CAsnElementBlockStart.

Definition at line 120 of file text_item.hpp.

References NULL.

◆ Draw()

virtual void ITextItem::Draw ( wxDC &  dc,
const wxRect &  updateRect,
CTextPanelContext context 
)
pure virtual

◆ FillContextMenu()

virtual void ITextItem::FillContextMenu ( wxMenu &  WXUNUSEDmenu) const
inlinevirtual

Definition at line 103 of file text_item.hpp.

◆ GetAssosiatedObject()

virtual const CConstRef<CObject> ITextItem::GetAssosiatedObject ( ) const
inlinevirtual

◆ GetAssosiatedScope()

virtual objects::CScope* ITextItem::GetAssosiatedScope ( ) const
inlinevirtual

Reimplemented in CObjectTextItem.

Definition at line 110 of file text_item.hpp.

◆ GetContainer()

virtual void ITextItem::GetContainer ( IContainer *&  container,
int index 
)
pure virtual

Implemented in CTextItem, and CExpandItem.

Referenced by CTextItemPanel::MakePosVisible().

◆ GetItemBlock()

CTextBlock ITextItem::GetItemBlock ( ) const
inline

◆ GetItemByLine()

virtual ITextItem* ITextItem::GetItemByLine ( int  lineNum,
bool  expanded 
)
pure virtual

◆ GetLineCount()

virtual size_t ITextItem::GetLineCount ( ) const
pure virtual

◆ GetPosition()

virtual wxPoint ITextItem::GetPosition ( ) const
pure virtual

Implemented in CTextItem, and CExpandItem.

Referenced by GetRect(), and CTextItemPanel::MakeItemVisible().

◆ GetRect()

virtual wxRect ITextItem::GetRect ( ) const
inlinevirtual

Definition at line 83 of file text_item.hpp.

References GetPosition(), and GetSize().

Referenced by CSelectionHelper::x_DrawSelectionArea().

◆ GetSize()

virtual wxSize ITextItem::GetSize ( ) const
pure virtual

◆ GetStartLine()

virtual int ITextItem::GetStartLine ( ) const
pure virtual

◆ GetText()

virtual void ITextItem::GetText ( wxTextOutputStream &  os,
const CTextBlock block,
CTextPanelContext context 
)
pure virtual

◆ GetTextLeftMargin()

virtual int ITextItem::GetTextLeftMargin ( CTextPanelContext context) const
pure virtual

Implemented in CTextItem, and CExpandItem.

Referenced by CSelectionHelper::x_GetSelectionRect().

◆ GetToolTipText()

virtual string ITextItem::GetToolTipText ( CTextPanelContext ) const
inlinevirtual

Reimplemented in CExpandItem, and CFlatFileTextItem.

Definition at line 101 of file text_item.hpp.

Referenced by CExpandItem::GetToolTipText().

◆ IsSelectable()

virtual bool ITextItem::IsSelectable ( ) const
inlinevirtual

◆ MouseEvent()

virtual void ITextItem::MouseEvent ( wxMouseEvent &  ,
CTextPanelContext  
)
inlinevirtual

◆ SetContainer()

virtual void ITextItem::SetContainer ( IContainer container,
int  index 
)
pure virtual

Implemented in CTextItem, and CExpandItem.

Referenced by CCompositeTextItem::UpdatePositions().

◆ Traverse()

virtual bool ITextItem::Traverse ( ICompositeTraverser )
pure virtual

The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:08 2024 by modify_doxy.py rev. 669887