summaryrefslogtreecommitdiff
path: root/libs/ardour/session_state.cc
AgeCommit message (Collapse)Author
2012-07-25convert from Glib:: to Glib::Threads for all thread-related APIPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@13084 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-07-19more work on RID and editor/mixer order matching; when a track/bus is hidden ↵Paul Davis
in the GUI controlling RID, it gets a extremely large RID to prevent it showing up on a control surface (but ... for now ... is still visible in the other GUI, even if "sync order between mixer + editor" is enabled); change font in editor route list git-svn-id: svn://localhost/ardour2/branches/3.0@13054 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-28further efforts at cleaning up the design of the interaction/relationship ↵Paul Davis
between route sort order keys and remote control IDs git-svn-id: svn://localhost/ardour2/branches/3.0@12962 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-27first pass at the big rethink of managing sort order keys for editor and ↵Paul Davis
mixer. this appears to work, but remote control IDs are not yet correct (frequently off by one because of the presence of the master bus in the editor) git-svn-id: svn://localhost/ardour2/branches/3.0@12953 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-26Remove unused named selection / chunk code.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12939 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-25drastic rethink of the relationship between remote control ID and route ↵Paul Davis
order keys. unless the user explicitly switches to UserOrdered, Route::_remote_control_id is an unallocated pointer, and Route::remote_control_id() simply returns a value based on the relevant order_key() value. Also, change the key used in the Route::order_keys std::map<> from a string to an enum, since there is no evidence that we are benefitting from the theoretical benefit of using a string. Generally tidy up allocation of order keys so that the master and monitor busses always get a "special" MixerSort key value, based on the MMC ID for master (already defined within Ardour), and all other tracks/busses start at zero. Syncing keys between editor and mixer will leave the MixerSort key for the master and monitor bus alone, reflecting the fact that we display these in their own distinct parts of the GUI and they are not orderable like other tracks or busses within the mixer window git-svn-id: svn://localhost/ardour2/branches/3.0@12923 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use SessionDirectory class directly rather than ARDOUR::create_session_directoryTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12908 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Remove unused or unnecessary header includesTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12905 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Remove unused header includeTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12900 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string and Glib::build_filename in Session::save_templateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12899 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string and Glib::build_filename in Session::path_from_region_nameTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12898 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string and Glib::build_filename in Session::load_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12897 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string and Glib::build_filename in Session::save_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12896 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string instead of sys::path in Session::jack_session_eventTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12895 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string instead of PBD::sys::path in Session::restore_historyTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12894 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_mkdir_with_parents instead of sys::create_directoriesTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12891 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Replace use of PBD::sys::exists with Glib equivalentTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12882 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_rename instead of PBD::sys::rename in Session::save_historyTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12875 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_rename instead of PBD::sys::rename in Session::rename_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12874 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_remove instead of PBD::sys::remove in Session::save_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12872 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_remove instead of sys::remove in Session::save_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12871 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use g_remove instead of sys::remove in Session::remove_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12870 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Don't try to remove pending state file if the file doesn't existTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12869 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use Glib file utility functions in Session::remove_pending_capture_stateTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12868 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Move file utility function into pbd/file_utils.h and into PBD namespaceTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12865 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Make PBD::sys::exists_and_writable take a string instead of sys::pathTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12864 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Move three file utility functions from pbd/filesystem.h to pbd/file_utils.hTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12863 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Move PBD::sys::copy_file/s into pbd/file_utils.h and PBD:: namespaceTim Mayberry
Copy files no longer depends on PBD::sys::path so move it git-svn-id: svn://localhost/ardour2/branches/3.0@12853 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use giomm in PBD::sys::copy_file and change function signatureTim Mayberry
now returns bool to indicate successful copy rather than throw and takes strings as args git-svn-id: svn://localhost/ardour2/branches/3.0@12850 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Replace use of PBD::sys::path in ardour/template_utils.hTim Mayberry
some associated changes from not including pbd/filesystem.h in template_utils.h git-svn-id: svn://localhost/ardour2/branches/3.0@12833 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Replace use of PBD::sys::path in ardour/session_state_utils.hTim Mayberry
git-svn-id: svn://localhost/ardour2/branches/3.0@12832 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23Use std::string instead of PBD::sys::path in pbd/search_path.h, ↵Tim Mayberry
pbd/file_utils.h and ardour/session_dir.h git-svn-id: svn://localhost/ardour2/branches/3.0@12829 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-22don't try to backup sessions from older versions of ardour that are also ↵Paul Davis
read-only git-svn-id: svn://localhost/ardour2/branches/3.0@12823 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-22introduce the idea of a "default transport speed", used whenever ↵Paul Davis
Session::start_transport() is called. Only the shuttle controller alters it, and even that only alters it in wheel mode, which means that stopping the transport does not rever the default speed back to zero. To get back to zero either switch the shuttle controller back to sprung mode, or change the speed back to zero (fixes #451 ... yes, really, a 3 digit bug fixed!) git-svn-id: svn://localhost/ardour2/branches/3.0@12819 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-16never try to remove state from a read-only sessionPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12735 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-12Handle failure of statfs to return available disc space on Samba shares ↵Carl Hetherington
mounted via GVFS, reporting available space as unknown in this case (#4657). git-svn-id: svn://localhost/ardour2/branches/3.0@12674 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-28Add path_is_within to decide if a path is within a givenCarl Hetherington
directory, taking symlinks into account, and use it to decide whether a file is within the session folder. Should fix #4552. git-svn-id: svn://localhost/ardour2/branches/3.0@12468 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-24Remove over 500 unnecessary includes (including 54 of session.h).David Robillard
It's slightly possible that this causes trivial build failures on different configurations, but otherwise shouldn't cause any problems (i.e. no actual changes other than include/naming/namespace stuff). I deliberately avoided removing libardour-config.h since this can mysteriously break things, though a few of those do seem to be unnecessary. This commit only targets includes of ardour/*.h. There is also a very large number of unnecessary includes of stuff in gtk2_ardour; tackling that should also give a big improvement in build time when things are modified. git-svn-id: svn://localhost/ardour2/branches/3.0@12420 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-17Fix unnecessary backups of session files.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12325 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-28Fix detection of 2.X sessions.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12116 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-19attempt to fix confusion over session file version numbering and so forthPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@12033 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-18add User metadata. user metadata is edited from the same dialog and ↵Ben Loftis
read/writable using the same mechanism as session metadata, but it is stored in the ardour.rc file instead of with the session. Importing metadata from another session does not change user metadata. SessionMetadata is now a singleton that is available to the session object and the various config objects. git-svn-id: svn://localhost/ardour2/branches/3.0@12014 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-16Fairly major change to the way in which crossfades are handled;Carl Hetherington
they are now done with region fades, rather than separate objects. After this commit, Ardour will try to convert your session files to the new crossfade format, but will make a backup in your session folder first. If you have works in progress using Ardour 3 it is ***STRONGLY RECOMMENDED*** that you back up session files before updating to this commit. git-svn-id: svn://localhost/ardour2/branches/3.0@11986 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-11Remove some unused parameters.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11917 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-07Fix operator typo (#4824).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11812 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-04-05provide an RC configuration variable to "shadow" ↵Paul Davis
Evoral::ControlList::thinning_factor git-svn-id: svn://localhost/ardour2/branches/3.0@11796 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-03-07Patch from colinf to fix auto-connect of bus outputs (#4758).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@11615 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-07fix coloring of global rec-enable button when actively recording; fix ↵Paul Davis
related issue when loading a session with an already rec-enabled track git-svn-id: svn://localhost/ardour2/branches/3.0@11468 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-02-06attempt to stop sending MMC/MTC while exporting or freewheeling for any reasonPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@11457 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-01-28Use new Lilv state API to save LV2 plugin state.David Robillard
This saves a complete history of plugin state, i.e. save is no longer destructive. However, data is shared as much as possible, and new state is only written if the plugin state has actually changed. There is exactly one link in the entire session directory to any external file, so archiving will work with minimal copying. Not sure sure about the naming of the "externals" directory, but I have nothing better... git-svn-id: svn://localhost/ardour2/branches/3.0@11372 d708f5d6-7413-0410-9779-e7cbd77b26cf