mirror of https://github.com/odrling/Aegisub
Add Comment field to the paste over dialog
This commit is contained in:
parent
26a9e57006
commit
c5608a4725
|
@ -141,16 +141,17 @@ AssDialogue *paste_over(wxWindow *parent, std::vector<bool>& pasteOverOptions, A
|
|||
pasteOverOptions = OPT_GET("Tool/Paste Lines Over/Fields")->GetListBool();
|
||||
}
|
||||
|
||||
if (pasteOverOptions[0]) old_line->Layer = new_line->Layer;
|
||||
if (pasteOverOptions[1]) old_line->Start = new_line->Start;
|
||||
if (pasteOverOptions[2]) old_line->End = new_line->End;
|
||||
if (pasteOverOptions[3]) old_line->Style = new_line->Style;
|
||||
if (pasteOverOptions[4]) old_line->Actor = new_line->Actor;
|
||||
if (pasteOverOptions[5]) old_line->Margin[0] = new_line->Margin[0];
|
||||
if (pasteOverOptions[6]) old_line->Margin[1] = new_line->Margin[1];
|
||||
if (pasteOverOptions[7]) old_line->Margin[2] = new_line->Margin[2];
|
||||
if (pasteOverOptions[8]) old_line->Effect = new_line->Effect;
|
||||
if (pasteOverOptions[9]) old_line->Text = new_line->Text;
|
||||
if (pasteOverOptions[0]) old_line->Comment = new_line->Comment;
|
||||
if (pasteOverOptions[1]) old_line->Layer = new_line->Layer;
|
||||
if (pasteOverOptions[2]) old_line->Start = new_line->Start;
|
||||
if (pasteOverOptions[3]) old_line->End = new_line->End;
|
||||
if (pasteOverOptions[4]) old_line->Style = new_line->Style;
|
||||
if (pasteOverOptions[5]) old_line->Actor = new_line->Actor;
|
||||
if (pasteOverOptions[6]) old_line->Margin[0] = new_line->Margin[0];
|
||||
if (pasteOverOptions[7]) old_line->Margin[1] = new_line->Margin[1];
|
||||
if (pasteOverOptions[8]) old_line->Margin[2] = new_line->Margin[2];
|
||||
if (pasteOverOptions[9]) old_line->Effect = new_line->Effect;
|
||||
if (pasteOverOptions[10]) old_line->Text = new_line->Text;
|
||||
|
||||
return old_line;
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ DialogPasteOver::DialogPasteOver(wxWindow *parent)
|
|||
|
||||
// List box
|
||||
wxArrayString choices;
|
||||
choices.Add(_("Comment"));
|
||||
choices.Add(_("Layer"));
|
||||
choices.Add(_("Start Time"));
|
||||
choices.Add(_("End Time"));
|
||||
|
@ -111,13 +112,13 @@ void DialogPasteOver::OnOK(wxCommandEvent &) {
|
|||
|
||||
void DialogPasteOver::OnText(wxCommandEvent &) {
|
||||
CheckAll(false);
|
||||
ListBox->Check(9, true);
|
||||
ListBox->Check(10, true);
|
||||
}
|
||||
|
||||
void DialogPasteOver::OnTimes(wxCommandEvent &) {
|
||||
CheckAll(false);
|
||||
ListBox->Check(1, true);
|
||||
ListBox->Check(2, true);
|
||||
ListBox->Check(3, true);
|
||||
}
|
||||
|
||||
void DialogPasteOver::CheckAll(bool check) {
|
||||
|
|
Loading…
Reference in New Issue