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 Plugin* create_plugin() { return 0; };
45 // Returns the point to restart background rendering at.
46 // -1 means nothing changed.
47 void clear_keyframes(int64_t start, int64_t end);
48 // Clear edits only for a handle modification
49 void clear_recursive(int64_t start, int64_t end);
50 void shift_keyframes_recursive(int64_t position, int64_t length);
51 void shift_effects_recursive(int64_t position, int64_t length, int edit_autos);
52 void clear(int64_t start, int64_t end, int edit_autos);
53 void copy_from(PluginSet *src);
54 void copy(int64_t start, int64_t end, FileXML *file);
55 void copy_keyframes(int64_t start, int64_t end, FileXML *file,
56 int use_default, int active_only);
57 void paste_keyframes(int64_t start, int64_t length, FileXML *file,
58 int use_default, int active_only);
59 void paste_silence(int64_t start, int64_t end, int edit_autos);
60 // Return the nearest boundary of any kind in the plugin edits
61 int64_t plugin_change_duration(int64_t input_position,
64 KeyFrame *nearest_keyframe(int64_t pos, int dir);
65 void shift_effects(int64_t start, int64_t length, int edit_autos);
66 Edit* insert_edit_after(Edit *previous_edit);
68 // For testing output equivalency when a new pluginset is added.
69 Plugin* get_first_plugin();
70 // The plugin set number in the track
72 void save(FileXML *file);
73 void load(FileXML *file, uint32_t load_flags);
75 void dump(FILE *fp=stdout);
77 // Insert a new plugin
78 Plugin* insert_plugin(const char *title,
79 int64_t unit_position,
82 SharedLocation *shared_location,
83 KeyFrame *default_keyframe,
86 PluginAutos *automation;