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);
67 void save_xml(FileXML *file);
68 void load_xml(FileXML *file);
70 Transition(Transition *that, Edit *edit);
72 int is_transition() { return 1; }
74 KeyFrame* get_keyframe();
75 int reset_parameters();
77 Transition& operator=(Transition &that);
78 Plugin& operator=(Plugin &that);
79 Edit& operator=(Edit &that);
80 int operator==(Transition &that);
81 int operator==(Plugin &that);
82 int operator==(Edit &that);
83 int identical(Transition *that);
85 // Only the show value from the attachment point is used.
86 int set_show_derived(int value) { return 0; }
88 int popup_transition(int x, int y);
89 // Update the widgets after loading
91 // Update edit after attaching
92 int update_edit(int is_loading);
93 const char* default_title();
97 // Only used by operator= and copy constructor
98 void copy_from(Transition *that);