mirror of https://github.com/odrling/Aegisub
Kill some code that was last uncommented before revision 1000.
Originally committed to SVN as r4314.
This commit is contained in:
parent
519039131f
commit
0e527355eb
|
@ -173,14 +173,6 @@ void SubtitlesGrid::OnPopupMenu(bool alternate) {
|
||||||
menu.Append(MENU_INSERT_AFTER_VIDEO,_("Insert at video time (after)"),_T("Inserts a line after current, starting at video time"))->Enable(state);
|
menu.Append(MENU_INSERT_AFTER_VIDEO,_("Insert at video time (after)"),_T("Inserts a line after current, starting at video time"))->Enable(state);
|
||||||
menu.AppendSeparator();
|
menu.AppendSeparator();
|
||||||
|
|
||||||
// Video/time sync
|
|
||||||
//state = (video && VideoContext::Get()->IsLoaded());
|
|
||||||
//menu.Append(MENU_SET_VIDEO_TO_START,_("Jump video to start"),_T("Sets current video time to start time"))->Enable(state);
|
|
||||||
//menu.Append(MENU_SET_VIDEO_TO_END,_("Jump video to end"),_T("Sets current video time to end time"))->Enable(state);
|
|
||||||
//menu.Append(MENU_SET_START_TO_VIDEO,_("Set start to video"),_T("Sets start times to current video time"))->Enable(state);
|
|
||||||
//menu.Append(MENU_SET_END_TO_VIDEO,_("Set end to video"),_T("Sets end times to current video time"))->Enable(state);
|
|
||||||
//menu.AppendSeparator();
|
|
||||||
|
|
||||||
// Duplicate selection
|
// Duplicate selection
|
||||||
menu.Append(MENU_DUPLICATE,_("&Duplicate"),_("Duplicate the selected lines"))->Enable(continuous);
|
menu.Append(MENU_DUPLICATE,_("&Duplicate"),_("Duplicate the selected lines"))->Enable(continuous);
|
||||||
menu.Append(MENU_DUPLICATE_NEXT_FRAME,_("&Duplicate and shift by 1 frame"),_("Duplicate lines and shift by one frame"))->Enable(continuous && VFR_Output.IsLoaded());
|
menu.Append(MENU_DUPLICATE_NEXT_FRAME,_("&Duplicate and shift by 1 frame"),_("Duplicate lines and shift by one frame"))->Enable(continuous && VFR_Output.IsLoaded());
|
||||||
|
@ -1312,7 +1304,6 @@ void SubtitlesGrid::DuplicateLines(int n1,int n2,bool nextFrame) {
|
||||||
for (int i=n1;i<=n2;i++) {
|
for (int i=n1;i<=n2;i++) {
|
||||||
// Create
|
// Create
|
||||||
if (i == n2) update = true;
|
if (i == n2) update = true;
|
||||||
//cur = new AssDialogue(GetDialogue(i+step)->data);
|
|
||||||
cur = new AssDialogue(GetDialogue(i)->GetEntryData());
|
cur = new AssDialogue(GetDialogue(i)->GetEntryData());
|
||||||
|
|
||||||
// Shift to next frame
|
// Shift to next frame
|
||||||
|
@ -1324,7 +1315,6 @@ void SubtitlesGrid::DuplicateLines(int n1,int n2,bool nextFrame) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert
|
// Insert
|
||||||
//InsertLine(cur,n1+step,false,update);
|
|
||||||
InsertLine(cur,n2+step,true,update);
|
InsertLine(cur,n2+step,true,update);
|
||||||
step++;
|
step++;
|
||||||
}
|
}
|
||||||
|
@ -1491,10 +1481,6 @@ void SubtitlesGrid::CommitChanges(bool force,bool videoOnly) {
|
||||||
VideoContext::Get()->Stop();
|
VideoContext::Get()->Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Export
|
|
||||||
//wxString workfile = VideoContext::Get()->GetTempWorkFile();
|
|
||||||
//ass->Export(workfile);
|
|
||||||
|
|
||||||
// Update video
|
// Update video
|
||||||
if (VideoContext::Get()->IsLoaded()) VideoContext::Get()->Refresh(false,true);
|
if (VideoContext::Get()->IsLoaded()) VideoContext::Get()->Refresh(false,true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue