NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CAlnMultiWidget Class Reference

Search Toolkit Book for CAlnMultiWidget

class CAlnMultiWidget More...

#include <gui/widgets/aln_multiple/alnmulti_widget.hpp>

+ Inheritance diagram for CAlnMultiWidget:
+ Collaboration diagram for CAlnMultiWidget:

Public Types

typedef CAlnMultiModel::TNumrow TNumrow
 
typedef int TLine
 
typedef list< objects::CSeq_loc * > TPSeqLocList
 
typedef CRangeCollection< TSeqPosTRangeColl
 
typedef vector< CConstRef< objects::CSeq_id > > TRSeqIdVector
 
- Public Types inherited from CGlWidgetBase
enum  { ID_GLCHILDPANE = wxID_HIGHEST + 200 , ID_VSCROPLLBAR , ID_HSCROPLLBAR }
 
- Public Types inherited from CEventHandler
enum  EDispatch { eDispatch_SelfOnly , eDispatch_AllHandlers , eDispatch_FirstHandler , eDispatch_Default = eDispatch_AllHandlers }
 enum controlling dispatching strategies More...
 
enum  EPoolName {
  ePool_Default = 0 , ePool_Parent , ePool_Child , ePool_Sibling ,
  ePool_NextAvailable
}
 Identifiers for standard pools. More...
 
typedef vector< CEventHandler * > TListeners
 
typedef map< int, TListenersTPools
 
typedef list< AutoPtr< SPostRequest > > TPostRequests
 
typedef std::map< CEventHandler *, intTHandlerToCount
 
typedef void(* FOnPostCallback) ()
 
- Public Types inherited from IAlnMultiPaneParent
typedef IAlnMultiDataSource::TNumrow TNumrow
 

Public Member Functions

 CAlnMultiWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxT("panel"))
 
virtual ~CAlnMultiWidget ()
 
virtual void SetDataSource (IAlnMultiDataSource *p_ds, objects::CScope *scope)
 
virtual void CreateWidget (CAlnMultiModel *model=NULL)
 performs initialization, creates Model and Controls. More...
 
virtual CAlnMultiModelGetModel ()
 
virtual const CAlnMultiModelGetModel () const
 
virtual void SetStyleCatalog (const CRowStyleCatalog *catalog)
 
virtual const CWidgetDisplayStyleGetDisplayStyle () const
 
virtual void SetVisible (const vector< TNumrow > &rows, bool b_visible, bool b_invert_others=false)
 makes specified rows visible/hidden, other rows aren't affected More...
 
virtual void Select (const vector< TNumrow > &rows, bool b_select, bool b_invert_others=false)
 
virtual IAlnMultiDataSourceGetDataSource ()
 
void OnContextMenu (wxContextMenuEvent &event)
 
virtual void UpdateSortOrder ()
 
virtual void UpdateOnScoringChanged ()
 
void ZoomToSelection ()
 
void Print (const string &filename)
 Scroll callbacks. More...
 
void UpdateView ()
 
bool SaveVectorImage (CPrintOptions::EOutputFormat format, string const &path, string const &file_name, bool show_header, bool simplified)
 
CGlWidgetBase virtual functions
virtual CGlPaneGetPort ()
 implement these 2 functions in derived classes More...
 
virtual const CGlPaneGetPort () const
 implement these 2 functions in derived classes More...
 
virtual void x_SetPortLimits (void)
 updates model limits of the Master CGlPane More...
 
virtual CGlWidgetPanex_GetPane ()
 
virtual void LoadSettings ()
 
virtual void SaveSettings () const
 
IAlnMultiRenderContext implementation
virtual bool IsRendererFocused ()
 overriding base class implementation More...
 
IAlnMultiPaneParent implementation
virtual const IAlnMultiDataSourceGetDataSource () const
 
virtual TNumrow GetRowNumByLine (TLine line) const
 
virtual int GetLineByRowNum (TNumrow Row) const
 return -1 if "row" does not exist or is not visible More...
 
virtual void OnChildResize ()
 
virtual void SetScaleX (TModelUnit scale_x, const TModelPoint &point)
 
virtual void ZoomRect (const TModelRect &rc)
 
virtual void ZoomPoint (const TModelPoint &point, TModelUnit factor)
 
virtual void Scroll (TModelUnit d_x, TModelUnit d_y)
 
virtual void OnRowChanged (IAlignRow *p_row)
 
virtual void OnColumnsChanged ()
 
CUIDataSource::IListener implementation
virtual void OnDSChanged (CDataChangeNotifier::CUpdate &update)
 
CAlnMultiModel::IListener implementation
virtual void OnScoringProgress (float progress, const string &msg)
 
