CAlnMultiPane Class Reference

Search Toolkit Book for CAlnMultiPane

#include <alnmulti_pane.hpp>

Inheritance diagram for CAlnMultiPane:

Inheritance graph
[legend]
Collaboration diagram for CAlnMultiPane:

Collaboration graph
[legend]
List of all members.

Detailed Description

class CAlnMultiPane

Definition at line 61 of file alnmulti_pane.hpp.

Public Types

typedef CLinearSelHandler::TRangeColl TRangeColl
typedef IAlignRow::TColumnType TColumnType
typedef map< TNumrow, TRangeCollTRowToMarkMap
typedef ISelListModel< TNumrowTSelListModel
typedef CAlnMultiRenderer TRenderer
enum  EEventType { eUnknown, eSelRowChanged, eLinearSelChanged }

Public Member Functions

 CAlnMultiPane (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxWANTS_CHARS)
 ~CAlnMultiPane ()
virtual TVPPoint GetPortSize (void)
 returns size of the master pane in screen coordinates
void SetWidget (IAlnMultiPaneParent *p_arent)
void SetContext (IAlnMultiRendererContext *p_context)
void SetBackColor (const CRgbaColor &color)
void SetMasterBackColor (const CRgbaColor &color)
void OnSize (wxSizeEvent &event)
int GetListAreaHeight () const
void NotifyParent (EEventType type)
CAlignMarkHandlerGetMarkHandler ()
void OnLeftDown (wxMouseEvent &event)
void OnLeftUp (wxMouseEvent &event)
void OnMotion (wxMouseEvent &event)
void OnMouseWheel (wxMouseEvent &event)
void OnKeyDown (wxKeyEvent &event)
Interface for a Widget
int GetAlignVPHeight () const
int GetAlignVPWidth () const
virtual void Update ()
virtual void UpdateOnDataChanged ()
CRulerGetRuler ()
CAlnMultiRendererGetRenderer ()
CRange< TSeqPosGetSelectionLimits ()
const TRangeCollGetSelection () const
void SetSelection (const TRangeColl &C, bool redraw)
void ResetSelection (bool redraw)
void MarkSelectedRows (const TRangeColl &C, bool bMark)
void UnMarkAll ()
const TRowToMarkMapGetMarks () const
void SortByColumn (int index)
void UpdateHeaderSortState ()
void ShowProgressPanel (float progress, const string &msg)
void HideProgressPanel ()
CSelListController extension
virtual void SetPane (CGlPane *pane)
 CSelListController extension.
virtual wxEvtHandler * GetEvtHandler ()
virtual TSelListModelSLC_GetModel ()
virtual int SLC_GetHeight ()
virtual int SLC_GetLineByWindowY (int WinY, bool b_clip=false)
virtual void SLC_VertScrollToMakeVisible (int Index)
TNumrowSelListView implementation
virtual void SLV_SetModel (TSelListModel *pModel)
virtual void SLV_UpdateItems (const TIndexVector &vIndices)
virtual void SLV_UpdateRange (int iFirstItem, int iLastItem)
ISelHandlerHost implementation
virtual void SHH_OnChanged ()
 ISelHandlerHost implementation.
virtual TModelUnit SHH_GetModelByWindow (int z, EOrientation orient)
virtual TVPUnit SHH_GetWindowByModel (TModelUnit z, EOrientation orient)
IAlnMarkHandlerHost implementation
virtual const IAlnMultiDataSourceMHH_GetAlnDS () const
 IAlnMarkHandlerHost implementation.
virtual const TSelListModelMHH_GetSelListModel () const
virtual TNumrow MHH_GetRowByLine (int Index) const
virtual int MHH_GetLineByRowNum (TNumrow Row) const
virtual int MHH_GetLineByWindowY (int Y) const
virtual int MHH_GetLinePosY (int Index) const
virtual int MHH_GetLineHeight (int Index) const
virtual TModelUnit MHH_GetSeqPosByX (int X) const
 ### refactor ??
IMouseZoomHandlerHost implementation
virtual TModelUnit MZHH_GetScale (EScaleType type)
virtual void MZHH_SetScale (TModelUnit scale, const TModelPoint &point)
virtual void MZHH_ZoomRect (const TModelRect &rc)
virtual void MZHH_ZoomPoint (const TModelPoint &point, TModelUnit factor)
virtual void MZHH_Scroll (TModelUnit d_x, TModelUnit d_y)
virtual void MZHH_EndOp ()
virtual TVPUnit MZHH_GetVPPosByY (int y) const
 converts window coord to Viewport coord
IAlignRowHost implementation
virtual void ARH_OnRowChanged (IAlignRow *p_row)
 notifies a host about changes the row
virtual TVPPoint ARH_GetVPPosByWindowPos (const wxPoint &pos)
 provides mouse coords in OpenGL viewport coord system
IAMHeaderHandlerHost implementation
virtual IAlnMultiHeaderContextHHH_GetContext ()
 IAMHeaderHandlerHost implementation.
virtual TVPRect HHH_GetHeaderRect ()
virtual TVPPoint HHH_GetVPPosByWindowPos (const wxPoint &pos)
 returns bounds of the Header
virtual void HHH_SetColumns (const TColumns &columns, int resizable_index)
virtual void HHH_SortByColumn (int index)
virtual void HHH_RenderColumnHeader (int index, const TVPRect &rc)
IGraphContainerHost implementation
virtual TVPPoint GCH_GetVPPosByWindowPos (const wxPoint &pos)
ITooltipClient implementation
virtual bool TC_NeedTooltip (const wxPoint &)
 Returns "true" if client wants to dispaly a tooltip.
virtual string TC_GetTooltip (const wxRect &)
 Returns tooltip string and coordinates for area tootlip associated with.

Protected Types

typedef list< SHandlerRec > THandlerRecList
enum  EHandlerArea {
  fDescrArea = 0x01, fIconsArea = 0x02, fAlignArea = 0x04, fHeaderArea = 0x08,
  fOtherAreas = 0x10, fAllAreas = fDescrArea | fIconsArea | fAlignArea | fHeaderArea | fOtherAreas
}

Protected Member Functions

virtual void x_RenderSelection ()
 protected members
virtual void x_RenderMark ()
virtual void x_RenderZoomHandler ()
virtual void x_RenderHeaderHandler ()
virtual void x_RenderProgressPanel ()
virtual void x_OnRowMouseEvent (wxMouseEvent &event)
TVPPoint x_GetVPPosByWindowPos (int x, int y)
int x_GetLineByWindowY (int WinY) const
bool x_IsMasterLineByWindowY (int WinY)
TVPRect x_GetLineRect (int Index) const
virtual int x_GetAreaByVPPos (TVPUnit vp_x, TVPUnit vp_y)
IAlnMultiPaneParentx_GetParent ()
const IAlnMultiPaneParentx_GetParent () const
void x_SendCommand (TCmdID cmd)
IAlnMultiRendererContextx_GetContext ()
const IAlnMultiRendererContextx_GetContext () const
TSelListModelx_GetModel ()
const TSelListModelx_GetModel () const
CGlWidgetChild functions
virtual void x_Render ()
int x_GetAreaByWindowPos (const wxPoint &pos)

Protected Attributes

IAlnMultiPaneParentm_Parent
IAlnMultiRendererContextm_Context
TSelListModelm_Model
CGlPane m_HandlerPane
CLinearSelHandler m_SelHandler
CAlignMarkHandler m_MarkHandler
CMouseZoomHandler m_MouseZoomHandler
CAlnMultiRenderer m_Renderer
CAlnMultiHeaderHandler m_HeaderHandler
CTooltipHandler m_TooltipHandler
CProgressPanel m_ProgressPanel

Classes

class  CEvent


Member Typedef Documentation

typedef IAlignRow::TColumnType CAlnMultiPane::TColumnType
 

Definition at line 76 of file alnmulti_pane.hpp.

typedef list<SHandlerRec> CAlnMultiPane::THandlerRecList [protected]
 

Reimplemented from CGlWidgetPane.

Definition at line 275 of file alnmulti_pane.hpp.

typedef CLinearSelHandler::TRangeColl CAlnMultiPane::TRangeColl
 

Reimplemented from IAlignMarkHandlerHost.

Definition at line 75 of file alnmulti_pane.hpp.

typedef CAlnMultiRenderer CAlnMultiPane::TRenderer
 

Definition at line 79 of file alnmulti_pane.hpp.

typedef map<TNumrow, TRangeColl> CAlnMultiPane::TRowToMarkMap
 

Reimplemented from IAlignMarkHandlerHost.

Definition at line 77 of file alnmulti_pane.hpp.

typedef ISelListModel<TNumrow> CAlnMultiPane::TSelListModel
 

Reimplemented from IAlignMarkHandlerHost.

Definition at line 78 of file alnmulti_pane.hpp.


Member Enumeration Documentation

enum CAlnMultiPane::EEventType
 

Enumerator:
eUnknown 
eSelRowChanged 
eLinearSelChanged 

Definition at line 81 of file alnmulti_pane.hpp.

enum CAlnMultiPane::EHandlerArea [protected]
 

Enumerator:
fDescrArea 
fIconsArea 
fAlignArea 
fHeaderArea 
fOtherAreas 
fAllAreas 

Definition at line 267 of file alnmulti_pane.hpp.


Constructor & Destructor Documentation

CAlnMultiPane::CAlnMultiPane wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxWANTS_CHARS
 

Definition at line 62 of file alnmulti_pane.cpp.

References CTooltipHandler::eHideOnMove, CMouseZoomHandler::eHorz, and f().

CAlnMultiPane::~CAlnMultiPane  ) 
 

Definition at line 100 of file alnmulti_pane.cpp.


Member Function Documentation

TVPPoint CAlnMultiPane::ARH_GetVPPosByWindowPos const wxPoint &  pos  )  [virtual]
 

provides mouse coords in OpenGL viewport coord system

Implements IAlignRowHost.

Definition at line 839 of file alnmulti_pane.cpp.

References x_GetVPPosByWindowPos().

void CAlnMultiPane::ARH_OnRowChanged IAlignRow p_row  )  [virtual]
 

notifies a host about changes the row

Implements IAlignRowHost.

Definition at line 833 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::OnRowChanged(), and x_GetParent().

TVPPoint CAlnMultiPane::GCH_GetVPPosByWindowPos const wxPoint &  pos  )  [virtual]
 

Implements IGraphContainerHost.

Definition at line 879 of file alnmulti_pane.cpp.

References x_GetVPPosByWindowPos().

int CAlnMultiPane::GetAlignVPHeight  )  const
 

Definition at line 421 of file alnmulti_pane.cpp.

References GetListAreaHeight().

Referenced by CAlnMultiWidget::CreateWidget(), CAlnMultiWidget::x_AdjustVisible(), and CAlnMultiWidget::x_OnResize().

