Plugin::Plugin(EDL *edl, Track *track, const char *title)
: Edit(edl, track)
{
- is_plugin = 1;
this->track = track;
this->plugin_set = 0;
strcpy(this->title, title);
show = 0;
on = 1;
gui_id = -1;
- keyframes = new KeyFrames(edl, track);
+ keyframes = new KeyFrames(edl, this);
keyframes->create_objects();
}
Plugin::Plugin(EDL *edl, PluginSet *plugin_set, const char *title)
: Edit(edl, plugin_set)
{
- is_plugin = 1;
this->track = plugin_set->track;
this->plugin_set = plugin_set;
strcpy(this->title, title);
show = 0;
on = 1;
gui_id = -1;
- keyframes = new KeyFrames(edl, track);
+ keyframes = new KeyFrames(edl, this);
keyframes->create_objects();
}
delete keyframes;
}
+Edit& Plugin::operator=(Edit& edit)
+{
+ copy_from(&edit);
+ return *this;
+}
+
+Plugin& Plugin::operator=(Plugin& edit)
+{
+ copy_from(&edit);
+ return *this;
+}
+
+int Plugin::operator==(Plugin& that)
+{
+ return identical(&that);
+}
+
+int Plugin::operator==(Edit& that)
+{
+ return identical((Plugin*)&that);
+}
+
int Plugin::silence()
{
return plugin_type == PLUGIN_NONE ? 1 : 0;