initial commit
[goodguy/history.git] / cinelerra-5.0 / cinelerra / keyframepopup.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  * 
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.
10  * 
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.
15  * 
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
19  * 
20  */
21
22 #ifndef KEYFRAMEPOPUP_H
23 #define KEYFRAMEPOPUP_H
24
25 #include "guicast.h"
26 #include "keyframegui.inc"
27 #include "mwindow.inc"
28 #include "mwindowgui.inc"
29 #include "plugin.inc"
30 #include "plugindialog.inc"
31 #include "keyframe.inc"
32 #include "automation.inc" 
33
34
35 class KeyframePopupDelete;
36 class KeyframePopupHide;
37 class KeyframePopupCopy;
38 class KeyframePopupLinear;
39 class KeyframePopupBezier;
40 class KeyframePopupEdit;
41
42 class KeyframePopup : public BC_PopupMenu
43 {
44 public:
45         KeyframePopup(MWindow *mwindow, MWindowGUI *gui);
46         ~KeyframePopup();
47
48         void create_objects();
49         int update(Plugin *plugin, KeyFrame *keyframe);
50         int update(Automation *automation, Autos *autos, Auto *auto_keyframe);
51
52         MWindow *mwindow;
53         MWindowGUI *gui;
54 // Acquired through the update command as the plugin currently being operated on
55         Plugin *keyframe_plugin;
56         Autos *keyframe_autos;
57         Automation *keyframe_automation;
58         Auto *keyframe_auto;
59         
60
61         
62         KeyframePopupLinear *key_linear;
63         KeyframePopupBezier *key_bezier;
64         KeyframePopupDelete *key_delete;
65         KeyframePopupHide *key_hide;
66         KeyframePopupCopy *key_copy;
67         KeyframePopupEdit *edit;
68 };
69
70 class KeyframePopupLinear : public BC_MenuItem
71 {
72 public:
73         KeyframePopupLinear(MWindow *mwindow, KeyframePopup *popup);
74         ~KeyframePopupLinear();
75         int handle_event();
76         
77         MWindow *mwindow;
78         KeyframePopup *popup;
79 };
80
81 class KeyframePopupBezier : public BC_MenuItem
82 {
83 public:
84         KeyframePopupBezier(MWindow *mwindow, KeyframePopup *popup);
85         ~KeyframePopupBezier();
86         int handle_event();
87         
88         MWindow *mwindow;
89         KeyframePopup *popup;
90 };
91
92 class KeyframePopupDelete : public BC_MenuItem
93 {
94 public:
95         KeyframePopupDelete(MWindow *mwindow, KeyframePopup *popup);
96         ~KeyframePopupDelete();
97         int handle_event();
98         
99         MWindow *mwindow;
100         KeyframePopup *popup;
101 };
102
103 class KeyframePopupHide : public BC_MenuItem
104 {
105 public:
106         KeyframePopupHide(MWindow *mwindow, KeyframePopup *popup);
107         int handle_event();
108         
109         MWindow *mwindow;
110         KeyframePopup *popup;
111 };
112
113 class KeyframePopupCopy : public BC_MenuItem
114 {
115 public:
116         KeyframePopupCopy(MWindow *mwindow, KeyframePopup *popup);
117         int handle_event();
118         
119         MWindow *mwindow;
120         KeyframePopup *popup;
121 };
122
123
124 class KeyframePopupEdit : public BC_MenuItem
125 {
126 public:
127         KeyframePopupEdit(MWindow *mwindow, KeyframePopup *popup);
128         int handle_event();
129         
130         MWindow *mwindow;
131         KeyframePopup *popup;
132 };
133
134
135  #endif