int CAlnMultiPane::GetAlignVPWidth  )  const
 

Definition at line 427 of file alnmulti_pane.cpp.

References IAlignRow::eAlignment, CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnIndexByType(), and m_Renderer.

Referenced by CAlnMultiWidget::CreateWidget(), and CAlnMultiWidget::x_OnResize().

wxEvtHandler * CAlnMultiPane::GetEvtHandler  )  [virtual]
 

Implements CSelListController< Item >.

Definition at line 650 of file alnmulti_pane.cpp.

int CAlnMultiPane::GetListAreaHeight  )  const [inline]
 

Definition at line 219 of file alnmulti_pane.hpp.

References CAlnMultiRenderer::GetListAreaHeight(), and m_Renderer.

Referenced by GetAlignVPHeight().

CAlignMarkHandler& CAlnMultiPane::GetMarkHandler  )  [inline]
 

Definition at line 223 of file alnmulti_pane.hpp.

References m_MarkHandler.

const CAlnMultiPane::TRowToMarkMap & CAlnMultiPane::GetMarks  )  const
 

Definition at line 415 of file alnmulti_pane.cpp.

References CAlignMarkHandler::GetMarks(), and m_MarkHandler.

Referenced by CAlnMultiWidget::GetMarks().

TVPPoint CAlnMultiPane::GetPortSize void   )  [virtual]
 

returns size of the master pane in screen coordinates

Implements CGlWidgetPane.

Definition at line 105 of file alnmulti_pane.cpp.

CAlnMultiRenderer & CAlnMultiPane::GetRenderer  ) 
 

Definition at line 152 of file alnmulti_pane.cpp.

References m_Renderer.

Referenced by CAlnMultiWidget::OnSettings(), CAlnMultiWidget::x_UpdateOnStylesChanged(), and CAlnMultiWidget::x_UpdateStyleColumns().

CRuler & CAlnMultiPane::GetRuler  ) 
 

Definition at line 146 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetRuler(), and m_Renderer.

const CAlnMultiPane::TRangeColl & CAlnMultiPane::GetSelection  )  const
 

Definition at line 385 of file alnmulti_pane.cpp.

References CLinearSelHandler::GetSelection(), and m_SelHandler.

Referenced by CAlnMultiWidget::GetSelection(), CAlnMultiWidget::OnMarkSelected(), CAlnMultiWidget::OnUnMarkSelected(), CAlnMultiWidget::OnUpdateMarkSelected(), and CAlnMultiWidget::x_UpdateOnSwitchMaster().

CRange< TSeqPos > CAlnMultiPane::GetSelectionLimits  ) 
 

Definition at line 379 of file alnmulti_pane.cpp.

References CLinearSelHandler::GetSelectionLimits(), and m_SelHandler.

Referenced by CAlnMultiWidget::OnUpdateZoomSelection(), and CAlnMultiWidget::OnZoomSelection().

IAlnMultiHeaderContext * CAlnMultiPane::HHH_GetContext  )  [virtual]
 

IAMHeaderHandlerHost implementation.

Implements IAMHeaderHandlerHost.

Definition at line 847 of file alnmulti_pane.cpp.

References m_Renderer.

TVPRect CAlnMultiPane::HHH_GetHeaderRect  )  [virtual]
 

Implements IAMHeaderHandlerHost.

Definition at line 853 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetHeader(), CRenderableImpl::GetVPRect(), and m_Renderer.

TVPPoint CAlnMultiPane::HHH_GetVPPosByWindowPos const wxPoint &  pos  )  [virtual]
 

returns bounds of the Header

Implements IAMHeaderHandlerHost.

Definition at line 859 of file alnmulti_pane.cpp.

References x_GetVPPosByWindowPos().

void CAlnMultiPane::HHH_RenderColumnHeader int  index,
const TVPRect rc
[virtual]
 

Implements IAMHeaderHandlerHost.

Definition at line 923 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetHeader(), m_Renderer, and CAlnMultiHeader::RenderColumnHeader().

void CAlnMultiPane::HHH_SetColumns const TColumns columns,
int  resizable_index
[virtual]
 

Definition at line 865 of file alnmulti_pane.cpp.

References m_Renderer, IAlnMultiPaneParent::OnColumnsChanged(), CAlnMultiRenderer::SetColumns(), and x_GetParent().

void CAlnMultiPane::HHH_SortByColumn int  index  )  [virtual]
 

Implements IAMHeaderHandlerHost.

Definition at line 874 of file alnmulti_pane.cpp.

References SortByColumn().

void CAlnMultiPane::HideProgressPanel  ) 
 

Definition at line 974 of file alnmulti_pane.cpp.

References m_ProgressPanel, and CRenderableImpl::SetVisible().

Referenced by CAlnMultiWidget::OnDSChanged(), and CAlnMultiWidget::OnScoringFinished().

void CAlnMultiPane::MarkSelectedRows const TRangeColl C,
bool  bMark
 

Definition at line 403 of file alnmulti_pane.cpp.

References m_MarkHandler, and CAlignMarkHandler::MarkSelectedRows().

Referenced by CAlnMultiWidget::OnMarkSelected(), and CAlnMultiWidget::OnUnMarkSelected().

const IAlnMultiDataSource * CAlnMultiPane::MHH_GetAlnDS  )  const [virtual]
 

IAlnMarkHandlerHost implementation.

Implements IAlignMarkHandlerHost.

