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, int64_t end, FileXML *file,
57 int use_default, int active_only);
58 void paste_keyframes(int64_t start, int64_t length, FileXML *file,
59 int use_default, int active_only);
60 void paste_silence(int64_t start, int64_t end, int edit_autos);
61 // Return the nearest boundary of any kind in the plugin edits
62 int64_t plugin_change_duration(int64_t input_position,
65 KeyFrame *nearest_keyframe(int64_t pos, int dir);
66 void shift_effects(int64_t start, int64_t length, int edit_autos);
67 Edit* insert_edit_after(Edit *previous_edit);
69 // For testing output equivalency when a new pluginset is added.
70 Plugin* get_first_plugin();
71 // The plugin set number in the track
73 void save(FileXML *file);
74 void load(FileXML *file, uint32_t load_flags);
76 void dump(FILE *fp=stdout);
78 // Insert a new plugin
79 Plugin* insert_plugin(const char *title,
80 int64_t unit_position,
83 SharedLocation *shared_location,
84 KeyFrame *default_keyframe,
87 PluginAutos *automation;