diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-09 21:37:14 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-09 21:37:14 +0000 |
commit | 627385cab45ea14f54a79e339d3059c68f806445 (patch) | |
tree | 93f3f63bb54d1f7157962f1d1085a2d49c8979da /libs/ardour/ardour/midi_model.h | |
parent | 555c7ac094d86a02b7bef85f9691cd507e19391e (diff) |
Handle overlaps better when executing DiffCommands.
git-svn-id: svn://localhost/ardour2/branches/3.0@8233 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/midi_model.h')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 532d8c0e94..83fe00567a 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -141,9 +141,9 @@ public: }; /* Currently this class only supports changes of sys-ex time, but could be expanded */ - class SysexDiffCommand : public DiffCommand { + class SysExDiffCommand : public DiffCommand { public: - SysexDiffCommand (boost::shared_ptr<MidiModel> m, const XMLNode& node); + SysExDiffCommand (boost::shared_ptr<MidiModel> m, const XMLNode& node); enum Property { Time, @@ -160,7 +160,7 @@ public: private: struct Change { boost::shared_ptr<Evoral::Event<TimeType> > sysex; - SysexDiffCommand::Property property; + SysExDiffCommand::Property property; TimeType old_time; TimeType new_time; }; @@ -172,7 +172,8 @@ public: Change unmarshal_change (XMLNode *); }; - MidiModel::NoteDiffCommand* new_note_diff_command (const std::string name="midi edit"); + MidiModel::NoteDiffCommand* new_note_diff_command (const std::string name = "midi edit"); + MidiModel::SysExDiffCommand* new_sysex_diff_command (const std::string name = "midi edit"); void apply_command (Session& session, Command* cmd); void apply_command_as_subcommand (Session& session, Command* cmd); |