Definition at line 735 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::GetDataSource(), and x_GetParent().

int CAlnMultiPane::MHH_GetLineByRowNum TNumrow  Row  )  const [virtual]
 

Definition at line 753 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::GetLineByRowNum(), and x_GetParent().

int CAlnMultiPane::MHH_GetLineByWindowY int  Y  )  const [virtual]
 

Implements IAlignMarkHandlerHost.

Definition at line 759 of file alnmulti_pane.cpp.

References x_GetLineByWindowY().

int CAlnMultiPane::MHH_GetLineHeight int  Index  )  const [virtual]
 

Implements IAlignMarkHandlerHost.

Definition at line 771 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetLineHeight(), and x_GetContext().

Referenced by OnMouseWheel().

int CAlnMultiPane::MHH_GetLinePosY int  Index  )  const [virtual]
 

Implements IAlignMarkHandlerHost.

Definition at line 765 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetLinePosY(), and x_GetContext().

CAlnMultiPane::TNumrow CAlnMultiPane::MHH_GetRowByLine int  Index  )  const [virtual]
 

Implements IAlignMarkHandlerHost.

Definition at line 747 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::GetRowNumByLine(), and x_GetParent().

const CAlnMultiPane::TSelListModel * CAlnMultiPane::MHH_GetSelListModel  )  const [virtual]
 

Implements IAlignMarkHandlerHost.

Definition at line 741 of file alnmulti_pane.cpp.

References x_GetModel().

TModelUnit CAlnMultiPane::MHH_GetSeqPosByX int  X  )  const [virtual]
 

### refactor ??

Implements IAlignMarkHandlerHost.

Definition at line 778 of file alnmulti_pane.cpp.

References m_HandlerPane, and CGlPane::UnProjectX().

void CAlnMultiPane::MZHH_EndOp  )  [virtual]
 

Implements IMouseZoomHandlerHost.

Definition at line 821 of file alnmulti_pane.cpp.

TModelUnit CAlnMultiPane::MZHH_GetScale EScaleType  type  )  [virtual]
 

Definition at line 784 of file alnmulti_pane.cpp.

References _ASSERT, IMouseZoomHandlerHost::eCurrent, IMouseZoomHandlerHost::eMax, IMouseZoomHandlerHost::eMin, IAlnMultiRendererContext::GetAlignPort(), CGlPane::GetMinScaleX(), CGlPane::GetScaleX(), CGlPane::GetZoomAllScaleX(), and x_GetContext().

TVPUnit CAlnMultiPane::MZHH_GetVPPosByY int  y  )  const [virtual]
 

converts window coord to Viewport coord

Implements IMouseZoomHandlerHost.

Definition at line 827 of file alnmulti_pane.cpp.

void CAlnMultiPane::MZHH_Scroll TModelUnit  d_x,
TModelUnit  d_y
[virtual]
 

Implements IMouseZoomHandlerHost.

Definition at line 815 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::Scroll(), and x_GetParent().

void CAlnMultiPane::MZHH_SetScale TModelUnit  scale,
const TModelPoint point
[virtual]
 

Implements IMouseZoomHandlerHost.

Definition at line 797 of file alnmulti_pane.cpp.

References IAlnMultiPaneParent::SetScaleX(), and x_GetParent().

void CAlnMultiPane::MZHH_ZoomPoint const TModelPoint point,
TModelUnit  factor
[virtual]
 

Implements IMouseZoomHandlerHost.

Definition at line 809 of file alnmulti_pane.cpp.

References x_GetParent(), and IAlnMultiPaneParent::ZoomPoint().

void CAlnMultiPane::MZHH_ZoomRect const TModelRect rc  )  [virtual]
 

Implements IMouseZoomHandlerHost.

Definition at line 803 of file alnmulti_pane.cpp.

References x_GetParent(), and IAlnMultiPaneParent::ZoomRect().

void CAlnMultiPane::NotifyParent EEventType  type  ) 
 

Definition at line 634 of file alnmulti_pane.cpp.

References CEventHandler::eDispatch_Default, CEventHandler::ePool_Parent, and CEventHandler::Send().

Referenced by SHH_OnChanged().

void CAlnMultiPane::OnKeyDown wxKeyEvent &  event  ) 
 

Definition at line 233 of file alnmulti_pane.cpp.

References CGlWidgetPane::OnKeyEvent(), and CSelListController< Item >::x_OnKeyDown().

void CAlnMultiPane::OnLeftDown wxMouseEvent &  event  ) 
 

Definition at line 171 of file alnmulti_pane.cpp.

References fIconsArea, CGlWidgetPane::OnMouseDown(), x_GetAreaByWindowPos(), CSelListController< Item >::x_OnLeftDown(), and x_OnRowMouseEvent().

void CAlnMultiPane::OnLeftUp wxMouseEvent &  event  ) 
 

Definition at line 192 of file alnmulti_pane.cpp.

References CGlWidgetPane::OnMouseUp(), and CSelListController< Item >::x_OnLeftUp().

void CAlnMultiPane::OnMotion wxMouseEvent &  event  ) 
 

Reimplemented from CGlWidgetPane.

Definition at line 204 of file alnmulti_pane.cpp.

References CGlWidgetPane::OnMotion(), and CSelListController< Item >::x_OnMotion().

void CAlnMultiPane::OnMouseWheel wxMouseEvent &  event  ) 
 

Reimplemented from CGlWidgetPane.

Definition at line 216 of file alnmulti_pane.cpp.

References MHH_GetLineHeight(), CGlWidgetPane::OnMouseWheel(), IAlnMultiPaneParent::Scroll(), SLC_GetModel(), and x_GetParent().

void CAlnMultiPane::OnSize wxSizeEvent &  event  ) 
 

Definition at line 158 of file alnmulti_pane.cpp.

References m_Renderer, IAlnMultiPaneParent::OnChildResize(), CAlnMultiRenderer::Resize(), and x_GetParent().

void CAlnMultiPane::ResetSelection bool  redraw  ) 
 

Definition at line 397 of file alnmulti_pane.cpp.

References m_SelHandler, and CLinearSelHandler::ResetSelection().

Referenced by CAlnMultiWidget::OnResetSelection().

void CAlnMultiPane::SetBackColor const CRgbaColor color  ) 
 

Definition at line 136 of file alnmulti_pane.cpp.

References color, m_Renderer, and CAlnMultiRenderer::SetBackColor().

Referenced by CAlnMultiWidget::x_UpdateOnStylesChanged().

void CAlnMultiPane::SetContext IAlnMultiRendererContext p_context  ) 
 

Definition at line 125 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetAlignPort(), m_Context, m_HandlerPane, m_Renderer, CAlnMultiRenderer::SetContext(), and x_GetContext().

Referenced by CAlnMultiWidget::x_CreatePane().

void CAlnMultiPane::SetMasterBackColor const CRgbaColor color  ) 
 

Definition at line 141 of file alnmulti_pane.cpp.

References color, m_Renderer, and CAlnMultiRenderer::SetMasterBackColor().

void CAlnMultiPane::SetPane CGlPane pane  )  [virtual]
 

CSelListController extension.

Implements CSelListController< Item >.

Definition at line 644 of file alnmulti_pane.cpp.

void CAlnMultiPane::SetSelection const TRangeColl C,
bool  redraw
 

Definition at line 391 of file alnmulti_pane.cpp.

References m_SelHandler, and CLinearSelHandler::SetSelection().

Referenced by CAlnMultiWidget::SetSelection(), and CAlnMultiWidget::x_UpdateOnSwitchMaster().

void CAlnMultiPane::SetWidget IAlnMultiPaneParent p_arent  ) 
 

Definition at line 111 of file alnmulti_pane.cpp.

References CEventHandler::AddListener(), CEventHandler::ePool_Parent, m_Parent, and CEventHandler::RemoveListener().

Referenced by CAlnMultiWidget::x_CreatePane().

TModelUnit CAlnMultiPane::SHH_GetModelByWindow int  z,
EOrientation  orient
[virtual]
 

Implements ISelHandlerHost.

Definition at line 705 of file alnmulti_pane.cpp.

References _ASSERT, eHorz, eVert, m_HandlerPane, CGlPane::UnProjectX(), and CGlPane::UnProjectY().

Referenced by CAlnMultiWidget::OnContextMenu().

TVPUnit CAlnMultiPane::SHH_GetWindowByModel TModelUnit  z,
EOrientation  orient
[virtual]
 

Implements ISelHandlerHost.

Definition at line 719 of file alnmulti_pane.cpp.

References _ASSERT, eHorz, eVert, m_HandlerPane, CGlPane::ProjectX(), and CGlPane::ProjectY().

void CAlnMultiPane::SHH_OnChanged  )  [virtual]
 

ISelHandlerHost implementation.

Implements ISelHandlerHost.

Definition at line 696 of file alnmulti_pane.cpp.

References eLinearSelChanged, and NotifyParent().

void CAlnMultiPane::ShowProgressPanel float  progress,
const string &  msg
 

Definition at line 966 of file alnmulti_pane.cpp.

References m_ProgressPanel, CRenderableImpl::SetVisible(), and CProgressPanel::Update().

Referenced by CAlnMultiWidget::OnDSChanged(), and CAlnMultiWidget::OnScoringProgress().

int CAlnMultiPane::SLC_GetHeight  )  [virtual]
 

Implements CSelListController< Item >.

Definition at line 662 of file alnmulti_pane.cpp.

int CAlnMultiPane::SLC_GetLineByWindowY int  WinY,
bool  b_clip = false
[virtual]
 

Implements CSelListController< Item >.

Definition at line 668 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetMasterAreaHeight(), CAlnMultiRenderer::GetRulerAreaHeight(), m_Renderer, and x_GetLineByWindowY().

CAlnMultiPane::TSelListModel * CAlnMultiPane::SLC_GetModel  )  [virtual]
 

Implements CSelListController< Item >.

Definition at line 656 of file alnmulti_pane.cpp.

References x_GetModel().

Referenced by OnMouseWheel().

void CAlnMultiPane::SLC_VertScrollToMakeVisible int  Index  )  [virtual]
 

Implements CSelListController< Item >.

Definition at line 677 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetAlignPort(), IAlnMultiRendererContext::GetLineHeight(), IAlnMultiRendererContext::GetLinePosY(), CGlPane::GetVisibleRect(), IAlnMultiPaneParent::Scroll(), CGlRect< T >::Top(), x_GetContext(), and x_GetParent().

void CAlnMultiPane::SLV_SetModel TSelListModel pModel  )  [virtual]
 

Definition at line 588 of file alnmulti_pane.cpp.

References m_Model.

void CAlnMultiPane::SLV_UpdateItems const TIndexVector vIndices  )  [virtual]
 

