From: Good Guy Date: Wed, 30 Sep 2020 03:07:29 +0000 (-0600) Subject: switch move/swap tracks, add mv trk shortcut, update msg X-Git-Tag: 2020-09~1 X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=1db0dacec8f9d7f5687e582bd282d9bf83bd58f0;p=goodguy%2Fcinelerra.git switch move/swap tracks, add mv trk shortcut, update msg --- diff --git a/cinelerra-5.1/cinelerra/mainmenu.C b/cinelerra-5.1/cinelerra/mainmenu.C index 4359595b..56b18436 100644 --- a/cinelerra-5.1/cinelerra/mainmenu.C +++ b/cinelerra-5.1/cinelerra/mainmenu.C @@ -207,13 +207,13 @@ void MainMenu::create_objects() add_menu(trackmenu = new BC_Menu(_("Tracks"))); trackmenu->add_item(new MoveTracksUp(mwindow)); trackmenu->add_item(new MoveTracksDown(mwindow)); + trackmenu->add_item(new RollTracksUp(mwindow)); + trackmenu->add_item(new RollTracksDown(mwindow)); trackmenu->add_item(new DeleteTracks(mwindow)); trackmenu->add_item(new DeleteFirstTrack(mwindow)); trackmenu->add_item(new DeleteLastTrack(mwindow)); trackmenu->add_item(new ConcatenateTracks(mwindow)); trackmenu->add_item(new AlignTimecodes(mwindow)); - trackmenu->add_item(new SwapTracksUp(mwindow)); - trackmenu->add_item(new SwapTracksDown(mwindow)); AppendTracks *append_tracks; trackmenu->add_item(append_tracks = new AppendTracks(mwindow)); append_tracks->create_objects(); @@ -1345,7 +1345,8 @@ int MoveTracksUp::handle_event() MoveTracksDown::MoveTracksDown(MWindow *mwindow) : BC_MenuItem(_("Move tracks down"), _("Shift-Down"), DOWN) { - set_shift(); this->mwindow = mwindow; + this->mwindow = mwindow; + set_shift(); } int MoveTracksDown::handle_event() @@ -1356,30 +1357,33 @@ int MoveTracksDown::handle_event() } -SwapTracksUp::SwapTracksUp(MWindow *mwindow) - : BC_MenuItem(_("Swap tracks up"), 0, UP) +RollTracksUp::RollTracksUp(MWindow *mwindow) + : BC_MenuItem(_("Roll tracks up"), _("Ctrl-Shift-Up"), UP) { this->mwindow = mwindow; + set_ctrl(); set_shift(); } -int SwapTracksUp::handle_event() +int RollTracksUp::handle_event() { if( mwindow->session->current_operation == NO_OPERATION ) - mwindow->swap_tracks_up(); + mwindow->roll_tracks_up(); return 1; } -SwapTracksDown::SwapTracksDown(MWindow *mwindow) - : BC_MenuItem(_("Swap tracks down"), 0, DOWN) +RollTracksDown::RollTracksDown(MWindow *mwindow) + : BC_MenuItem(_("Roll tracks down"), _("Ctrl-Shift-Down"), DOWN) { - set_shift(); this->mwindow = mwindow; + this->mwindow = mwindow; + set_ctrl(); + set_shift(); } -int SwapTracksDown::handle_event() +int RollTracksDown::handle_event() { if( mwindow->session->current_operation == NO_OPERATION ) - mwindow->swap_tracks_down(); + mwindow->roll_tracks_down(); return 1; } diff --git a/cinelerra-5.1/cinelerra/mainmenu.h b/cinelerra-5.1/cinelerra/mainmenu.h index 97f9dd1c..c9127fa8 100644 --- a/cinelerra-5.1/cinelerra/mainmenu.h +++ b/cinelerra-5.1/cinelerra/mainmenu.h @@ -696,34 +696,34 @@ public: // ========================================== settings -class MoveTracksUp : public BC_MenuItem +class RollTracksUp : public BC_MenuItem { public: - MoveTracksUp(MWindow *mwindow); + RollTracksUp(MWindow *mwindow); int handle_event(); MWindow *mwindow; }; -class MoveTracksDown : public BC_MenuItem +class RollTracksDown : public BC_MenuItem { public: - MoveTracksDown(MWindow *mwindow); + RollTracksDown(MWindow *mwindow); int handle_event(); MWindow *mwindow; }; -class SwapTracksUp : public BC_MenuItem +class MoveTracksUp : public BC_MenuItem { public: - SwapTracksUp(MWindow *mwindow); + MoveTracksUp(MWindow *mwindow); int handle_event(); MWindow *mwindow; }; -class SwapTracksDown : public BC_MenuItem +class MoveTracksDown : public BC_MenuItem { public: - SwapTracksDown(MWindow *mwindow); + MoveTracksDown(MWindow *mwindow); int handle_event(); MWindow *mwindow; }; diff --git a/cinelerra-5.1/cinelerra/mainmenu.inc b/cinelerra-5.1/cinelerra/mainmenu.inc index e9c3ffe0..022dce41 100644 --- a/cinelerra-5.1/cinelerra/mainmenu.inc +++ b/cinelerra-5.1/cinelerra/mainmenu.inc @@ -86,8 +86,8 @@ class ResetTranslation; class DefaultVTransition; class AddSubttlTrack; class PasteSubttl; -class MoveTracksUp; -class MoveTracksDown; +class RollTracksUp; +class RollTracksDown; class DeleteTracks; class ConcatenateTracks; class DeleteFirstTrack; diff --git a/cinelerra-5.1/cinelerra/mwindow.h b/cinelerra-5.1/cinelerra/mwindow.h index 30e632bf..c636d787 100644 --- a/cinelerra-5.1/cinelerra/mwindow.h +++ b/cinelerra-5.1/cinelerra/mwindow.h @@ -515,14 +515,14 @@ public: void move_effect(Plugin *plugin, PluginSet *plugin_set, int64_t position); void move_plugins_up(PluginSet *plugin_set); void move_plugins_down(PluginSet *plugin_set); + void roll_track_down(Track *track); + void roll_tracks_down(); + void roll_track_up(Track *track); + void roll_tracks_up(); void move_track_down(Track *track); void move_tracks_down(); void move_track_up(Track *track); void move_tracks_up(); - void swap_track_down(Track *track); - void swap_tracks_down(); - void swap_track_up(Track *track); - void swap_tracks_up(); void mute_selection(); void new_folder(const char *new_folder, int is_clips); void delete_folder(char *folder); diff --git a/cinelerra-5.1/cinelerra/mwindowedit.C b/cinelerra-5.1/cinelerra/mwindowedit.C index 003844fe..b35cd335 100644 --- a/cinelerra-5.1/cinelerra/mwindowedit.C +++ b/cinelerra-5.1/cinelerra/mwindowedit.C @@ -1192,10 +1192,10 @@ void MWindow::move_plugins_down(PluginSet *plugin_set) sync_parameters(CHANGE_EDL); } -void MWindow::move_track_down(Track *track) +void MWindow::roll_track_down(Track *track) { undo_before(); - edl->tracks->move_track_down(track); + edl->tracks->roll_track_down(track); save_backup(); undo_after(_("move track down"), LOAD_ALL); @@ -1205,10 +1205,10 @@ void MWindow::move_track_down(Track *track) save_backup(); } -void MWindow::move_tracks_down() +void MWindow::roll_tracks_down() { undo_before(); - edl->tracks->move_tracks_down(); + edl->tracks->roll_tracks_down(); save_backup(); undo_after(_("move tracks down"), LOAD_ALL); @@ -1218,10 +1218,10 @@ void MWindow::move_tracks_down() save_backup(); } -void MWindow::move_track_up(Track *track) +void MWindow::roll_track_up(Track *track) { undo_before(); - edl->tracks->move_track_up(track); + edl->tracks->roll_track_up(track); save_backup(); undo_after(_("move track up"), LOAD_ALL); restart_brender(); @@ -1230,10 +1230,10 @@ void MWindow::move_track_up(Track *track) save_backup(); } -void MWindow::move_tracks_up() +void MWindow::roll_tracks_up() { undo_before(); - edl->tracks->move_tracks_up(); + edl->tracks->roll_tracks_up(); save_backup(); undo_after(_("move tracks up"), LOAD_ALL); restart_brender(); @@ -1242,10 +1242,10 @@ void MWindow::move_tracks_up() } -void MWindow::swap_track_down(Track *track) +void MWindow::move_track_down(Track *track) { undo_before(); - edl->tracks->swap_track_down(track); + edl->tracks->move_track_down(track); save_backup(); undo_after(_("swap track down"), LOAD_ALL); @@ -1255,10 +1255,10 @@ void MWindow::swap_track_down(Track *track) save_backup(); } -void MWindow::swap_tracks_down() +void MWindow::move_tracks_down() { undo_before(); - edl->tracks->swap_tracks_down(); + edl->tracks->move_tracks_down(); save_backup(); undo_after(_("swap tracks down"), LOAD_ALL); @@ -1268,10 +1268,10 @@ void MWindow::swap_tracks_down() save_backup(); } -void MWindow::swap_track_up(Track *track) +void MWindow::move_track_up(Track *track) { undo_before(); - edl->tracks->swap_track_up(track); + edl->tracks->move_track_up(track); save_backup(); undo_after(_("swap track up"), LOAD_ALL); restart_brender(); @@ -1280,10 +1280,10 @@ void MWindow::swap_track_up(Track *track) save_backup(); } -void MWindow::swap_tracks_up() +void MWindow::move_tracks_up() { undo_before(); - edl->tracks->swap_tracks_up(); + edl->tracks->move_tracks_up(); save_backup(); undo_after(_("swap tracks up"), LOAD_ALL); restart_brender(); diff --git a/cinelerra-5.1/cinelerra/trackpopup.C b/cinelerra-5.1/cinelerra/trackpopup.C index 6dd1512e..f22825e4 100644 --- a/cinelerra-5.1/cinelerra/trackpopup.C +++ b/cinelerra-5.1/cinelerra/trackpopup.C @@ -66,14 +66,14 @@ void TrackPopup::create_objects() add_item(new TrackAttachEffect(mwindow, this)); add_item(new TrackMoveUp(mwindow, this)); add_item(new TrackMoveDown(mwindow, this)); + add_item(new TrackRollUp(mwindow, this)); + add_item(new TrackRollDown(mwindow, this)); add_item(new TrackPopupDeleteTrack(mwindow, this)); add_item(new TrackPopupAddTrack(mwindow, this)); add_item(new TrackPopupFindAsset(mwindow, this)); add_item(new TrackPopupShow(mwindow, this)); add_item(new TrackPopupUserTitle(mwindow, this)); add_item(new TrackPopupTitleColor(mwindow, this)); - add_item(new TrackSwapUp(mwindow, this)); - add_item(new TrackSwapDown(mwindow, this)); resize_option = 0; matchsize_option = 0; } @@ -153,33 +153,33 @@ int TrackMoveDown::handle_event() } -TrackSwapUp::TrackSwapUp(MWindow *mwindow, TrackPopup *popup) - : BC_MenuItem(_("Swap up")) +TrackRollUp::TrackRollUp(MWindow *mwindow, TrackPopup *popup) + : BC_MenuItem(_("Roll up")) { this->mwindow = mwindow; this->popup = popup; } -TrackSwapUp::~TrackSwapUp() +TrackRollUp::~TrackRollUp() { } -int TrackSwapUp::handle_event() +int TrackRollUp::handle_event() { - mwindow->swap_track_up(popup->track); + mwindow->roll_track_up(popup->track); return 1; } -TrackSwapDown::TrackSwapDown(MWindow *mwindow, TrackPopup *popup) - : BC_MenuItem(_("Swap down")) +TrackRollDown::TrackRollDown(MWindow *mwindow, TrackPopup *popup) + : BC_MenuItem(_("Roll down")) { this->mwindow = mwindow; this->popup = popup; } -TrackSwapDown::~TrackSwapDown() +TrackRollDown::~TrackRollDown() { } -int TrackSwapDown::handle_event() +int TrackRollDown::handle_event() { - mwindow->swap_track_down(popup->track); + mwindow->roll_track_down(popup->track); return 1; } diff --git a/cinelerra-5.1/cinelerra/trackpopup.h b/cinelerra-5.1/cinelerra/trackpopup.h index b44a62d5..e6aac8d7 100644 --- a/cinelerra-5.1/cinelerra/trackpopup.h +++ b/cinelerra-5.1/cinelerra/trackpopup.h @@ -130,11 +130,11 @@ public: TrackPopup *popup; }; -class TrackSwapUp : public BC_MenuItem +class TrackRollUp : public BC_MenuItem { public: - TrackSwapUp(MWindow *mwindow, TrackPopup *popup); - ~TrackSwapUp(); + TrackRollUp(MWindow *mwindow, TrackPopup *popup); + ~TrackRollUp(); int handle_event(); @@ -142,11 +142,11 @@ public: TrackPopup *popup; }; -class TrackSwapDown : public BC_MenuItem +class TrackRollDown : public BC_MenuItem { public: - TrackSwapDown(MWindow *mwindow, TrackPopup *popup); - ~TrackSwapDown(); + TrackRollDown(MWindow *mwindow, TrackPopup *popup); + ~TrackRollDown(); int handle_event(); diff --git a/cinelerra-5.1/cinelerra/tracks.C b/cinelerra-5.1/cinelerra/tracks.C index d8357e2f..07524f1f 100644 --- a/cinelerra-5.1/cinelerra/tracks.C +++ b/cinelerra-5.1/cinelerra/tracks.C @@ -782,7 +782,7 @@ Track *Tracks::get(int idx, int data_type) return 0; } -void Tracks::move_tracks(Track *src, Track *dst, int n) +void Tracks::roll_tracks(Track *src, Track *dst, int n) { if( src == dst ) return; while( --n >= 0 && src ) { diff --git a/cinelerra-5.1/cinelerra/tracks.h b/cinelerra-5.1/cinelerra/tracks.h index 78d1fe59..cc1486d8 100644 --- a/cinelerra-5.1/cinelerra/tracks.h +++ b/cinelerra-5.1/cinelerra/tracks.h @@ -73,15 +73,15 @@ public: void equivalent_output(Tracks *tracks, double *result); - void move_tracks(Track *src, Track *dst, int n); + void roll_tracks(Track *src, Track *dst, int n); + int roll_track_up(Track *track); + int roll_track_down(Track *track); + int roll_tracks_up(); + int roll_tracks_down(); int move_track_up(Track *track); int move_track_down(Track *track); int move_tracks_up(); int move_tracks_down(); - int swap_track_up(Track *track); - int swap_track_down(Track *track); - int swap_tracks_up(); - int swap_tracks_down(); void paste_audio_transition(PluginServer *server); void paste_video_transition(PluginServer *server, int first_track = 0); diff --git a/cinelerra-5.1/cinelerra/tracksedit.C b/cinelerra-5.1/cinelerra/tracksedit.C index a3dfca74..8a8602f6 100644 --- a/cinelerra-5.1/cinelerra/tracksedit.C +++ b/cinelerra-5.1/cinelerra/tracksedit.C @@ -851,7 +851,7 @@ int Tracks::copy(int copy_flags, double start, double end, -int Tracks::move_track_up(Track *track) +int Tracks::roll_track_up(Track *track) { if( first == last ) return 1; int n = 1; @@ -865,11 +865,11 @@ int Tracks::move_track_up(Track *track) while( dst && !dst->master ) { dst = dst->previous; } } if( src == dst ) return 1; - move_tracks(src, dst, n); + roll_tracks(src, dst, n); return 0; } -int Tracks::move_track_down(Track *track) +int Tracks::roll_track_down(Track *track) { if( first == last ) return 1; int n = 1; @@ -890,12 +890,12 @@ int Tracks::move_track_down(Track *track) else dst = !dst ? first : dst->next; if( src == dst ) return 1; - move_tracks(src, dst, n); + roll_tracks(src, dst, n); return 0; } -int Tracks::move_tracks_up() +int Tracks::roll_tracks_up() { if( first == last ) return 1; int n = 1; @@ -905,11 +905,11 @@ int Tracks::move_tracks_up() while( nxt && !nxt->master ) { ++n; nxt = nxt->next; } } if( src == dst ) return 1; - move_tracks(src, dst, n); + roll_tracks(src, dst, n); return 0; } -int Tracks::move_tracks_down() +int Tracks::roll_tracks_down() { if( first == last ) return 1; int n = 1; @@ -918,12 +918,12 @@ int Tracks::move_tracks_down() while( src && !src->master ) { ++n; src = src->previous; } } if( src == dst ) return 1; - move_tracks(src, dst, n); + roll_tracks(src, dst, n); return 0; } -int Tracks::swap_track_up(Track *track) +int Tracks::move_track_up(Track *track) { Track *next_track = track->previous; if(!next_track) next_track = last; @@ -933,7 +933,7 @@ int Tracks::swap_track_up(Track *track) return 0; } -int Tracks::swap_track_down(Track *track) +int Tracks::move_track_down(Track *track) { Track *next_track = track->next; if(!next_track) next_track = first; @@ -944,7 +944,7 @@ int Tracks::swap_track_down(Track *track) } -int Tracks::swap_tracks_up() +int Tracks::move_tracks_up() { int result = 0; Track *next = first; @@ -961,7 +961,7 @@ int Tracks::swap_tracks_up() return result; } -int Tracks::swap_tracks_down() +int Tracks::move_tracks_down() { int result = 0; Track *prev = last; diff --git a/cinelerra-5.1/doc/shortcuts.html b/cinelerra-5.1/doc/shortcuts.html index 4c0c7730..a5bbc041 100644 --- a/cinelerra-5.1/doc/shortcuts.html +++ b/cinelerra-5.1/doc/shortcuts.html @@ -454,12 +454,24 @@ Tracks Move tracks up 'Shift-Up' - Circulate tracks up + Swap tracks up Pulldown - Move trks down + Move tracks dn 'Shift-Down' + Swap tracks down + + + Tracks + Roll tracks up + 'Ctrl-Shift-Up' + Circulate tracks up + + + Pulldown + Roll tracks dn + 'Ctrl-Shift-Dn' Circulate tracks down @@ -1578,6 +1590,12 @@ Double click Between labels, highlights selection + +
+
+
+ Over Automation Range values, changes value +
Toggle single trk diff --git a/cinelerra-5.1/msg/txt b/cinelerra-5.1/msg/txt index c080f1b8..e7113082 100644 --- a/cinelerra-5.1/msg/txt +++ b/cinelerra-5.1/msg/txt @@ -2,11 +2,12 @@ Email cin@lists.cinelerra-gg.org 4 help. For usage help, refer to the following: https://cinelerra-gg.org/download/CinelerraGG_Manual.pdf http://g-raffa.eu/Cinelerra/HOWTO/basics.html -Cinfinity icons selected in Preferences Sam (CC BY 3.0, - https://creativecommons.org/licenses/by/3.0/) -Cakewalk and Neophyte themes by Olaf Wolff (CC BY 4.0, - https://creativecommons.org/licenses/by/4.0/) . +September 2020 New Features of note: + Motion plugin improvements by SGE for better results. + Camera and Projector menus now include easy range change. + Faster transition playing with cache + drag capable. + Histogram new feature of average frame calculation. August 2020 New Features of note: Bump Autos new feature; especially useful for speed. Language preference now in Settings->Preferences.