more movement options
Originally committed to SVN as r113.
This commit is contained in:
parent
bfbe5c0745
commit
80b25b53c2
3 changed files with 26 additions and 1 deletions
|
@ -70,7 +70,10 @@ void FrameMain::OnVideoTrackerMenu(wxCommandEvent &event) {
|
||||||
void FrameMain::OnVideoTrackerMenu2(wxCommandEvent &event) {
|
void FrameMain::OnVideoTrackerMenu2(wxCommandEvent &event) {
|
||||||
wxMenu menu( _("FexMovement") );
|
wxMenu menu( _("FexMovement") );
|
||||||
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveAll, _("Move subtitle"), _(""), wxBITMAP(button_track_move));
|
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveAll, _("Move subtitle"), _(""), wxBITMAP(button_track_move));
|
||||||
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveOne, _("Move subtitle only in this frame"), _(""), wxBITMAP(button_track_move));
|
menu.AppendSeparator();
|
||||||
|
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveBefore, _("Move subtitle (this frame and preceeding frames)"), _(""), wxBITMAP(button_track_move));
|
||||||
|
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveOne, _("Move subtitle (this frame)"), _(""), wxBITMAP(button_track_move));
|
||||||
|
AppendBitmapMenuItem(&menu, Video_Track_Movement_MoveAfter, _("Move subtitle (this frame and following frames)"), _(""), wxBITMAP(button_track_move));
|
||||||
menu.AppendSeparator();
|
menu.AppendSeparator();
|
||||||
AppendBitmapMenuItem(&menu, Video_Track_Split_Line, _("Split line for movement"), _(""), wxBITMAP(button_track_split_line));
|
AppendBitmapMenuItem(&menu, Video_Track_Split_Line, _("Split line for movement"), _(""), wxBITMAP(button_track_split_line));
|
||||||
PopupMenu(&menu);
|
PopupMenu(&menu);
|
||||||
|
@ -244,3 +247,19 @@ void FrameMain::OnVideoTrackMovementMoveOne(wxCommandEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////
|
||||||
|
// Move Before
|
||||||
|
void FrameMain::OnVideoTrackMovementMoveBefore(wxCommandEvent &event) {
|
||||||
|
videoBox->videoDisplay->MovementEdit = 3;
|
||||||
|
videoBox->videoDisplay->bTrackerEditing = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///////////////////
|
||||||
|
// Move After
|
||||||
|
void FrameMain::OnVideoTrackMovementMoveAfter(wxCommandEvent &event) {
|
||||||
|
videoBox->videoDisplay->MovementEdit = 4;
|
||||||
|
videoBox->videoDisplay->bTrackerEditing = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,8 @@ private:
|
||||||
void OnVideoTrackMovement(wxCommandEvent &event);
|
void OnVideoTrackMovement(wxCommandEvent &event);
|
||||||
void OnVideoTrackMovementMoveAll(wxCommandEvent &event);
|
void OnVideoTrackMovementMoveAll(wxCommandEvent &event);
|
||||||
void OnVideoTrackMovementMoveOne(wxCommandEvent &event);
|
void OnVideoTrackMovementMoveOne(wxCommandEvent &event);
|
||||||
|
void OnVideoTrackMovementMoveBefore(wxCommandEvent &event);
|
||||||
|
void OnVideoTrackMovementMoveAfter(wxCommandEvent &event);
|
||||||
void OnVideoTrackSplitLine(wxCommandEvent &event);
|
void OnVideoTrackSplitLine(wxCommandEvent &event);
|
||||||
|
|
||||||
void OnKeyDown(wxKeyEvent &event);
|
void OnKeyDown(wxKeyEvent &event);
|
||||||
|
@ -342,6 +344,8 @@ enum {
|
||||||
Video_Track_Movement,
|
Video_Track_Movement,
|
||||||
Video_Track_Movement_MoveAll,
|
Video_Track_Movement_MoveAll,
|
||||||
Video_Track_Movement_MoveOne,
|
Video_Track_Movement_MoveOne,
|
||||||
|
Video_Track_Movement_MoveBefore,
|
||||||
|
Video_Track_Movement_MoveAfter,
|
||||||
Video_Track_Split_Line,
|
Video_Track_Split_Line,
|
||||||
|
|
||||||
Menu_File_Recent = 2000,
|
Menu_File_Recent = 2000,
|
||||||
|
|
|
@ -98,6 +98,8 @@ BEGIN_EVENT_TABLE(FrameMain, wxFrame)
|
||||||
EVT_BUTTON(Video_Tracker_Menu2, FrameMain::OnVideoTrackerMenu2)
|
EVT_BUTTON(Video_Tracker_Menu2, FrameMain::OnVideoTrackerMenu2)
|
||||||
EVT_MENU(Video_Track_Movement_MoveAll, FrameMain::OnVideoTrackMovementMoveAll)
|
EVT_MENU(Video_Track_Movement_MoveAll, FrameMain::OnVideoTrackMovementMoveAll)
|
||||||
EVT_MENU(Video_Track_Movement_MoveOne, FrameMain::OnVideoTrackMovementMoveOne)
|
EVT_MENU(Video_Track_Movement_MoveOne, FrameMain::OnVideoTrackMovementMoveOne)
|
||||||
|
EVT_MENU(Video_Track_Movement_MoveBefore, FrameMain::OnVideoTrackMovementMoveBefore)
|
||||||
|
EVT_MENU(Video_Track_Movement_MoveAfter, FrameMain::OnVideoTrackMovementMoveAfter)
|
||||||
EVT_MENU(Video_Track_Split_Line, FrameMain::OnVideoTrackSplitLine)
|
EVT_MENU(Video_Track_Split_Line, FrameMain::OnVideoTrackSplitLine)
|
||||||
|
|
||||||
EVT_CLOSE(FrameMain::OnCloseWindow)
|
EVT_CLOSE(FrameMain::OnCloseWindow)
|
||||||
|
|
Loading…
Reference in a new issue