virtual void OnScoringFinished ()
 
Command Handlers
void OnSavePdf (wxCommandEvent &evt)
 
void OnEnableSavePdfCmdUpdate (wxUpdateUIEvent &evt)
 
void OnSaveSvg (wxCommandEvent &evt)
 
void OnEnableSaveSvgCmdUpdate (wxUpdateUIEvent &evt)
 
void OnZoomSequence (wxCommandEvent &event)
 
void OnZoomSelection (wxCommandEvent &event)
 
void OnUpdateZoomSelection (wxUpdateUIEvent &event)
 
void OnMakeSelectedRowMaster (wxCommandEvent &event)
 
void OnUpdateMakeSelectedRowMaster (wxUpdateUIEvent &event)
 
void OnUnsetMaster (wxCommandEvent &event)
 
void OnUpdateUnsetMaster (wxUpdateUIEvent &event)
 
void OnMakeConsensusRowMaster (wxCommandEvent &event)
 
void OnUpdateMakeConsensusRowMaster (wxUpdateUIEvent &event)
 
void OnResetSelection (wxCommandEvent &event)
 
void OnMarkSelected (wxCommandEvent &event)
 
void OnUnMarkSelected (wxCommandEvent &event)
 mark selected regions of selected rows More...
 
void OnUpdateMarkSelected (wxUpdateUIEvent &event)
 unmark selected regions of selected rows More...
 
void OnUnMarkAll (wxCommandEvent &event)
 
void OnHideSelected (wxCommandEvent &event)
 
void OnUnhideSelected (wxCommandEvent &event)
 hide selected rows More...
 
void OnUpdateUnhideSelected (wxUpdateUIEvent &event)
 hide selected rows More...
 
void OnHasSelected (wxUpdateUIEvent &event)
 
void OnShowOnlySelected (wxCommandEvent &event)
 
void OnShowAll (wxCommandEvent &event)
 hide rows that are not selected More...
 
void OnMoveSelectedUp (wxCommandEvent &event)
 show all hidden rows More...
 
void OnSettings (wxCommandEvent &event)
 
void OnUpdateSettings (wxUpdateUIEvent &event)
 
Command handler for Scoring methods management
void OnShowMethodDlg (wxCommandEvent &event)
 
void OnUpdateShowMethodDlg (wxUpdateUIEvent &event)
 
void OnDisableScoring (wxCommandEvent &event)
 
void OnUpdateDisableScoring (wxUpdateUIEvent &event)
 
void OnMethodProperties (wxCommandEvent &event)
 
void OnUpdateMethodProperties (wxUpdateUIEvent &event)
 
void OnScoringMethod (wxCommandEvent &event)
 
void OnUpdateScoringMethod (wxUpdateUIEvent &event)
 
void OnSetAsDefaultMethod (wxCommandEvent &event)
 
Selection handling
void GetSelectedIds (TRSeqIdVector &ids) const
 
void SetSelectedIds (const TRSeqIdVector &ids, objects::CScope &scope)
 
void GetSelectedRows (vector< TNumrow > &rows)
 
const TRangeCollGetSelection (void) const
 
void SetSelection (const TRangeColl &coll)
 
void GetMarks (TPSeqLocList &ls_locs) const
 
void GetObjectSelection (TConstObjects &objs) const
 
bool HasSelectedObjects () const
 
