X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fawindowgui.h;h=d15e19f5d30a87607f2651749c9f7f9ee9e2239c;hp=93d6fa27608d2a540ff992555017f7eeee37e147;hb=b2dfd8318ea57bbe38e2c61ffd8cda30fb7465c3;hpb=07217a92dbd5263eeb531053a3c62622f9bf925c diff --git a/cinelerra-5.1/cinelerra/awindowgui.h b/cinelerra-5.1/cinelerra/awindowgui.h index 93d6fa27..d15e19f5 100644 --- a/cinelerra-5.1/cinelerra/awindowgui.h +++ b/cinelerra-5.1/cinelerra/awindowgui.h @@ -53,6 +53,7 @@ #define SELECT_USED 1 #define SELECT_UNUSED 2 #define SELECT_NONE 3 +#define VIEW_POPUP_BAR_H 15 class AWindowFolderItem : public BC_ListBoxItem { @@ -82,7 +83,12 @@ public: void reset(); static void draw_hue_bar(VFrame *frame, double t); static void draw_wave(VFrame *frame, double *dp, int len, - int base_color, int line_color); + int base_color, int line_color, int x, int y, int w, int h); + static void draw_wave(VFrame *frame, double *dp, int len, + int base_color, int line_color, int x=0, int y=0) { + draw_wave(frame, dp, len, base_color, line_color, + x,y,frame->get_w(),frame->get_h()); + } void open_render_engine(EDL *edl, int is_audio); void close_render_engine(); void render_video(int64_t pos, VFrame *vfrm); @@ -154,6 +160,20 @@ public: ~AssetVIcon(); }; +class AssetVIconThread : public VIconThread +{ +public: + AssetVIconThread(AWindowAssets *asset_list); + ~AssetVIconThread(); + + int popup_button_press(int x, int y); + int popup_button_release(int x, int y); + int popup_cursor_motion(int x, int y); + + int popup_dragging; +}; + + class AWindowRemovePlugin; class AWindowRemovePluginGUI : public BC_Window { @@ -346,6 +366,8 @@ public: int cursor_leave_event(); void update_vicon_area(); int mouse_over_event(int no); + static VIconDrawVFrame draw_vframe; + VIconDrawVFrame *draw_func; MWindow *mwindow; AWindowGUI *gui;