NCBI C++ ToolKit
Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | Friends | List of all members
CTextPanelContext Class Reference

Search Toolkit Book for CTextPanelContext

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

+ Inheritance diagram for CTextPanelContext:
+ Collaboration diagram for CTextPanelContext:

Public Member Functions

 CTextPanelContext (int leftMargin, objects::CScope *scope, const CSerialObject *so)
 
 ~CTextPanelContext ()
 
CTextItemPanelGetPanel ()
 
int GetIndentWidth () const
 
virtual int GetLeftMargin () const
 
virtual void RootInitialized ()
 
void SelectItem (ITextItem *item, bool controlDown, bool shiftDown)
 
virtual void EditItem (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 GetVisibleObjects (TConstScopedObjects &)
 
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)
 
virtual wxMenu * CreateMenu () const
 
virtual void SetPanel (CTextItemPanel *panel)
 
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
 
virtual bool FindSequence (const wxString &)
 
virtual void InitDrawStream (CDrawTextOStream &, int)
 
virtual bool IsEditingEnabled () const
 
void SetWorkDir (const wxString &workDir)
 

Public Attributes

bool m_ItemCollapsed
 

Protected Attributes

CTextItemPanelm_Panel
 
CRef< objects::CScope > m_Scope
 
CConstRef< CSerialObjectm_SO
 
vector< ITextItem * > m_Hier
 
ITextItemm_MouseOverItem
 
set< ITextItem * > m_SelectedItems
 
wxString m_WorkDir
 

Private Attributes

int m_LeftMargin
 
ITextItemm_HighlightedItem
 
wxSize m_WSize
 
wxPoint m_DeviceOrigin
 
wxString m_FontDesc
 
ICanceledm_Canceled
 

Friends

class CTextItemPanel
 
class CItemStackGuard
 

Detailed Description

Definition at line 62 of file text_item_panel.hpp.

Constructor & Destructor Documentation

◆ CTextPanelContext()

CTextPanelContext::CTextPanelContext ( int  leftMargin,
objects::CScope *  scope,
const CSerialObject so 
)
inline

Definition at line 69 of file text_item_panel.hpp.

◆ ~CTextPanelContext()

CTextPanelContext::~CTextPanelContext ( )

Definition at line 73 of file text_item_panel.cpp.

References m_Panel.

Member Function Documentation

◆ AddHier()

void CTextPanelContext::AddHier ( ITextItem item)

Definition at line 238 of file text_item_panel.cpp.

References m_Hier.

Referenced by CAsnViewContext::MouseMoveInContainer().

◆ CalcWSize()

void CTextPanelContext::CalcWSize ( wxDC &  dc)

Definition at line 80 of file text_item_panel.cpp.

References m_WSize, and wxT.

◆ ClearMouseMove()

void CTextPanelContext::ClearMouseMove ( )

Definition at line 232 of file text_item_panel.cpp.

References m_Hier, and m_MouseOverItem.

◆ CreateMenu()

virtual wxMenu* CTextPanelContext::CreateMenu ( ) const
inlinevirtual

Reimplemented in CFastaViewContext, CFlatFileViewContext, and CAsnViewContext.

Definition at line 114 of file text_item_panel.hpp.

◆ CreateTooltipWindow()

virtual wxWindow* CTextPanelContext::CreateTooltipWindow ( )
inlinevirtual

Reimplemented in CAsnViewContext.

Definition at line 107 of file text_item_panel.hpp.

References NULL.

◆ EditItem()

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

Reimplemented in CFlatFileViewContext.

Definition at line 147 of file text_item_panel.cpp.

◆ FindSequence()

virtual bool CTextPanelContext::FindSequence ( const wxString &  )
inlinevirtual

Reimplemented in CFlatFileViewContext.

Definition at line 145 of file text_item_panel.hpp.

◆ GetActiveObjects() [1/2]

void CTextPanelContext::GetActiveObjects ( TConstScopedObjects objects)

Definition at line 186 of file text_item_panel.cpp.

References GetMainObjects(), GetSelectedObjects(), and GetVisibleObjects().

◆ GetActiveObjects() [2/2]

void CTextPanelContext::GetActiveObjects ( vector< TConstScopedObjects > &  objects)

Definition at line 193 of file text_item_panel.cpp.

References GetMainObjects(), GetSelectedObjects(), and GetVisibleObjects().

◆ GetDeviceOrigin()

wxPoint CTextPanelContext::GetDeviceOrigin ( ) const
inline

Definition at line 132 of file text_item_panel.hpp.

References m_DeviceOrigin.

◆ GetFontDesc()

const wxString& CTextPanelContext::GetFontDesc ( ) const
inline

Definition at line 128 of file text_item_panel.hpp.

