From 5be401a1de35838bab90dd9a3ac132db42b0827d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 30 Sep 2011 23:51:41 +0000 Subject: [PATCH] Rename edit/search_replace to edit/find_replace for consistency Originally committed to SVN as r5701. --- aegisub/src/command/edit.cpp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/aegisub/src/command/edit.cpp b/aegisub/src/command/edit.cpp index 9108cdef1..b2b00a053 100644 --- a/aegisub/src/command/edit.cpp +++ b/aegisub/src/command/edit.cpp @@ -74,6 +74,19 @@ struct validate_sel_multiple : public Command { } }; +/// Find and replace words in subtitles. +struct edit_find_replace : public Command { + CMD_NAME("edit/find_replace") + STR_MENU("Find and &Replace..") + STR_DISP("Find and Replace") + STR_HELP("Find and replace words in subtitles.") + + void operator()(agi::Context *c) { + c->videoController->Stop(); + Search.OpenDialog(true); + } +}; + /// Copy subtitles. struct edit_line_copy : public validate_sel_nonempty { CMD_NAME("edit/line/copy") @@ -358,21 +371,6 @@ struct edit_redo : public Command { } }; - -/// Find and replace words in subtitles. -struct edit_search_replace : public Command { - CMD_NAME("edit/search_replace") - STR_MENU("Search and &Replace..") - STR_DISP("Search and Replace") - STR_HELP("Find and replace words in subtitles.") - - void operator()(agi::Context *c) { - c->videoController->Stop(); - Search.OpenDialog(true); - } -}; - - /// Undoes last action. struct edit_undo : public Command { CMD_NAME("edit/undo") @@ -401,6 +399,7 @@ struct edit_undo : public Command { namespace cmd { void init_edit() { + reg(new edit_find_replace); reg(new edit_line_copy); reg(new edit_line_cut); reg(new edit_line_delete); @@ -415,7 +414,6 @@ namespace cmd { reg(new edit_line_split_by_karaoke); reg(new edit_line_swap); reg(new edit_redo); - reg(new edit_search_replace); reg(new edit_undo); } }