X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fassetpopup.h;h=176174f8a1b216555c830a08b9527de2735a2ba0;hb=81fc9cd689dd964a4736fa1f8986a64db6b4a937;hp=c948e0e135c81a1627cad4575dac7147bd4bfc03;hpb=4c207ab325a8e8e6b79a9a18d4647273b5f59f93;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/assetpopup.h b/cinelerra-5.1/cinelerra/assetpopup.h index c948e0e1..176174f8 100644 --- a/cinelerra-5.1/cinelerra/assetpopup.h +++ b/cinelerra-5.1/cinelerra/assetpopup.h @@ -430,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