diff --git a/core/bitmaps/delete.bmp b/core/bitmaps/delete.bmp index 4afd00449..b16595f8e 100644 Binary files a/core/bitmaps/delete.bmp and b/core/bitmaps/delete.bmp differ diff --git a/core/bitmaps/delete_disable.bmp b/core/bitmaps/delete_disable.bmp new file mode 100644 index 000000000..29b77fd3e Binary files /dev/null and b/core/bitmaps/delete_disable.bmp differ diff --git a/core/frame_main.cpp b/core/frame_main.cpp index 13c34c1f6..270126362 100644 --- a/core/frame_main.cpp +++ b/core/frame_main.cpp @@ -253,7 +253,7 @@ void FrameMain::InitMenu() { AppendBitmapMenuItem(editMenu,Menu_Edit_Copy, _("Copy Lines\t") + Hotkeys.GetText(_T("Copy")), _("Copy subtitles"), wxBITMAP(copy_button)); AppendBitmapMenuItem(editMenu,Menu_Edit_Paste, _("Paste Lines\t") + Hotkeys.GetText(_T("Paste")), _("Paste subtitles"), wxBITMAP(paste_button)); AppendBitmapMenuItem(editMenu,Menu_Edit_Paste_Over, _("Paste Lines Over...\t") + Hotkeys.GetText(_T("Paste Over")) , _("Paste subtitles over others"),wxBITMAP(paste_over_button)); - AppendBitmapMenuItem(editMenu,Menu_Edit_Delete, _("Delete Lines\t") + Hotkeys.GetText(_T("Grid Delete Rows")), _("Delete selected lines"), wxBITMAP(delete_button)); + //AppendBitmapMenuItem(editMenu,Menu_Edit_Delete, _("Delete Lines\t") + Hotkeys.GetText(_T("Grid Delete Rows")), _("Delete selected lines"), wxBITMAP(delete_button)); editMenu->AppendSeparator(); AppendBitmapMenuItem(editMenu,Menu_Edit_Find, _("&Find...\t") + Hotkeys.GetText(_T("Find")), _("Find words in subtitles"),wxBITMAP(find_button)); AppendBitmapMenuItem(editMenu,Menu_Edit_Find_Next, _("Find Next\t") + Hotkeys.GetText(_T("Find Next")), _("Find next match of last word"),wxBITMAP(find_next_button)); diff --git a/core/frame_main_events.cpp b/core/frame_main_events.cpp index ef5ce0b5d..dafae853c 100644 --- a/core/frame_main_events.cpp +++ b/core/frame_main_events.cpp @@ -410,7 +410,7 @@ void FrameMain::OnMenuOpen (wxMenuEvent &event) { MenuBar->Enable(MENU_INSERT_BEFORE,state); MenuBar->Enable(MENU_INSERT_AFTER,state); MenuBar->Enable(MENU_SPLIT_BY_KARAOKE,state); - MenuBar->Enable(MENU_DELETE,state); + RebuildMenuItem(subtitlesMenu,MENU_DELETE,wxBITMAP(delete_button),wxBITMAP(delete_disable_button),state); state2 = count > 0 && videoBox->videoDisplay->loaded; MenuBar->Enable(MENU_INSERT_BEFORE_VIDEO,state2); MenuBar->Enable(MENU_INSERT_AFTER_VIDEO,state2); diff --git a/core/res.rc b/core/res.rc index 26a67740c..943e42bf6 100644 --- a/core/res.rc +++ b/core/res.rc @@ -83,6 +83,7 @@ find_button BITMAP "bitmaps/find.bmp" find_next_button BITMAP "bitmaps/find_next.bmp" replace_button BITMAP "bitmaps/replace.bmp" delete_button BITMAP "bitmaps/delete.bmp" +delete_disable_button BITMAP "bitmaps/delete_disable.bmp" null_button BITMAP "bitmaps/null_button.bmp" select_visible_button BITMAP "bitmaps/select_visible.bmp" toggle_tag_hiding BITMAP "bitmaps/toggle_tag_hiding.bmp"