forked from mia/Aegisub
Rename edit/search_replace to edit/find_replace for consistency
Originally committed to SVN as r5701.
This commit is contained in:
parent
76467584bb
commit
5be401a1de
1 changed files with 14 additions and 16 deletions
|
@ -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.
|
/// Copy subtitles.
|
||||||
struct edit_line_copy : public validate_sel_nonempty {
|
struct edit_line_copy : public validate_sel_nonempty {
|
||||||
CMD_NAME("edit/line/copy")
|
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.
|
/// Undoes last action.
|
||||||
struct edit_undo : public Command {
|
struct edit_undo : public Command {
|
||||||
CMD_NAME("edit/undo")
|
CMD_NAME("edit/undo")
|
||||||
|
@ -401,6 +399,7 @@ struct edit_undo : public Command {
|
||||||
|
|
||||||
namespace cmd {
|
namespace cmd {
|
||||||
void init_edit() {
|
void init_edit() {
|
||||||
|
reg(new edit_find_replace);
|
||||||
reg(new edit_line_copy);
|
reg(new edit_line_copy);
|
||||||
reg(new edit_line_cut);
|
reg(new edit_line_cut);
|
||||||
reg(new edit_line_delete);
|
reg(new edit_line_delete);
|
||||||
|
@ -415,7 +414,6 @@ namespace cmd {
|
||||||
reg(new edit_line_split_by_karaoke);
|
reg(new edit_line_split_by_karaoke);
|
||||||
reg(new edit_line_swap);
|
reg(new edit_line_swap);
|
||||||
reg(new edit_redo);
|
reg(new edit_redo);
|
||||||
reg(new edit_search_replace);
|
|
||||||
reg(new edit_undo);
|
reg(new edit_undo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue