From b01bdb7e70f021da764e81a4b55722e746e4885d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 12 Nov 2007 22:23:01 +0000 Subject: merged with trunk revs 2605-2627 git-svn-id: svn://localhost/ardour2/trunk@2628 d708f5d6-7413-0410-9779-e7cbd77b26cf --- SConstruct | 10 + gtk2_ardour/SConscript | 1 + gtk2_ardour/actions.cc | 2 +- gtk2_ardour/actions.h | 2 +- gtk2_ardour/ardour-sae.menus | 53 ++- gtk2_ardour/ardour.bindings.in | 15 +- gtk2_ardour/ardour.menus | 76 ++++- gtk2_ardour/ardour2_ui_dark.rc.in | 2 +- gtk2_ardour/ardour2_ui_default.conf | 10 +- gtk2_ardour/ardour2_ui_light.rc.in | 2 +- gtk2_ardour/ardour_ui.cc | 7 +- gtk2_ardour/audio_region_view.cc | 2 +- gtk2_ardour/canvas_vars.h | 2 +- gtk2_ardour/editing_syms.h | 4 +- gtk2_ardour/editor.cc | 185 +++++++---- gtk2_ardour/editor.h | 75 +++-- gtk2_ardour/editor_actions.cc | 78 +++-- gtk2_ardour/editor_audio_import.cc | 7 +- gtk2_ardour/editor_canvas.cc | 15 +- gtk2_ardour/editor_canvas_events.cc | 8 +- gtk2_ardour/editor_items.h | 1 - gtk2_ardour/editor_keyboard.cc | 81 +---- gtk2_ardour/editor_keys.cc | 36 +- gtk2_ardour/editor_markers.cc | 128 +++++++- gtk2_ardour/editor_mixer.cc | 5 +- gtk2_ardour/editor_mouse.cc | 103 +++--- gtk2_ardour/editor_ops.cc | 637 +++++++++++++++++++++++++++++++----- gtk2_ardour/editor_rulers.cc | 48 ++- gtk2_ardour/editor_selection.cc | 124 ++++++- gtk2_ardour/location_ui.cc | 8 + gtk2_ardour/marker.cc | 62 +++- gtk2_ardour/marker.h | 20 +- gtk2_ardour/public_editor.h | 4 +- gtk2_ardour/selection.cc | 8 +- gtk2_ardour/sfdb_ui.cc | 6 +- libs/ardour/ardour/location.h | 23 +- libs/ardour/audioengine.cc | 2 + libs/ardour/audioregion.cc | 11 +- libs/ardour/io.cc | 5 +- libs/ardour/location.cc | 44 +++ libs/ardour/session.cc | 5 - 41 files changed, 1419 insertions(+), 498 deletions(-) diff --git a/SConstruct b/SConstruct index 25cd217222..67af088d7f 100644 --- a/SConstruct +++ b/SConstruct @@ -473,6 +473,16 @@ libraries['raptor'].ParseConfig('pkg-config --cflags --libs raptor') libraries['samplerate'] = LibraryInfo() libraries['samplerate'].ParseConfig('pkg-config --cflags --libs samplerate') +libraries['rubberband'] = LibraryInfo() +# +# chris cannam's rubberband has not yet been released +# +if os.path.exists ('libs/rubberband'): + libraries['rubberband'] = LibraryInfo (LIBS='rubberband', + LIBPATH='#libs/rubberband/lib', + CPPPATH='#libs/rubberband/src', + CXXFLAGS='-DUSE_RUBBERBAND') + if env['FFT_ANALYSIS']: libraries['fftw3f'] = LibraryInfo() libraries['fftw3f'].ParseConfig('pkg-config --cflags --libs fftw3f') diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript index f1309b8c00..4cf990f816 100644 --- a/gtk2_ardour/SConscript +++ b/gtk2_ardour/SConscript @@ -50,6 +50,7 @@ gtkardour.Merge ([ libraries['xml'], libraries['xslt'], libraries['soundtouch'], + libraries['rubberband'], libraries['samplerate'], libraries['jack'], libraries['sysaudio'] diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc index f7609d2712..023520c17e 100644 --- a/gtk2_ardour/actions.cc +++ b/gtk2_ardour/actions.cc @@ -57,7 +57,7 @@ vector > ActionManager::range_sensitive_actions; vector > ActionManager::jack_sensitive_actions; vector > ActionManager::jack_opposite_sensitive_actions; vector > ActionManager::transport_sensitive_actions; -vector > ActionManager::edit_cursor_in_region_sensitive_actions; +vector > ActionManager::edit_point_in_region_sensitive_actions; RefPtr ActionManager::ui_manager; string ActionManager::unbound_string = "--"; diff --git a/gtk2_ardour/actions.h b/gtk2_ardour/actions.h index bdad026110..66e3ad9eea 100644 --- a/gtk2_ardour/actions.h +++ b/gtk2_ardour/actions.h @@ -56,7 +56,7 @@ class ActionManager static std::vector > transport_sensitive_actions; static std::vector > jack_sensitive_actions; static std::vector > jack_opposite_sensitive_actions; - static std::vector > edit_cursor_in_region_sensitive_actions; + static std::vector > edit_point_in_region_sensitive_actions; static void map_some_state (const char* group, const char* action, bool (ARDOUR::Configuration::*get)() const); static void toggle_config_state (const char* group, const char* action, bool (ARDOUR::Configuration::*set)(bool), bool (ARDOUR::Configuration::*get)(void) const); diff --git a/gtk2_ardour/ardour-sae.menus b/gtk2_ardour/ardour-sae.menus index 511ce3aa0d..e132329dbc 100644 --- a/gtk2_ardour/ardour-sae.menus +++ b/gtk2_ardour/ardour-sae.menus @@ -76,26 +76,9 @@ - + - - - - - - - - - - - - - - - - - @@ -122,6 +105,24 @@ + + + + + + + + + + + + + + + + + + @@ -134,6 +135,21 @@ + + + + + + + + + + + + + + + @@ -142,6 +158,7 @@ + diff --git a/gtk2_ardour/ardour.bindings.in b/gtk2_ardour/ardour.bindings.in index c7ead238bb..2e9b4af1e9 100644 --- a/gtk2_ardour/ardour.bindings.in +++ b/gtk2_ardour/ardour.bindings.in @@ -91,7 +91,7 @@ ; (gtk_accel_path "/Editor/Layering" "") ; (gtk_accel_path "/JACK/JACKLatency4096" "") (gtk_accel_path "/Editor/scroll-tracks-up" "Page_Up") -(gtk_accel_path "/Editor/set-edit-cursor" "e") +(gtk_accel_path "/Editor/set-edit-point" "e") ; (gtk_accel_path "/Editor/Smpte30drop" "") ; (gtk_accel_path "/Zoom/zoom-focus-edit" "") (gtk_accel_path "/Editor/playhead-to-previous-region-start" "comma") @@ -112,7 +112,7 @@ ; (gtk_accel_path "/Editor/toggle-xfades-visible" "") (gtk_accel_path "/Editor/extend-range-to-end-of-region" "rightanglebracket") (gtk_accel_path "/Editor/scroll-backward" "leftarrow") -(gtk_accel_path "/Editor/start-range" "KP_Down") +(gtk_accel_path "/Editor/start-range" "F1") ; (gtk_accel_path "/ShuttleActions/SetShuttleUnitsSemitones" "") ; (gtk_accel_path "/JACK/JACKLatency128" "") ; (gtk_accel_path "/Snap/snap-to-beat" "") @@ -162,7 +162,8 @@ ; (gtk_accel_path "/Editor/PullupMinus4Minus1" "") (gtk_accel_path "/Editor/select-all-after-edit-cursor" "e") ; (gtk_accel_path "/RegionList/SortBySourceFileName" "") -(gtk_accel_path "/Editor/finish-range" "KP_Up") +(gtk_accel_path "/Editor/finish-range" "F2") +(gtk_accel_path "/Editor/select-range-between-cursors" "F3") (gtk_accel_path "/Transport/Loop" "l") ; (gtk_accel_path "/Editor/CrossfadesFull" "") (gtk_accel_path "/Editor/finish-add-range" "KP_Up") @@ -202,13 +203,13 @@ ; (gtk_accel_path "/Snap/snap-to-edit-cursor" "") (gtk_accel_path "/Editor/temporal-zoom-in" "minus") ; (gtk_accel_path "/JACK/Latency" "") -(gtk_accel_path "/Editor/edit-cursor-to-range-end" "F2") +(gtk_accel_path "/Editor/edit-cursor-to-range-end" "F2") ; (gtk_accel_path "/processormenu/rename" "") ; (gtk_accel_path "/RegionList/rlShowAuto" "") (gtk_accel_path "/Editor/select-all-before-playhead" "p") ; (gtk_accel_path "/Editor/addExistingAudioFiles" "") ; (gtk_accel_path "/Main/Session" "") -(gtk_accel_path "/Editor/edit-cursor-to-range-start" "F1") +(gtk_accel_path "/Editor/edit-cursor-to-range-start" "F1") ; (gtk_accel_path "/Main/AudioFileFormat" "") ; (gtk_accel_path "/Transport/Transport" "") (gtk_accel_path "/MouseMode/set-mouse-mode-timefx" "t") @@ -318,3 +319,7 @@ ; (gtk_accel_path "/options/InputAutoConnectManual" "") ; (gtk_accel_path "/options/MeterHoldLong" "") ; (gtk_accel_path "/Snap/snap-to-seconds" "") +(gtk_accel_path "/Editor/set-fade-in-length" "slash") +(gtk_accel_path "/Editor/set-fade-out-length" "backslash") +(gtk_accel_path "/Editor/trim-from-start" "braceleft") +(gtk_accel_path "/Editor/trim-to-end" "braceright") diff --git a/gtk2_ardour/ardour.menus b/gtk2_ardour/ardour.menus index 6f11572151..54060c06aa 100644 --- a/gtk2_ardour/ardour.menus +++ b/gtk2_ardour/ardour.menus @@ -80,23 +80,6 @@ - - - - - - - - - - - - - - - - - @@ -109,6 +92,7 @@ +<<<<<<< .working @@ -119,11 +103,20 @@ + + + + + + + +======= +>>>>>>> .merge-right.r2626 - + @@ -136,6 +129,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -143,6 +182,7 @@ + diff --git a/gtk2_ardour/ardour2_ui_dark.rc.in b/gtk2_ardour/ardour2_ui_dark.rc.in index 50650d7f34..b2b5edd2d5 100644 --- a/gtk2_ardour/ardour2_ui_dark.rc.in +++ b/gtk2_ardour/ardour2_ui_dark.rc.in @@ -1319,7 +1319,7 @@ widget "*AudioClockBBTUpperInfo" style:highest "tempo_meter_clock_display" widget "*AudioClockBBTLowerInfo" style:highest "tempo_meter_clock_display" widget "*SelectionStartClock" style:highest "default_clock_display" widget "*SelectionEndClock" style:highest "default_clock_display" -widget "*EditCursorClock" style:highest "default_clock_display" +widget "*EditPointClock" style:highest "default_clock_display" widget "*PreRollClock" style:highest "default_clock_display" widget "*PostRollClock" style:highest "default_clock_display" widget "*NudgeClock" style:highest "default_clock_display" diff --git a/gtk2_ardour/ardour2_ui_default.conf b/gtk2_ardour/ardour2_ui_default.conf index 721d8c3116..4f41d5b03b 100644 --- a/gtk2_ardour/ardour2_ui_default.conf +++ b/gtk2_ardour/ardour2_ui_default.conf @@ -41,11 +41,11 @@