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
25 class PasteTransition;
31 #include "filexml.inc"
32 #include "mwindow.inc"
33 #include "messages.inc"
35 #include "sharedlocation.h"
37 class TransitionMenuItem : public BC_MenuItem
40 TransitionMenuItem(MWindow *mwindow, int audio, int video);
41 ~TransitionMenuItem();
45 // PasteTransition *thread;
48 class PasteTransition : public Thread
51 PasteTransition(MWindow *mwindow, int audio, int video);
61 class Transition : public Plugin
64 Transition(EDL *edl, Edit *edit, const char *title, long unit_length);
70 void save_xml(FileXML *file);
71 void load_xml(FileXML *file);
76 Transition(Transition *that, Edit *edit);
79 KeyFrame* get_keyframe();
80 int reset_parameters();
82 Transition& operator=(Transition &that);
83 Plugin& operator=(Plugin &that);
84 Edit& operator=(Edit &that);
85 int operator==(Transition &that);
86 int operator==(Plugin &that);
87 int operator==(Edit &that);
88 int identical(Transition *that);
90 // Only the show value from the attachment point is used.
91 int set_show_derived(int value) { return 0; }
93 int popup_transition(int x, int y);
94 // Update the widgets after loading
96 // Update edit after attaching
97 int update_edit(int is_loading);
98 const char* default_title();
102 // Only used by operator= and copy constructor
103 void copy_from(Transition *that);