Definition at line 594 of file alnmulti_pane.cpp.

References CGlRect< T >::Intersects(), and x_GetLineRect().

void CAlnMultiPane::SLV_UpdateRange int  iFirstItem,
int  iLastItem
[virtual]
 

Implements ISelListView< Item >.

Definition at line 614 of file alnmulti_pane.cpp.

References CGlRect< T >::CombineWith(), CGlRect< T >::Intersects(), and x_GetLineRect().

void CAlnMultiPane::SortByColumn int  index  ) 
 

Definition at line 884 of file alnmulti_pane.cpp.

References IAlnExplorer::eAscending, IAlnExplorer::eDescending, IAlnExplorer::eNotSupported, IAlnExplorer::eUnSorted, CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnTypeByIndex(), m_Renderer, IAlnMultiRendererContext::SortByColumn(), UpdateHeaderSortState(), and x_GetContext().

Referenced by HHH_SortByColumn().

string CAlnMultiPane::TC_GetTooltip const wxRect &   )  [virtual]
 

Returns tooltip string and coordinates for area tootlip associated with.

Client may choose not modify x, y, w, z, in that case tooltip will be associated with current mouse position.

Reimplemented from CGlWidgetPane.

Definition at line 326 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetTooltip(), and m_Renderer.

bool CAlnMultiPane::TC_NeedTooltip const wxPoint &   )  [virtual]
 

Returns "true" if client wants to dispaly a tooltip.

"x" and "y" are cordinates of the mouse pointer

Reimplemented from CGlWidgetPane.

Definition at line 318 of file alnmulti_pane.cpp.

References m_Renderer, CAlnMultiRenderer::NeedTooltip(), CGlPoint< T >::X(), x_GetVPPosByWindowPos(), and CGlPoint< T >::Y().

void CAlnMultiPane::UnMarkAll  ) 
 

Definition at line 409 of file alnmulti_pane.cpp.

References m_MarkHandler, and CAlignMarkHandler::UnMarkAll().

Referenced by CAlnMultiWidget::OnUnMarkAll().

void CAlnMultiPane::Update  )  [virtual]
 

Definition at line 359 of file alnmulti_pane.cpp.

References m_Renderer, IAlnMultiPaneParent::OnChildResize(), CAlnMultiRenderer::Update(), UpdateHeaderSortState(), and x_GetParent().

Referenced by CAlnMultiWidget::UpdateOnScoringChanged(), CAlnMultiWidget::UpdateView(), CAlnMultiWidget::x_UpdateOnSwitchMaster(), and CAlnMultiWidget::x_UpdateOnZoom().

void CAlnMultiPane::UpdateHeaderSortState  ) 
 

Definition at line 912 of file alnmulti_pane.cpp.

References CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnsCount(), IAlnMultiRendererContext::GetColumnSortState(), m_Renderer, and x_GetContext().

Referenced by SortByColumn(), Update(), UpdateOnDataChanged(), and CAlnMultiWidget::UpdateSortOrder().

void CAlnMultiPane::UpdateOnDataChanged  )  [virtual]
 

Definition at line 369 of file alnmulti_pane.cpp.

References m_Renderer, IAlnMultiPaneParent::OnChildResize(), UpdateHeaderSortState(), CAlnMultiRenderer::UpdateOnDataChanged(), and x_GetParent().

int CAlnMultiPane::x_GetAreaByVPPos TVPUnit  vp_x,
TVPUnit  vp_y
[protected, virtual]
 

Reimplemented from CGlWidgetPane.

Definition at line 936 of file alnmulti_pane.cpp.

References IAlignRow::eAlignment, IAlignRow::eDescr, IAlignRow::eIconExpand, IAlignRow::eIcons, IAlignRow::eIconStrand, fAlignArea, fDescrArea, fHeaderArea, fIconsArea, fOtherAreas, CAlnMultiRenderer::GetColumnTypeByX(), CAlnMultiRenderer::GetGraphContainer(), CAlnMultiRenderer::GetListAreaHeight(), CAlnMultiRenderer::GetMasterAreaHeight(), CAlnMultiRenderer::GetRulerAreaHeight(), m_Renderer, CGraphContainer::PreferredSize(), and CGlPoint< T >::Y().

Referenced by x_GetAreaByWindowPos().

int CAlnMultiPane::x_GetAreaByWindowPos const wxPoint &  pos  )  [protected, virtual]
 

Reimplemented from CGlWidgetPane.

Definition at line 929 of file alnmulti_pane.cpp.

References x_GetAreaByVPPos().

Referenced by OnLeftDown().

const IAlnMultiRendererContext* CAlnMultiPane::x_GetContext void   )  const [inline, protected]
 

Definition at line 261 of file alnmulti_pane.hpp.

References m_Context.

IAlnMultiRendererContext* CAlnMultiPane::x_GetContext void   )  [inline, protected]
 

Definition at line 260 of file alnmulti_pane.hpp.

References m_Context.

Referenced by MHH_GetLineHeight(), MHH_GetLinePosY(), MZHH_GetScale(), SetContext(), SLC_VertScrollToMakeVisible(), SortByColumn(), UpdateHeaderSortState(), x_GetLineByWindowY(), x_GetLineRect(), x_IsMasterLineByWindowY(), x_OnRowMouseEvent(), x_RenderMark(), and x_RenderSelection().

int CAlnMultiPane::x_GetLineByWindowY int  WinY  )  const [protected]
 

