00001 #ifndef KEYFRAMEPOPUP_H 00002 #define KEYFRAMEPOPUP_H 00003 00004 #include "guicast.h" 00005 #include "mwindow.inc" 00006 #include "mwindowgui.inc" 00007 #include "plugin.inc" 00008 #include "plugindialog.inc" 00009 #include "keyframe.inc" 00010 #include "automation.h" 00011 00012 00013 class KeyframePopupDelete; 00014 class KeyframePopupShow; 00015 class KeyframePopupCopy; 00016 00017 00018 class KeyframePopup : public BC_PopupMenu 00019 { 00020 public: 00021 KeyframePopup(MWindow *mwindow, MWindowGUI *gui); 00022 ~KeyframePopup(); 00023 00024 void create_objects(); 00025 int update(Plugin *plugin, KeyFrame *keyframe); 00026 int update(Automation *automation, Autos *autos, Auto *auto_keyframe); 00027 00028 MWindow *mwindow; 00029 MWindowGUI *gui; 00030 // Acquired through the update command as the plugin currently being operated on 00031 00032 Plugin *keyframe_plugin; 00033 Autos *keyframe_autos; 00034 Automation *keyframe_automation; 00035 Auto *keyframe_auto; 00036 00037 00038 00039 KeyframePopupDelete *key_delete; 00040 KeyframePopupShow *key_show; 00041 KeyframePopupCopy *key_copy; 00042 }; 00043 00044 class KeyframePopupDelete : public BC_MenuItem 00045 { 00046 public: 00047 KeyframePopupDelete(MWindow *mwindow, KeyframePopup *popup); 00048 ~KeyframePopupDelete(); 00049 int handle_event(); 00050 00051 MWindow *mwindow; 00052 KeyframePopup *popup; 00053 }; 00054 00055 class KeyframePopupShow : public BC_MenuItem 00056 { 00057 public: 00058 KeyframePopupShow(MWindow *mwindow, KeyframePopup *popup); 00059 ~KeyframePopupShow(); 00060 int handle_event(); 00061 00062 MWindow *mwindow; 00063 KeyframePopup *popup; 00064 }; 00065 00066 class KeyframePopupCopy : public BC_MenuItem 00067 { 00068 public: 00069 KeyframePopupCopy(MWindow *mwindow, KeyframePopup *popup); 00070 ~KeyframePopupCopy(); 00071 int handle_event(); 00072 00073 MWindow *mwindow; 00074 KeyframePopup *popup; 00075 }; 00076 00077 00078 00079 #endif
1.4.4