add mask smooth boundary
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cwindowtool.h
index 951d30e4d36c6c5c61ca2ebe430a92323f8b3c57..5654e8825cd7b181f2c76bbdb0a546800780b02d 100644 (file)
@@ -323,6 +323,26 @@ public:
        CWindowMaskGUI *gui;
 };
 
+class CWindowMaskSmooth : public BC_GenericButton
+{
+public:
+       CWindowMaskSmooth(MWindow *mwindow, CWindowMaskGUI *gui,
+                       int x, int y);
+       int handle_event();
+       MWindow *mwindow;
+       CWindowMaskGUI *gui;
+};
+
+class CWindowMaskGangSmooth : public BC_Button
+{
+public:
+       CWindowMaskGangSmooth(MWindow *mwindow, CWindowMaskGUI *gui,
+                       int x, int y);
+       int handle_event();
+       MWindow *mwindow;
+       CWindowMaskGUI *gui;
+};
+
 class CWindowMaskAffectedPoint : public BC_TumbleTextBox
 {
 public:
@@ -456,9 +476,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 gang);
        void get_keyframe(Track* &track, MaskAutos* &autos, MaskAuto* &keyframe,
                SubMask* &mask, MaskPoint* &point, int create_it);
 
@@ -482,6 +503,8 @@ public:
        CWindowMaskFocus *focus;
        int focused;
        CWindowMaskGangFocus *gang_focus;
+       CWindowMaskSmooth *smooth;
+       CWindowMaskGangSmooth *gang_smooth;
        CWindowMaskHelp *help;
        int helped, help_y, help_h;
        CWindowMaskDrawMarkers *draw_markers;