Definition at line 555 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetAlignPort(), IAlnMultiRendererContext::GetLineByModelY(), CAlnMultiRenderer::GetListTop(), CGlPane::GetVisibleRect(), m_Renderer, CGlRect< T >::Top(), and x_GetContext().

Referenced by MHH_GetLineByWindowY(), SLC_GetLineByWindowY(), and x_OnRowMouseEvent().

TVPRect CAlnMultiPane::x_GetLineRect int  Index  )  const [protected]
 

Definition at line 573 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetAlignPort(), IAlnMultiRendererContext::GetLineHeight(), IAlnMultiRendererContext::GetLinePosY(), CGlPane::GetVisibleRect(), H, CGlRect< T >::Top(), x_GetContext(), and x_GetParent().

Referenced by SLV_UpdateItems(), and SLV_UpdateRange().

const TSelListModel* CAlnMultiPane::x_GetModel  )  const [inline, protected]
 

Definition at line 264 of file alnmulti_pane.hpp.

References m_Model.

TSelListModel* CAlnMultiPane::x_GetModel  )  [inline, protected]
 

Definition at line 263 of file alnmulti_pane.hpp.

References m_Model.

Referenced by MHH_GetSelListModel(), and SLC_GetModel().

const IAlnMultiPaneParent* CAlnMultiPane::x_GetParent  )  const [inline, protected]
 

Definition at line 256 of file alnmulti_pane.hpp.

References m_Parent.

IAlnMultiPaneParent* CAlnMultiPane::x_GetParent  )  [inline, protected]
 

Definition at line 255 of file alnmulti_pane.hpp.

References m_Parent.

Referenced by ARH_OnRowChanged(), HHH_SetColumns(), MHH_GetAlnDS(), MHH_GetLineByRowNum(), MHH_GetRowByLine(), MZHH_Scroll(), MZHH_SetScale(), MZHH_ZoomPoint(), MZHH_ZoomRect(), OnMouseWheel(), OnSize(), SLC_VertScrollToMakeVisible(), Update(), UpdateOnDataChanged(), x_GetLineRect(), x_RenderMark(), x_RenderSelection(), and x_RenderZoomHandler().

TVPPoint CAlnMultiPane::x_GetVPPosByWindowPos int  x,
int  y
[protected]
 

Definition at line 547 of file alnmulti_pane.cpp.

Referenced by ARH_GetVPPosByWindowPos(), GCH_GetVPPosByWindowPos(), HHH_GetVPPosByWindowPos(), and TC_NeedTooltip().

bool CAlnMultiPane::x_IsMasterLineByWindowY int  WinY  )  [protected]
 

Definition at line 562 of file alnmulti_pane.cpp.

References IAlnMultiRendererContext::GetAlignPort(), CAlnMultiRenderer::GetListTop(), CAlnMultiRenderer::GetMasterAreaHeight(), CGlPane::GetVisibleRect(), m_Renderer, CGlRect< T >::Top(), and x_GetContext().

void CAlnMultiPane::x_OnRowMouseEvent wxMouseEvent &  event  )  [protected, virtual]
 

Definition at line 245 of file alnmulti_pane.cpp.

References _ASSERT, CGlPane::EnableOffset(), CGlPane::eNeverUpdate, IAlnMultiRendererContext::GetAlignPort(), CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnIndexByX(), IAlnMultiRendererContext::GetLinePosY(), CAlnMultiRenderer::GetMasterArea(), IAlnMultiRendererContext::GetMasterRow(), IAlnMultiRendererContext::GetRowByLine(), CGlPane::GetVisibleRect(), CAlnMultiRenderer::GetVPListTop(), m_Renderer, IAlignRow::OnMouseEvent(), pos, CAlnMultiRenderer::SetupPaneForColumn(), CAlnMultiRenderer::SetupPaneForRow(), CGlRect< T >::Top(), x_GetContext(), and x_GetLineByWindowY().

Referenced by OnLeftDown().

void CAlnMultiPane::x_Render  )  [protected, virtual]
 

Reimplemented from CGLCanvas.

Definition at line 332 of file alnmulti_pane.cpp.

References ERR_POST, error(), CException::GetMsg(), m_Renderer, CAlnMultiRenderer::Render(), CAlnMultiRenderer::SetFocused(), x_RenderHeaderHandler(), x_RenderMark(), x_RenderProgressPanel(), x_RenderSelection(), and x_RenderZoomHandler().

void CAlnMultiPane::x_RenderHeaderHandler  )  [protected, virtual]
 

Definition at line 515 of file alnmulti_pane.cpp.

References CGlPane::eNeverUpdate, CAlnMultiRenderer::GetRect(), CAlnMultiHeaderHandler::IsActive(), m_HeaderHandler, m_Renderer, and CAlnMultiHeaderHandler::Render().

Referenced by x_Render().

void CAlnMultiPane::x_RenderMark  )  [protected, virtual]
 

Definition at line 467 of file alnmulti_pane.cpp.

References IAlignRow::eAlignment, IAlnMultiRendererContext::GetAlignPort(), CAlnMultiRenderer::GetColumnRectByType(), CGlPane::GetModelLimitsRect(), CGlPane::GetVisibleRect(), CAlnMultiRenderer::GetVPListTop(), CGlRect< T >::Height(), m_HandlerPane, m_MarkHandler, m_Renderer, CAlignMarkHandler::Render(), CGlRect< T >::SetBottom(), CGlPane::SetModelLimitsRect(), CGlRect< T >::SetTop(), CGlPane::SetViewport(), CGlPane::SetVisibleRect(), CGlRect< T >::Top(), CGlRect< T >::Width(), x_GetContext(), and x_GetParent().