References m_FontDesc.

◆ GetHighlightedItem()

ITextItem* CTextPanelContext::GetHighlightedItem ( )
inline

Definition at line 111 of file text_item_panel.hpp.

References m_HighlightedItem.

◆ GetIndentWidth()

int CTextPanelContext::GetIndentWidth ( ) const
inline

Definition at line 80 of file text_item_panel.hpp.

References GetWWidth().

◆ GetLeftMargin()

virtual int CTextPanelContext::GetLeftMargin ( ) const
inlinevirtual

Reimplemented in CFlatFileViewContext.

Definition at line 81 of file text_item_panel.hpp.

References GetWWidth(), and m_LeftMargin.

◆ GetMainObjects()

void CTextPanelContext::GetMainObjects ( TConstScopedObjects objects)
virtual

Definition at line 222 of file text_item_panel.cpp.

References m_Scope, m_SO, SConstScopedObject::object, and SConstScopedObject::scope.

Referenced by GetActiveObjects().

◆ GetPanel()

CTextItemPanel* CTextPanelContext::GetPanel ( )
inline

Definition at line 77 of file text_item_panel.hpp.

References m_Panel.

◆ GetScope()

objects::CScope* CTextPanelContext::GetScope ( void  )
inline

Definition at line 118 of file text_item_panel.hpp.

References CRef< C, Locker >::GetPointerOrNull(), and m_Scope.

◆ GetSelectedObjects() [1/2]

void CTextPanelContext::GetSelectedObjects ( TConstObjects objs)

◆ GetSelectedObjects() [2/2]

void CTextPanelContext::GetSelectedObjects ( TConstScopedObjects objects)

◆ GetSelectedTextItems()

const set<ITextItem*>& CTextPanelContext::GetSelectedTextItems ( void  )
inline

Definition at line 98 of file text_item_panel.hpp.

References m_SelectedItems.

◆ GetVisibleObjects()

virtual void CTextPanelContext::GetVisibleObjects ( TConstScopedObjects )
inlinevirtual

Reimplemented in CFlatFileViewContext.

Definition at line 96 of file text_item_panel.hpp.

Referenced by GetActiveObjects().

◆ GetWHeight()

int CTextPanelContext::GetWHeight ( ) const
inline

Definition at line 124 of file text_item_panel.hpp.

References m_WSize.

◆ GetWSize()

wxSize CTextPanelContext::GetWSize ( ) const
inline

Definition at line 121 of file text_item_panel.hpp.

References m_WSize.

◆ GetWWidth()

int CTextPanelContext::GetWWidth ( ) const
inline

Definition at line 123 of file text_item_panel.hpp.

References m_WSize.

Referenced by GetIndentWidth(), CFlatFileViewContext::GetLeftMargin(), and GetLeftMargin().

◆ InitDrawStream()

virtual void CTextPanelContext::InitDrawStream ( CDrawTextOStream ,
int   
)
inlinevirtual

Reimplemented in CFlatFileViewContext.

Definition at line 147 of file text_item_panel.hpp.

◆ IsCanceled()

bool CTextPanelContext::IsCanceled ( void  ) const
inline

Definition at line 143 of file text_item_panel.hpp.

References ICanceled::IsCanceled(), and m_Canceled.

◆ IsEditingEnabled()

virtual bool CTextPanelContext::IsEditingEnabled ( ) const
inlinevirtual

Reimplemented in CFlatFileViewContext.

Definition at line 149 of file text_item_panel.hpp.

◆ IsItemSelected()

bool CTextPanelContext::IsItemSelected ( ITextItem item)

◆ MouseMoveInContainer()

virtual void CTextPanelContext::MouseMoveInContainer ( ITextItem )
inlinevirtual

Reimplemented in CAsnViewContext.

Definition at line 106 of file text_item_panel.hpp.

◆ MouseOverItem()

void CTextPanelContext::MouseOverItem ( ITextItem item)

Definition at line 243 of file text_item_panel.cpp.

References m_MouseOverItem.

◆ RootInitialized()

virtual void CTextPanelContext::RootInitialized ( )
inlinevirtual

Reimplemented in CFlatFileViewContext, and CAsnViewContext.

Definition at line 83 of file text_item_panel.hpp.

◆ SelectItem()

void CTextPanelContext::SelectItem ( ITextItem item,
bool  controlDown,
bool  shiftDown 
)

◆ SetCanceled()

ICanceled* CTextPanelContext::SetCanceled ( ICanceled canceled)
inline

Definition at line 136 of file text_item_panel.hpp.

References m_Canceled.

Referenced by CCancelGuard::CCancelGuard(), and CCancelGuard::~CCancelGuard().

