1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Hopefully read .xml and .XML files on case-sensitive OSs,

Remove 'delete' key functionality.
This commit is contained in:
martynshaw99 2010-06-30 23:58:56 +00:00
parent b85ca7057d
commit 992a1ab277
2 changed files with 1 additions and 18 deletions

View File

@ -2795,7 +2795,6 @@ BEGIN_EVENT_TABLE(EditCurvesDialog, wxDialog)
EVT_BUTTON(DownButtonID, EditCurvesDialog::OnDown) EVT_BUTTON(DownButtonID, EditCurvesDialog::OnDown)
EVT_BUTTON(RenameButtonID, EditCurvesDialog::OnRename) EVT_BUTTON(RenameButtonID, EditCurvesDialog::OnRename)
EVT_BUTTON(DeleteButtonID, EditCurvesDialog::OnDelete) EVT_BUTTON(DeleteButtonID, EditCurvesDialog::OnDelete)
EVT_LIST_KEY_DOWN(CurvesListID, EditCurvesDialog::OnKey)
EVT_BUTTON(ImportButtonID, EditCurvesDialog::OnImport) EVT_BUTTON(ImportButtonID, EditCurvesDialog::OnImport)
EVT_BUTTON(ExportButtonID, EditCurvesDialog::OnExport) EVT_BUTTON(ExportButtonID, EditCurvesDialog::OnExport)
EVT_BUTTON(LibraryButtonID, EditCurvesDialog::OnLibrary) EVT_BUTTON(LibraryButtonID, EditCurvesDialog::OnLibrary)
@ -3161,24 +3160,9 @@ void EditCurvesDialog::OnDelete(wxCommandEvent &event)
#endif #endif
} }
void EditCurvesDialog::OnKey( wxListEvent &event )
{
wxCommandEvent dummyEvent;
int key = event.GetKeyCode();
switch ( key )
{
case WXK_DELETE:
OnDelete( dummyEvent );
break;
default:
event.Skip();
}
return;
}
void EditCurvesDialog::OnImport( wxCommandEvent &event ) void EditCurvesDialog::OnImport( wxCommandEvent &event )
{ {
wxFileDialog filePicker(this, _("Choose an EQ curve file"), FileNames::DataDir(), wxT(""), wxT("*.XML")); wxFileDialog filePicker(this, _("Choose an EQ curve file"), FileNames::DataDir(), wxT(""), wxT("xml files (*.xml;*.XML)|*.xml;*.XML"));
wxString fileName = wxT(""); wxString fileName = wxT("");
if( filePicker.ShowModal() == wxID_CANCEL) if( filePicker.ShowModal() == wxID_CANCEL)
return; return;

View File

@ -389,7 +389,6 @@ private:
long GetPreviousItem(long item); long GetPreviousItem(long item);
void OnRename( wxCommandEvent &event ); void OnRename( wxCommandEvent &event );
void OnDelete( wxCommandEvent &event ); void OnDelete( wxCommandEvent &event );
void OnKey( wxListEvent &event );
void OnImport( wxCommandEvent &event ); void OnImport( wxCommandEvent &event );
void OnExport( wxCommandEvent &event ); void OnExport( wxCommandEvent &event );
void OnLibrary( wxCommandEvent &event ); void OnLibrary( wxCommandEvent &event );