diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-16 17:20:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-16 17:20:10 +0000 |
commit | 5ac22e9095d5f851b5238029e3f813bc86fe2280 (patch) | |
tree | 51460c63aa9ace692dedceb01494f2a92d4bc364 /libs/ardour/globals.cc | |
parent | 9429401f11ffa0ee1729dbdc5e14e87cf06e2dc1 (diff) |
Add new SharedStatefulProperty which manages a shared_ptr to
some Stateful object, and a subclass to use this for
AutomationList. SharedStatefulProperty will manage undo / redo
using full copies of the XML state, like MementoCommand,
but does it within the Property undo system.
git-svn-id: svn://localhost/ardour2/branches/3.0@12740 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/globals.cc')
-rw-r--r-- | libs/ardour/globals.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libs/ardour/globals.cc b/libs/ardour/globals.cc index 35aef9dc86..1c6b98155c 100644 --- a/libs/ardour/globals.cc +++ b/libs/ardour/globals.cc @@ -115,34 +115,6 @@ extern void setup_enum_writer (); */ PBD::PropertyChange ARDOUR::bounds_change; -namespace ARDOUR { - namespace Properties { - - /* the envelope and fades are not scalar items and so - currently (2010/02) are not stored using Property. - However, these descriptors enable us to notify - about changes to them via PropertyChange. - - Declared in ardour/audioregion.h ... - */ - - PBD::PropertyDescriptor<bool> fade_in; - PBD::PropertyDescriptor<bool> fade_out; - PBD::PropertyDescriptor<bool> envelope; - } -} - -void -ARDOUR::make_property_quarks () -{ - Properties::fade_in.property_id = g_quark_from_static_string (X_("fade_in_FAKE")); - DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for fade_in_FAKE = %1\n", Properties::fade_in.property_id)); - Properties::fade_out.property_id = g_quark_from_static_string (X_("fade_out_FAKE")); - DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for fade_out_FAKE = %1\n", Properties::fade_out.property_id)); - Properties::envelope.property_id = g_quark_from_static_string (X_("envelope_FAKE")); - DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for envelope_FAKE = %1\n", Properties::envelope.property_id)); -} - void setup_hardware_optimization (bool try_optimization) { @@ -248,7 +220,6 @@ ARDOUR::init (bool use_windows_vst, bool try_optimization) PBD::ID::init (); SessionEvent::init_event_pool (); - make_property_quarks (); SessionObject::make_property_quarks (); Region::make_property_quarks (); MidiRegion::make_property_quarks (); |