add mask smooth boundary
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cwindowtool.h
index b8b431c9f4430a84b11c090b0fd7868791f37da3..5654e8825cd7b181f2c76bbdb0a546800780b02d 100644 (file)
@@ -312,6 +312,37 @@ 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 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:
@@ -334,6 +365,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 +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);
 
@@ -459,6 +502,11 @@ public:
        CWindowCoord *x, *y;
        CWindowMaskFocus *focus;
        int focused;
+       CWindowMaskGangFocus *gang_focus;
+       CWindowMaskSmooth *smooth;
+       CWindowMaskGangSmooth *gang_smooth;
+       CWindowMaskHelp *help;
+       int helped, help_y, help_h;
        CWindowMaskDrawMarkers *draw_markers;
        int markers;
        CWindowMaskDrawBoundary *draw_boundary;