X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fassetpopup.h;h=176174f8a1b216555c830a08b9527de2735a2ba0;hb=a50360055eb2afba265a8b61caf857a618044e90;hp=5620e561b1274eb74569de88cdbc1832c91c224d;hpb=3b4b6f588c4f2643316afcbc486ca6a35c16a431;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/assetpopup.h b/cinelerra-5.1/cinelerra/assetpopup.h index 5620e561..176174f8 100644 --- a/cinelerra-5.1/cinelerra/assetpopup.h +++ b/cinelerra-5.1/cinelerra/assetpopup.h @@ -273,7 +273,6 @@ public: AssetSnapshot *asset_snapshot; AssetGrabshot *asset_grabshot; AssetSelectUsed *select_used; - int shots_displayed; }; class AssetPopupLoadFile : public BC_MenuItem @@ -431,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(); -}; + int handle_done_event(int x0, int y0, int x1, int y1); -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(); - - GrabshotThread *grab_thread; + MWindow *mwindow; int mode; - int dragging; - int grab_color; - int x0, y0, x1, y1; - int lx0, ly0, lx1, ly1; }; #endif