Browse Source

Minor cleanup.

7.0
Jeff Young 3 years ago
parent
commit
f2de3e9f67
  1. 12
      common/widgets/lib_tree.cpp
  2. 1
      include/widgets/lib_tree.h

12
common/widgets/lib_tree.cpp

@ -134,11 +134,9 @@ LIB_TREE::LIB_TREE( wxWindow* aParent, const wxString& aRecentSearchesKey, LIB_T
m_tree_ctrl->Bind( wxEVT_SIZE, &LIB_TREE::onSize, this );
m_tree_ctrl->Bind( wxEVT_DATAVIEW_ITEM_ACTIVATED, &LIB_TREE::onTreeActivate, this );
m_tree_ctrl->Bind( wxEVT_DATAVIEW_SELECTION_CHANGED, &LIB_TREE::onTreeSelect, this );
m_tree_ctrl->Bind( wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU, &LIB_TREE::onItemContextMenu,
m_tree_ctrl->Bind( wxEVT_DATAVIEW_ITEM_CONTEXT_MENU, &LIB_TREE::onItemContextMenu, this );
m_tree_ctrl->Bind( wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK, &LIB_TREE::onHeaderContextMenu,
this );
m_tree_ctrl->Bind( wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK,
&LIB_TREE::onHeaderContextMenu, this );
m_tree_ctrl->Bind( wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICK, &LIB_TREE::onHeaderClick, this );
Bind( SYMBOL_PRESELECTED, &LIB_TREE::onPreselect, this );
@ -646,11 +644,5 @@ void LIB_TREE::onHeaderContextMenu( wxDataViewEvent& aEvent )
}
void LIB_TREE::onHeaderClick( wxDataViewEvent& aEvent )
{
}
wxDEFINE_EVENT( SYMBOL_PRESELECTED, wxCommandEvent );
wxDEFINE_EVENT( SYMBOL_SELECTED, wxCommandEvent );

1
include/widgets/lib_tree.h

@ -201,7 +201,6 @@ protected:
void onDetailsLink( wxHtmlLinkEvent& aEvent );
void onPreselect( wxCommandEvent& aEvent );
void onItemContextMenu( wxDataViewEvent& aEvent );
void onHeaderClick( wxDataViewEvent& aEvent );
void onHeaderContextMenu( wxDataViewEvent& aEvent );
void onDebounceTimer( wxTimerEvent& aEvent );

Loading…
Cancel
Save