r668: Configure.in and autogen.sh cleanup based on ideas by giskard.
[cinelerra_cv.git] / cinelerra / transition.h
blobed10f0d5d4cb92b05864afc458f5eb7f972b19d0
1 #ifndef TRANSITION_H
2 #define TRANSITION_H
4 class PasteTransition;
6 #include "edit.inc"
7 #include "filexml.inc"
8 #include "mwindow.inc"
9 #include "messages.inc"
10 #include "plugin.h"
11 #include "sharedlocation.h"
13 class TransitionMenuItem : public BC_MenuItem
15 public:
16 TransitionMenuItem(MWindow *mwindow, int audio, int video);
17 ~TransitionMenuItem();
18 int handle_event();
19 int audio;
20 int video;
21 // PasteTransition *thread;
24 class PasteTransition : public Thread
26 public:
27 PasteTransition(MWindow *mwindow, int audio, int video);
28 ~PasteTransition();
30 void run();
32 MWindow *mwindow;
33 int audio, video;
37 class Transition : public Plugin
39 public:
40 Transition(EDL *edl, Edit *edit, char *title, long unit_length);
42 Edit *edit;
46 void save_xml(FileXML *file);
47 void load_xml(FileXML *file);
52 Transition(Transition *that, Edit *edit);
53 ~Transition();
55 KeyFrame* get_keyframe();
56 int reset_parameters();
57 int update_derived();
58 Transition& operator=(Transition &that);
59 Plugin& operator=(Plugin &that);
60 Edit& operator=(Edit &that);
61 int operator==(Transition &that);
62 int operator==(Plugin &that);
63 int operator==(Edit &that);
64 int identical(Transition *that);
66 // Only the show value from the attachment point is used.
67 int set_show_derived(int value) {};
69 int popup_transition(int x, int y);
70 // Update the widgets after loading
71 int update_display();
72 // Update edit after attaching
73 int update_edit(int is_loading);
74 char* default_title();
75 void dump();
77 private:
78 // Only used by operator= and copy constructor
79 void copy_from(Transition *that);
82 #endif