/* * CINELERRA * Copyright (C) 2008 Adam Williams * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #ifndef KEYFRAMEPOPUP_H #define KEYFRAMEPOPUP_H #include "guicast.h" #include "keyframegui.inc" #include "mwindow.inc" #include "mwindowgui.inc" #include "plugin.inc" #include "plugindialog.inc" #include "keyframe.inc" #include "automation.inc" class KeyframePopupDelete; class KeyframePopupHide; class KeyframePopupCopy; class KeyframePopupLinear; class KeyframePopupBezier; class KeyframePopupEdit; class KeyframePopup : public BC_PopupMenu { public: KeyframePopup(MWindow *mwindow, MWindowGUI *gui); ~KeyframePopup(); void create_objects(); int update(Plugin *plugin, KeyFrame *keyframe); int update(Automation *automation, Autos *autos, Auto *auto_keyframe); MWindow *mwindow; MWindowGUI *gui; // Acquired through the update command as the plugin currently being operated on Plugin *keyframe_plugin; Autos *keyframe_autos; Automation *keyframe_automation; Auto *keyframe_auto; KeyframePopupLinear *key_linear; KeyframePopupBezier *key_bezier; KeyframePopupDelete *key_delete; KeyframePopupHide *key_hide; KeyframePopupCopy *key_copy; KeyframePopupEdit *edit; }; class KeyframePopupLinear : public BC_MenuItem { public: KeyframePopupLinear(MWindow *mwindow, KeyframePopup *popup); ~KeyframePopupLinear(); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; class KeyframePopupBezier : public BC_MenuItem { public: KeyframePopupBezier(MWindow *mwindow, KeyframePopup *popup); ~KeyframePopupBezier(); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; class KeyframePopupDelete : public BC_MenuItem { public: KeyframePopupDelete(MWindow *mwindow, KeyframePopup *popup); ~KeyframePopupDelete(); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; class KeyframePopupHide : public BC_MenuItem { public: KeyframePopupHide(MWindow *mwindow, KeyframePopup *popup); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; class KeyframePopupCopy : public BC_MenuItem { public: KeyframePopupCopy(MWindow *mwindow, KeyframePopup *popup); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; class KeyframePopupEdit : public BC_MenuItem { public: KeyframePopupEdit(MWindow *mwindow, KeyframePopup *popup); int handle_event(); MWindow *mwindow; KeyframePopup *popup; }; #endif