NCBI C++ ToolKit
|
Search Toolkit Book for CAlnMultiWidget
class CAlnMultiWidget More...
#include <gui/widgets/aln_multiple/alnmulti_widget.hpp>
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 CAlnMultiModel * | GetModel () |
virtual const CAlnMultiModel * | GetModel () const |
virtual void | SetStyleCatalog (const CRowStyleCatalog *catalog) |
virtual const CWidgetDisplayStyle * | GetDisplayStyle () 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 IAlnMultiDataSource * | GetDataSource () |
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 CGlPane & | GetPort () |
implement these 2 functions in derived classes More... | |
virtual const CGlPane & | GetPort () const |
implement these 2 functions in derived classes More... | |
virtual void | x_SetPortLimits (void) |
updates model limits of the Master CGlPane More... | |
virtual CGlWidgetPane * | x_GetPane () |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
IAlnMultiRenderContext implementation | |
virtual bool | IsRendererFocused () |
overriding base class implementation More... | |
IAlnMultiPaneParent implementation | |
virtual const IAlnMultiDataSource * | GetDataSource () 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 TRangeColl & | GetSelection (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 ®_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 TListeners * | GetListeners (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, string > | TCmdToName |
Protected Member Functions | |
void | x_CreatePane (void) |
factory method creating master pane, called form x_CreateControls() More... | |
virtual CAlnMultiModel * | x_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 string * | x_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 SEvtMap * | GetEventMap () const |
void | x_DeclareDead () |
Removes itself unavailable for async event delivery. More... | |
void | x_AddListenerToPool (CEventHandler *listener, int pool_name) |
Protected Attributes | |
IAlnMultiDataSource * | m_DataSource |
CAlnMultiModel * | m_Model |
source of alignment data More... | |
CAlnMultiPane * | m_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 |
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.
|
protected |
Definition at line 312 of file alnmulti_widget.hpp.
typedef int CAlnMultiWidget::TLine |
Definition at line 105 of file alnmulti_widget.hpp.
Definition at line 104 of file alnmulti_widget.hpp.
typedef list<objects::CSeq_loc*> CAlnMultiWidget::TPSeqLocList |
Definition at line 106 of file alnmulti_widget.hpp.
Definition at line 107 of file alnmulti_widget.hpp.
typedef vector<CConstRef<objects::CSeq_id> > CAlnMultiWidget::TRSeqIdVector |
Definition at line 108 of file alnmulti_widget.hpp.
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.
|
virtual |
Definition at line 144 of file alnmulti_widget.cpp.
References CAlnMultiModel::ClearRows(), m_AlignPane, m_Model, NULL, CEventHandler::RemoveListener(), and CAlnMultiModel::SetListener().
|
virtual |
performs initialization, creates Model and Controls.
Call Create() right after constructing CAlnMultiWidget; assumes ownership of the model. If model == NULL, creates a default model
Definition at line 111 of file alnmulti_widget.cpp.
References CAlnMultiPane::GetAlignVPHeight(), CAlnMultiPane::GetAlignVPWidth(), GetPort(), m_AlignPane, m_Model, NULL, CAlnMultiModel::SetListener(), CAlnMultiModel::SetPortLimits(), CGlRect< T >::SetSize(), CGlPane::SetViewport(), and CGlWidgetBase::x_CreateControls().
Referenced by CAlignMultipleDemoDlg::CreateControls(), CMultiAlignView::CreateViewWindow(), and CUpdateSeqPanel::x_CreateAlnMultiWidget().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 210 of file alnmulti_widget.cpp.
Referenced by CwxExportAlnmultiImgDlg::Create(), GetMarks(), GetSelectedIds(), GetSelectedRows(), OnMakeConsensusRowMaster(), OnUpdateShowMethodDlg(), SetSelectedIds(), x_GetMatchingHiddenRows(), x_UpdateOnDataChanged(), x_UpdateOnStylesChanged(), and x_UpdateOnSwitchMaster().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 216 of file alnmulti_widget.cpp.
References m_DataSource.
|
virtual |
Definition at line 262 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetDisplayStyle(), and m_Model.
Referenced by CAlignMultipleDemoDlg::CreateControls(), CMultiAlignView::CreateViewWindow(), OnZoomSequence(), and CUpdateSeqPanel::x_CreateAlnMultiWidget().
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.
void CAlnMultiWidget::GetMarks | ( | TPSeqLocList & | ls_locs | ) | const |
Definition at line 943 of file alnmulti_widget.cpp.
References CPacked_seqint::AddInterval(), GetDataSource(), CAlnMultiPane::GetMarks(), IAlnMultiDataSource::GetSeqId(), ITERATE, m_AlignPane, row, and CSeq_loc::SetPacked_int().
|
virtual |
Definition at line 346 of file alnmulti_widget.cpp.
References m_Model.
Referenced by GetSelectedIds(), GetSelectedRows(), OnUpdateUnhideSelected(), CAlnMultiPane::RenderVectorGraphics(), CUpdateSeqPanel::SaveSettings(), SetSelectedIds(), x_GetMatchingHiddenRows(), and CUpdateSeqPanel::x_InitAlnMultiWidgetAndUpdateTypes().
|
virtual |
Definition at line 352 of file alnmulti_widget.cpp.
References m_Model.
void CAlnMultiWidget::GetObjectSelection | ( | TConstObjects & | objs | ) | const |
Definition at line 1615 of file alnmulti_widget.cpp.
References _ASSERT, CAlnMultiPane::GetObjectSelection(), and m_AlignPane.
|
virtual |
implement these 2 functions in derived classes
Implements CGlWidgetBase.
Definition at line 302 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetAlignPort(), and m_Model.
Referenced by CreateWidget(), CAlnMultiPane::GetViewportRect(), OnZoomSequence(), SaveVectorImage(), Scroll(), SetScaleX(), x_AdjustVisible(), x_MakeVisibleHorz(), x_OnResize(), x_UpdateOnSwitchMaster(), x_ZoomToRange(), and ZoomPoint().
implement these 2 functions in derived classes
Implements CGlWidgetBase.
Definition at line 308 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetAlignPort(), and m_Model.
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 358 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetRowByLine(), IAlignRow::GetRowNum(), and m_Model.
Referenced by GetSelectedIds(), GetSelectedRows(), and OnMakeSelectedRowMaster().
void CAlnMultiWidget::GetSelectedIds | ( | TRSeqIdVector & | ids | ) | const |
Definition at line 656 of file alnmulti_widget.cpp.
References _ASSERT, GetDataSource(), GetModel(), GetRowNumByLine(), IAlnMultiDataSource::GetSeqId(), ITERATE, row, and CSelListModelImpl< Item >::SLM_GetSelectedIndices().
void CAlnMultiWidget::GetSelectedRows | ( | vector< TNumrow > & | rows | ) |
Definition at line 673 of file alnmulti_widget.cpp.
References IAlignRow::fItemSelected, GetDataSource(), CAlnMultiModel::GetMasterRow(), GetModel(), IAlignRow::GetRowNum(), GetRowNumByLine(), IAlignRow::GetRowState(), ITERATE, m_Model, row, and CSelListModelImpl< Item >::SLM_GetSelectedIndices().
Referenced by CMultiAlignView::GetSelection(), and OnUpdateUnhideSelected().
const CAlnMultiWidget::TRangeColl & CAlnMultiWidget::GetSelection | ( | void | ) | const |
Definition at line 717 of file alnmulti_widget.cpp.
References CAlnMultiPane::GetSelection(), and m_AlignPane.
Referenced by CMultiAlignView::x_GetSeqRangeSelection().
bool CAlnMultiWidget::HasSelectedObjects | ( | ) | const |
Definition at line 1609 of file alnmulti_widget.cpp.
References _ASSERT, CAlnMultiPane::HasSelectedObjects(), and m_AlignPane.
|
virtual |
overriding base class implementation
Definition at line 495 of file alnmulti_widget.cpp.
References m_AlignPane.
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 268 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetDisplayStyle(), CGuiRegistry::GetInstance(), CGuiRegistry::GetReadView(), CWidgetDisplayStyle::LoadSettings(), m_Model, CGlWidgetBase::m_RegPath, and x_UpdateOnStylesChanged().
Referenced by CMultiAlignView::LoadSettings().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 372 of file alnmulti_widget.cpp.
References x_OnResize().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 439 of file alnmulti_widget.cpp.
References SaveSettings(), and x_UpdateStyleColumns().
void CAlnMultiWidget::OnContextMenu | ( | wxContextMenuEvent & | event | ) |
Definition at line 420 of file alnmulti_widget.cpp.
References eHorz, eVert, m_AlignPane, CGlWidgetBase::m_PopupPoint, CGlPoint< T >::m_X, CGlPoint< T >::m_Y, CAlnMultiPane::SHH_GetModelByWindow(), x_CreatePopupMenu(), and CGlWidgetBase::x_ShowDecoratedPopupMenu().
void CAlnMultiWidget::OnDisableScoring | ( | wxCommandEvent & | event | ) |
Definition at line 1312 of file alnmulti_widget.cpp.
References x_SetScoringMethod().
|
virtual |
Implements CDataChangeNotifier::IListener.
Reimplemented in CUpdateSeqAlignWidget.
Definition at line 445 of file alnmulti_widget.cpp.
References _ASSERT, CDCN_GetMessage(), CDataChangeNotifier::eChanged, eDialog_Ok, CDataChangeNotifier::eError, eIcon_Stop, ctll::empty(), CDataChangeNotifier::eProgressReport, eWrap, CAlnMultiModel::GetDefaultMethod(), CException::GetMsg(), CDataChangeNotifier::CUpdate::GetProgressNorm(), CDataChangeNotifier::CUpdate::GetType(), CAlnMultiPane::HideProgressPanel(), IAlnMultiDataSource::IsEmpty(), m_AlignPane, m_DataSource, m_Model, NcbiMessageBox(), CAlnMultiModel::SetDataSource(), CAlnMultiPane::ShowProgressPanel(), CException::what(), x_SetScoringMethod(), and x_UpdateOnDataChanged().
Referenced by CMultiAlignView::OnDSChanged().
void CAlnMultiWidget::OnEnableSavePdfCmdUpdate | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 510 of file alnmulti_widget.cpp.
void CAlnMultiWidget::OnEnableSaveSvgCmdUpdate | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 520 of file alnmulti_widget.cpp.
void CAlnMultiWidget::OnHasSelected | ( | wxUpdateUIEvent & | event | ) |
Definition at line 757 of file alnmulti_widget.cpp.
References m_Model, and CSelListModelImpl< Item >::SLM_GetSelectedCount().
void CAlnMultiWidget::OnHideSelected | ( | wxCommandEvent & | event | ) |
Definition at line 770 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetSelectedRows(), m_Model, SetVisible(), and CAlnMultiModel::SLM_SelectAll().
void CAlnMultiWidget::OnMakeConsensusRowMaster | ( | wxCommandEvent & | event | ) |
Definition at line 621 of file alnmulti_widget.cpp.
References IAlnMultiDataSource::GetConsensusRow(), GetDataSource(), and x_UpdateOnSwitchMaster().
void CAlnMultiWidget::OnMakeSelectedRowMaster | ( | wxCommandEvent & | event | ) |
Definition at line 595 of file alnmulti_widget.cpp.
References eDialog_Modal, eDialog_Ok, eIcon_Exclamation, GetRowNumByLine(), m_Model, msg(), NcbiMessageBox(), CSelListModelImpl< Item >::SLM_GetSelectedCount(), CSelListModelImpl< Item >::SLM_GetSelectedIndices(), and x_UpdateOnSwitchMaster().
void CAlnMultiWidget::OnMarkSelected | ( | wxCommandEvent & | event | ) |
Definition at line 729 of file alnmulti_widget.cpp.
References C, CAlnMultiPane::GetSelection(), m_AlignPane, and CAlnMultiPane::MarkSelectedRows().
void CAlnMultiWidget::OnMethodProperties | ( | wxCommandEvent & | event | ) |
Definition at line 1285 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetCurrentMethod(), m_Model, UpdateOnScoringChanged(), CAlnMultiModel::UpdateOnScoringChanged(), and wxT.
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().
void CAlnMultiWidget::OnResetSelection | ( | wxCommandEvent & | event | ) |
Definition at line 650 of file alnmulti_widget.cpp.
References m_AlignPane, and CAlnMultiPane::ResetSelection().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 406 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetMasterRow(), m_AlignPane, m_Model, CAlnMultiPane::Update(), x_AdjustVisible(), x_RedrawControls(), x_UpdateOnRowHChanged(), and CGlWidgetBase::x_UpdateScrollbars().
void CAlnMultiWidget::OnSavePdf | ( | wxCommandEvent & | evt | ) |
Definition at line 505 of file alnmulti_widget.cpp.
References CPrintOptions::ePdf, and x_OnSaveVectorImage().
void CAlnMultiWidget::OnSaveSvg | ( | wxCommandEvent & | evt | ) |
Definition at line 515 of file alnmulti_widget.cpp.
References CPrintOptions::eSvg, and x_OnSaveVectorImage().
|
virtual |
Implements CScoreCache::IListener.
Definition at line 488 of file alnmulti_widget.cpp.
References CAlnMultiPane::HideProgressPanel(), and m_AlignPane.
void CAlnMultiWidget::OnScoringMethod | ( | wxCommandEvent & | event | ) |
Definition at line 1388 of file alnmulti_widget.cpp.
References map_checker< Container >::clear(), cmd, m_CmdToName, and x_SetScoringMethod().
Implements CScoreCache::IListener.
Definition at line 482 of file alnmulti_widget.cpp.
References m_AlignPane, msg(), and CAlnMultiPane::ShowProgressPanel().
void CAlnMultiWidget::OnSetAsDefaultMethod | ( | wxCommandEvent & | event | ) |
Definition at line 1409 of file alnmulti_widget.cpp.
References _ASSERT, SaveSettings(), x_GetCurrentMethodName(), and x_GetDefMethodName().
void CAlnMultiWidget::OnSettings | ( | wxCommandEvent & | event | ) |
Definition at line 892 of file alnmulti_widget.cpp.
References CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnsCount(), CAlnMultiModel::GetDisplayStyle(), CAlnMultiPane::GetRenderer(), i, m_AlignPane, CWidgetDisplayStyle::m_Columns, m_Model, IAlnMultiHeaderContext::SColumn::m_Name, CGlWidgetBase::m_RegPath, IAlnMultiHeaderContext::SColumn::m_Visible, IAlnMultiHeaderContext::SColumn::m_Width, SaveSettings(), CAlnPropertiesDlg::SetParams(), CDialog::SetRegistryPath(), x_UpdateOnStylesChanged(), and x_UpdateStyleColumns().
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().
void CAlnMultiWidget::OnShowMethodDlg | ( | wxCommandEvent & | event | ) |
Definition at line 1254 of file alnmulti_widget.cpp.
References _ASSERT, CScoringMethodsDlg::Create(), IAlnExplorer::fInvalid, IAlnMultiDataSource::GetAlignType(), CScoringMethodsDlg::GetSelectedMethod(), m_DataSource, CScoringMethodsDlg::Setup(), ToStdString(), x_GetCurrentMethodName(), and x_SetScoringMethod().
void CAlnMultiWidget::OnShowOnlySelected | ( | wxCommandEvent & | event | ) |
Definition at line 840 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetSelectedRows(), m_Model, and SetVisible().
void CAlnMultiWidget::OnUnhideSelected | ( | wxCommandEvent & | event | ) |
hide selected rows
Definition at line 812 of file alnmulti_widget.cpp.
References SetVisible(), and x_GetMatchingHiddenRows().
void CAlnMultiWidget::OnUnMarkAll | ( | wxCommandEvent & | event | ) |
Definition at line 762 of file alnmulti_widget.cpp.
References m_AlignPane, and CAlnMultiPane::UnMarkAll().
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().
void CAlnMultiWidget::OnUnsetMaster | ( | wxCommandEvent & | event | ) |
Definition at line 637 of file alnmulti_widget.cpp.
References x_UpdateOnSwitchMaster().
void CAlnMultiWidget::OnUpdateDisableScoring | ( | wxUpdateUIEvent & | event | ) |
Definition at line 1318 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetCurrentMethod(), m_Model, and NULL.
void CAlnMultiWidget::OnUpdateMakeConsensusRowMaster | ( | wxUpdateUIEvent & | event | ) |
Definition at line 630 of file alnmulti_widget.cpp.
References CAlnMultiModel::CanChangeMasterRow(), and m_Model.
void CAlnMultiWidget::OnUpdateMakeSelectedRowMaster | ( | wxUpdateUIEvent & | event | ) |
Definition at line 615 of file alnmulti_widget.cpp.
References CAlnMultiModel::CanChangeMasterRow(), and m_Model.
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().
void CAlnMultiWidget::OnUpdateMethodProperties | ( | wxUpdateUIEvent & | event | ) |
Definition at line 1301 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetCurrentMethod(), IUIToolWithGUI::HasPropertiesPanel(), and m_Model.
void CAlnMultiWidget::OnUpdateScoringMethod | ( | wxUpdateUIEvent & | event | ) |
Definition at line 1398 of file alnmulti_widget.cpp.
References cmd, m_CmdToName, and x_GetCurrentMethodName().
void CAlnMultiWidget::OnUpdateSettings | ( | wxUpdateUIEvent & | event | ) |
Definition at line 921 of file alnmulti_widget.cpp.
void CAlnMultiWidget::OnUpdateShowMethodDlg | ( | wxUpdateUIEvent & | event | ) |
Definition at line 1274 of file alnmulti_widget.cpp.
References IAlnExplorer::fInvalid, IAlnMultiDataSource::GetAlignType(), GetDataSource(), and m_DataSource.
void CAlnMultiWidget::OnUpdateUnhideSelected | ( | wxUpdateUIEvent & | event | ) |
hide selected rows
Definition at line 820 of file alnmulti_widget.cpp.
References IAlignRow::eDescr, IAlignRow::GetColumnText(), GetModel(), CAlnMultiModel::GetRow(), GetSelectedRows(), NStr::NumericToString(), text(), ToWxString(), and x_GetMatchingHiddenRows().
void CAlnMultiWidget::OnUpdateUnsetMaster | ( | wxUpdateUIEvent & | event | ) |
Definition at line 643 of file alnmulti_widget.cpp.
References CAlnMultiModel::CanChangeMasterRow(), CAlnMultiModel::GetMasterRow(), and m_Model.
void CAlnMultiWidget::OnUpdateZoomSelection | ( | wxUpdateUIEvent & | event | ) |
Definition at line 548 of file alnmulti_widget.cpp.
References CAlnMultiPane::GetSelectionLimits(), m_AlignPane, and COpenRange< Position >::NotEmpty().
void CAlnMultiWidget::OnZoomSelection | ( | wxCommandEvent & | event | ) |
Definition at line 533 of file alnmulti_widget.cpp.
References ZoomToSelection().
Referenced by CUpdateSeqPanel::OnZoomToSelection().
void CAlnMultiWidget::OnZoomSequence | ( | wxCommandEvent & | event | ) |
Definition at line 525 of file alnmulti_widget.cpp.
References IGlFont::eMetric_MaxCharWidth, GetDisplayStyle(), CGlTextureFont::GetMetric(), GetPort(), CWidgetDisplayStyle::m_SeqFont, CGlPane::SetScale(), and x_UpdateOnZoom().
Referenced by CUpdateSeqPanel::OnZoomToSequence().
Scroll callbacks.
Definition at line 1477 of file alnmulti_widget.cpp.
|
static |
class CAlnMultiWidget
Definition at line 69 of file alnmulti_widget.cpp.
References eCmdHideSelected, eCmdMarkSelected, eCmdMoveSelectedUp, eCmdRebuildAlignment, eCmdSetSelMaster, eCmdShowAll, eCmdShowOnlySelected, eCmdUnhideSelected, eCmdUnMarkAll, eCmdUnMarkSelected, eCmdUnsetMaster, CUICommandRegistry::RegisterCommand(), and WidgetsData_RegisterCommands().
Referenced by CAlignMultipleDemoDlg::CreateControls(), and CMultiAlignViewFactory::RegisterCommands().
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 283 of file alnmulti_widget.cpp.
References IAlnExplorer::fInvalid, IAlnMultiDataSource::GetAlignType(), CAlnMultiModel::GetDisplayStyle(), CGuiRegistry::GetInstance(), CAlnMultiModel::GetNumRows(), CGuiRegistry::GetWriteView(), m_DataSource, m_Model, CGlWidgetBase::m_RegPath, and CWidgetDisplayStyle::SaveSettings().
Referenced by OnColumnsChanged(), OnSetAsDefaultMethod(), OnSettings(), CMultiAlignView::SaveSettings(), and x_SetScoringMethod().
bool CAlnMultiWidget::SaveVectorImage | ( | CPrintOptions::EOutputFormat | format, |
string const & | path, | ||
string const & | file_name, | ||
bool | show_header, | ||
bool | simplified | ||
) |
Definition at line 1622 of file alnmulti_widget.cpp.
References CImageGrabberFactory::CreateImageGrabber(), IImageGrabber::eFileError, IImageGrabber::eOpenGLError, IImageGrabber::eSuccess, file_name, format, IAlnMultiRendererContext::fShownElement_Header, IAlnMultiRendererContext::fShownElement_MasterRow, IAlnMultiRendererContext::fShownElement_Ruler, CAlnMultiModel::GetDisplayStyle(), CPrintOptions::GetFileExtension(), CGlTextureFont::GetFontDescender(), CAlnMultiRenderer::GetHeaderAreaHeight(), CAlnMultiRenderer::GetMasterAreaHeight(), CGlPane::GetModelLimitsRect(), GetPort(), CAlnMultiRenderer::GetRect(), CAlnMultiPane::GetRenderer(), CAlnMultiRenderer::GetRulerAreaHeight(), CAlnMultiModel::GetShownElements(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), m_AlignPane, m_Model, CWidgetDisplayStyle::m_TextFont, CAlnMultiRenderer::Resize(), CGlTextureFont::SetFontSize(), CAlnMultiModel::SetShownElements(), IImageGrabber::SetTitleHeight(), CGlRect< T >::SetVert(), CGlPane::SetViewport(), CGlPane::SetVisibleRect(), CGlTextureFont::TextHeight(), CGlRect< T >::Width(), and wxT.
Referenced by CwxExportAlnmultiImgDlg::OnSaveClick().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 399 of file alnmulti_widget.cpp.
References GetPort(), CGlPane::Scroll(), and x_UpdateOnZoom().
|
virtual |
Definition at line 234 of file alnmulti_widget.cpp.
References CAlnMultiModel::GetLineByRowNum(), i, m_Model, CSelListModelImpl< Item >::SLM_SelectItems(), and x_RedrawControls().
Referenced by SetSelectedIds(), and CMultiAlignView::x_OnSetSelection().
|
virtual |
Definition at line 320 of file alnmulti_widget.cpp.
References _ASSERT, CAlnMultiModel::GetDefaultMethod(), CAlnMultiModel::GetDisplayStyle(), CAlnMultiPane::Init(), IAlnMultiDataSource::IsEmpty(), m_AlignPane, m_DataSource, m_Model, CWidgetDisplayStyle::m_ShowConsensus, NULL, IAlnMultiDataSource::SetCreateConsensus(), CAlnMultiModel::SetDataSource(), x_SetScoringMethod(), and x_UpdateOnDataChanged().
Referenced by CAlignMultipleDemoDlg::CreateControls(), CAlignMultipleDemoDlg::OnFileClick(), CMultiAlignView::OnProjectChanged(), CAlignMultipleDemoDlg::OnRebuild(), and CUpdateSeqPanel::x_InitAlnMultiDSBuilder().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 378 of file alnmulti_widget.cpp.
References GetPort(), CGlPane::SetScaleRefPoint(), and x_UpdateOnZoom().
void CAlnMultiWidget::SetSelectedIds | ( | const TRSeqIdVector & | ids, |
objects::CScope & | scope | ||
) |
Definition at line 691 of file alnmulti_widget.cpp.
References IAlignRow::fItemHidden, GetDataSource(), GetModel(), IAlnMultiDataSource::GetNumRows(), IAlnMultiDataSource::GetSeqId(), ITERATE, CSeqUtils::Match(), row, and Select().
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().
|
virtual |
Definition at line 255 of file alnmulti_widget.cpp.
References _ASSERT, catalog, m_Model, and CAlnMultiModel::SetStyleCatalog().
Referenced by CAlignMultipleDemoDlg::CreateControls(), CMultiAlignView::CreateViewWindow(), and CUpdateSeqPanel::x_CreateAlnMultiWidget().
|
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().
|
virtual |
Definition at line 936 of file alnmulti_widget.cpp.
References m_AlignPane, CAlnMultiPane::Update(), and x_RedrawControls().
Referenced by OnMethodProperties(), and x_SetScoringMethod().
|
virtual |
Definition at line 927 of file alnmulti_widget.cpp.
References m_AlignPane, m_Model, CAlnMultiPane::UpdateHeaderSortState(), CAlnMultiModel::UpdateSortOrder(), and x_RedrawControls().
void CAlnMultiWidget::UpdateView | ( | void | ) |
Definition at line 966 of file alnmulti_widget.cpp.
References m_AlignPane, CAlnMultiPane::Update(), and x_UpdateOnStylesChanged().
Referenced by CUpdateSeqAlignWidget::LoadSettingsV().
|
protectedvirtual |
Definition at line 1103 of file alnmulti_widget.cpp.
References CGlPane::AdjustToLimits(), CAlnMultiPane::GetAlignVPHeight(), CGlPane::GetModelLimitsRect(), GetPort(), CGlPane::GetVisibleRect(), m_AlignPane, CGlRect< T >::SetBottom(), CGlRect< T >::SetTop(), CGlPane::SetVisibleRect(), and CGlRect< T >::Top().
Referenced by OnRowChanged(), OnShowAll(), SetVisible(), x_OnResize(), x_UpdateOnDataChanged(), x_UpdateOnRowHChanged(), and x_UpdateOnSwitchMaster().
|
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().
|
protectedvirtual |
factory method creating master pane, called form x_CreateControls()
Implements CGlWidgetBase.
Definition at line 973 of file alnmulti_widget.cpp.
References _ASSERT, m_AlignPane, m_Model, NULL, CAlnMultiPane::SetContext(), CAlnMultiPane::SetWidget(), CSelListModelImpl< Item >::SLM_AddSLView(), wxID_ANY, and x_CreateModel().
|
protectedvirtual |
Definition at line 1522 of file alnmulti_widget.cpp.
References _ASSERT, CUICommandRegistry::AppendMenuItem(), cmd, CUICommandRegistry::CreateMenu(), eCmdDisableScoring, eCmdScoringMethodXXXX, eCmdSetAsDefaultMethod, FindSubItem(), IAlnExplorer::fInvalid, CUICommandRegistry::GetInstance(), CUIToolRegistry::GetInstance(), CUIToolRegistry::GetMRUToolNames(), ITERATE, CUIToolRegistry::MRUListExists(), ct::sort(), ToWxString(), and wxT.
Referenced by OnContextMenu().
|
protectedvirtual |
Definition at line 1591 of file alnmulti_widget.cpp.
References _ASSERT, CreateMenu(), CAlnMultiModel::GetCurrentMethod(), CMenuItem::GetLabel(), IUIToolWithGUI::GetMenu(), m_Model, and ToWxString().
|
protectedvirtual |
Definition at line 1326 of file alnmulti_widget.cpp.
References _ASSERT, CAlnMultiModel::GetCurrentMethod(), IUITool::GetName(), and m_Model.
Referenced by OnSetAsDefaultMethod(), OnShowMethodDlg(), OnUpdateScoringMethod(), and x_SetScoringMethod().
|
protectedvirtual |
Definition at line 1423 of file alnmulti_widget.cpp.
References _ASSERT, IAlnExplorer::fDNA, IAlnExplorer::fProtein, IAlnMultiDataSource::GetAlignType(), CAlnMultiModel::GetDisplayStyle(), m_DataSource, CWidgetDisplayStyle::m_DefDNAMethod, CWidgetDisplayStyle::m_DefProteinMethod, m_Model, and NULL.
Referenced by OnSetAsDefaultMethod().
|
protected |
Definition at line 780 of file alnmulti_widget.cpp.
References IAlignRow::eDescr, multimap_checker< Container >::equal_range(), IAlignRow::fItemHidden, IAlignRow::fItemSelected, IAlignRow::GetColumnText(), GetDataSource(), GetModel(), IAlnMultiDataSource::GetNumRows(), CAlnMultiModel::GetRow(), IAlignRow::GetRowState(), multimap_checker< Container >::insert(), set< Key, Compare >::insert(), ITERATE, and row.
Referenced by OnUnhideSelected(), and OnUpdateUnhideSelected().
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 314 of file alnmulti_widget.cpp.
References m_AlignPane.
|
protectedvirtual |
Definition at line 1442 of file alnmulti_widget.cpp.
References IScoringMethod::GetAlignmentTagByType(), IAlnMultiDataSource::GetAlignType(), m_DataSource, and tag.
Referenced by x_SetScoringMethod().
Definition at line 575 of file alnmulti_widget.cpp.
References GetPort(), CGlPane::GetVisibleRect(), CGlRect< T >::Left(), min(), CGlRect< T >::Right(), CGlPane::Scroll(), and x_UpdateOnZoom().
|
protected |
Definition at line 569 of file alnmulti_widget.cpp.
|
protectedvirtual |
Definition at line 1047 of file alnmulti_widget.cpp.
References CAlnMultiPane::GetAlignVPHeight(), CAlnMultiPane::GetAlignVPWidth(), GetPort(), m_AlignPane, CGlRect< T >::SetSize(), CGlPane::SetViewport(), x_AdjustVisible(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnChildResize().
|
protected |
Definition at line 1692 of file alnmulti_widget.cpp.
References format.
Referenced by OnSavePdf(), and OnSaveSvg().
|
protectedvirtual |
Reimplemented from CGlWidgetBase.
Definition at line 1060 of file alnmulti_widget.cpp.
References m_AlignPane.
Referenced by OnMoveSelectedUp(), OnRowChanged(), OnShowAll(), Select(), SetVisible(), UpdateOnScoringChanged(), UpdateSortOrder(), x_UpdateOnDataChanged(), x_UpdateOnRowHChanged(), x_UpdateOnSwitchMaster(), and x_UpdateOnZoom().
|
inlinevirtual |
updates model limits of the Master CGlPane
Implements CGlWidgetBase.
Definition at line 124 of file alnmulti_widget.hpp.
Definition at line 1339 of file alnmulti_widget.cpp.
References _ASSERT, CAlnMultiModel::AddScoringMethod(), CUIToolRegistry::AddToolToMRU(), CUIToolRegistry::CreateMRUList(), CUIToolRegistry::CreateToolInstance(), eDialog_Ok, eIcon_Exclamation, CUIToolRegistry::GetInstance(), CRef< C, Locker >::GetPointer(), kDefMRUSize, m_Model, CUIToolRegistry::MRUListExists(), msg(), NcbiMessageBox(), ok, CAlnMultiModel::ResetCurrentMethod(), SaveSettings(), CAlnMultiModel::SetCurrentMethod(), CAlnMultiModel::SetDefaultMethod(), string, UpdateOnScoringChanged(), x_GetCurrentMethodName(), and x_GetScoringMRUListName().
Referenced by OnDisableScoring(), OnDSChanged(), CUpdateSeqAlignWidget::OnDSChanged(), OnScoringMethod(), OnShowMethodDlg(), and SetDataSource().
Update handlers.
Definition at line 1068 of file alnmulti_widget.cpp.
References IAlnMultiDataSource::GetConsensusRow(), GetDataSource(), CAlnMultiModel::GetDisplayStyle(), IAlnMultiDataSource::GetNumRows(), CAlnMultiModel::GetRow(), i, IAlnMultiDataSource::IsEmpty(), m_AlignPane, m_Model, CWidgetDisplayStyle::m_ShowConsensus, CAlnMultiPane::ResetSelection(), IAlignRow::SetHost(), SetVisible(), CAlnMultiPane::UnMarkAll(), CAlnMultiPane::UpdateOnDataChanged(), x_AdjustVisible(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnDSChanged(), CUpdateSeqAlignWidget::OnDSChanged(), SetDataSource(), and x_UpdateOnStylesChanged().
|
protectedvirtual |
Definition at line 1120 of file alnmulti_widget.cpp.
References m_Model, CAlnMultiModel::UpdateOnRowHChanged(), x_AdjustVisible(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnRowChanged(), and x_UpdateOnStylesChanged().
|
protectedvirtual |
Definition at line 1211 of file alnmulti_widget.cpp.
References IAlnMultiDataSource::CanCreateConsensus(), color, CAlnMultiModel::CreateConsensus(), CWidgetDisplayStyle::eBack, CWidgetDisplayStyle::GetColor(), IAlnMultiDataSource::GetConsensusRow(), GetDataSource(), CAlnMultiModel::GetDisplayStyle(), CAlnMultiModel::GetMasterRow(), CAlnMultiPane::GetRenderer(), IAlignRow::GetRowNum(), m_AlignPane, m_DataSource, m_Model, CWidgetDisplayStyle::m_ShowConsensus, NULL, CAlnMultiPane::SetBackColor(), CAlnMultiRenderer::SetColumnsByStyle(), IAlnMultiDataSource::SetCreateConsensus(), SetVisible(), CAlnMultiModel::UpdateOnDataChanged(), CAlnMultiModel::UpdateOnStyleChanged(), x_UpdateOnDataChanged(), x_UpdateOnRowHChanged(), and x_UpdateOnSwitchMaster().
Referenced by LoadSettings(), OnSettings(), and UpdateView().
|
protectedvirtual |
Definition at line 1134 of file alnmulti_widget.cpp.
References CGlRect< T >::Bottom(), C, CRangeCollection< Position >::CombineWith(), CEventHandler::eDispatch_Default, IAlnExplorer::eLeft, CAlnMultiPane::eLinearSelChanged, CEventHandler::ePool_Parent, IAlnExplorer::eRight, IAlnMultiDataSource::GetAlnPosFromSeqPos(), IAlnMultiDataSource::GetAnchor(), GetDataSource(), GetPort(), CAlnMultiPane::GetSelection(), IAlnMultiDataSource::GetSeqPosFromAlnPos(), CGlPane::GetVisibleRect(), ITERATE, CGlRect< T >::Left(), m_AlignPane, m_Model, CGlRect< T >::Right(), CEventHandler::Send(), CAlnMultiModel::SetMasterRow(), CAlnMultiPane::SetSelection(), CGlPane::SetVisibleRect(), CGlRect< T >::Top(), CAlnMultiPane::Update(), x_AdjustVisible(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnMakeConsensusRowMaster(), OnMakeSelectedRowMaster(), OnUnsetMaster(), and x_UpdateOnStylesChanged().
|
protectedvirtual |
Reimplemented from CGlWidgetBase.
Definition at line 1203 of file alnmulti_widget.cpp.
References m_AlignPane, CAlnMultiPane::Update(), x_RedrawControls(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnZoomSequence(), Scroll(), SetScaleX(), x_MakeVisibleHorz(), x_ZoomToRange(), and ZoomToSelection().
|
protectedvirtual |
Definition at line 873 of file alnmulti_widget.cpp.
References CAlnMultiRenderer::GetColumn(), CAlnMultiRenderer::GetColumnsCount(), CAlnMultiModel::GetDisplayStyle(), CAlnMultiPane::GetRenderer(), i, m_AlignPane, CWidgetDisplayStyle::m_Columns, m_Model, IAlnMultiHeaderContext::SColumn::m_Name, IAlnMultiHeaderContext::SColumn::m_Visible, and IAlnMultiHeaderContext::SColumn::m_Width.
Referenced by OnColumnsChanged(), and OnSettings().
Definition at line 558 of file alnmulti_widget.cpp.
References GetPort(), CGlPane::GetVisibleRect(), CGlRect< T >::SetLeft(), CGlRect< T >::SetRight(), x_UpdateOnZoom(), and CGlPane::ZoomRect().
Referenced by ZoomRect(), and ZoomToSelection().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 393 of file alnmulti_widget.cpp.
References GetPort(), and CGlPane::ZoomPoint().
|
virtual |
Implements IAlnMultiPaneParent.
Definition at line 385 of file alnmulti_widget.cpp.
References CGlRect< T >::Left(), CGlRect< T >::Right(), and x_ZoomToRange().
void CAlnMultiWidget::ZoomToSelection | ( | ) |
Definition at line 538 of file alnmulti_widget.cpp.
References CRange_Base::GetFrom(), CAlnMultiPane::GetSelectionLimits(), CRange_Base::GetTo(), m_AlignPane, COpenRange< Position >::NotEmpty(), x_UpdateOnZoom(), and x_ZoomToRange().
Referenced by OnZoomSelection(), and CUpdateSeqAlignWidget::x_OnAlnWidgetSelChanged().
|
protected |
representation of alignment data
Definition at line 318 of file alnmulti_widget.hpp.
Referenced by CreateWidget(), GetMarks(), GetObjectSelection(), GetSelection(), HasSelectedObjects(), IsRendererFocused(), OnContextMenu(), OnDSChanged(), CUpdateSeqAlignWidget::OnDSChanged(), OnMarkSelected(), OnResetSelection(), OnRowChanged(), OnScoringFinished(), OnScoringProgress(), OnSettings(), OnUnMarkAll(), OnUnMarkSelected(), OnUpdateMarkSelected(), OnUpdateZoomSelection(), SaveVectorImage(), SetDataSource(), SetSelection(), UpdateOnScoringChanged(), UpdateSortOrder(), UpdateView(), x_AdjustVisible(), x_CreatePane(), x_GetPane(), x_OnResize(), x_RedrawControls(), x_UpdateOnDataChanged(), x_UpdateOnStylesChanged(), x_UpdateOnSwitchMaster(), x_UpdateOnZoom(), x_UpdateStyleColumns(), ZoomToSelection(), and ~CAlnMultiWidget().
|
protected |
widget rendering data and handling events
Definition at line 320 of file alnmulti_widget.hpp.
Referenced by OnScoringMethod(), and OnUpdateScoringMethod().
|
protected |
Definition at line 314 of file alnmulti_widget.hpp.
Referenced by GetDataSource(), OnDSChanged(), CUpdateSeqAlignWidget::OnDSChanged(), OnShowMethodDlg(), OnUpdateShowMethodDlg(), SaveSettings(), CUpdateSeqAlignWidget::SaveSettingsV(), SetDataSource(), CUpdateSeqAlignWidget::x_FindAnchorRow(), x_GetDefMethodName(), x_GetScoringMRUListName(), and x_UpdateOnStylesChanged().
|
protected |
source of alignment data
Definition at line 316 of file alnmulti_widget.hpp.
Referenced by CreateWidget(), GetDisplayStyle(), GetLineByRowNum(), GetModel(), GetPort(), GetRowNumByLine(), GetSelectedRows(), LoadSettings(), CUpdateSeqAlignWidget::LoadSettingsV(), OnDSChanged(), CUpdateSeqAlignWidget::OnDSChanged(), OnHasSelected(), OnHideSelected(), OnMakeSelectedRowMaster(), OnMethodProperties(), OnMoveSelectedUp(), OnRowChanged(), OnSettings(), OnShowAll(), OnShowOnlySelected(), OnUpdateDisableScoring(), OnUpdateMakeConsensusRowMaster(), OnUpdateMakeSelectedRowMaster(), OnUpdateMarkSelected(), OnUpdateMethodProperties(), OnUpdateUnsetMaster(), SaveSettings(), CUpdateSeqAlignWidget::SaveSettingsV(), SaveVectorImage(), Select(), SetDataSource(), SetStyleCatalog(), SetVisible(), UpdateSortOrder(), x_CreateModel(), x_CreatePane(), x_CreateScoringMethodsMenu(), CUpdateSeqAlignWidget::x_FindAnchorRow(), x_GetCurrentMethodName(), x_GetDefMethodName(), x_SetScoringMethod(), x_UpdateOnDataChanged(), x_UpdateOnRowHChanged(), x_UpdateOnStylesChanged(), x_UpdateOnSwitchMaster(), x_UpdateStyleColumns(), and ~CAlnMultiWidget().