X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcwindowtool.h;h=7340fa8ce2350e86e9718ae53700da617ad6b039;hb=56923cfe421f547a8ba1c6a4a6e9225877b121c6;hp=b8b431c9f4430a84b11c090b0fd7868791f37da3;hpb=7718f72da6995e7b2b2a59dcc61cc80a2f4bf38f;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/cwindowtool.h b/cinelerra-5.1/cinelerra/cwindowtool.h index b8b431c9..7340fa8c 100644 --- a/cinelerra-5.1/cinelerra/cwindowtool.h +++ b/cinelerra-5.1/cinelerra/cwindowtool.h @@ -312,6 +312,28 @@ public: CWindowMaskGUI *gui; }; +class CWindowMaskGangFocus : public BC_Toggle +{ +public: + CWindowMaskGangFocus(MWindow *mwindow, CWindowMaskGUI *gui, + int x, int y); + ~CWindowMaskGangFocus(); + int handle_event(); + MWindow *mwindow; + CWindowMaskGUI *gui; +}; + +class CWindowMaskSmoothButton : public BC_Button +{ +public: + CWindowMaskSmoothButton(MWindow *mwindow, CWindowMaskGUI *gui, + const char *tip, int type, int on, int x, int y, const char *images); + int handle_event(); + MWindow *mwindow; + CWindowMaskGUI *gui; + int type, on; +}; + class CWindowMaskAffectedPoint : public BC_TumbleTextBox { public: @@ -334,6 +356,17 @@ public: CWindowMaskGUI *gui; }; +class CWindowMaskHelp : public BC_CheckBox +{ +public: + CWindowMaskHelp(MWindow *mwindow, CWindowMaskGUI *gui, + int x, int y); + ~CWindowMaskHelp(); + int handle_event(); + MWindow *mwindow; + CWindowMaskGUI *gui; +}; + class CWindowMaskDrawMarkers : public BC_CheckBox { public: @@ -434,9 +467,10 @@ public: void update(); int close_event(); void done_event(); + void handle_event(); void set_focused(int v, float cx, float cy); void update_buttons(MaskAuto *keyframe, int k); - void handle_event(); + int smooth_mask(int typ, int on); void get_keyframe(Track* &track, MaskAutos* &autos, MaskAuto* &keyframe, SubMask* &mask, MaskPoint* &point, int create_it); @@ -456,9 +490,15 @@ public: CWindowMaskGangFader *gang_fader; CWindowMaskAffectedPoint *active_point; CWindowMaskDelPoint *del_point; + CWindowMaskSmoothButton *mask_pnt_linear, *mask_pnt_smooth; + CWindowMaskSmoothButton *mask_crv_linear, *mask_crv_smooth; + CWindowMaskSmoothButton *mask_all_linear, *mask_all_smooth; CWindowCoord *x, *y; CWindowMaskFocus *focus; int focused; + CWindowMaskGangFocus *gang_focus; + CWindowMaskHelp *help; + int helped, help_y, help_h; CWindowMaskDrawMarkers *draw_markers; int markers; CWindowMaskDrawBoundary *draw_boundary;