summaryrefslogtreecommitdiff
path: root/libs
AgeCommit message (Collapse)Author
2006-08-25use shared_ptr<> for all region handlingPaul Davis
git-svn-id: svn://localhost/ardour2/trunk@852 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-24Just some whitespace fixes from where it looks like I've been workingTim Mayberry
without my editor configured correctly and haven't noticed. Sorry about that. git-svn-id: svn://localhost/ardour2/trunk@849 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-24* [Modified] audioengine.ccTim Mayberry
Connect to jack before we start the metering thread in case the connect fails and an exception is thrown. * [Modified] SConstruct Change back the pkg-config argument for the SoundTouch library to the name used in the upstream tarball. Sorry drobilla, perhaps there is a way to handle both. git-svn-id: svn://localhost/ardour2/trunk@848 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-17fix for type error on 64 bit systemsPaul Davis
git-svn-id: svn://localhost/ardour2/trunk@837 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-17further optimizations for multiple-track-at-once addition. as in "whoah!"Paul Davis
git-svn-id: svn://localhost/ardour2/trunk@836 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-16make adding multiple tracks more efficient (a *lot* more efficient)Paul Davis
git-svn-id: svn://localhost/ardour2/trunk@834 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-16Merged fix from cocoa branch -r 831.Taybin Rutkin
git-svn-id: svn://localhost/ardour2/trunk@832 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-16new filePaul Davis
git-svn-id: svn://localhost/ardour2/trunk@831 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-16RCU-ification of AudioEngine port list, and DiskStreams. not well tested, ↵Paul Davis
but basically functional. better to get this in now rather than later. git-svn-id: svn://localhost/ardour2/trunk@828 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-15Renamed id to _id for ObjC compatibility.Taybin Rutkin
git-svn-id: svn://localhost/ardour2/trunk@826 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12less annoying debugHans Fugal
git-svn-id: svn://localhost/ardour2/trunk@816 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12Remove -x from ardbg, fix bug in memento command factoryHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@814 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12 r338@gandalf: fugalh | 2006-08-12 16:30:19 -0600Hans Fugal
Oops, forgot one git-svn-id: svn://localhost/ardour2/branches/undo@813 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12merge from trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@802 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12 r329@gandalf: fugalh | 2006-08-12 15:54:49 -0600Hans Fugal
Cleaning up some printf debugging git-svn-id: svn://localhost/ardour2/branches/undo@801 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12 r321@gandalf: fugalh | 2006-08-12 15:48:28 -0600Hans Fugal
Behold serialized undo. git-svn-id: svn://localhost/ardour2/branches/undo@799 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12 r316@gandalf: fugalh | 2006-08-11 17:06:48 -0600Hans Fugal
Reconstitution. Comiples, untested. git-svn-id: svn://localhost/ardour2/branches/undo@797 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-12merge from trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@794 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-11 r308@gandalf: fugalh | 2006-08-11 08:49:54 -0600Hans Fugal
OS X MacTypes.h/libgnomecanvasmm Rect problem workaround when COREAUDIO=0 git-svn-id: svn://localhost/ardour2/branches/undo@788 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-10history snapshot nameHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@784 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-10Can pass a core to ardbg now. Fixed sometimes crash on saving history byHans Fugal
creating a memory leak(?) that will go away with the transition of XMLNode* to shared_ptr<>. A few bits toward restoring history from XML. git-svn-id: svn://localhost/ardour2/branches/undo@779 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-09merge from trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-09 r283@gandalf: fugalh | 2006-08-09 08:13:37 -0600Hans Fugal
Save state basics, including adding PBD::ID to the delinquents. Compiles but needs to be tested (because I can't get the whole thing to compile on OSX due to the Rect problem). git-svn-id: svn://localhost/ardour2/branches/undo@769 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-09 r274@gandalf: fugalh | 2006-08-07 19:53:48 -0600Hans Fugal
Nuke Serializable in favor of Stateful. Got rid of some warnings with stub code. git-svn-id: svn://localhost/ardour2/branches/undo@767 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-08pull from trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@764 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-04 r269@gandalf: fugalh | 2006-08-03 20:18:05 -0600Hans Fugal
Trunk merge conflicts resolved git-svn-id: svn://localhost/ardour2/branches/undo@756 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-08-03 r260@gandalf: fugalh | 2006-08-03 15:53:50 -0600Hans Fugal
It compiles and runs and seems to still work. Still needed is the actual serialization. Time to merge back to trunk so things can be tested by all. git-svn-id: svn://localhost/ardour2/branches/undo@754 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-29Compiles, but doesn't link. The link errors are mostly expected and areHans Fugal
tomorrow's task. git-svn-id: svn://localhost/ardour2/branches/undo@719 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-28 r209@gandalf: fugalh | 2006-07-28 17:38:21 -0600Hans Fugal
global {solo,mute,record enable,metering} state commands. Same philosophy as the MementoCommand but using only the appropriate state and not the entire state of the session. git-svn-id: svn://localhost/ardour2/branches/undo@718 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-27 r205@gandalf: fugalh | 2006-07-26 18:11:47 -0600Hans Fugal
More Command conversions git-svn-id: svn://localhost/ardour2/branches/undo@697 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-26 r199@gandalf: fugalh | 2006-07-26 17:22:38 -0600Hans Fugal
Memento(Redo|Undo)Command has a noop for the undo or redo respectively, and we don't need both before and after state. This is primarily useful for drag start/finish callbacks, and really only makes sense where wrapped by (begin|commit)_reversible_command (a composite command). Also a few more "normal" MementoCommands. git-svn-id: svn://localhost/ardour2/branches/undo@695 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-25 r191@gandalf: fugalh | 2006-07-24 19:50:10 -0600Hans Fugal
All the obvious MementoCommand grunt work. Now there's some add_undo/add_redo_no_execute sprinkled around where one is separated from the other (e.g. in different callbacks) or perhaps even where there's only an undo and no redo. Also some sigc-based undo/redo pairs that probably need their own Command class. git-svn-id: svn://localhost/ardour2/branches/undo@692 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-18 r189@gandalf: fugalh | 2006-07-18 17:54:25 -0600Hans Fugal
This is the first swath of changes, replacing add_undo with MementoCommand pattern, through most of the editor_mouse.cc file. However there were a few places that weren't symmetrical that I need to think about. The question is whether to tweak things so that they are symmetrical (add_undo paired with add_redo*), or to allow Commands to not be undoable or not be redoable. Your thoughts are welcome. git-svn-id: svn://localhost/ardour2/branches/undo@685 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-18 r184@gandalf: fugalh | 2006-07-17 19:02:10 -0600Hans Fugal
(begin|commit)_reversible_command in Editor and Session git-svn-id: svn://localhost/ardour2/branches/undo@684 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-18 r183@gandalf: fugalh | 2006-07-17 19:01:39 -0600Hans Fugal
Use XMLNode instead of templating memento types. git-svn-id: svn://localhost/ardour2/branches/undo@683 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-11 r168@gandalf: fugalh | 2006-07-11 16:29:22 -0600Hans Fugal
I just had an epiphany. I tried so many ways to make saving function name and args work, it never occured to me that you could just as easily save undo information as a pair of mementos, even in the Command-based structure we agreed on. Since many (read: almost all) existing undo commands take this form: begin_reversible_command (_("change fade in length")); session->add_undo (arv->region.get_memento()); arv->region.set_fade_in_length (fade_length); session->add_redo_no_execute (arv->region.get_memento()); commit_reversible_command (); We are already doing the save a memento before and after work. All we need to do is instantiate an appropriate instance of MementoCommand. So the above becomes: begin_reversible_command (_("change fade in length")); MementoCommand<arv_region_t, arv_region_memento_t> before, after; before = arv->region.get_memento(); arv->region.set_fade_in_length (fade_length); after = arv->region.get_memento(); session->add_command(arv->region, before, after); commit_reversible_command (); (With apologies for being too lazy to go look up what arv_region_t and arv_region_memento_t are) Note that the true command approach is still possible, and encouraged (both by dictate and design). git-svn-id: svn://localhost/ardour2/branches/undo@680 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-07-06 r162@gandalf: fugalh | 2006-06-30 19:30:58 -0600Hans Fugal
some macros for MementoCommand() git-svn-id: svn://localhost/ardour2/branches/undo@666 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-30 r155@gandalf: fugalh | 2006-06-30 11:21:45 -0600Hans Fugal
MementoCommand - for the lazy at heart git-svn-id: svn://localhost/ardour2/branches/undo@661 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-30 r154@gandalf: fugalh | 2006-06-30 11:16:27 -0600Hans Fugal
fixed guard defines git-svn-id: svn://localhost/ardour2/branches/undo@660 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-29 r132@gandalf: fugalh | 2006-06-29 12:45:16 -0600Hans Fugal
Coding for undo/redo starts in earnest. Paul and I decided to go with a standard gang of four Command pattern, with serialization. This overcomes the terrible difficulties we were having with static type checking and the sigc++ approach. I'm adding the requirement that each command support undo, simplifying undo/redo. NOTE that an important fallout here is that Command::operator()() is the opposite of the old UndoAction::operator()(), i.e. Command::operator()() is execute/redo, and Command::undo() is undo. This commit is a reworking of the infrastructure, and won't compile until creating Command subclasses for the various commands being performed. That is primarily where you find get_memento and/or calls to add_(undo|redo.*). git-svn-id: svn://localhost/ardour2/branches/undo@655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-29 r115@gandalf: fugalh | 2006-06-23 12:36:05 -0600Hans Fugal
pass the object instead of an id git-svn-id: svn://localhost/ardour2/branches/undo@654 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-29merging trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@652 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-22Merging from trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@638 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-22 r111@gandalf: fugalh | 2006-06-22 17:38:14 -0600Hans Fugal
progress on UndoCommand constructors git-svn-id: svn://localhost/ardour2/branches/undo@637 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-22 r80@gandalf: fugalh | 2006-06-22 16:37:01 -0600Hans Fugal
reworked templatization of UndoCommand git-svn-id: svn://localhost/ardour2/branches/undo@636 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-15 r59@gandalf: fugalh | 2006-06-15 12:16:20 -0600Hans Fugal
renamed UndoCommand to UndoTransaction, and created new UndoCommand class and its templated subclass SlotCommand. Those two are still in considerable flux. git-svn-id: svn://localhost/ardour2/branches/undo@606 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-14pulling trunkHans Fugal
git-svn-id: svn://localhost/ardour2/branches/undo@586 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-07 r42@gandalf: fugalh | 2006-06-07 17:08:39 -0600Hans Fugal
Memento skeleton. RFC Compiles, but obviously somewhat unimplemented. git-svn-id: svn://localhost/ardour2/branches/undo@572 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-03 r20@gandalf: fugalh | 2006-06-02 18:14:26 -0600Hans Fugal
change_bit bounds check git-svn-id: svn://localhost/ardour2/trunk@561 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-06-02Remove needless hbox in panner, get rid of some warnings in ↵Nick Mainsbridge
editor_rulers.cc, vst_pluginui.cc should compile, updated shuttle patch from Reuben Martin, get rid of extra include in ardour/vst_plugin.h git-svn-id: svn://localhost/ardour2/trunk@559 d708f5d6-7413-0410-9779-e7cbd77b26cf