Commit d66a29d6 authored by zorglub's avatar zorglub
Browse files

Remove invert selection and select all (I simply can't figure how to do that)

parent cc84ac38
...@@ -83,12 +83,10 @@ enum ...@@ -83,12 +83,10 @@ enum
RSortTitle_Event, RSortTitle_Event,
Randomize_Event, Randomize_Event,
InvertSelection_Event,
DeleteSelection_Event, DeleteSelection_Event,
Random_Event, Random_Event,
Loop_Event, Loop_Event,
Repeat_Event, Repeat_Event,
SelectAll_Event,
PopupPlay_Event, PopupPlay_Event,
PopupPlayThis_Event, PopupPlayThis_Event,
...@@ -137,9 +135,7 @@ BEGIN_EVENT_TABLE(Playlist, wxFrame) ...@@ -137,9 +135,7 @@ BEGIN_EVENT_TABLE(Playlist, wxFrame)
EVT_MENU(Randomize_Event, Playlist::OnSort) EVT_MENU(Randomize_Event, Playlist::OnSort)
EVT_MENU(InvertSelection_Event, Playlist::OnInvertSelection)
EVT_MENU(DeleteSelection_Event, Playlist::OnDeleteSelection) EVT_MENU(DeleteSelection_Event, Playlist::OnDeleteSelection)
EVT_MENU(SelectAll_Event, Playlist::OnSelectAll)
EVT_MENU_OPEN( Playlist::OnMenuOpen ) EVT_MENU_OPEN( Playlist::OnMenuOpen )
EVT_MENU( -1, Playlist::OnMenuEvent ) EVT_MENU( -1, Playlist::OnMenuEvent )
...@@ -251,9 +247,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ): ...@@ -251,9 +247,7 @@ Playlist::Playlist( intf_thread_t *_p_intf, wxWindow *p_parent ):
/* Create our "Selection" menu */ /* Create our "Selection" menu */
wxMenu *selection_menu = new wxMenu; wxMenu *selection_menu = new wxMenu;
selection_menu->Append( InvertSelection_Event, wxU(_("&Invert")) );
selection_menu->Append( DeleteSelection_Event, wxU(_("D&elete")) ); selection_menu->Append( DeleteSelection_Event, wxU(_("D&elete")) );
selection_menu->Append( SelectAll_Event, wxU(_("&Select All")) );
/* Create our "View" menu */ /* Create our "View" menu */
ViewMenu(); ViewMenu();
...@@ -1028,11 +1022,6 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) ) ...@@ -1028,11 +1022,6 @@ void Playlist::OnSearch( wxCommandEvent& WXUNUSED(event) )
/********************************************************************** /**********************************************************************
* Selection functions * Selection functions
**********************************************************************/ **********************************************************************/
void Playlist::OnInvertSelection( wxCommandEvent& WXUNUSED(event) )
{
// InvertSelection( treectrl, treectrl->GetRootItem() );
}
void Playlist::RecursiveDeleteSelection( wxTreeItemId root ) void Playlist::RecursiveDeleteSelection( wxTreeItemId root )
{ {
wxTreeItemIdValue cookie; wxTreeItemIdValue cookie;
...@@ -1040,7 +1029,7 @@ void Playlist::RecursiveDeleteSelection( wxTreeItemId root ) ...@@ -1040,7 +1029,7 @@ void Playlist::RecursiveDeleteSelection( wxTreeItemId root )
while( child.IsOk() ) while( child.IsOk() )
{ {
if( treectrl->ItemHasChildren( child ) ) if( treectrl->ItemHasChildren( child ) )
RecursiveDeleteSelection( child ); RecursiveDeleteSelection( child );
else if( treectrl->IsSelected( child ) ) else if( treectrl->IsSelected( child ) )
DeleteTreeItem( child ); DeleteTreeItem( child );
child = treectrl->GetNextChild( root, cookie ); child = treectrl->GetNextChild( root, cookie );
...@@ -1052,10 +1041,6 @@ void Playlist::OnDeleteSelection( wxCommandEvent& WXUNUSED(event) ) ...@@ -1052,10 +1041,6 @@ void Playlist::OnDeleteSelection( wxCommandEvent& WXUNUSED(event) )
RecursiveDeleteSelection( treectrl->GetRootItem() ); RecursiveDeleteSelection( treectrl->GetRootItem() );
} }
void Playlist::OnSelectAll( wxCommandEvent& WXUNUSED(event) )
{
}
/********************************************************************** /**********************************************************************
* Playlist mode functions * Playlist mode functions
**********************************************************************/ **********************************************************************/
......
...@@ -875,11 +875,7 @@ private: ...@@ -875,11 +875,7 @@ private:
void OnMenuClose( wxCommandEvent& event ); void OnMenuClose( wxCommandEvent& event );
void OnClose( wxCloseEvent& WXUNUSED(event) ); void OnClose( wxCloseEvent& WXUNUSED(event) );
void OnEnableSelection( wxCommandEvent& event );
void OnDisableSelection( wxCommandEvent& event );
void OnInvertSelection( wxCommandEvent& event );
void OnDeleteSelection( wxCommandEvent& event ); void OnDeleteSelection( wxCommandEvent& event );
void OnSelectAll( wxCommandEvent& event );
void OnOpen( wxCommandEvent& event ); void OnOpen( wxCommandEvent& event );
void OnSave( wxCommandEvent& event ); void OnSave( wxCommandEvent& event );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment