X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fassetpopup.h;h=176174f8a1b216555c830a08b9527de2735a2ba0;hp=c30c155c5cfb50ad1a846a8ab0434c80719c7b5e;hb=83b70dd60863377cb281e6be5206304e10373e30;hpb=e41864cf7931bfb86f68c5d35d4578dfe161d386 diff --git a/cinelerra-5.1/cinelerra/assetpopup.h b/cinelerra-5.1/cinelerra/assetpopup.h index c30c155c..176174f8 100644 --- a/cinelerra-5.1/cinelerra/assetpopup.h +++ b/cinelerra-5.1/cinelerra/assetpopup.h @@ -51,11 +51,17 @@ public: AssetPopupInfo *info; + AWindowListFormat *format; + AssetPopupOpenEDL *open_edl; + AssetPopupCloseEDL *close_edl; + AssetPopupToClip *to_clip; + AssetPopupSort *sort; AssetPopupBuildIndex *index; AssetPopupView *view; AssetPopupViewWindow *view_window; - AssetPopupMixer *mixer; - AWindowListFormat *format; + AssetPopupOpenMixer *open_mixer; + AssetPopupInsertMixer *insert_mixer; + AssetPopupPaste *paste; }; class AssetPopupInfo : public BC_MenuItem @@ -71,6 +77,42 @@ public: AssetPopup *popup; }; +class AssetPopupOpenEDL : public BC_MenuItem +{ +public: + AssetPopupOpenEDL(MWindow *mwindow, AssetPopup *popup); + ~AssetPopupOpenEDL(); + + int handle_event(); + + MWindow *mwindow; + AssetPopup *popup; +}; + +class AssetPopupCloseEDL : public BC_MenuItem +{ +public: + AssetPopupCloseEDL(MWindow *mwindow, AWindowGUI *gui); + ~AssetPopupCloseEDL(); + + int handle_event(); + + MWindow *mwindow; + AWindowGUI *gui; +}; + +class AssetPopupToClip : public BC_MenuItem +{ +public: + AssetPopupToClip(MWindow *mwindow, AssetPopup *popup); + ~AssetPopupToClip(); + + int handle_event(); + + MWindow *mwindow; + AssetPopup *popup; +}; + class AssetPopupSort : public BC_MenuItem { public: @@ -121,11 +163,23 @@ public: AssetPopup *popup; }; -class AssetPopupMixer : public BC_MenuItem +class AssetPopupOpenMixer : public BC_MenuItem +{ +public: + AssetPopupOpenMixer(MWindow *mwindow, AssetPopup *popup); + ~AssetPopupOpenMixer(); + + int handle_event(); + + MWindow *mwindow; + AssetPopup *popup; +}; + +class AssetPopupInsertMixer : public BC_MenuItem { public: - AssetPopupMixer(MWindow *mwindow, AssetPopup *popup); - ~AssetPopupMixer(); + AssetPopupInsertMixer(MWindow *mwindow, AssetPopup *popup); + ~AssetPopupInsertMixer(); int handle_event(); @@ -215,10 +269,10 @@ public: AWindowGUI *gui; AssetPopupLoadFile *load_file; AWindowListFormat *format; + AssetPopupCloseEDL *close_edl; AssetSnapshot *asset_snapshot; AssetGrabshot *asset_grabshot; AssetSelectUsed *select_used; - int shots_displayed; }; class AssetPopupLoadFile : public BC_MenuItem @@ -376,40 +430,20 @@ public: int handle_event(); GrabshotSubMenu *submenu; - int mode; GrabshotThread *grab_thread; + int mode; }; -class GrabshotThread : public Thread +class GrabshotThread : public BC_DragBox { public: GrabshotThread(MWindow* mwindow); ~GrabshotThread(); - - MWindow *mwindow; - GrabshotPopup *popup; - BC_Popup *edge[4]; - int done; - void start(GrabshotMenuItem *menu_item); - void run(); -}; - -class GrabshotPopup : public BC_Popup -{ -public: - GrabshotPopup(GrabshotThread *grab_thread, int mode); - ~GrabshotPopup(); - int grab_event(XEvent *event); - void draw_selection(int invert); - void update(); + int handle_done_event(int x0, int y0, int x1, int y1); - GrabshotThread *grab_thread; + MWindow *mwindow; int mode; - int dragging; - int grab_color; - int x0, y0, x1, y1; - int lx0, ly0, lx1, ly1; }; #endif