NCBI C++ ToolKit
|
Search Toolkit Book for CPhyloTreeWidget
class CPhyloTreeWidget More...
#include <gui/widgets/phylo_tree/phylo_tree_widget.hpp>
Public Member Functions | |
CPhyloTreeWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel")) | |
virtual | ~CPhyloTreeWidget () |
virtual void | SetDataSourceNoUpdate (CPhyloTreeDataSource *p_ds) |
virtual void | SetDataSource (CPhyloTreeDataSource *p_ds) |
virtual void | RemoveCurrentDataSource () |
virtual void | RedrawDataSource () |
Force tree to be re-masured and call layout. More... | |
virtual CPhyloTreeDataSource * | GetDS (void) |
virtual CGlPane & | GetPort () |
implement these 2 functions in derived classes More... | |
virtual const CGlPane & | GetPort () const |
virtual void | OnSetScaleXY (TModelUnit scale_x, const TModelPoint &point) |
virtual void | DlgOverlayFix (wxWindow *win) |
this will forward events to fix opengl bug (windows) to pane More... | |
void | OnContextMenu (wxContextMenuEvent &) |
Command handlers. More... | |
void | OnPrint (wxCommandEvent &evt) |
void | OnEnablePrintCmdUpdate (wxUpdateUIEvent &evt) |
void | OnSaveImages (wxCommandEvent &evt) |
void | OnSetEqualScale (wxCommandEvent &evt) |
void | OnEnableSaveImagesCmdUpdate (wxUpdateUIEvent &evt) |
void | OnSavePdf (wxCommandEvent &evt) |
void | OnEnableSavePdfCmdUpdate (wxUpdateUIEvent &evt) |
void | OnSetGraphType1 (wxCommandEvent &evt) |
void | OnSetGraphType2 (wxCommandEvent &evt) |
void | OnSetGraphType3 (wxCommandEvent &evt) |
void | OnSetGraphType4 (wxCommandEvent &evt) |
void | OnSetGraphType5 (wxCommandEvent &evt) |
void | OnRotateLabels (wxCommandEvent &evt) |
void | OnStopLayout (wxCommandEvent &evt) |
void | OnUseDistances (wxCommandEvent &evt) |
void | OnUseSplines (wxCommandEvent &evt) |
void | OnOpenPropertiesDlg (wxCommandEvent &evt) |
void | OnRerootTree (wxCommandEvent &evt) |
void | OnRerootTreeAtEdge (wxCommandEvent &evt) |
void | OnSetMidpointRoot (wxCommandEvent &evt) |
void | OnSelectAll (wxCommandEvent &evt) |
void | OnClearSelection (wxCommandEvent &evt) |
void | OnAddSelectionSet (wxCommandEvent &evt) |
void | OnExportSelection (wxCommandEvent &evt) |
void | OnExportTree (wxCommandEvent &evt) |
void | OnInverseSelection (wxCommandEvent &evt) |
void | OnExpandChildren (wxCommandEvent &evt) |
void | OnHighlightCollapsed (wxCommandEvent &evt) |
void | OnHighlightEdges (wxCommandEvent &evt) |
void | OnCollapseToViewport (wxCommandEvent &evt) |
void | OnCollapseSelected (wxCommandEvent &evt) |
void | OnCollapseChildren (wxCommandEvent &evt) |
void | OnZoomToSubtree (wxCommandEvent &evt) |
void | OnShowAll (wxCommandEvent &evt) |
void | OnEditNode (wxCommandEvent &evt) |
void | OnFilterDistances (wxCommandEvent &evt) |
void | OnZoomXY (wxCommandEvent &evt) |
void | OnZoomX (wxCommandEvent &evt) |
void | OnZoomY (wxCommandEvent &evt) |
void | OnZoomToSelection (wxCommandEvent &evt) |
void | OnGoBack (wxCommandEvent &evt) |
void | OnGoForward (wxCommandEvent &evt) |
void | OnUpdateGoBack (wxUpdateUIEvent &evt) |
void | OnUpdateGoForward (wxUpdateUIEvent &evt) |
void | OnSort (wxCommandEvent &evt) |
void | OnSortAscending (wxCommandEvent &evt) |
void | OnClean (wxCommandEvent &evt) |
void | OnFilter (wxCommandEvent &evt) |
void | OnEditLabel (wxCommandEvent &evt) |
void | OnLoadAttributes (wxCommandEvent &evt) |
void | OnLabels (wxCommandEvent &evt) |
void | OnUpdateLabels (wxUpdateUIEvent &evt) |
void | OnUpdateEditLabel (wxUpdateUIEvent &evt) |
void | OnSetTreeLabel (wxCommandEvent &evt) |
void | OnAl (wxCommandEvent &evt) |
void | OnUpdateAl (wxUpdateUIEvent &evt) |
void | OnEdit (wxCommandEvent &evt) |
void | OnUpdateEdit (wxUpdateUIEvent &evt) |
virtual void | x_ZoomIn (int options) |
Zoom functions. More... | |
virtual void | x_ZoomOut (int options) |
void | OnUpdateZoomXY (wxUpdateUIEvent &evt) |
void | OnUpdateZoomX (wxUpdateUIEvent &evt) |
void | OnUpdateZoomY (wxUpdateUIEvent &evt) |
void | OnUpdateZoomSel (wxUpdateUIEvent &evt) |
void | OnUpdateEditNode (wxUpdateUIEvent &evt) |
void | OnUpdateRotateLabels (wxUpdateUIEvent &evt) |
void | OnUpdateStopLayout (wxUpdateUIEvent &evt) |
void | OnUpdateUseDistances (wxUpdateUIEvent &evt) |
void | OnUpdateSortAscending (wxUpdateUIEvent &evt) |
void | OnUpdateUseSplines (wxUpdateUIEvent &evt) |
void | OnUpdateSetGraphType1 (wxUpdateUIEvent &evt) |
void | OnUpdateSetGraphType2 (wxUpdateUIEvent &evt) |
void | OnUpdateSetGraphType3 (wxUpdateUIEvent &evt) |
void | OnUpdateSetGraphType4 (wxUpdateUIEvent &evt) |
void | OnUpdateSetGraphType5 (wxUpdateUIEvent &evt) |
void | OnUpdateRerootTree (wxUpdateUIEvent &evt) |
void | OnUpdateRerootTreeAtEdge (wxUpdateUIEvent &evt) |
void | OnUpdateSetMidpointRoot (wxUpdateUIEvent &evt) |
void | OnUpdateShowAll (wxUpdateUIEvent &evt) |
void | OnUpdateCollapseChildren (wxUpdateUIEvent &evt) |
void | OnUpdateExpandChildren (wxUpdateUIEvent &evt) |
void | OnUpdateCollapseSelected (wxUpdateUIEvent &evt) |
void | OnUpdateZoomToSubtree (wxUpdateUIEvent &evt) |
void | OnSubtreeFromSelection (wxCommandEvent &evt) |
void | OnSearchTip (wxCommandEvent &evt) |
void | OnZoomTip (wxCommandEvent &evt) |
void | OnInfoTip (wxCommandEvent &evt) |
void | OnTipActivated (wxCommandEvent &evt) |
void | OnTipDeactivated (wxCommandEvent &evt) |
void | OnUpdateSubtreeFromSelection (wxUpdateUIEvent &evt) |
void | OnUpdateSelChanged () |
void | UpdateViewingArea () |
void | SetCurrRenderer (int idx) |
int | GetCurrRenderer () const |
vector< string > | GetRenderersNames (void) |
virtual void | OnShowPopup () |
void | SendSelChangedEvent () |
void | SendEditEvent (EPhyloTreeEditCommand ec=eCmdSomethingEdited) |
void | SetPortLimits (const TModelRect &rect, bool bZoomAll=true) |
void | SetPopupMenuItems (CMenuItem *itm) |
void | SetScheme (CPhyloTreeScheme &sl) |
void | SetRegistryPath (const string ®_path) |
void | LoadSettings () |
void | SaveSettings () const |
void | SetUseDistances (bool bDist) |
bool | GetUseDistances () const |
void | SetRotateLabels (bool rot) |
bool | GetRotateLabels () const |
void | EditLabel () |
bool | HasScheme (void) |
CPhyloTreeScheme & | GetScheme (void) |
void | SetQueryPanel (CQueryParsePanel *queryPanel) |
IQueryWidget interface implementation | |
virtual string | GetSearchHelpAddr () const |
Return web-address for the help page that disusses help for the specific widget. More... | |
virtual void | QueryStart () |
Disable any widgets that the user should not use during the query. More... | |
virtual void | QueryEnd (CMacroQueryExec *exec) |
Re-enable any widgets disabled during the query. More... | |
void | IterateSelection (int dir) |
Advance to previous/next selected row from query (in current sort order) More... | |
virtual void | SetSelectAll (bool b) |
Set to true to show all rows selected by most recent query as selected. More... | |
virtual void | SetHideUnselected (bool b) |
If true, only rows that were selected by prevous query will be shown. More... | |
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 | ZoomRect (const TModelRect &rc) |
virtual void | ZoomPoint (const TModelPoint &point, TModelUnit factor, CGlPane::EZoomOptions=CGlPane::fZoomXY) |
virtual void | Scroll (TModelUnit d_x, TModelUnit d_y) |
virtual void | NotifyVisibleRangeChanged () |
void | OnAllEvents (CViewEvent::TEventObject evt) |
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 IQueryWidget | |
IQueryWidget () | |
virtual | ~IQueryWidget () |
Static Public Member Functions | |
static void | RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider) |
class CPhyloTreeWidget 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 Member Functions | |
virtual void | x_CreatePane (void) |
factory method creating master pane, called form x_CreateControls() More... | |
virtual CGlWidgetPane * | x_GetPane () |
virtual void | x_SetPortLimits (void) |
updates model limits of the Master CGlPane More... | |
virtual void | x_Update () |
Update handlers. More... | |
virtual void | x_UpdatePane () |
virtual void | x_SoftUpdate () |
virtual void | x_SaveStates () |
virtual void | x_CreateControls () |
creates Pane, Scrollbars and other child widgets, called from Create() More... | |
void | x_IterateSelection (int dir) |
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_RedrawControls (void) |
virtual void | x_ZoomAll (int options) |
virtual void | x_UpdateOnZoom () |
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 | |
CRef< CPhyloTreeDataSource > | m_DataSource |
CRef< CPhyloTreeScheme > | m_pScheme |
CPhyloTreePane * | m_pPhyloTreePane |
CMenuItem * | m_pPopupItems |
CRef< CGuiRegistry > | m_ConfigCache |
CGlPane | m_Port |
CQueryParsePanel * | m_QueryPanel |
bool | m_SortAscending |
EPhyloTreeEditCommand | m_LastCommand |
CGlPane | m_PrevPane |
CVect2< float > | m_PrevPos |
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 | |
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, TListeners > | TPools |
typedef list< AutoPtr< SPostRequest > > | TPostRequests |
typedef std::map< CEventHandler *, int > | THandlerToCount |
typedef void(* | FOnPostCallback) () |
Static Protected Attributes inherited from CEventHandler | |
static const SEvtMap | sm_EvtMap |
class CPhyloTreeWidget
Definition at line 150 of file phylo_tree_widget.hpp.
CPhyloTreeWidget::CPhyloTreeWidget | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL , |
||
const wxString & | name = wxT("panel") |
||
) |
Definition at line 209 of file phylo_tree_widget.cpp.
References CGlPane::EnableZoom(), CGlPane::eOriginBottom, CGlPane::eOriginLeft, CGlPane::fAdjustAll, m_Port, CGlPane::SetAdjustmentPolicy(), CGlPane::SetMinScaleX(), CGlPane::SetMinScaleY(), and CGlPane::SetOriginType().
|
virtual |
Definition at line 227 of file phylo_tree_widget.cpp.
References m_QueryPanel, and CEventHandler::RemoveListener().
|
virtual |
this will forward events to fix opengl bug (windows) to pane
Reimplemented from IQueryWidget.
Definition at line 1210 of file phylo_tree_widget.cpp.
References CGlWidgetPane::DlgOverlayFix(), and m_pPhyloTreePane.
Referenced by EditLabel(), OnEditNode(), OnInfoTip(), OnOpenPropertiesDlg(), OnSaveImages(), OnSavePdf(), and OnSetTreeLabel().
void CPhyloTreeWidget::EditLabel | ( | ) |
Definition at line 2292 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), eCmdFeaturesEdited, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, CPhyloTree::GetCurrentNode(), CPhyloTree::GetCurrentNodeIdx(), CFeatureEdit::GetDictionary(), CPhyloTreeDataSource::GetDictionary(), CPhyloTree::GetFeatureDict(), CBioTreeFeatureDictionary::GetId(), CPhyloTreeDataSource::GetTree(), CFeatureEdit::GetUpdated(), CwxLabelEditDlg::GetUpdatedLabel(), CPhyloTree::HasCurrentNode(), m_DataSource, result, CEventHandler::Send(), and CwxLabelEditDlg::SetParams().
Referenced by OnEditLabel().
int CPhyloTreeWidget::GetCurrRenderer | ( | void | ) | const |
Definition at line 1247 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
Referenced by CPhyTreeView::OnSomethingEdited().
|
virtual |
Definition at line 646 of file phylo_tree_widget.cpp.
References m_DataSource.
Referenced by CPhyloTreePane::BufferedRender(), CPhyloTreePane::HMGH_UpdateLimits(), CPhyTreeView::OnBioTreeChanged(), CPhyTreeView::OnSomethingEdited(), CPhyloTreePane::RenderHardcopy(), CPhyloTreePane::RenderPdf(), CPhyloTreePane::SoftUpdate(), CPhyloTreePane::Update(), CPhyloTreePane::UpdateDataSource(), CPhyloTreePane::x_Layout(), and CPhyloTreePane::x_Render().
|
virtual |
implement these 2 functions in derived classes
Implements CGlWidgetBase.
Definition at line 652 of file phylo_tree_widget.cpp.
References m_Port.
Referenced by CPhyloTreePane::GoBack(), CPhyloTreePane::GoForward(), CPhyloTreePane::HMGH_UpdateLimits(), CPhyloTreePane::MMHH_GetScale(), CPhyloTreePane::MZHH_GetScale(), OnZoomToSelection(), OnZoomXY(), RedrawDataSource(), CPhyloTreePane::SaveCurrentView(), CPhyloTreePane::SoftUpdate(), CPhyloTreePane::x_AdjustToMasterPane(), CPhyloTreePane::x_Layout(), and CPhyloTreePane::x_Render().
vector< string > CPhyloTreeWidget::GetRenderersNames | ( | void | ) |
Definition at line 1252 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetRenderers(), i, m_pPhyloTreePane, names, and ncbi::grid::netcache::search::fields::size.
bool CPhyloTreeWidget::GetRotateLabels | ( | ) | const |
Definition at line 1042 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetRenderers(), and m_pPhyloTreePane.
Referenced by CPhyTreeView::OnSomethingEdited().
|
inline |
Definition at line 319 of file phylo_tree_widget.hpp.
References CRef< C, Locker >::GetObject(), and m_pScheme.
Referenced by CChangePhyloPropertyCmd::CChangePhyloPropertyCmd(), CPhyTreeView::InitView(), CPhyloTreePane::MZHH_GetScale(), CPhyTreeView::OnBioTreeChanged(), CPhyTreeView::OnExportTree(), CPhyTreeView::OnSomethingEdited(), CChangePhyloPropertyCmd::PerformEdit(), and CPhyloTreePane::x_Render().
|
inlinevirtual |
Return web-address for the help page that disusses help for the specific widget.
The default ("") will hide the help icon.
Reimplemented from IQueryWidget.
Definition at line 323 of file phylo_tree_widget.hpp.
References string.
bool CPhyloTreeWidget::GetUseDistances | ( | ) | const |
Definition at line 1109 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetRenderers(), and m_pPhyloTreePane.
Referenced by CPhyTreeView::OnSomethingEdited().
|
inline |
Definition at line 318 of file phylo_tree_widget.hpp.
References CRef< C, Locker >::Empty(), and m_pScheme.
Referenced by CPhyTreeView::InitView(), CPhyTreeView::OnBioTreeChanged(), CPhyTreeView::OnExportTree(), CPhyTreeView::OnSomethingEdited(), and CPhyloTreePane::x_Render().
|
virtual |
Advance to previous/next selected row from query (in current sort order)
Reimplemented from IQueryWidget.
Definition at line 2384 of file phylo_tree_widget.cpp.
References a, abs, CGlPane::Close(), CTreeGraphicsModel::GetCurrentRotationAngle(), CPhyloTreePane::GetCurrRenderer(), CPhyloNodeData::GetLabelRect(), CPhyloTreeDataSource::GetModel(), CTreeModel< TNode >::GetNode(), CPhyloTreePane::GetPane(), CGlPane::GetScale(), CPhyloTreeDataSource::GetTree(), CTreeModelNode< TData >::GetValue(), CGlPane::GetViewport(), CGlRect< T >::Height(), CGlPoint< T >::Init(), CQueryParsePanel::IsSelectAll(), CPhyloTreeDataSource::IterateOverSelNodes(), m_DataSource, m_pPhyloTreePane, m_QueryPanel, NULL, CTreeModel< CPhyloTreeNode >::Null(), CGlPane::OpenOrtho(), CGlPane::Project(), CGlRect< T >::PtInRect(), r(), CGlWidgetBase::Scroll(), SendSelChangedEvent(), CGlPane::UnProject(), CGlPane::UnProjectHeight(), CGlPane::UnProjectWidth(), CGlRect< T >::Width(), CVect2< T >::X(), CGlPoint< T >::X(), CVect2< T >::Y(), and CGlPoint< T >::Y().
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 1510 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::LoadCurrentSettings(), CQueryParsePanel::LoadSettings(), m_QueryPanel, CGlWidgetBase::m_RegPath, NULL, CQueryParsePanel::SetRegistryPath(), and SetScheme().
Referenced by CPhyTreeView::InitView().
void CPhyloTreeWidget::OnAddSelectionSet | ( | wxCommandEvent & | evt | ) |
Definition at line 1547 of file phylo_tree_widget.cpp.
References CPhyloTreePane::BufferedRender(), eCmdRenderingOptionsChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, CQueryParsePanel::GetLastQuery(), CPhyloTree::GetSelectionSets(), CPhyloTreeDataSource::GetSelectionSets(), CPhyloTreeDataSource::GetTree(), m_DataSource, m_pPhyloTreePane, m_pScheme, m_QueryPanel, CEventHandler::Send(), CPhyloSaveSelectiondlg::SetSelections(), and CPhyloTreeDataSource::UpdateSelectionSets().
void CPhyloTreeWidget::OnAl | ( | wxCommandEvent & | evt | ) |
Definition at line 2114 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eAlNone, CPhyloTreeScheme::eAlPaml, CPhyloTreeScheme::eAlPhylip, eCmdAlNone, eCmdAlPaml, eCmdAlPhylip, m_pScheme, CPhyloTreeScheme::SetAutoLabels(), and x_SoftUpdate().
void CPhyloTreeWidget::OnClean | ( | wxCommandEvent & | evt | ) |
Definition at line 2066 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::Clean(), m_DataSource, m_pScheme, CPhyloTreeDataSource::Relabel(), SendEditEvent(), and CPhyloTreeScheme::SetLabelFormat().
void CPhyloTreeWidget::OnClearSelection | ( | wxCommandEvent & | evt | ) |
Definition at line 1541 of file phylo_tree_widget.cpp.
References CPhyloTree::ClearSelection(), CPhyloTreeDataSource::GetTree(), m_DataSource, and x_SoftUpdate().
void CPhyloTreeWidget::OnCollapseChildren | ( | wxCommandEvent & | evt | ) |
Definition at line 1701 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), eCmdNodeExpandCollapse, CPhyloNodeData::eHideChildren, CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetNode(), CPhyloTreeDataSource::GetTree(), m_DataSource, CTreeModel< CPhyloTreeNode >::Null(), SendEditEvent(), and CPhyloTreeDataSource::SetCollapsedLabel().
void CPhyloTreeWidget::OnCollapseSelected | ( | wxCommandEvent & | evt | ) |
Definition at line 1662 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::CollapseSelected(), m_DataSource, and SendEditEvent().
void CPhyloTreeWidget::OnCollapseToViewport | ( | wxCommandEvent & | evt | ) |
Definition at line 1676 of file phylo_tree_widget.cpp.
References set< Key, Compare >::begin(), CPhyloTreeDataSource::CollapseByDistance(), eCmdGrpExpandCollapse, CEvent::eEvent_Message, CPhyloNodeData::eHideChildren, set< Key, Compare >::end(), CEventHandler::ePool_Parent, CEvent::eRelease, CPhyloTreePane::GetCurrRenderer(), CExpandCollapseNodes::GetIds(), IPhyloTreeRender::GetMaxLeavesVisible(), CRef< C, Locker >::GetPointer(), CPhyloTreeDataSource::GetTree(), m_DataSource, m_pPhyloTreePane, NULL, CEventHandler::Send(), CPhyloTreeDataSource::SetCollapsedLabels(), CExpandCollapseNodes::SetExpanded(), and set< Key, Compare >::size().
void CPhyloTreeWidget::OnContextMenu | ( | wxContextMenuEvent & | event | ) |
Command handlers.
Definition at line 483 of file phylo_tree_widget.cpp.
References CUICommandRegistry::CreateMenu(), eHorz, eVert, CUICommandRegistry::GetInstance(), CGlWidgetBase::m_PopupPoint, m_pPhyloTreePane, CGlPoint< T >::m_X, CGlPoint< T >::m_Y, and CPhyloTreePane::SHH_GetModelByWindow().
void CPhyloTreeWidget::OnEdit | ( | wxCommandEvent & | evt | ) |
Definition at line 2166 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::Cut(), eCmdMoveDown, eCmdMoveUp, eCmdNodeCut, eCmdNodeNewChild, eCmdNodeNewParent, eCmdNodePaste, eCmdRemoveNode, eCmdRemoveSelected, eCmdRemoveSubtree, m_DataSource, CPhyloTreeDataSource::MoveNode(), CPhyloTreeDataSource::NewNode(), CPhyloTreeDataSource::Paste(), CPhyloTreeDataSource::Remove(), CPhyloTreeDataSource::RemoveSelected(), and SendEditEvent().
void CPhyloTreeWidget::OnEditLabel | ( | wxCommandEvent & | evt | ) |
Definition at line 2287 of file phylo_tree_widget.cpp.
References EditLabel().
void CPhyloTreeWidget::OnEditNode | ( | wxCommandEvent & | evt | ) |
Definition at line 1960 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), eCmdFeaturesEdited, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, CPhyloTreeDataSource::GenerateTooltipFormat(), CPhyloTree::GetCurrentNode(), CPhyloTree::GetCurrentNodeIdx(), CFeatureEdit::GetDictionary(), CPhyloTreeDataSource::GetDictionary(), CPhyloTreeDataSource::GetTree(), CFeatureEdit::GetUpdated(), CPhyloTree::HasCurrentNode(), m_DataSource, m_pScheme, result, CEventHandler::Send(), CwxPhyloEditDlg::SetParams(), and CPhyloTreeScheme::SetTooltipFormat().
void CPhyloTreeWidget::OnEnablePrintCmdUpdate | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 717 of file phylo_tree_widget.cpp.
void CPhyloTreeWidget::OnEnableSaveImagesCmdUpdate | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 753 of file phylo_tree_widget.cpp.
void CPhyloTreeWidget::OnEnableSavePdfCmdUpdate | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 769 of file phylo_tree_widget.cpp.
void CPhyloTreeWidget::OnExpandChildren | ( | wxCommandEvent & | evt | ) |
Definition at line 1649 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), eCmdNodeExpandCollapse, CPhyloNodeData::eShowChildren, CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetNode(), CPhyloTreeDataSource::GetTree(), m_DataSource, CTreeModel< CPhyloTreeNode >::Null(), and SendEditEvent().
void CPhyloTreeWidget::OnExportSelection | ( | wxCommandEvent & | evt | ) |
Definition at line 1573 of file phylo_tree_widget.cpp.
References columns, eUnknown, CCSVExporter::Field(), CPhyloNodeData::GetBioTreeFeatureList(), CPhyloTreeDataSource::GetDictionary(), CBioTreeFeatureDictionary::GetFeatureDict(), CBioTreeFeatureList::GetFeatureValue(), CCSVSelectionExportDlg::GetFileName(), CCSVSelectionExportDlg::GetLeavesOnly(), CCSVSelectionExportDlg::GetSelectedColumns(), CPhyloTreeDataSource::GetTree(), CTreeModelNode< TData >::GetValue(), CCSVSelectionExportDlg::GetWithHeaders(), map_checker< Container >::insert(), CTreeModelNode< TData >::IsLeaf(), ITERATE, m_DataSource, NCBI_THROW, CCSVExporter::NewRow(), NULL, out(), CCSVSelectionExportDlg::SetColumnsList(), and CDialog::SetRegistryPath().
void CPhyloTreeWidget::OnExportTree | ( | wxCommandEvent & | evt | ) |
Definition at line 1643 of file phylo_tree_widget.cpp.
References eCmdExportTree, CEvent::eEvent_Message, CEventHandler::ePool_Parent, and CEventHandler::Send().
void CPhyloTreeWidget::OnFilter | ( | wxCommandEvent & | evt | ) |
Definition at line 2073 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::Filter(), m_DataSource, and SendEditEvent().
void CPhyloTreeWidget::OnFilterDistances | ( | wxCommandEvent & | evt | ) |
Definition at line 1996 of file phylo_tree_widget.cpp.
void CPhyloTreeWidget::OnGoBack | ( | wxCommandEvent & | evt | ) |
Definition at line 887 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GoBack(), m_pPhyloTreePane, and CGlWidgetBase::x_UpdateOnZoom().
void CPhyloTreeWidget::OnGoForward | ( | wxCommandEvent & | evt | ) |
Definition at line 893 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GoForward(), m_pPhyloTreePane, and CGlWidgetBase::x_UpdateOnZoom().
void CPhyloTreeWidget::OnHighlightCollapsed | ( | wxCommandEvent & | evt | ) |
void CPhyloTreeWidget::OnHighlightEdges | ( | wxCommandEvent & | evt | ) |
Definition at line 1668 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetHighlightEdges(), m_pPhyloTreePane, IPhyloTreeRender::SetHighlightEdges(), and x_SoftUpdate().
void CPhyloTreeWidget::OnInfoTip | ( | wxCommandEvent & | evt | ) |
Definition at line 1875 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), eCmdFeaturesEdited, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, f(), CPhyloTree::FindNodeById(), CPhyloTreeDataSource::GenerateTooltipFormat(), CFeatureEdit::GetDictionary(), CPhyloTreeDataSource::GetDictionary(), CTreeModel< TNode >::GetNode(), CPhyloTreeDataSource::GetTree(), CFeatureEdit::GetUpdated(), m_DataSource, m_pScheme, n, NULL, CTreeModel< CPhyloTreeNode >::Null(), result, CEventHandler::Send(), CwxPhyloEditDlg::SetParams(), CPhyloTreeScheme::SetTooltipFormat(), string, and NStr::StringToInt().
void CPhyloTreeWidget::OnInverseSelection | ( | wxCommandEvent & | evt | ) |
void CPhyloTreeWidget::OnLabels | ( | wxCommandEvent & | evt | ) |
Definition at line 2079 of file phylo_tree_widget.cpp.
References eCmdLabelsForLeavesOnly, eCmdLabelsHidden, eCmdLabelsVisible, CPhyloTreeScheme::eLabelsForLeavesOnly, CPhyloTreeScheme::eLabelsHidden, CPhyloTreeScheme::eLabelsVisible, m_pScheme, CPhyloTreeScheme::SetLabelVisibility(), and x_SoftUpdate().
void CPhyloTreeWidget::OnLoadAttributes | ( | wxCommandEvent & | evt | ) |
Definition at line 1272 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::ApplyAttributes(), data, CException::GetMsg(), m_DataSource, m_pScheme, NcbiFileBrowser(), CBioTreeAttrReader::Read(), SendEditEvent(), table, ToWxString(), CException::what(), wxT, and x_Update().
void CPhyloTreeWidget::OnOpenPropertiesDlg | ( | wxCommandEvent & | evt | ) |
Definition at line 1303 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), eCmdLabelFormatChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CPhyloTreeDataSource::GenerateTooltipFormat(), CPhyloTreeScheme::GetLabelVisibility(), CRef< C, Locker >::GetObject(), CRef< C, Locker >::GetPointer(), CRef< C, Locker >::IsNull(), CPhyloTreeScheme::LoadCurrentSettings(), m_DataSource, m_pScheme, CPhyloTreeDataSource::Relabel(), result, CEventHandler::Send(), CPhyloTreeScheme::SetLabelFormat(), CPhyloTreeScheme::SetLabelVisibility(), CwxPhyloSettingsDlg::SetParams(), SetScheme(), CPhyloTreeScheme::SetTooltipFormat(), and x_SoftUpdate().
void CPhyloTreeWidget::OnPrint | ( | wxCommandEvent & | evt | ) |
Definition at line 663 of file phylo_tree_widget.cpp.
References data, CImage::Flip(), CPhyloTreePane::GetPane(), CPrintHanderWx::getPrintData(), CGlPane::GetViewport(), CGlRect< T >::Height(), m_pPhyloTreePane, NULL, CPrintHanderWx::performPageSetup(), CPhyloTreePane::SetContext(), CImage::SetData(), CPrintHanderWx::SetImage(), CGlRect< T >::Width(), and wxT.
void CPhyloTreeWidget::OnRerootTree | ( | wxCommandEvent & | evt | ) |
Definition at line 1340 of file phylo_tree_widget.cpp.
References CPhyloTreePane::BufferedRender(), CPhyloTree::ClearSelection(), CPhyloTree::GetCurrentNodeIdx(), CPhyloTreeDataSource::GetTree(), m_DataSource, m_pPhyloTreePane, m_pScheme, CTreeModel< CPhyloTreeNode >::Null(), CPhyloTreeDataSource::Relabel(), CPhyloTreeDataSource::ReRoot(), SendEditEvent(), and CPhyloTreeScheme::SetLabelFormat().
void CPhyloTreeWidget::OnRerootTreeAtEdge | ( | wxCommandEvent & | evt | ) |
Definition at line 1357 of file phylo_tree_widget.cpp.
References CPhyloTreePane::BufferedRender(), CPhyloTree::ClearSelection(), CPhyloTree::GetCurrentEdge(), CPhyloTreeDataSource::GetTree(), CPhyloTree::HasCurrentEdge(), m_DataSource, m_pPhyloTreePane, m_pScheme, CPhyloTreeDataSource::Relabel(), CPhyloTreeDataSource::ReRootEdge(), SendEditEvent(), and CPhyloTreeScheme::SetLabelFormat().
void CPhyloTreeWidget::OnRotateLabels | ( | wxCommandEvent & | evt | ) |
Definition at line 991 of file phylo_tree_widget.cpp.
References eCmdRenderingOptionsChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CPhyloTreePane::GetRenderers(), m_pPhyloTreePane, CEventHandler::Send(), and x_SoftUpdate().
void CPhyloTreeWidget::OnSaveImages | ( | wxCommandEvent & | evt | ) |
Definition at line 723 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomXY, CPhyloTreeScheme::eZoomY, I3DTexture::GenerateImage(), CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CImage::GetHeight(), CGlPane::GetModelLimitsRect(), CPhyloTreePane::GetPane(), CImage::GetSubImage(), CGlPane::GetViewport(), CImage::GetWidth(), CPhyloTreeScheme::GetZoomBehavior(), CGlRect< T >::Height(), m_Port, m_pPhyloTreePane, m_pScheme, CPhyloTreePane::MMHH_GetTexture(), CRef< C, Locker >::Reset(), CPhyloTreePane::SetContext(), CGlPane::SetModelLimitsRect(), CPreviewSetupDlg::SetZoomBehavior(), and CGlRect< T >::Width().
void CPhyloTreeWidget::OnSavePdf | ( | wxCommandEvent & | evt | ) |
Definition at line 762 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnSearchTip | ( | wxCommandEvent & | evt | ) |
Definition at line 1759 of file phylo_tree_widget.cpp.
References f(), CPhyloTree::FindNodeById(), CPhyloTreePane::GetCurrRenderer(), CTreeModel< TNode >::GetNode(), CPhyloTreePane::GetPane(), CPhyloTreeDataSource::GetTree(), int, m_DataSource, m_pPhyloTreePane, NULL, CTreeModelNode< CPhyloNodeData >::Null(), IPhyloTreeRender::PointToNode(), CGlWidgetBase::Scroll(), string, NStr::StringToInt(), CGlPane::UnProject(), CVect2< T >::X(), CGlPoint< T >::X(), CVect2< T >::Y(), and CGlPoint< T >::Y().
Referenced by OnZoomTip().
void CPhyloTreeWidget::OnSelectAll | ( | wxCommandEvent & | evt | ) |
Definition at line 1534 of file phylo_tree_widget.cpp.
References CTreeModel< TNode >::GetRootIdx(), CPhyloTreeDataSource::GetTree(), m_DataSource, CPhyloTree::SetSelection(), and x_SoftUpdate().
void CPhyloTreeWidget::OnSetEqualScale | ( | wxCommandEvent & | evt | ) |
Definition at line 774 of file phylo_tree_widget.cpp.
References CGlPane::GetScaleX(), CGlPane::GetScaleY(), m_Port, min(), CGlPane::SetScale(), and CGlWidgetBase::x_UpdateOnZoom().
void CPhyloTreeWidget::OnSetGraphType1 | ( | wxCommandEvent & | evt | ) |
Definition at line 937 of file phylo_tree_widget.cpp.
References SetCurrRenderer().
void CPhyloTreeWidget::OnSetGraphType2 | ( | wxCommandEvent & | evt | ) |
Definition at line 943 of file phylo_tree_widget.cpp.
References SetCurrRenderer().
void CPhyloTreeWidget::OnSetGraphType3 | ( | wxCommandEvent & | evt | ) |
Definition at line 948 of file phylo_tree_widget.cpp.
References SetCurrRenderer().
void CPhyloTreeWidget::OnSetGraphType4 | ( | wxCommandEvent & | evt | ) |
Definition at line 953 of file phylo_tree_widget.cpp.
References SetCurrRenderer().
void CPhyloTreeWidget::OnSetGraphType5 | ( | wxCommandEvent & | evt | ) |
Definition at line 958 of file phylo_tree_widget.cpp.
References SetCurrRenderer().
void CPhyloTreeWidget::OnSetMidpointRoot | ( | wxCommandEvent & | evt | ) |
Definition at line 1376 of file phylo_tree_widget.cpp.
References CPhyloTreePane::BufferedRender(), CPhyloTree::ClearSelection(), CPhyloTreeDataSource::GetTree(), m_DataSource, m_pPhyloTreePane, m_pScheme, CPhyloTreeDataSource::Relabel(), CPhyloTreeDataSource::ReRootMidpoint(), SendEditEvent(), and CPhyloTreeScheme::SetLabelFormat().
|
virtual |
Definition at line 1190 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomXY, CPhyloTreeScheme::eZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CGlPane::GetScaleX(), CGlPane::GetScaleY(), CPhyloTreeScheme::GetZoomBehavior(), m_Port, m_pPhyloTreePane, m_pScheme, CGlPane::SetScaleRefPoint(), and CGlWidgetBase::x_UpdateOnZoom().
Referenced by CPhyloTreePane::MZHH_SetScale().
void CPhyloTreeWidget::OnSetTreeLabel | ( | wxCommandEvent & | evt | ) |
Definition at line 2150 of file phylo_tree_widget.cpp.
References DlgOverlayFix(), eCmdTreeLabelSet, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CRef< C, Locker >::GetPointer(), m_DataSource, m_pScheme, result, CEventHandler::Send(), CwxTreeLabelEdit::SetParams(), and x_SoftUpdate().
void CPhyloTreeWidget::OnShowAll | ( | wxCommandEvent & | evt | ) |
Definition at line 1935 of file phylo_tree_widget.cpp.
References CExpandCollapseNodes::AddNode(), eCmdGrpExpandCollapse, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, CPhyloNodeData::eShowChildren, CPhyloTree::GetAllCollapsed(), CPhyloTreeDataSource::GetTree(), i, m_DataSource, CEventHandler::Send(), and CExpandCollapseNodes::SetExpanded().
|
inlinevirtual |
Definition at line 302 of file phylo_tree_widget.hpp.
Referenced by CPhyloTreePane::x_OnShowPopup().
void CPhyloTreeWidget::OnSort | ( | wxCommandEvent & | evt | ) |
Definition at line 2034 of file phylo_tree_widget.cpp.
References eCmdSort, eCmdSortDist, eCmdSortLabel, eCmdSortLabelRange, eCmdTreeSorted, m_DataSource, m_SortAscending, SendEditEvent(), CPhyloTreeDataSource::Sort(), CPhyloTreeDataSource::SortDist(), CPhyloTreeDataSource::SortLabel(), and CPhyloTreeDataSource::SortLabelRange().
void CPhyloTreeWidget::OnSortAscending | ( | wxCommandEvent & | evt | ) |
Definition at line 2061 of file phylo_tree_widget.cpp.
References m_SortAscending.
void CPhyloTreeWidget::OnStopLayout | ( | wxCommandEvent & | evt | ) |
Definition at line 1055 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), m_pPhyloTreePane, NULL, r(), and CPhyloForce::StopLayout().
void CPhyloTreeWidget::OnSubtreeFromSelection | ( | wxCommandEvent & | evt | ) |
Definition at line 2321 of file phylo_tree_widget.cpp.
References eCmdSubtreeFromSelected, CEvent::eEvent_Message, CEventHandler::ePool_Parent, and CEventHandler::Send().
void CPhyloTreeWidget::OnTipActivated | ( | wxCommandEvent & | evt | ) |
Definition at line 1915 of file phylo_tree_widget.cpp.
References f(), CPhyloTreePane::GetCurrRenderer(), m_pPhyloTreePane, NULL, IPhyloTreeRender::SetActiveTooltipNode(), string, and NStr::StringToInt().
void CPhyloTreeWidget::OnTipDeactivated | ( | wxCommandEvent & | evt | ) |
Definition at line 1929 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), m_pPhyloTreePane, and IPhyloTreeRender::SetActiveTooltipNode().
void CPhyloTreeWidget::OnUpdateAl | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 2133 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eAlNone, CPhyloTreeScheme::eAlPaml, CPhyloTreeScheme::eAlPhylip, eCmdAlNone, eCmdAlPaml, eCmdAlPhylip, CPhyloTreeScheme::GetAutoLabels(), and m_pScheme.
void CPhyloTreeWidget::OnUpdateCollapseChildren | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1425 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), CPhyloNodeData::eHideChildren, CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetNode(), CPhyloTreeDataSource::GetTree(), m_DataSource, and CTreeModel< CPhyloTreeNode >::Null().
void CPhyloTreeWidget::OnUpdateCollapseSelected | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1457 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), CPhyloNodeData::eHideChildren, CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CTreeModel< TNode >::GetRootIdx(), CPhyloTree::GetSelected(), CPhyloTreeDataSource::GetTree(), i, and m_DataSource.
void CPhyloTreeWidget::OnUpdateEdit | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 2186 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::ClipboardEmpty(), eCmdMoveDown, eCmdMoveUp, eCmdNodeCut, eCmdNodeNewChild, eCmdNodeNewParent, eCmdNodePaste, eCmdRemoveNode, eCmdRemoveSelected, eCmdRemoveSubtree, CPhyloTree::GetCurrentNode(), CPhyloTreeDataSource::GetTree(), CPhyloTree::HasCurrentNode(), CTreeModelNode< TData >::HasParent(), CPhyloTree::HasSelection(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateEditLabel | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 2282 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetTree(), CPhyloTree::HasCurrentNode(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateEditNode | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1990 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetTree(), CPhyloTree::HasCurrentNode(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateExpandChildren | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1441 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), CPhyloNodeData::eShowChildren, CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetNode(), CPhyloTreeDataSource::GetTree(), m_DataSource, and CTreeModel< CPhyloTreeNode >::Null().
void CPhyloTreeWidget::OnUpdateGoBack | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 899 of file phylo_tree_widget.cpp.
References CPhyloTreePane::CanGoBack(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateGoForward | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 904 of file phylo_tree_widget.cpp.
References CPhyloTreePane::CanGoForward(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateLabels | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 2097 of file phylo_tree_widget.cpp.
References eCmdLabelsForLeavesOnly, eCmdLabelsHidden, eCmdLabelsVisible, CPhyloTreeScheme::eLabelsForLeavesOnly, CPhyloTreeScheme::eLabelsHidden, CPhyloTreeScheme::eLabelsVisible, CPhyloTreeScheme::GetLabelVisibility(), and m_pScheme.
void CPhyloTreeWidget::OnUpdateRerootTree | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1398 of file phylo_tree_widget.cpp.
References CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetRootIdx(), CPhyloTreeDataSource::GetTree(), m_DataSource, and CTreeModel< CPhyloTreeNode >::Null().
void CPhyloTreeWidget::OnUpdateRerootTreeAtEdge | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1410 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetTree(), CPhyloTree::HasCurrentEdge(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateRotateLabels | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1009 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), m_pPhyloTreePane, NULL, and r().
void CPhyloTreeWidget::OnUpdateSelChanged | ( | ) |
Definition at line 1215 of file phylo_tree_widget.cpp.
References CPhyloTreePane::BufferedRender(), CPhyloTreeDataSource::ClearQueryResults(), CPhyloTreeDataSource::GetCurrentSearchNode(), CPhyloTree::GetExplicitlySelectedAndNotCollapsed(), CPhyloTreeDataSource::GetTree(), CPhyloTree::HasSelection(), m_DataSource, and m_pPhyloTreePane.
Referenced by SendSelChangedEvent(), and CPhyTreeView::x_OnSetSelection().
void CPhyloTreeWidget::OnUpdateSetGraphType1 | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 963 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateSetGraphType2 | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 969 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateSetGraphType3 | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 975 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateSetGraphType4 | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 981 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateSetGraphType5 | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 986 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRendererIdx(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateSetMidpointRoot | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1420 of file phylo_tree_widget.cpp.
References CTreeModel< TNode >::GetNumNodes(), CPhyloTreeDataSource::GetTree(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateShowAll | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1955 of file phylo_tree_widget.cpp.
void CPhyloTreeWidget::OnUpdateSortAscending | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 2056 of file phylo_tree_widget.cpp.
References m_SortAscending.
void CPhyloTreeWidget::OnUpdateStopLayout | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1069 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), m_pPhyloTreePane, NULL, and r().
void CPhyloTreeWidget::OnUpdateSubtreeFromSelection | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1390 of file phylo_tree_widget.cpp.
References CPhyloTree::GetCurrentNodeIdx(), CPhyloTree::GetNumSelected(), CPhyloTreeDataSource::GetTree(), m_DataSource, and CTreeModel< CPhyloTreeNode >::Null().
void CPhyloTreeWidget::OnUpdateUseDistances | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1121 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDistRendering(), CPhyloTreePane::GetRenderers(), m_pPhyloTreePane, NULL, and IPhyloTreeRender::SupportsDistanceRendering().
void CPhyloTreeWidget::OnUpdateUseSplines | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1146 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetSplinesRendering(), and m_pPhyloTreePane.
void CPhyloTreeWidget::OnUpdateZoomSel | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 927 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetTree(), CPhyloTree::HasSelection(), and m_DataSource.
void CPhyloTreeWidget::OnUpdateZoomToSubtree | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 1744 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::Expanded(), CPhyloTree::GetCurrentNodeIdx(), CTreeModel< TNode >::GetNode(), CTreeModel< TNode >::GetRootIdx(), CPhyloTreeDataSource::GetTree(), CPhyloTreeNode::IsLeafEx(), m_DataSource, and CTreeModel< CPhyloTreeNode >::Null().
void CPhyloTreeWidget::OnUpdateZoomX | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 915 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CPhyloTreeScheme::GetZoomBehavior(), m_pPhyloTreePane, m_pScheme, and NULL.
void CPhyloTreeWidget::OnUpdateZoomXY | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 909 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomXY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CPhyloTreeScheme::GetZoomBehavior(), m_pPhyloTreePane, m_pScheme, and NULL.
void CPhyloTreeWidget::OnUpdateZoomY | ( | wxUpdateUIEvent & | evt | ) |
Definition at line 921 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CPhyloTreeScheme::GetZoomBehavior(), m_pPhyloTreePane, m_pScheme, and NULL.
void CPhyloTreeWidget::OnUseDistances | ( | wxCommandEvent & | evt | ) |
Definition at line 1085 of file phylo_tree_widget.cpp.
References eCmdRenderingOptionsChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CPhyloTreePane::GetRenderers(), m_pPhyloTreePane, CEventHandler::Send(), SetUseDistances(), and x_SoftUpdate().
void CPhyloTreeWidget::OnUseSplines | ( | wxCommandEvent & | evt | ) |
Definition at line 1136 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetRenderers(), m_pPhyloTreePane, and x_SoftUpdate().
void CPhyloTreeWidget::OnZoomTip | ( | wxCommandEvent & | evt | ) |
Definition at line 1814 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomY, f(), CPhyloTree::FindNodeById(), CGlPane::fZoomX, CGlPane::fZoomXY, CGlPane::fZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDefaultNodeSize(), IPhyloTreeRender::GetDescription(), IPhyloTreeRender::GetDimY(), CTreeModel< TNode >::GetNode(), CPhyloTreePane::GetPane(), CGlPane::GetScaleY(), CPhyloTreeDataSource::GetSize(), CPhyloTreeDataSource::GetTree(), CPhyloTreeScheme::GetZoomBehavior(), m_DataSource, m_pPhyloTreePane, m_pScheme, NULL, NULL_TREE_IDX, OnSearchTip(), ncbi::grid::netcache::search::fields::size, string, NStr::StringToInt(), and CGlWidgetBase::ZoomPoint().
void CPhyloTreeWidget::OnZoomToSelection | ( | wxCommandEvent & | evt | ) |
Definition at line 849 of file phylo_tree_widget.cpp.
References CGlRect< T >::Bottom(), IPhyloTreeRender::DefaultNodeSize(), CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), GetPort(), CPhyloTree::GetSelectedBoundary(), CPhyloTreeDataSource::GetTree(), CGlPane::GetVisibleRect(), CPhyloTreeScheme::GetZoomBehavior(), CGlRect< T >::Inflate(), CGlRect< T >::Init(), CGlRect< T >::Left(), m_DataSource, m_pPhyloTreePane, m_pScheme, CGlRect< T >::Right(), CGlRect< T >::SetBottom(), CGlRect< T >::SetLeft(), CGlRect< T >::SetRight(), CGlRect< T >::SetTop(), CGlRect< T >::Top(), CVect2< T >::X(), CGlWidgetBase::x_UpdateOnZoom(), CVect2< T >::Y(), and CGlWidgetBase::ZoomRect().
void CPhyloTreeWidget::OnZoomToSubtree | ( | wxCommandEvent & | evt | ) |
Definition at line 1714 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), CPhyloTree::ClearSelection(), CPhyloNodeData::eHideChildren, CPhyloTreeNode::ExpandCollapse(), CPhyloTree::GetCurrentNodeIdx(), CPhyloTree::GetFeatureDict(), CTreeModel< TNode >::GetNode(), CTreeModelNode< TData >::GetParent(), CPhyloTreeDataSource::GetTree(), m_DataSource, CTreeModel< CPhyloTreeNode >::Null(), CPhyloTreeDataSource::ReRoot(), and SendEditEvent().
void CPhyloTreeWidget::OnZoomX | ( | wxCommandEvent & | evt | ) |
Definition at line 824 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), m_pPhyloTreePane, m_pScheme, NULL, CPhyloTreeScheme::SaveCurrentSettings(), CPhyloTreeScheme::SetZoomBehavior(), x_SoftUpdate(), and CGlWidgetBase::x_UpdateOnZoom().
void CPhyloTreeWidget::OnZoomXY | ( | wxCommandEvent & | evt | ) |
Definition at line 782 of file phylo_tree_widget.cpp.
References CGlRect< T >::Bottom(), CPhyloTreeScheme::eZoomXY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CGlPane::GetModelLimitsRect(), CPhyloTreePane::GetPane(), GetPort(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), l(), CGlRect< T >::Left(), m_pPhyloTreePane, m_pScheme, CGlRect< T >::Right(), CPhyloTreeScheme::SaveCurrentSettings(), CGlRect< T >::SetBottom(), CGlRect< T >::SetLeft(), CGlRect< T >::SetRight(), CGlRect< T >::SetTop(), CPhyloTreeScheme::SetZoomBehavior(), CGlRect< T >::Top(), CGlRect< T >::Width(), x_SoftUpdate(), CGlWidgetBase::x_UpdateOnZoom(), and CGlPane::ZoomRect().
void CPhyloTreeWidget::OnZoomY | ( | wxCommandEvent & | evt | ) |
Definition at line 837 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), m_pPhyloTreePane, m_pScheme, NULL, CPhyloTreeScheme::SaveCurrentSettings(), CPhyloTreeScheme::SetZoomBehavior(), and x_SoftUpdate().
|
virtual |
Re-enable any widgets disabled during the query.
Reimplemented from IQueryWidget.
Definition at line 2334 of file phylo_tree_widget.cpp.
References CPhyloTree::ClearSelection(), eCmdFeaturesEdited, eCmdRenderingOptionsChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CEvent::eRelease, CFeatureEdit::GetDictionary(), CPhyloTreeDataSource::GetDictionary(), CTreeQueryExec::GetFeatureEdit(), CSelectionSetEdit::GetPrevSet(), CTreeQueryExec::GetSelectionEdit(), CPhyloTree::GetSelectionSets(), CTreeQueryExec::GetTopologyChange(), CPhyloTreeDataSource::GetTree(), CSelectionSetEdit::GetUpdatedSet(), CQueryParsePanel::IsSelectAll(), CPhyloTreeDataSource::IterateOverSelNodes(), m_DataSource, m_pPhyloTreePane, m_pScheme, m_QueryPanel, CFeatureEdit::m_Updated, NULL, CPhyloTreeDataSource::Relabel(), CEventHandler::Send(), SendEditEvent(), SendSelChangedEvent(), CPhyloTreeScheme::SetLabelFormat(), and CSelectionSetEdit::Updated().
|
virtual |
Disable any widgets that the user should not use during the query.
Reimplemented from IQueryWidget.
Definition at line 2327 of file phylo_tree_widget.cpp.
References m_pPhyloTreePane, and m_QueryPanel.
|
virtual |
Force tree to be re-masured and call layout.
Definition at line 603 of file phylo_tree_widget.cpp.
References CGlRect< T >::Bottom(), CPhyloTreeDataSource::Clusterize(), eCmdNodeExpandCollapse, eEditCmdNone, CPhyloTree::GetCurrentNodeIdx(), CGlPane::GetModelLimitsRect(), CTreeModel< TNode >::GetNode(), GetPort(), CPhyloTreeDataSource::GetTree(), CTreeModelNode< TData >::GetValue(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), CGlRect< T >::Left(), m_DataSource, m_LastCommand, m_pPhyloTreePane, m_PrevPane, m_PrevPos, m_pScheme, CPhyloTreeDataSource::MeasureTree(), NULL, CTreeModel< CPhyloTreeNode >::Null(), CGlPane::Project(), CGlPane::ScrollTo(), CGlPane::SetProportional(), CGlRect< T >::Width(), CVect2< T >::X(), CGlPoint< T >::X(), x_SoftUpdate(), CPhyloNodeData::XY(), CVect2< T >::Y(), and CGlPoint< T >::Y().
Referenced by CPhyTreeView::OnBioTreeChanged(), and CPhyTreeView::OnProjectChanged().
|
static |
class CPhyloTreeWidget
Definition at line 110 of file phylo_tree_widget.cpp.
References eClearSelection, eCmdAddSelectionSet, eCmdAlNone, eCmdAlPaml, eCmdAlPhylip, eCmdClean, eCmdCollapseChildren, eCmdCollapseSelected, eCmdCollapseToViewport, eCmdEditLabel, eCmdEditNode, eCmdExpandChildren, eCmdExportSelected, eCmdExportSelection, eCmdExportTree, eCmdFilter, eCmdFilterDistances, eCmdHighlightEdges, eCmdLabelsForLeavesOnly, eCmdLabelsHidden, eCmdLabelsVisible, eCmdLoadAttributes, eCmdMidpointRoot, eCmdMoveDown, eCmdMoveUp, eCmdMySettings, eCmdNodeCut, eCmdNodeNewChild, eCmdNodeNewParent, eCmdNodePaste, eCmdRemoveNode, eCmdRemoveSelected, eCmdRemoveSubtree, eCmdRerootTree, eCmdRerootTreeAtEdge, eCmdRotateLabels, eCmdSetGraphType1, eCmdSetGraphType2, eCmdSetGraphType3, eCmdSetGraphType4, eCmdSetGraphType5, eCmdSetTreeLabel, eCmdShowAll, eCmdSort, eCmdSortAscending, eCmdSortDist, eCmdSortLabel, eCmdSortLabelRange, eCmdStopLayout, eCmdSubtreeFromSelected, eCmdUseDistances, eCmdUseSplines, eCmdZoomToSubtree, eCmdZoomX, eCmdZoomXY, eCmdZoomY, eSelectAll, and CUICommandRegistry::RegisterCommand().
Referenced by CPhyloTreeDemoDlg::Init(), and CPhyTreeViewFactory::RegisterCommands().
|
virtual |
Definition at line 589 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::Clear(), CRef< C, Locker >::IsNull(), m_DataSource, m_pPhyloTreePane, m_QueryPanel, NULL, CPhyloTreePane::RemoveCurrentDataSource(), and CQueryParsePanel::SetDataSource().
Referenced by CPhyTreeView::OnBioTreeChanged().
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 1525 of file phylo_tree_widget.cpp.
References CRef< C, Locker >::IsNull(), m_pScheme, m_QueryPanel, NULL, CPhyloTreeScheme::SaveCurrentSettings(), and CQueryParsePanel::SaveSettings().
void CPhyloTreeWidget::SendEditEvent | ( | EPhyloTreeEditCommand | ec = eCmdSomethingEdited | ) |
Definition at line 2218 of file phylo_tree_widget.cpp.
References CPhyloTreeNode::CanExpandCollapse(), eCmdNodeExpandCollapse, CEvent::eEvent_Message, CPhyloNodeData::eHideChildren, CEventHandler::ePool_Parent, CEvent::eRelease, CPhyloNodeData::eShowChildren, f(), CPhyloTree::GetCurrentNode(), CPhyloTree::GetCurrentNodeIdx(), CFeatureEdit::GetDictionary(), CPhyloTreeDataSource::GetDictionary(), CPhyloTreePane::GetPane(), CPhyloTreeDataSource::GetTree(), CFeatureEdit::GetUpdated(), CTreeModelNode< TData >::GetValue(), CPhyloTree::HasCurrentNode(), m_DataSource, CFeatureEdit::m_Dictionary, m_LastCommand, m_pPhyloTreePane, m_PrevPane, m_PrevPos, CBioTreeFeatureDictionary::Register(), CEventHandler::Send(), and CPhyloNodeData::XY().
Referenced by CPhyloTreePane::FireEditEvent(), OnClean(), OnCollapseChildren(), OnCollapseSelected(), OnEdit(), OnExpandChildren(), OnFilter(), OnLoadAttributes(), OnRerootTree(), OnRerootTreeAtEdge(), OnSetMidpointRoot(), OnSort(), OnZoomToSubtree(), and QueryEnd().
void CPhyloTreeWidget::SendSelChangedEvent | ( | ) |
Definition at line 1263 of file phylo_tree_widget.cpp.
References CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetSelectionChanged, OnUpdateSelChanged(), and CEventHandler::Send().
Referenced by CPhyloTreePane::FireCBEvent(), CPhyloTreePane::HMGH_OnChanged(), IterateSelection(), QueryEnd(), and SetSelectAll().
void CPhyloTreeWidget::SetCurrRenderer | ( | int | idx | ) |
Definition at line 1230 of file phylo_tree_widget.cpp.
References eCmdRenderingOptionsChanged, CEvent::eEvent_Message, CEventHandler::ePool_Parent, m_pPhyloTreePane, m_pScheme, CPhyloTreeScheme::SaveCurrentSettings(), CEventHandler::Send(), CPhyloTreePane::SetCurrRendererIdx(), CPhyloTreeScheme::SetLayoutIdx(), and x_Update().
Referenced by CPhyTreeView::OnBioTreeChanged(), OnSetGraphType1(), OnSetGraphType2(), OnSetGraphType3(), OnSetGraphType4(), and OnSetGraphType5().
|
virtual |
Definition at line 569 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetNumNodes(), CGlPane::GetZoomAllScaleX(), CGlPane::GetZoomAllScaleY(), m_DataSource, m_Port, m_QueryPanel, max(), NULL, CQueryParsePanel::SetDataSource(), CGlPane::SetMinScaleX(), CGlPane::SetMinScaleY(), x_SoftUpdate(), and x_Update().
Referenced by CPhyloTreeDemoDlg::CreateControls().
|
virtual |
Definition at line 554 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetNumNodes(), CGlPane::GetZoomAllScaleX(), CGlPane::GetZoomAllScaleY(), m_DataSource, m_Port, m_pPhyloTreePane, m_QueryPanel, max(), NULL, CQueryParsePanel::SetDataSource(), CGlPane::SetMinScaleX(), CGlPane::SetMinScaleY(), and CPhyloTreePane::UpdateDataSource().
Referenced by CPhyTreeView::OnBioTreeChanged().
|
virtual |
If true, only rows that were selected by prevous query will be shown.
Reimplemented from IQueryWidget.
Definition at line 2580 of file phylo_tree_widget.cpp.
References b, CPhyloTreePane::BufferedRender(), CPhyloTreeScheme::eHighlightSelection, CPhyloTreeScheme::eNormalSelection, m_pPhyloTreePane, m_pScheme, and CPhyloTreeScheme::SetSelectionVisibility().
void CPhyloTreeWidget::SetPopupMenuItems | ( | CMenuItem * | itm | ) |
Definition at line 496 of file phylo_tree_widget.cpp.
References m_pPopupItems.
void CPhyloTreeWidget::SetPortLimits | ( | const TModelRect & | rect, |
bool | bZoomAll = true |
||
) |
Definition at line 532 of file phylo_tree_widget.cpp.
References CGlPane::GetModelLimitsRect(), CPhyloTreeDataSource::GetNumNodes(), CGlPane::GetScaleX(), CGlPane::GetScaleY(), CGlPane::GetZoomAllScaleX(), CGlPane::GetZoomAllScaleY(), CGlRect< T >::Height(), m_DataSource, m_Port, max(), CGlPane::SetMinScaleX(), CGlPane::SetMinScaleY(), CGlPane::SetModelLimitsRect(), CGlPane::SetScale(), CGlRect< T >::Width(), CGlWidgetBase::x_UpdateOnZoom(), and CGlPane::ZoomAll().
Referenced by CPhyloTreePane::SoftUpdate(), CPhyloTreePane::Update(), and CPhyloTreePane::x_Layout().
void CPhyloTreeWidget::SetQueryPanel | ( | CQueryParsePanel * | queryPanel | ) |
Definition at line 477 of file phylo_tree_widget.cpp.
References CEventHandler::AddListener(), CEventHandler::ePool_Parent, and m_QueryPanel.
Referenced by CPhyTreeView::CreateViewWindow().
Reimplemented from CGlWidgetBase.
Definition at line 1505 of file phylo_tree_widget.cpp.
References CGlWidgetBase::m_RegPath.
void CPhyloTreeWidget::SetRotateLabels | ( | bool | rot | ) |
Definition at line 1021 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), CPhyloTreePane::GetRenderers(), IPhyloTreeRender::GetRotatedLabels(), m_pPhyloTreePane, NULL, and x_SoftUpdate().
Referenced by CPhyTreeView::OnBioTreeChanged().
void CPhyloTreeWidget::SetScheme | ( | CPhyloTreeScheme & | sl | ) |
Definition at line 1492 of file phylo_tree_widget.cpp.
References CPhyloTreeDataSource::GetModel(), CPhyloTreePane::GetRenderers(), m_DataSource, m_pPhyloTreePane, m_pScheme, CRef< C, Locker >::NotNull(), CRef< C, Locker >::Reset(), CPhyloTreeScheme::SaveCurrentSettings(), and CTreeGraphicsModel::SetScheme().
Referenced by CPhyloTreeDemoDlg::CreateControls(), LoadSettings(), CPhyTreeView::OnBioTreeChanged(), and OnOpenPropertiesDlg().
|
virtual |
Set to true to show all rows selected by most recent query as selected.
Reimplemented from IQueryWidget.
Definition at line 2571 of file phylo_tree_widget.cpp.
References b, CPhyloTreeDataSource::IterateOverSelNodes(), m_DataSource, m_pScheme, NULL, SendSelChangedEvent(), and CPhyloTreeScheme::SetShowAllSelected().
void CPhyloTreeWidget::SetUseDistances | ( | bool | bDist | ) |
Definition at line 1101 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetRenderers(), and m_pPhyloTreePane.
Referenced by CPhyTreeView::OnBioTreeChanged(), and OnUseDistances().
void CPhyloTreeWidget::UpdateViewingArea | ( | ) |
Definition at line 1151 of file phylo_tree_widget.cpp.
References CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetRangeChanged, CEventHandler::Send(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by CPhyloTreePane::GoBack(), CPhyloTreePane::GoForward(), and CPhyloTreePane::HMGH_UpdateLimits().
|
protectedvirtual |
creates Pane, Scrollbars and other child widgets, called from Create()
Reimplemented from CGlWidgetBase.
Definition at line 456 of file phylo_tree_widget.cpp.
References GetDefaultFileArtProvider(), wxFileArtProvider::RegisterFileAlias(), wxT, and CGlWidgetBase::x_CreateControls().
|
protectedvirtual |
factory method creating master pane, called form x_CreateControls()
Implements CGlWidgetBase.
Definition at line 501 of file phylo_tree_widget.cpp.
References CPhyloTreePane::AddRenderer(), and m_pPhyloTreePane.
|
protectedvirtual |
Reimplemented from CGlWidgetBase.
Definition at line 517 of file phylo_tree_widget.cpp.
References m_pPhyloTreePane.
|
protected |
|
protectedvirtual |
Reimplemented from CGlWidgetBase.
Definition at line 1166 of file phylo_tree_widget.cpp.
References m_pPhyloTreePane, and CPhyloTreePane::SaveCurrentView().
|
protectedvirtual |
updates model limits of the Master CGlPane
Implements CGlWidgetBase.
Definition at line 523 of file phylo_tree_widget.cpp.
References CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDimX(), IPhyloTreeRender::GetDimY(), m_Port, m_pPhyloTreePane, and CGlPane::SetModelLimitsRect().
Referenced by x_Update().
|
protectedvirtual |
Definition at line 1161 of file phylo_tree_widget.cpp.
References m_pPhyloTreePane, and CPhyloTreePane::SoftUpdate().
Referenced by OnAl(), OnClearSelection(), OnHighlightEdges(), OnLabels(), OnOpenPropertiesDlg(), OnRotateLabels(), OnSelectAll(), OnSetTreeLabel(), OnUseDistances(), OnUseSplines(), OnZoomX(), OnZoomXY(), OnZoomY(), RedrawDataSource(), SetDataSource(), and SetRotateLabels().
|
protectedvirtual |
Update handlers.
Reimplemented from CGlWidgetBase.
Definition at line 1173 of file phylo_tree_widget.cpp.
References CGlWidgetBase::x_RedrawControls(), x_SetPortLimits(), x_UpdatePane(), and CGlWidgetBase::x_UpdateScrollbars().
Referenced by OnLoadAttributes(), SetCurrRenderer(), and SetDataSource().
|
protectedvirtual |
Definition at line 1182 of file phylo_tree_widget.cpp.
References m_pPhyloTreePane, and CPhyloTreePane::Update().
Referenced by x_Update().
|
virtual |
Zoom functions.
Reimplemented from CGlWidgetBase.
Definition at line 2013 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomY, CGlPane::fZoomX, CGlPane::fZoomXY, CGlPane::fZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CPhyloTreeScheme::GetZoomBehavior(), m_pPhyloTreePane, m_pScheme, and CGlWidgetBase::x_ZoomIn().
|
virtual |
Reimplemented from CGlWidgetBase.
Definition at line 2024 of file phylo_tree_widget.cpp.
References CPhyloTreeScheme::eZoomX, CPhyloTreeScheme::eZoomY, CGlPane::fZoomX, CGlPane::fZoomXY, CGlPane::fZoomY, CPhyloTreePane::GetCurrRenderer(), IPhyloTreeRender::GetDescription(), CPhyloTreeScheme::GetZoomBehavior(), m_pPhyloTreePane, m_pScheme, and CGlWidgetBase::x_ZoomOut().
|
protected |
Definition at line 364 of file phylo_tree_widget.hpp.
|
protected |
Definition at line 360 of file phylo_tree_widget.hpp.
Referenced by EditLabel(), GetDS(), IterateSelection(), OnAddSelectionSet(), OnClean(), OnClearSelection(), OnCollapseChildren(), OnCollapseSelected(), OnCollapseToViewport(), OnEdit(), OnEditNode(), OnExpandChildren(), OnExportSelection(), OnFilter(), OnInfoTip(), OnLoadAttributes(), OnOpenPropertiesDlg(), OnRerootTree(), OnRerootTreeAtEdge(), OnSearchTip(), OnSelectAll(), OnSetMidpointRoot(), OnSetTreeLabel(), OnShowAll(), OnSort(), OnUpdateCollapseChildren(), OnUpdateCollapseSelected(), OnUpdateEdit(), OnUpdateEditLabel(), OnUpdateEditNode(), OnUpdateExpandChildren(), OnUpdateRerootTree(), OnUpdateRerootTreeAtEdge(), OnUpdateSelChanged(), OnUpdateSetMidpointRoot(), OnUpdateSubtreeFromSelection(), OnUpdateZoomSel(), OnUpdateZoomToSubtree(), OnZoomTip(), OnZoomToSelection(), OnZoomToSubtree(), QueryEnd(), RedrawDataSource(), RemoveCurrentDataSource(), SendEditEvent(), SetDataSource(), SetDataSourceNoUpdate(), SetPortLimits(), SetScheme(), and SetSelectAll().
|
protected |
Definition at line 370 of file phylo_tree_widget.hpp.
Referenced by RedrawDataSource(), and SendEditEvent().
|
protected |
Definition at line 365 of file phylo_tree_widget.hpp.
Referenced by CPhyloTreeWidget(), GetPort(), OnSaveImages(), OnSetEqualScale(), OnSetScaleXY(), SetDataSource(), SetDataSourceNoUpdate(), SetPortLimits(), and x_SetPortLimits().
|
protected |
Definition at line 362 of file phylo_tree_widget.hpp.
Referenced by DlgOverlayFix(), GetCurrRenderer(), GetRenderersNames(), GetRotateLabels(), GetUseDistances(), IterateSelection(), OnAddSelectionSet(), OnCollapseToViewport(), OnContextMenu(), OnGoBack(), OnGoForward(), OnHighlightEdges(), OnPrint(), OnRerootTree(), OnRerootTreeAtEdge(), OnRotateLabels(), OnSaveImages(), OnSavePdf(), OnSearchTip(), OnSetMidpointRoot(), OnSetScaleXY(), OnStopLayout(), OnTipActivated(), OnTipDeactivated(), OnUpdateGoBack(), OnUpdateGoForward(), OnUpdateRotateLabels(), OnUpdateSelChanged(), OnUpdateSetGraphType1(), OnUpdateSetGraphType2(), OnUpdateSetGraphType3(), OnUpdateSetGraphType4(), OnUpdateSetGraphType5(), OnUpdateStopLayout(), OnUpdateUseDistances(), OnUpdateUseSplines(), OnUpdateZoomX(), OnUpdateZoomXY(), OnUpdateZoomY(), OnUseDistances(), OnUseSplines(), OnZoomTip(), OnZoomToSelection(), OnZoomX(), OnZoomXY(), OnZoomY(), QueryEnd(), QueryStart(), RedrawDataSource(), RemoveCurrentDataSource(), SendEditEvent(), SetCurrRenderer(), SetDataSourceNoUpdate(), SetHideUnselected(), SetRotateLabels(), SetScheme(), SetUseDistances(), x_CreatePane(), x_GetPane(), x_SaveStates(), x_SetPortLimits(), x_SoftUpdate(), x_UpdatePane(), x_ZoomIn(), and x_ZoomOut().
|
protected |
Definition at line 363 of file phylo_tree_widget.hpp.
Referenced by SetPopupMenuItems().
|
protected |
Definition at line 371 of file phylo_tree_widget.hpp.
Referenced by RedrawDataSource(), and SendEditEvent().
|
protected |
Definition at line 372 of file phylo_tree_widget.hpp.
Referenced by RedrawDataSource(), and SendEditEvent().
|
protected |
Definition at line 361 of file phylo_tree_widget.hpp.
Referenced by GetScheme(), HasScheme(), OnAddSelectionSet(), OnAl(), OnClean(), OnEditNode(), OnInfoTip(), OnLabels(), OnLoadAttributes(), OnOpenPropertiesDlg(), OnRerootTree(), OnRerootTreeAtEdge(), OnSaveImages(), OnSetMidpointRoot(), OnSetScaleXY(), OnSetTreeLabel(), OnUpdateAl(), OnUpdateLabels(), OnUpdateZoomX(), OnUpdateZoomXY(), OnUpdateZoomY(), OnZoomTip(), OnZoomToSelection(), OnZoomX(), OnZoomXY(), OnZoomY(), QueryEnd(), RedrawDataSource(), SaveSettings(), SetCurrRenderer(), SetHideUnselected(), SetScheme(), SetSelectAll(), x_ZoomIn(), and x_ZoomOut().
|
protected |
Definition at line 366 of file phylo_tree_widget.hpp.
Referenced by IterateSelection(), LoadSettings(), OnAddSelectionSet(), QueryEnd(), QueryStart(), RemoveCurrentDataSource(), SaveSettings(), SetDataSource(), SetDataSourceNoUpdate(), SetQueryPanel(), and ~CPhyloTreeWidget().
|
protected |
Definition at line 367 of file phylo_tree_widget.hpp.
Referenced by OnSort(), OnSortAscending(), and OnUpdateSortAscending().