- Public Member Functions inherited from CGlWidgetBase
 CGlWidgetBase (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
 class CGlWidgetBase More...
 
virtual ~CGlWidgetBase ()
 
virtual void Create ()
 creates controls and performs basic initialization More...
 
virtual void ZoomPoint (const TModelPoint &point, TModelUnit factor, CGlPane::EZoomOptions=CGlPane::fZoomXY)
 
virtual void NotifyVisibleRangeChanged ()
 
void OnAllEvents (CViewEvent::TEventObject evt)
 
virtual void SetRegistryPath (const string &reg_path)
 
void OnSize (wxSizeEvent &event)
 
void OnScroll (wxScrollEvent &event)
 
void OnZoomIn (wxCommandEvent &event)
 
void OnZoomInX (wxCommandEvent &event)
 
void OnZoomInY (wxCommandEvent &event)
 
void OnZoomInMouse (wxCommandEvent &event)
 
void OnZoomOut (wxCommandEvent &event)
 
void OnZoomOutX (wxCommandEvent &event)
 
void OnZoomOutY (wxCommandEvent &event)
 
void OnZoomOutMouse (wxCommandEvent &event)
 
void OnZoomAll (wxCommandEvent &event)
 
void OnZoomAllX (wxCommandEvent &event)
 
void OnZoomAllY (wxCommandEvent &event)
 
void OnEnableCmdUpdate (wxUpdateUIEvent &event)
 
- Public Member Functions inherited from CEventHandler
 CEventHandler ()
 CEventHandler. More...
 
virtual ~CEventHandler ()
 
virtual void AddListener (CEventHandler *listener, int pool_name=ePool_Default)
 Add a listener. More...
 
virtual void RemoveListener (CEventHandler *listener)
 Remove a listener. More...
 
virtual void RemoveAllListeners (void)
 
virtual bool HasListener (CEventHandler *listener, int pool_name=ePool_Default) const
 returns "true" if the given listener belongs to the specified pool More...
 
virtual const TListenersGetListeners (int pool_name=ePool_Default) const
 returns a set of listeners fro the specified pool More...
 
virtual bool OnEvent (CEvent *evt)
 Processes en event. Returns "true" if event has been processed. More...
 
virtual bool Dispatch (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Dispatches an event to the listeners (but does not handle it). More...
 
virtual bool Send (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Sends an event synchronously. More...
 
virtual bool Send (CEvent *evt, int pool_name)
 
void Post (CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Handles an event asynchronously (process and/or dispatch). More...
 
- Public Member Functions inherited from IRegSettings
virtual ~IRegSettings ()
 
- Public Member Functions inherited from IAlnMultiPaneParent
virtual ~IAlnMultiPaneParent ()
 
- Public Member Functions inherited from CDataChangeNotifier::IListener
virtual ~IListener ()
 
- Public Member Functions inherited from CScoreCache::IListener
virtual ~IListener ()
 

Static Public Member Functions

static void RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)
 class CAlnMultiWidget More...
 
- Static Public Member Functions inherited from CEventHandler
static bool HandlePostRequest ()
 
static void ClearPostQueue ()
 erases all events from the queue More...
 
static void DestroyPostQueue ()
 

Protected Types

typedef map< int, stringTCmdToName
 

Protected Member Functions

void x_CreatePane (void)
 factory method creating master pane, called form x_CreateControls() More...
 
virtual CAlnMultiModelx_CreateModel ()
 factory method creating and initializing a default model More...
 
virtual void x_AdjustVisible (bool b_reset)
 
virtual void x_RedrawControls (void)
 
virtual void x_UpdateStyleColumns ()
 
void x_ZoomToRange (TSeqPos from, TSeqPos to)
 
void x_MakeVisibleHorz (TSeqPos pos)
 
void x_MakeVisibleHorz (TSeqPos from, TSeqPos to)
 
virtual wxMenu * x_CreatePopupMenu ()
 
virtual string x_GetCurrentMethodName () const
 
virtual void x_SetScoringMethod (const string &method_name, bool save)
 
virtual void x_CreateScoringMethodsMenu (wxMenu &color_menu)
 
virtual stringx_GetDefMethodName ()
 
virtual string x_GetScoringMRUListName ()
 
void x_GetMatchingHiddenRows (vector< TNumrow > &rows)
 
void x_OnSaveVectorImage (CPrintOptions::EOutputFormat format)
 
Update handlers

Functions in this group are called by the widget when something changes.

Each functions performs minimal set of operations needed to keep widget up-to-date.

virtual void x_UpdateOnDataChanged (bool b_reset=true)
 Update handlers. More...
 
virtual void x_UpdateOnRowHChanged (void)
 
virtual void x_UpdateOnSwitchMaster (TNumrow NewMasterRow)
 
virtual void x_UpdateOnZoom (void)
 
virtual void x_UpdateOnStylesChanged (void)
 
virtual void x_OnResize (void)
 
- Protected Member Functions inherited from CGlWidgetBase
virtual bool DoPopupMenu (wxMenu *menu, int x, int y)
 Override to record when (blocking) popup menu is active. More...
 
virtual void x_CreateControls (void)
 creates Pane, Scrollbars and other child widgets, called from Create() More...
 
virtual void x_Update ()
 Update handlers. More...
 
virtual void x_SaveStates ()
 
virtual void x_ZoomIn (int options)
 Zoom functions. More...
 
virtual void x_ZoomOut (int options)
 
virtual void x_ZoomAll (int options)
 
virtual void x_UpdateOnHScroll ()
 
virtual void x_UpdateOnVScroll ()
 
virtual void x_UpdateScrollbars ()
 
virtual void x_OnScrollX (int pos)
 
virtual void x_OnScrollY (int pos)
 
virtual void x_ShowDecoratedPopupMenu (wxMenu *menu)
 
- Protected Member Functions inherited from CEventHandler
virtual const SEvtMapGetEventMap () const
 
void x_DeclareDead ()
 Removes itself unavailable for async event delivery. More...
 
void x_AddListenerToPool (CEventHandler *listener, int pool_name)
 

Protected Attributes

IAlnMultiDataSourcem_DataSource
 
CAlnMultiModelm_Model
 source of alignment data More...
 
CAlnMultiPanem_AlignPane
 representation of alignment data More...
 
TCmdToName m_CmdToName
 widget rendering data and handling events More...
 
- Protected Attributes inherited from CGlWidgetBase
string m_RegPath
 path to the widget's settings in GUI Registry More...
 
TModelPoint m_PopupPoint
 
- Protected Attributes inherited from CEventHandler
TPools m_Pools
 

Additional Inherited Members

- Static Protected Attributes inherited from CEventHandler
static const SEvtMap sm_EvtMap
 

Detailed Description

class CAlnMultiWidget

CAlnMultiWidget is a reusable component for visual presntations of multiple alignments. CAlnMultiWidget works as Mediator to organize interaction of its internal components and to support communication with external components. Data Source is an external component that serves as a source of alignment data. CAlnMultiWidget builds a visual Model object around provided Data Source and uses CAlnMultiPane component to represent this model. CAlnMultiWidget provides API for external components allowing for executing commands and retrieving state information such as selections.

Definition at line 96 of file alnmulti_widget.hpp.

Member Typedef Documentation

◆ TCmdToName

Definition at line 312 of file alnmulti_widget.hpp.

◆ TLine

Definition at line 105 of file alnmulti_widget.hpp.

◆ TNumrow

Definition at line 104 of file alnmulti_widget.hpp.

◆ TPSeqLocList

typedef list<objects::CSeq_loc*> CAlnMultiWidget::TPSeqLocList

Definition at line 106 of file alnmulti_widget.hpp.

◆ TRangeColl

Definition at line 107 of file alnmulti_widget.hpp.

◆ TRSeqIdVector

typedef vector<CConstRef<objects::CSeq_id> > CAlnMultiWidget::TRSeqIdVector

Definition at line 108 of file alnmulti_widget.hpp.

Constructor & Destructor Documentation

◆ CAlnMultiWidget()

CAlnMultiWidget::CAlnMultiWidget ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxT("panel") 
)

Definition at line 97 of file alnmulti_widget.cpp.

◆ ~CAlnMultiWidget()

CAlnMultiWidget::~CAlnMultiWidget ( )
virtual

Member Function Documentation

◆ CreateWidget()

void CAlnMultiWidget::CreateWidget ( CAlnMultiModel model = NULL)
virtual

◆ GetDataSource() [1/2]

◆ GetDataSource() [2/2]

const IAlnMultiDataSource * CAlnMultiWidget::GetDataSource ( void  ) const
virtual

Implements IAlnMultiPaneParent.

Definition at line 216 of file alnmulti_widget.cpp.

References m_DataSource.

◆ GetDisplayStyle()

const CWidgetDisplayStyle * CAlnMultiWidget::GetDisplayStyle ( ) const
virtual

◆ GetLineByRowNum()

int CAlnMultiWidget::GetLineByRowNum ( TNumrow  Row) const
virtual

return -1 if "row" does not exist or is not visible

Implements IAlnMultiPaneParent.

Definition at line 366 of file alnmulti_widget.cpp.

References CAlnMultiModel::GetLineByRowNum(), m_Model, and row.

◆ GetMarks()

void CAlnMultiWidget::GetMarks ( TPSeqLocList ls_locs) const

◆ GetModel() [1/2]

CAlnMultiModel * CAlnMultiWidget::GetModel ( )
virtual

◆ GetModel() [2/2]

const CAlnMultiModel * CAlnMultiWidget::GetModel ( ) const
virtual

Definition at line 352 of file alnmulti_widget.cpp.

References m_Model.

◆ GetObjectSelection()

void CAlnMultiWidget::GetObjectSelection ( TConstObjects objs) const

Definition at line 1615 of file alnmulti_widget.cpp.

References _ASSERT, CAlnMultiPane::GetObjectSelection(), and m_AlignPane.

◆ GetPort() [1/2]

CGlPane & CAlnMultiWidget::GetPort ( )
virtual

◆ GetPort() [2/2]

const CGlPane & CAlnMultiWidget::GetPort ( ) const
virtual

implement these 2 functions in derived classes

Implements CGlWidgetBase.

Definition at line 308 of file alnmulti_widget.cpp.

References CAlnMultiModel::GetAlignPort(), and m_Model.

◆ GetRowNumByLine()

CAlnMultiWidget::TNumrow CAlnMultiWidget::GetRowNumByLine ( TLine  line) const
virtual

◆ GetSelectedIds()

void CAlnMultiWidget::GetSelectedIds ( TRSeqIdVector ids) const

◆ GetSelectedRows()

void CAlnMultiWidget::GetSelectedRows ( vector< TNumrow > &  rows)

◆ GetSelection()

const CAlnMultiWidget::TRangeColl & CAlnMultiWidget::GetSelection ( void  ) const

◆ HasSelectedObjects()

bool CAlnMultiWidget::HasSelectedObjects ( ) const

Definition at line 1609 of file alnmulti_widget.cpp.

References _ASSERT, CAlnMultiPane::HasSelectedObjects(), and m_AlignPane.

◆ IsRendererFocused()

bool CAlnMultiWidget::IsRendererFocused ( )
virtual

overriding base class implementation

Definition at line 495 of file alnmulti_widget.cpp.

References m_AlignPane.

◆ LoadSettings()

void CAlnMultiWidget::LoadSettings ( )
virtual

◆ OnChildResize()

void CAlnMultiWidget::OnChildResize ( )
virtual

Implements IAlnMultiPaneParent.

Definition at line 372 of file alnmulti_widget.cpp.

References x_OnResize().

◆ OnColumnsChanged()

void CAlnMultiWidget::OnColumnsChanged ( )
virtual

Implements IAlnMultiPaneParent.

Definition at line 439 of file alnmulti_widget.cpp.

References SaveSettings(), and x_UpdateStyleColumns().

◆ OnContextMenu()

void CAlnMultiWidget::OnContextMenu ( wxContextMenuEvent &  event)

◆ OnDisableScoring()

void CAlnMultiWidget::OnDisableScoring ( wxCommandEvent &  event)

Definition at line 1312 of file alnmulti_widget.cpp.

References x_SetScoringMethod().

◆ OnDSChanged()

void CAlnMultiWidget::OnDSChanged ( CDataChangeNotifier::CUpdate update)
virtual

◆ OnEnableSavePdfCmdUpdate()

void CAlnMultiWidget::OnEnableSavePdfCmdUpdate ( wxUpdateUIEvent &  evt)

Definition at line 510 of file alnmulti_widget.cpp.

◆ OnEnableSaveSvgCmdUpdate()

void CAlnMultiWidget::OnEnableSaveSvgCmdUpdate ( wxUpdateUIEvent &  evt)

Definition at line 520 of file alnmulti_widget.cpp.

◆ OnHasSelected()

void CAlnMultiWidget::OnHasSelected ( wxUpdateUIEvent &  event)

◆ OnHideSelected()

void CAlnMultiWidget::OnHideSelected ( wxCommandEvent &  event)

◆ OnMakeConsensusRowMaster()

void CAlnMultiWidget::OnMakeConsensusRowMaster ( wxCommandEvent &  event)

◆ OnMakeSelectedRowMaster()

void CAlnMultiWidget::OnMakeSelectedRowMaster ( wxCommandEvent &  event)

◆ OnMarkSelected()

void CAlnMultiWidget::OnMarkSelected ( wxCommandEvent &  event)

◆ OnMethodProperties()

void CAlnMultiWidget::OnMethodProperties ( wxCommandEvent &  event)

◆ OnMoveSelectedUp()

void CAlnMultiWidget::OnMoveSelectedUp ( wxCommandEvent &  event)

show all hidden rows

Definition at line 859 of file alnmulti_widget.cpp.

References CAlnMultiModel::GetSelectedRows(), m_Model, CAlnMultiModel::SetRowOrder(), and x_RedrawControls().

◆ OnResetSelection()

void CAlnMultiWidget::OnResetSelection ( wxCommandEvent &  event)

Definition at line 650 of file alnmulti_widget.cpp.

References m_AlignPane, and CAlnMultiPane::ResetSelection().

◆ OnRowChanged()

void CAlnMultiWidget::OnRowChanged ( IAlignRow p_row)
virtual

◆ OnSavePdf()

void CAlnMultiWidget::OnSavePdf ( wxCommandEvent &  evt)

Definition at line 505 of file alnmulti_widget.cpp.

References CPrintOptions::ePdf, and x_OnSaveVectorImage().

◆ OnSaveSvg()

void CAlnMultiWidget::OnSaveSvg ( wxCommandEvent &  evt)

Definition at line 515 of file alnmulti_widget.cpp.

References CPrintOptions::eSvg, and x_OnSaveVectorImage().

◆ OnScoringFinished()

void CAlnMultiWidget::OnScoringFinished ( )
virtual

Implements CScoreCache::IListener.

Definition at line 488 of file alnmulti_widget.cpp.

References CAlnMultiPane::HideProgressPanel(), and m_AlignPane.

◆ OnScoringMethod()

void CAlnMultiWidget::OnScoringMethod ( wxCommandEvent &  event)

◆ OnScoringProgress()

void CAlnMultiWidget::OnScoringProgress ( float  progress,
const string msg 
)
virtual

Implements CScoreCache::IListener.

Definition at line 482 of file alnmulti_widget.cpp.

References m_AlignPane, msg(), and CAlnMultiPane::ShowProgressPanel().

◆ OnSetAsDefaultMethod()

void CAlnMultiWidget::OnSetAsDefaultMethod ( wxCommandEvent &  event)

◆ OnSettings()

void CAlnMultiWidget::OnSettings ( wxCommandEvent &  event)

◆ OnShowAll()

void CAlnMultiWidget::OnShowAll ( wxCommandEvent &  event)

hide rows that are not selected

Definition at line 849 of file alnmulti_widget.cpp.

References m_Model, CAlnMultiModel::ShowAll(), x_AdjustVisible(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().

◆ OnShowMethodDlg()

void CAlnMultiWidget::OnShowMethodDlg ( wxCommandEvent &  event)

◆ OnShowOnlySelected()

void CAlnMultiWidget::OnShowOnlySelected ( wxCommandEvent &  event)

Definition at line 840 of file alnmulti_widget.cpp.

References CAlnMultiModel::GetSelectedRows(), m_Model, and SetVisible().

◆ OnUnhideSelected()

void CAlnMultiWidget::OnUnhideSelected ( wxCommandEvent &  event)

hide selected rows

Definition at line 812 of file alnmulti_widget.cpp.

References SetVisible(), and x_GetMatchingHiddenRows().

◆ OnUnMarkAll()

void CAlnMultiWidget::OnUnMarkAll ( wxCommandEvent &  event)

Definition at line 762 of file alnmulti_widget.cpp.

References m_AlignPane, and CAlnMultiPane::UnMarkAll().

◆ OnUnMarkSelected()

void CAlnMultiWidget::OnUnMarkSelected ( wxCommandEvent &  event)

mark selected regions of selected rows

Definition at line 738 of file alnmulti_widget.cpp.

References C, CAlnMultiPane::GetSelection(), m_AlignPane, and CAlnMultiPane::MarkSelectedRows().

◆ OnUnsetMaster()

void CAlnMultiWidget::OnUnsetMaster ( wxCommandEvent &  event)

Definition at line 637 of file alnmulti_widget.cpp.

References x_UpdateOnSwitchMaster().

◆ OnUpdateDisableScoring()

void CAlnMultiWidget::OnUpdateDisableScoring ( wxUpdateUIEvent &  event)

Definition at line 1318 of file alnmulti_widget.cpp.

References CAlnMultiModel::GetCurrentMethod(), m_Model, and NULL.

◆ OnUpdateMakeConsensusRowMaster()

void CAlnMultiWidget::OnUpdateMakeConsensusRowMaster ( wxUpdateUIEvent &  event)

Definition at line 630 of file alnmulti_widget.cpp.

References CAlnMultiModel::CanChangeMasterRow(), and m_Model.

◆ OnUpdateMakeSelectedRowMaster()

void CAlnMultiWidget::OnUpdateMakeSelectedRowMaster ( wxUpdateUIEvent &  event)

Definition at line 615 of file alnmulti_widget.cpp.

References CAlnMultiModel::CanChangeMasterRow(), and m_Model.

◆ OnUpdateMarkSelected()

void CAlnMultiWidget::OnUpdateMarkSelected ( wxUpdateUIEvent &  event)

unmark selected regions of selected rows

Definition at line 747 of file alnmulti_widget.cpp.

References C, CAlnMultiPane::GetSelection(), m_AlignPane, m_Model, and CSelListModelImpl< Item >::SLM_GetSelectedCount().

◆ OnUpdateMethodProperties()

void CAlnMultiWidget::OnUpdateMethodProperties ( wxUpdateUIEvent &  event)

◆ OnUpdateScoringMethod()

void CAlnMultiWidget::OnUpdateScoringMethod ( wxUpdateUIEvent &  event)

Definition at line 1398 of file alnmulti_widget.cpp.

References cmd, m_CmdToName, and x_GetCurrentMethodName().

◆ OnUpdateSettings()

void CAlnMultiWidget::OnUpdateSettings ( wxUpdateUIEvent &  event)

Definition at line 921 of file alnmulti_widget.cpp.

◆ OnUpdateShowMethodDlg()

void CAlnMultiWidget::OnUpdateShowMethodDlg ( wxUpdateUIEvent &  event)

◆ OnUpdateUnhideSelected()

void CAlnMultiWidget::OnUpdateUnhideSelected ( wxUpdateUIEvent &  event)

◆ OnUpdateUnsetMaster()

void CAlnMultiWidget::OnUpdateUnsetMaster ( wxUpdateUIEvent &  event)

◆ OnUpdateZoomSelection()

void CAlnMultiWidget::OnUpdateZoomSelection ( wxUpdateUIEvent &  event)

◆ OnZoomSelection()

void CAlnMultiWidget::OnZoomSelection ( wxCommandEvent &  event)

Definition at line 533 of file alnmulti_widget.cpp.

References ZoomToSelection().

Referenced by CUpdateSeqPanel::OnZoomToSelection().

◆ OnZoomSequence()

void CAlnMultiWidget::OnZoomSequence ( wxCommandEvent &  event)

◆ Print()

void CAlnMultiWidget::Print ( const string filename)

Scroll callbacks.

Definition at line 1477 of file alnmulti_widget.cpp.

◆ RegisterCommands()

void CAlnMultiWidget::RegisterCommands ( CUICommandRegistry cmd_reg,
wxFileArtProvider provider 
)
static

◆ SaveSettings()

void CAlnMultiWidget::SaveSettings ( ) const
virtual

◆ SaveVectorImage()

bool CAlnMultiWidget::SaveVectorImage ( CPrintOptions::EOutputFormat  format,
string const path,
string const file_name,
bool  show_header,
bool  simplified 
)

◆ Scroll()

void CAlnMultiWidget::Scroll ( TModelUnit  d_x,
TModelUnit  d_y 
)
virtual

Implements IAlnMultiPaneParent.

Definition at line 399 of file alnmulti_widget.cpp.

References GetPort(), CGlPane::Scroll(), and x_UpdateOnZoom().

◆ Select()

void CAlnMultiWidget::Select ( const vector< TNumrow > &  rows,
bool  b_select,
bool  b_invert_others = false 
)
virtual

◆ SetDataSource()

void CAlnMultiWidget::SetDataSource ( IAlnMultiDataSource p_ds,
objects::CScope *  scope 
)
virtual

◆ SetScaleX()

void CAlnMultiWidget::SetScaleX ( TModelUnit  scale_x,
const TModelPoint point 
)
virtual

Implements IAlnMultiPaneParent.

Definition at line 378 of file alnmulti_widget.cpp.

References GetPort(), CGlPane::SetScaleRefPoint(), and x_UpdateOnZoom().

◆ SetSelectedIds()

void CAlnMultiWidget::SetSelectedIds ( const TRSeqIdVector ids,
objects::CScope &  scope 
)

◆ SetSelection()

void CAlnMultiWidget::SetSelection ( const TRangeColl coll)

Definition at line 723 of file alnmulti_widget.cpp.

References m_AlignPane, and CAlnMultiPane::SetSelection().

Referenced by CMultiAlignView::x_OnSetSelection().

◆ SetStyleCatalog()

void CAlnMultiWidget::SetStyleCatalog ( const CRowStyleCatalog catalog)
virtual

◆ SetVisible()

void CAlnMultiWidget::SetVisible ( const vector< TNumrow > &  rows,
bool  b_visible,
bool  b_invert_others = false 
)
virtual

makes specified rows visible/hidden, other rows aren't affected

changes visibility state for given vector of rows to "b_visible"

Definition at line 223 of file alnmulti_widget.cpp.

References m_Model, CAlnMultiModel::SetVisible(), x_AdjustVisible(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().

Referenced by OnHideSelected(), OnShowOnlySelected(), OnUnhideSelected(), x_UpdateOnDataChanged(), and x_UpdateOnStylesChanged().

◆ UpdateOnScoringChanged()

void CAlnMultiWidget::UpdateOnScoringChanged ( )
virtual

◆ UpdateSortOrder()

void CAlnMultiWidget::UpdateSortOrder ( void  )
virtual

◆ UpdateView()

void CAlnMultiWidget::UpdateView ( void  )

◆ x_AdjustVisible()

void CAlnMultiWidget::x_AdjustVisible ( bool  b_reset)
protectedvirtual

◆ x_CreateModel()

CAlnMultiModel * CAlnMultiWidget::x_CreateModel ( )
protectedvirtual

factory method creating and initializing a default model

Definition at line 132 of file alnmulti_widget.cpp.

References CAlnMultiModel::Init(), m_Model, NULL, and CAlnMultiModel::SetListener().

Referenced by x_CreatePane().

◆ x_CreatePane()

void CAlnMultiWidget::x_CreatePane ( void  )
protectedvirtual

◆ x_CreatePopupMenu()

static wxMenu * CAlnMultiWidget::x_CreatePopupMenu ( )
protectedvirtual

◆ x_CreateScoringMethodsMenu()

void CAlnMultiWidget::x_CreateScoringMethodsMenu ( wxMenu &  color_menu)
protectedvirtual

◆ x_GetCurrentMethodName()

string CAlnMultiWidget::x_GetCurrentMethodName ( ) const
protectedvirtual

◆ x_GetDefMethodName()

string * CAlnMultiWidget::x_GetDefMethodName ( )
protectedvirtual

◆ x_GetMatchingHiddenRows()

void CAlnMultiWidget::x_GetMatchingHiddenRows ( vector< TNumrow > &  rows)
protected

◆ x_GetPane()

CGlWidgetPane * CAlnMultiWidget::x_GetPane ( )
virtual

Reimplemented from CGlWidgetBase.

Definition at line 314 of file alnmulti_widget.cpp.

References m_AlignPane.

◆ x_GetScoringMRUListName()

string CAlnMultiWidget::x_GetScoringMRUListName ( )
protectedvirtual

◆ x_MakeVisibleHorz() [1/2]

void CAlnMultiWidget::x_MakeVisibleHorz ( TSeqPos  from,
TSeqPos  to 
)
protected

◆ x_MakeVisibleHorz() [2/2]

void CAlnMultiWidget::x_MakeVisibleHorz ( TSeqPos  pos)
protected

Definition at line 569 of file alnmulti_widget.cpp.

◆ x_OnResize()

void CAlnMultiWidget::x_OnResize ( void  )
protectedvirtual

◆ x_OnSaveVectorImage()

void CAlnMultiWidget::x_OnSaveVectorImage ( CPrintOptions::EOutputFormat  format)
protected

Definition at line 1692 of file alnmulti_widget.cpp.

References format.

Referenced by OnSavePdf(), and OnSaveSvg().

◆ x_RedrawControls()

void CAlnMultiWidget::x_RedrawControls ( void  )
protectedvirtual

◆ x_SetPortLimits()

virtual void CAlnMultiWidget::x_SetPortLimits ( void  )
inlinevirtual

updates model limits of the Master CGlPane

Implements CGlWidgetBase.

Definition at line 124 of file alnmulti_widget.hpp.

◆ x_SetScoringMethod()

void CAlnMultiWidget::x_SetScoringMethod ( const string method_name,
bool  save 
)
protectedvirtual

◆ x_UpdateOnDataChanged()

void CAlnMultiWidget::x_UpdateOnDataChanged ( bool  b_reset = true)
protectedvirtual

◆ x_UpdateOnRowHChanged()

void CAlnMultiWidget::x_UpdateOnRowHChanged ( void  )
protectedvirtual

◆ x_UpdateOnStylesChanged()

void CAlnMultiWidget::x_UpdateOnStylesChanged ( void  )
protectedvirtual

◆ x_UpdateOnSwitchMaster()

void CAlnMultiWidget::x_UpdateOnSwitchMaster ( TNumrow  NewMasterRow)
protectedvirtual

◆ x_UpdateOnZoom()

void CAlnMultiWidget::x_UpdateOnZoom ( void  )
protectedvirtual

◆ x_UpdateStyleColumns()

void CAlnMultiWidget::x_UpdateStyleColumns ( )
protectedvirtual

◆ x_ZoomToRange()

void CAlnMultiWidget::x_ZoomToRange ( TSeqPos  from,
TSeqPos  to 
)
protected

◆ ZoomPoint()

void CAlnMultiWidget::ZoomPoint ( const TModelPoint point,
TModelUnit  factor 
)
virtual

Implements IAlnMultiPaneParent.

Definition at line 393 of file alnmulti_widget.cpp.

References GetPort(), and CGlPane::ZoomPoint().

◆ ZoomRect()

void CAlnMultiWidget::ZoomRect ( const TModelRect rc)
virtual

Implements IAlnMultiPaneParent.

Definition at line 385 of file alnmulti_widget.cpp.

References CGlRect< T >::Left(), CGlRect< T >::Right(), and x_ZoomToRange().

◆ ZoomToSelection()

void CAlnMultiWidget::ZoomToSelection ( )

Member Data Documentation

◆ m_AlignPane

CAlnMultiPane* CAlnMultiWidget::m_AlignPane
protected

◆ m_CmdToName

TCmdToName CAlnMultiWidget::m_CmdToName
protected

widget rendering data and handling events

Definition at line 320 of file alnmulti_widget.hpp.

Referenced by OnScoringMethod(), and OnUpdateScoringMethod().

◆ m_DataSource

IAlnMultiDataSource* CAlnMultiWidget::m_DataSource
protected

◆ m_Model

CAlnMultiModel* CAlnMultiWidget::m_Model
protected

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