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
22 #ifndef KEYFRAMEPOPUP_H
23 #define KEYFRAMEPOPUP_H
26 #include "keyframegui.inc"
27 #include "mwindow.inc"
28 #include "mwindowgui.inc"
30 #include "plugindialog.inc"
31 #include "keyframe.inc"
32 #include "automation.inc"
35 class KeyframePopupDelete;
36 class KeyframePopupHide;
37 class KeyframePopupCopy;
38 class KeyframePopupLinear;
39 class KeyframePopupBezier;
40 class KeyframePopupEdit;
42 class KeyframePopup : public BC_PopupMenu
45 KeyframePopup(MWindow *mwindow, MWindowGUI *gui);
48 void create_objects();
49 int update(Plugin *plugin, KeyFrame *keyframe);
50 int update(Automation *automation, Autos *autos, Auto *auto_keyframe);
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;
62 KeyframePopupLinear *key_linear;
63 KeyframePopupBezier *key_bezier;
64 KeyframePopupDelete *key_delete;
65 KeyframePopupHide *key_hide;
66 KeyframePopupCopy *key_copy;
67 KeyframePopupEdit *edit;
70 class KeyframePopupLinear : public BC_MenuItem
73 KeyframePopupLinear(MWindow *mwindow, KeyframePopup *popup);
74 ~KeyframePopupLinear();
81 class KeyframePopupBezier : public BC_MenuItem
84 KeyframePopupBezier(MWindow *mwindow, KeyframePopup *popup);
85 ~KeyframePopupBezier();
92 class KeyframePopupDelete : public BC_MenuItem
95 KeyframePopupDelete(MWindow *mwindow, KeyframePopup *popup);
96 ~KeyframePopupDelete();
100 KeyframePopup *popup;
103 class KeyframePopupHide : public BC_MenuItem
106 KeyframePopupHide(MWindow *mwindow, KeyframePopup *popup);
110 KeyframePopup *popup;
113 class KeyframePopupCopy : public BC_MenuItem
116 KeyframePopupCopy(MWindow *mwindow, KeyframePopup *popup);
120 KeyframePopup *popup;
124 class KeyframePopupEdit : public BC_MenuItem
127 KeyframePopupEdit(MWindow *mwindow, KeyframePopup *popup);
131 KeyframePopup *popup;