4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 #include "keyframe.inc"
33 #include "pluginautos.inc"
34 #include "sharedlocation.inc"
37 class PluginSet : public Edits
40 PluginSet(EDL *edl, Track *track);
43 virtual void synchronize_params(PluginSet *plugin_set);
44 virtual PluginSet& operator=(PluginSet& plugins);
45 virtual Plugin* create_plugin() { return 0; };
46 // Returns the point to restart background rendering at.
47 // -1 means nothing changed.
48 void clear_keyframes(int64_t start, int64_t end);
49 // Clear edits only for a handle modification
50 void clear_recursive(int64_t start, int64_t end);
51 void shift_keyframes_recursive(int64_t position, int64_t length);
52 void shift_effects_recursive(int64_t position, int64_t length, int edit_autos);
53 void clear(int64_t start, int64_t end, int edit_autos);
54 void copy_from(PluginSet *src);
55 void copy(int64_t start, int64_t end, FileXML *file);
56 void copy_keyframes(int64_t start,
61 void paste_keyframes(int64_t start,
66 // Return the nearest boundary of any kind in the plugin edits
67 int64_t plugin_change_duration(int64_t input_position,
70 void shift_effects(int64_t start, int64_t length, int edit_autos);
71 Edit* insert_edit_after(Edit *previous_edit);
73 // For testing output equivalency when a new pluginset is added.
74 Plugin* get_first_plugin();
75 // The plugin set number in the track
77 void save(FileXML *file);
78 void load(FileXML *file, uint32_t load_flags);
79 void dump(FILE *fp=stdout);
82 // Insert a new plugin
83 Plugin* insert_plugin(const char *title,
84 int64_t unit_position,
87 SharedLocation *shared_location,
88 KeyFrame *default_keyframe,
91 PluginAutos *automation;