Referenced by x_Render().

void CAlnMultiPane::x_RenderProgressPanel  )  [protected, virtual]
 

Definition at line 526 of file alnmulti_pane.cpp.

References CGlPane::eNeverUpdate, CAlnMultiRenderer::GetRect(), CRenderableImpl::IsVisible(), m_ProgressPanel, m_Renderer, CProgressPanel::PreferredSize(), CProgressPanel::Render(), CRenderableImpl::SetVPRect(), and CGlPoint< T >::Y().

Referenced by x_Render().

void CAlnMultiPane::x_RenderSelection  )  [protected, virtual]
 

protected members

Definition at line 437 of file alnmulti_pane.cpp.

References IAlignRow::eAlignment, CGlPane::EnableOffset(), IAlnMultiRendererContext::GetAlignPort(), CAlnMultiRenderer::GetColumnRectByType(), CGlPane::GetModelLimitsRect(), CGlPane::GetVisibleRect(), CGlRect< T >::IsEmpty(), m_HandlerPane, m_Renderer, m_SelHandler, CLinearSelHandler::Render(), CGlPane::SetModelLimitsRect(), CGlRect< T >::SetVert(), CGlPane::SetViewport(), CGlPane::SetVisibleRect(), x_GetContext(), and x_GetParent().

Referenced by x_Render().

void CAlnMultiPane::x_RenderZoomHandler  )  [protected, virtual]
 

Definition at line 496 of file alnmulti_pane.cpp.

References IAlignRow::eAlignment, CAlnMultiRenderer::GetColumnRectByType(), m_HandlerPane, m_MouseZoomHandler, m_Renderer, CMouseZoomHandler::Render(), CGlPane::SetViewport(), CGlRect< T >::Width(), and x_GetParent().

Referenced by x_Render().

void CAlnMultiPane::x_SendCommand TCmdID  cmd  )  [protected]
 


Member Data Documentation

IAlnMultiRendererContext* CAlnMultiPane::m_Context [protected]
 

Definition at line 278 of file alnmulti_pane.hpp.

Referenced by SetContext(), and x_GetContext().

CGlPane CAlnMultiPane::m_HandlerPane [protected]
 

Definition at line 281 of file alnmulti_pane.hpp.

Referenced by MHH_GetSeqPosByX(), SetContext(), SHH_GetModelByWindow(), SHH_GetWindowByModel(), x_RenderMark(), x_RenderSelection(), and x_RenderZoomHandler().

CAlnMultiHeaderHandler CAlnMultiPane::m_HeaderHandler [protected]
 

Definition at line 288 of file alnmulti_pane.hpp.

Referenced by x_RenderHeaderHandler().

CAlignMarkHandler CAlnMultiPane::m_MarkHandler [protected]
 

Definition at line 284 of file alnmulti_pane.hpp.

Referenced by GetMarkHandler(), GetMarks(), MarkSelectedRows(), UnMarkAll(), and x_RenderMark().

TSelListModel* CAlnMultiPane::m_Model [protected]
 

Definition at line 279 of file alnmulti_pane.hpp.

Referenced by SLV_SetModel(), and x_GetModel().

CMouseZoomHandler CAlnMultiPane::m_MouseZoomHandler [protected]
 

Definition at line 285 of file alnmulti_pane.hpp.

Referenced by x_RenderZoomHandler().

IAlnMultiPaneParent* CAlnMultiPane::m_Parent [protected]
 

Definition at line 277 of file alnmulti_pane.hpp.

Referenced by SetWidget(), and x_GetParent().

CProgressPanel CAlnMultiPane::m_ProgressPanel [protected]
 

Definition at line 291 of file alnmulti_pane.hpp.

Referenced by HideProgressPanel(), ShowProgressPanel(), and x_RenderProgressPanel().

CAlnMultiRenderer CAlnMultiPane::m_Renderer [protected]
 

Definition at line 287 of file alnmulti_pane.hpp.

Referenced by GetAlignVPWidth(), GetListAreaHeight(), GetRenderer(), GetRuler(), HHH_GetContext(), HHH_GetHeaderRect(), HHH_RenderColumnHeader(), HHH_SetColumns(), OnSize(), SetBackColor(), SetContext(), SetMasterBackColor(), SLC_GetLineByWindowY(), SortByColumn(), TC_GetTooltip(), TC_NeedTooltip(), Update(), UpdateHeaderSortState(), UpdateOnDataChanged(), x_GetAreaByVPPos(), x_GetLineByWindowY(), x_IsMasterLineByWindowY(), x_OnRowMouseEvent(), x_Render(), x_RenderHeaderHandler(), x_RenderMark(), x_RenderProgressPanel(), x_RenderSelection(), and x_RenderZoomHandler().

CLinearSelHandler CAlnMultiPane::m_SelHandler [protected]
 

Definition at line 283 of file alnmulti_pane.hpp.

Referenced by GetSelection(), GetSelectionLimits(), ResetSelection(), SetSelection(), and x_RenderSelection().

CTooltipHandler CAlnMultiPane::m_TooltipHandler [protected]
 

Definition at line 289 of file alnmulti_pane.hpp.


The documentation for this class was generated from the following files:
Generated on Wed Dec 9 07:49:40 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:18:48 2009 by modify_doxy.py rev. 173732