◆ SetDeviceOrigin() [1/2]

void CTextPanelContext::SetDeviceOrigin ( wxDC &  dc) const
inline

Definition at line 134 of file text_item_panel.hpp.

References m_DeviceOrigin.

◆ SetDeviceOrigin() [2/2]

void CTextPanelContext::SetDeviceOrigin ( wxPoint  drawDeviceOrigin)
inline

Definition at line 133 of file text_item_panel.hpp.

References m_DeviceOrigin.

◆ SetFontDesc() [1/2]

void CTextPanelContext::SetFontDesc ( const wxString &  fontDesc)
inline

Definition at line 127 of file text_item_panel.hpp.

References m_FontDesc.

◆ SetFontDesc() [2/2]

void CTextPanelContext::SetFontDesc ( wxWindow &  wnd)

Definition at line 98 of file text_item_panel.cpp.

References m_FontDesc.

◆ SetHighlightedItem()

void CTextPanelContext::SetHighlightedItem ( ITextItem pItem)
inline

Definition at line 112 of file text_item_panel.hpp.

References m_HighlightedItem.

◆ SetPanel()

void CTextPanelContext::SetPanel ( CTextItemPanel panel)
virtual

Reimplemented in CFlatFileViewContext, and CAsnViewContext.

Definition at line 85 of file text_item_panel.cpp.

References m_Panel.

Referenced by CAsnViewContext::SetPanel(), and CFlatFileViewContext::SetPanel().

◆ SetSelectedObjects()

void CTextPanelContext::SetSelectedObjects ( const TConstObjects objs)

◆ SetWorkDir()

void CTextPanelContext::SetWorkDir ( const wxString &  workDir)
inline

Definition at line 151 of file text_item_panel.hpp.

References m_WorkDir.

◆ SetWSize()

void CTextPanelContext::SetWSize ( wxSize  wSize)
inline

Definition at line 122 of file text_item_panel.hpp.

References m_WSize.

◆ TriggerTooltip()

void CTextPanelContext::TriggerTooltip ( )

Definition at line 248 of file text_item_panel.cpp.

References m_Panel, and CTextItemPanel::TriggerTooltip().

Friends And Related Function Documentation

◆ CItemStackGuard

friend class CItemStackGuard
friend

Definition at line 66 of file text_item_panel.hpp.

◆ CTextItemPanel

friend class CTextItemPanel
friend

Definition at line 65 of file text_item_panel.hpp.

Referenced by CAsnViewContext::CreateTooltipWindow().

Member Data Documentation

◆ m_Canceled

ICanceled* CTextPanelContext::m_Canceled
private

Definition at line 173 of file text_item_panel.hpp.

Referenced by IsCanceled(), and SetCanceled().

◆ m_DeviceOrigin

wxPoint CTextPanelContext::m_DeviceOrigin
private

Definition at line 169 of file text_item_panel.hpp.

Referenced by GetDeviceOrigin(), and SetDeviceOrigin().

◆ m_FontDesc

wxString CTextPanelContext::m_FontDesc
private

Definition at line 171 of file text_item_panel.hpp.

Referenced by GetFontDesc(), and SetFontDesc().

◆ m_Hier

vector<ITextItem*> CTextPanelContext::m_Hier
protected

◆ m_HighlightedItem

ITextItem* CTextPanelContext::m_HighlightedItem
private

Definition at line 166 of file text_item_panel.hpp.

Referenced by GetHighlightedItem(), and SetHighlightedItem().

◆ m_ItemCollapsed

bool CTextPanelContext::m_ItemCollapsed

Definition at line 109 of file text_item_panel.hpp.

◆ m_LeftMargin

int CTextPanelContext::m_LeftMargin
private

Definition at line 165 of file text_item_panel.hpp.

Referenced by GetLeftMargin().

◆ m_MouseOverItem

ITextItem* CTextPanelContext::m_MouseOverItem
protected

◆ m_Panel

CTextItemPanel* CTextPanelContext::m_Panel
protected

◆ m_Scope

CRef<objects::CScope> CTextPanelContext::m_Scope
protected

◆ m_SelectedItems

set<ITextItem*> CTextPanelContext::m_SelectedItems
protected

◆ m_SO

CConstRef<CSerialObject> CTextPanelContext::m_SO
protected

Definition at line 156 of file text_item_panel.hpp.

Referenced by GetMainObjects().

◆ m_WorkDir

wxString CTextPanelContext::m_WorkDir
protected

◆ m_WSize

wxSize CTextPanelContext::m_WSize
private

Definition at line 168 of file text_item_panel.hpp.

Referenced by CalcWSize(), GetWHeight(), GetWSize(), GetWWidth(), and SetWSize().


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