Carl Hetherington [Tue, 23 Oct 2007 14:02:15 +0000 (14:02 +0000)]
Re-work Port construction slightly so that _flags is always initialised before reset() is called. Otherwise a decision is made based on an uninitialised variable (as spotted by valgrind)
git-svn-id: svn://localhost/ardour2/trunk@2568
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 23 Oct 2007 13:33:46 +0000 (13:33 +0000)]
Fix a probably-irrelevant warning from valgrind.
git-svn-id: svn://localhost/ardour2/trunk@2567
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 23 Oct 2007 12:50:25 +0000 (12:50 +0000)]
Fix crash due to invalidated shared_ptr, as suggested by Paul
git-svn-id: svn://localhost/ardour2/trunk@2565
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 23 Oct 2007 12:02:36 +0000 (12:02 +0000)]
Fix uninitialised variable spotted by valgrind.
git-svn-id: svn://localhost/ardour2/trunk@2564
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 19 Oct 2007 14:57:04 +0000 (14:57 +0000)]
Fix spelling of Busses to match the rest of the UI
git-svn-id: svn://localhost/ardour2/trunk@2563
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 19 Oct 2007 13:58:48 +0000 (13:58 +0000)]
Patch from mantis user 'lincoln'; add support for FreeBoB in the audio settings, and pass the correct flag to JACK for using FFADO.
git-svn-id: svn://localhost/ardour2/trunk@2562
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 19 Oct 2007 13:30:07 +0000 (13:30 +0000)]
Various work on bundles. We now have a Bundle Manager dialogue, and hopefully things are a bit cleaner internally. This commit changes the session file format with respect to bundles (or Connections as they used to be called).
git-svn-id: svn://localhost/ardour2/trunk@2561
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Wed, 17 Oct 2007 16:49:31 +0000 (16:49 +0000)]
new internal port type, round I, plus tiny fix for legalize_for_xml() (also for 2.0-ongoing)
git-svn-id: svn://localhost/ardour2/trunk@2559
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Wed, 17 Oct 2007 03:09:38 +0000 (03:09 +0000)]
Fix compilation.
git-svn-id: svn://localhost/ardour2/trunk@2558
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Wed, 17 Oct 2007 02:09:24 +0000 (02:09 +0000)]
added file
git-svn-id: svn://localhost/ardour2/trunk@2557
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Tue, 16 Oct 2007 21:01:12 +0000 (21:01 +0000)]
virtualize Port object; clean up automation tracks from track deletion
git-svn-id: svn://localhost/ardour2/trunk@2556
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Sun, 14 Oct 2007 05:45:31 +0000 (05:45 +0000)]
Fix displaying of notes in auto-created MIDI region when it's the first region in the track.
Fix crash after recording long phrases of MIDI.
Fix MIDI looping (kinda).
Add note-off exposure to MidiModel::iterator.
Fix first-note-is-stuck-note problem.
Fix resolving long notes while recording.
Fix several other things I forget now. MIDI works pretty well.....
git-svn-id: svn://localhost/ardour2/trunk@2555
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 13 Oct 2007 18:10:57 +0000 (18:10 +0000)]
Fix up physical port bundles.
git-svn-id: svn://localhost/ardour2/trunk@2554
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 13 Oct 2007 17:45:44 +0000 (17:45 +0000)]
Fix some bugs with visiblity of groups.
git-svn-id: svn://localhost/ardour2/trunk@2553
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 13 Oct 2007 11:07:47 +0000 (11:07 +0000)]
Put row labels on both sides of the grid.
git-svn-id: svn://localhost/ardour2/trunk@2552
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 13 Oct 2007 10:38:26 +0000 (10:38 +0000)]
Check buttons to select visibility of destination groups.
git-svn-id: svn://localhost/ardour2/trunk@2551
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 13 Oct 2007 00:58:03 +0000 (00:58 +0000)]
Considerable re-work to allow scrolling of the checkbutton area of the dialogue. Add/remove port is now on a context menu over the row labels.
git-svn-id: svn://localhost/ardour2/trunk@2550
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Fri, 12 Oct 2007 23:25:48 +0000 (23:25 +0000)]
Fix missing return.
This might be wrong, but at least it's deterministically wrong...
git-svn-id: svn://localhost/ardour2/trunk@2549
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 22:30:25 +0000 (22:30 +0000)]
fixup keybinding editor binding action; restore some menu items lost in the trunk merge; no search in processor (redirect) boxes
git-svn-id: svn://localhost/ardour2/trunk@2548
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 12 Oct 2007 14:49:07 +0000 (14:49 +0000)]
Better support for MIDI tracks in the IO selector.
git-svn-id: svn://localhost/ardour2/trunk@2547
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 14:27:47 +0000 (14:27 +0000)]
fix peakfile/sourcefactory botch
git-svn-id: svn://localhost/ardour2/trunk@2546
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 12 Oct 2007 12:13:11 +0000 (12:13 +0000)]
Group destination ports by track / buss / system etc.
git-svn-id: svn://localhost/ardour2/trunk@2545
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 02:11:14 +0000 (02:11 +0000)]
fixes for varispeed playback, mackie control compilation, new odd color for treeview rows
git-svn-id: svn://localhost/ardour2/trunk@2544
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 01:54:35 +0000 (01:54 +0000)]
add keybinding editor
git-svn-id: svn://localhost/ardour2/trunk@2543
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 01:22:04 +0000 (01:22 +0000)]
added file
git-svn-id: svn://localhost/ardour2/trunk@2542
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Fri, 12 Oct 2007 01:03:35 +0000 (01:03 +0000)]
added files
git-svn-id: svn://localhost/ardour2/trunk@2541
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Thu, 11 Oct 2007 23:39:26 +0000 (23:39 +0000)]
add missing file
git-svn-id: svn://localhost/ardour2/trunk@2540
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Thu, 11 Oct 2007 22:07:47 +0000 (22:07 +0000)]
merge from 2.0-ongoing by hand, minus key binding editor
git-svn-id: svn://localhost/ardour2/trunk@2539
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Wed, 10 Oct 2007 18:37:13 +0000 (18:37 +0000)]
New matrix-style IO selector dialogue. Should allow you to do the same things as the old one did, but certainly a work in progress.
git-svn-id: svn://localhost/ardour2/trunk@2538
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Wed, 10 Oct 2007 14:49:25 +0000 (14:49 +0000)]
Make sure we notice when an IO's port count is reduced as well as when it's increased. Fixes an assertion failure when removing a port from an IO with 3 existing ports.
git-svn-id: svn://localhost/ardour2/trunk@2537
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Wed, 10 Oct 2007 01:24:04 +0000 (01:24 +0000)]
Make theme manager dialog's title similar in style to the others on the same menu.
git-svn-id: svn://localhost/ardour2/trunk@2535
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Wed, 10 Oct 2007 00:15:41 +0000 (00:15 +0000)]
A couple of capitalisation and space fixes for the main menu.
git-svn-id: svn://localhost/ardour2/trunk@2534
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 9 Oct 2007 23:41:05 +0000 (23:41 +0000)]
Remove a file that should have been removed a few commits ago.
git-svn-id: svn://localhost/ardour2/trunk@2533
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 9 Oct 2007 23:04:53 +0000 (23:04 +0000)]
Few cleanups related to signed-ness of minimum/maximum port counts.
git-svn-id: svn://localhost/ardour2/trunk@2532
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Mon, 8 Oct 2007 23:47:35 +0000 (23:47 +0000)]
Various work on Bundles, especially dynamic ones so that you can, for example, pass tracks to busses by selecting the buss name from the track's output menu.
git-svn-id: svn://localhost/ardour2/trunk@2530
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sun, 7 Oct 2007 15:51:14 +0000 (15:51 +0000)]
Re-work edit group selection in line with suggestions from Paul.
git-svn-id: svn://localhost/ardour2/trunk@2529
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Sun, 7 Oct 2007 07:20:09 +0000 (07:20 +0000)]
Fix several MIDI timestamp related problems:
Fix recording MIDI regions that start at t != 0.
Fix display of MIDI events in regions that start at t != 0.
Fix recording after relocating an already rec-armed MIDI track.
git-svn-id: svn://localhost/ardour2/trunk@2528
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 6 Oct 2007 18:39:44 +0000 (18:39 +0000)]
Make edit groups effective with lassoo selections.
git-svn-id: svn://localhost/ardour2/trunk@2526
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 6 Oct 2007 17:33:40 +0000 (17:33 +0000)]
Make split region work across edit groups even if the region is not selected when the split occurs.
git-svn-id: svn://localhost/ardour2/trunk@2525
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 6 Oct 2007 17:27:07 +0000 (17:27 +0000)]
Add some comments to the RegionSelection class.
git-svn-id: svn://localhost/ardour2/trunk@2524
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Sat, 6 Oct 2007 16:24:08 +0000 (16:24 +0000)]
Fix things so that selecting a region always selects equivalent regions in the same edit group, even if the appropriate tracks aren't selected at the time.
git-svn-id: svn://localhost/ardour2/trunk@2523
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Sampo Savolainen [Fri, 5 Oct 2007 21:48:22 +0000 (21:48 +0000)]
Fix crash with tracks/busses with more outputs than control outputs.
git-svn-id: svn://localhost/ardour2/trunk@2521
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Fri, 5 Oct 2007 12:23:17 +0000 (12:23 +0000)]
Add a label to the add midi port button in the options editor. Give the Add MIDI port dialog a slightly friendlier name.
git-svn-id: svn://localhost/ardour2/trunk@2515
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Thu, 4 Oct 2007 16:26:02 +0000 (16:26 +0000)]
Fix to stacked layering for the case when a region is dragged to overlap another. Remove unused signal LayeringChanged from Playlist. Cleanups in AudioRegion, and ensure that region envelopes cannot become empty when regions are split (and maybe in some other cases too). Empty envelopes cause crashes when e.g. AutomationList::truncate_at_start() is called.
git-svn-id: svn://localhost/ardour2/trunk@2513
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Thu, 4 Oct 2007 05:15:28 +0000 (05:15 +0000)]
Merge the two separate 'add notes to midi region' interfaces (note and midievent).
Update note range dynamically while recording to fit incoming notes.
git-svn-id: svn://localhost/ardour2/trunk@2512
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Tue, 2 Oct 2007 16:37:26 +0000 (16:37 +0000)]
Make hide all automation work again.
git-svn-id: svn://localhost/ardour2/trunk@2507
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Mon, 1 Oct 2007 17:19:09 +0000 (17:19 +0000)]
Prevent plugins appearing twice on the automation submenu.
git-svn-id: svn://localhost/ardour2/trunk@2505
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Mon, 1 Oct 2007 17:18:04 +0000 (17:18 +0000)]
Remove some apparently out-of-date code which was causing a segfault on show all automation.
git-svn-id: svn://localhost/ardour2/trunk@2504
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Sampo Savolainen [Thu, 27 Sep 2007 19:05:27 +0000 (19:05 +0000)]
Make sure plugins are activated at least once before they are cleaned up
git-svn-id: svn://localhost/ardour2/trunk@2495
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Sampo Savolainen [Tue, 25 Sep 2007 17:56:39 +0000 (17:56 +0000)]
Make sure activate() and deactivate() are never run multiple times in a
row. Make cleanup work nicely
git-svn-id: svn://localhost/ardour2/trunk@2485
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Wed, 19 Sep 2007 02:41:31 +0000 (02:41 +0000)]
Fix for incorrect directory being chosen in which to create session directory when manually entering directory in file chooser.
Fixes bug 1852 for the trunk, similar fix has already been applied to 2.0-ongoing
git-svn-id: svn://localhost/ardour2/trunk@2471
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Carl Hetherington [Thu, 13 Sep 2007 14:48:00 +0000 (14:48 +0000)]
Fix GTK warning.
git-svn-id: svn://localhost/ardour2/trunk@2464
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Tue, 11 Sep 2007 11:27:59 +0000 (11:27 +0000)]
click reset error fixed, plus some older work on sends+panners i/o counts
git-svn-id: svn://localhost/ardour2/trunk@2456
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Tue, 11 Sep 2007 11:26:39 +0000 (11:26 +0000)]
make sure that AudioRegion::set_live_state() notifies interested parties when normalization gain changes
git-svn-id: svn://localhost/ardour2/trunk@2455
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Paul Davis [Tue, 11 Sep 2007 10:43:55 +0000 (10:43 +0000)]
make OSC thread register with GUI
git-svn-id: svn://localhost/ardour2/trunk@2453
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Tue, 11 Sep 2007 03:14:32 +0000 (03:14 +0000)]
Always show CC region, whether empty or not (ie whether MidiModel contains any events for that CC or not). Can't add events though... yet....
git-svn-id: svn://localhost/ardour2/trunk@2451
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Tue, 11 Sep 2007 02:24:54 +0000 (02:24 +0000)]
Fix note range menu item initial value (it probably should be saved and restored though...).
git-svn-id: svn://localhost/ardour2/trunk@2449
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Mon, 10 Sep 2007 22:48:08 +0000 (22:48 +0000)]
Fix crash on playhead relocate in MIDI regions w/o CC data.
git-svn-id: svn://localhost/ardour2/trunk@2448
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Mon, 10 Sep 2007 22:25:22 +0000 (22:25 +0000)]
Fix note separator lines adaptation to changing track height.
git-svn-id: svn://localhost/ardour2/trunk@2447
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Mon, 10 Sep 2007 00:06:58 +0000 (00:06 +0000)]
Avoid dereferencing invalidated iterator when removing selected regions. Fixes bug 1703.
git-svn-id: svn://localhost/ardour2/trunk@2443
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:05:21 +0000 (10:05 +0000)]
Fix a misdefinition in ardour/recent_sessions.h
git-svn-id: svn://localhost/ardour2/trunk@2436
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:05:16 +0000 (10:05 +0000)]
If sys::copy_file fails, try and remove the target file before throwing an exception
git-svn-id: svn://localhost/ardour2/trunk@2435
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:05:13 +0000 (10:05 +0000)]
Use sys::path and sys::rename in Session::rename_state for portability
git-svn-id: svn://localhost/ardour2/trunk@2434
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:05:06 +0000 (10:05 +0000)]
Modify Session::load_history for portability
git-svn-id: svn://localhost/ardour2/trunk@2433
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:04:58 +0000 (10:04 +0000)]
Modify Session::save_history for portability
git-svn-id: svn://localhost/ardour2/trunk@2432
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:04:54 +0000 (10:04 +0000)]
Add function sys::rename to pbd/filesystem.h/cc. Renames a file, uses g_rename.
git-svn-id: svn://localhost/ardour2/trunk@2431
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:04:47 +0000 (10:04 +0000)]
Add history_suffix to ardour/filename_extensions.cc
git-svn-id: svn://localhost/ardour2/trunk@2430
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Sun, 9 Sep 2007 10:04:43 +0000 (10:04 +0000)]
Use std::transform with sys::basename in ARDOUR::get_file_names_no_extension
git-svn-id: svn://localhost/ardour2/trunk@2429
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Thu, 6 Sep 2007 03:38:28 +0000 (03:38 +0000)]
Fix automation region stacking.
git-svn-id: svn://localhost/ardour2/trunk@2425
d708f5d6-7413-0410-9779-
e7cbd77b26cf
David Robillard [Thu, 6 Sep 2007 02:30:39 +0000 (02:30 +0000)]
Deep "automation regions" support.
Fix zoom/height/etc changing for automation region views.
Broke smooth automation region dragging (make omelette, break eggs, etc).
git-svn-id: svn://localhost/ardour2/trunk@2424
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Doug McLain [Wed, 5 Sep 2007 20:09:35 +0000 (20:09 +0000)]
dont fill the initial gm rec, since it gets overdrawn by the metrics pixmap anyway
git-svn-id: svn://localhost/ardour2/trunk@2421
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Wed, 5 Sep 2007 02:18:49 +0000 (02:18 +0000)]
Fix opening session when manually entering path in the file chooser. Fixes bug 1853.
git-svn-id: svn://localhost/ardour2/trunk@2419
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Wed, 5 Sep 2007 01:53:51 +0000 (01:53 +0000)]
Fix source directory paths so that the session name element is "legalized" and compatible with 2.0
Fixes bug 1854.
git-svn-id: svn://localhost/ardour2/trunk@2418
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:37 +0000 (09:01 +0000)]
Remove unused header includes from ardour/session_directory.cc
git-svn-id: svn://localhost/ardour2/trunk@2414
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:35 +0000 (09:01 +0000)]
Use PBD::sys::operator/ instead of PBD::sys::path::operator/= in ARDOUR::SessionDirectory
git-svn-id: svn://localhost/ardour2/trunk@2413
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:32 +0000 (09:01 +0000)]
Add PBD::sys::operator/ to pbd/filesystem for convenient path building
git-svn-id: svn://localhost/ardour2/trunk@2412
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:31 +0000 (09:01 +0000)]
Use sys::remove instead of ::unlink in Session::remove_empty_sounds for portability
git-svn-id: svn://localhost/ardour2/trunk@2411
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:28 +0000 (09:01 +0000)]
Add ARDOUR::TapeFileMatcher class for matching filenames and use it in Session::remove_empty_sounds
git-svn-id: svn://localhost/ardour2/trunk@2410
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:25 +0000 (09:01 +0000)]
Use PBD::get_files_in_directory instead of PBD::Scanner in Session::remove_empty_sounds
git-svn-id: svn://localhost/ardour2/trunk@2409
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:22 +0000 (09:01 +0000)]
Use path::leaf instead of sys::basename in SessionDirectory::sound/midi_path
sys::basename now matches boost::filesystem behaviour so if a session name
had a dot in it the session name used in the interchange directory would be
truncated.
git-svn-id: svn://localhost/ardour2/trunk@2408
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:21 +0000 (09:01 +0000)]
Use path::leaf in sys::basename and sys::extension
git-svn-id: svn://localhost/ardour2/trunk@2407
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:19 +0000 (09:01 +0000)]
Add path::leaf method function to the PBD::sys::path class
git-svn-id: svn://localhost/ardour2/trunk@2406
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:17 +0000 (09:01 +0000)]
Add PBD::sys::extension for getting the filename extension of a file
git-svn-id: svn://localhost/ardour2/trunk@2405
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:15 +0000 (09:01 +0000)]
Modify PBD::sys::basename to match boost::filesystem behaviour and document it.
This makes this function equivalent to PBD::basename_nosuffix, sys::basename
takes a path as an argument rather than a string but that is ok as a path can
automatically constructed from a string.
git-svn-id: svn://localhost/ardour2/trunk@2404
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:12 +0000 (09:01 +0000)]
Add path::branch_path to the PBD::sys::path class
This is basically equivalent to Glib::path_get_dirname but returning an
empty string(path) if a path doesn't contain any directory components rather
than "."
git-svn-id: svn://localhost/ardour2/trunk@2403
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 09:01:09 +0000 (09:01 +0000)]
Fix to avoid overwriting the backup file of a 0.99 session when opening a session
This is equivalent to the fix applied as rev 2244 to the 2.0-ongoing branch
git-svn-id: svn://localhost/ardour2/trunk@2402
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 07:15:19 +0000 (07:15 +0000)]
Add some documentation regarding the PBD::sys namespace and my justifications for writing that code
git-svn-id: svn://localhost/ardour2/trunk@2401
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 07:15:17 +0000 (07:15 +0000)]
Change the SessionDirectory constructor to take a sys::path instead of a string
git-svn-id: svn://localhost/ardour2/trunk@2400
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 07:15:01 +0000 (07:15 +0000)]
Use sys::exists instead of g_file_test in session.cc
git-svn-id: svn://localhost/ardour2/trunk@2399
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 07:14:58 +0000 (07:14 +0000)]
Remove unused utility function elapsed_time_to_str
git-svn-id: svn://localhost/ardour2/trunk@2398
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 07:14:50 +0000 (07:14 +0000)]
Remove declaration of unused and undefined method in Session class
git-svn-id: svn://localhost/ardour2/trunk@2397
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 06:05:26 +0000 (06:05 +0000)]
Use Session::_session_dir instead of Session::_path when calling Session::setup_raid_path in Session::set_state
git-svn-id: svn://localhost/ardour2/trunk@2396
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 06:05:23 +0000 (06:05 +0000)]
Use PBD::find_file_in_search_path instead of PathScanner in ARDOUR_UI::install_actions to test for AniComp
git-svn-id: svn://localhost/ardour2/trunk@2395
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 06:05:21 +0000 (06:05 +0000)]
Remove inclusion of unused header file
git-svn-id: svn://localhost/ardour2/trunk@2394
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 06:05:19 +0000 (06:05 +0000)]
Remove inclusion of unused header file
git-svn-id: svn://localhost/ardour2/trunk@2393
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 06:05:17 +0000 (06:05 +0000)]
Remove unused constant max_layer, which is also incorrectly defined as UCHAR_MAX when layer_t is uint32_t
Defining it using std::numeric_limits<layer_t>::max() would of avoided
this inconsistancy but as it unused it is doesn't really matter I guess.
git-svn-id: svn://localhost/ardour2/trunk@2392
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 05:26:35 +0000 (05:26 +0000)]
Only show child rows for session snapshots when there is more than 1 snapshot in the recent session treeview of the NewSessionDialog
git-svn-id: svn://localhost/ardour2/trunk@2391
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 05:26:34 +0000 (05:26 +0000)]
Remove unused functions Session::possible_states
git-svn-id: svn://localhost/ardour2/trunk@2390
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 05:26:31 +0000 (05:26 +0000)]
Use ardour/session_state_utils.h in Editor::redisplay_snapshots
git-svn-id: svn://localhost/ardour2/trunk@2389
d708f5d6-7413-0410-9779-
e7cbd77b26cf
Tim Mayberry [Tue, 4 Sep 2007 05:26:28 +0000 (05:26 +0000)]
Use functions from ardour/session_state_utils.h instead of ardour/session.h in ARDOUR_UI::redisplay_recent_sessions
git-svn-id: svn://localhost/ardour2/trunk@2388
d708f5d6-7413-0410-9779-
e7cbd77b26cf