add edit clear submenu/clear hard_edges, fix tessy gl segv, mask toolgui layout,...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / cwindowtool.h
index db0b32b7cec5294b196e05b54875f125dd701005..dcdfa1601f7a43e8c74ccf6581655e6ee3d481d5 100644 (file)
@@ -128,6 +128,16 @@ public:
        CWindowCoord *x1, *y1, *width, *height;
 };
 
+class CWindowMaskTrack : public BC_Title
+{
+public:
+       CWindowMaskTrack(MWindow *mwindow, CWindowMaskGUI *gui,
+                       int x, int y, const char *text);
+       ~CWindowMaskTrack();
+       MWindow *mwindow;
+       CWindowMaskGUI *gui;
+};
+
 class CWindowMaskItems : public ArrayList<BC_ListBoxItem*>
 {
 public:
@@ -260,6 +270,17 @@ public:
        CWindowToolGUI *gui;
 };
 
+class CWindowMaskDrawCenter : public BC_CheckBox
+{
+public:
+       CWindowMaskDrawCenter(MWindow *mwindow, CWindowToolGUI *gui,
+                       int x, int y);
+       ~CWindowMaskDrawCenter();
+       int handle_event();
+       MWindow *mwindow;
+       CWindowToolGUI *gui;
+};
+
 class CWindowMaskDrawMarkers : public BC_CheckBox
 {
 public:
@@ -359,11 +380,13 @@ public:
        void create_objects();
        void update();
        void set_focused(int v, float cx, float cy);
+       void update_buttons(MaskAuto *keyframe, int k);
        void handle_event();
        void get_keyframe(Track* &track, MaskAutos* &autos, MaskAuto* &keyframe,
                SubMask* &mask, MaskPoint* &point, int create_it);
        void update_preview();
 
+       CWindowMaskTrack *mask_track;
        CWindowMaskName *name;
        CWindowMaskButton *mask_buttons[SUBMASKS];
        CWindowMaskThumbler *mask_thumbler;
@@ -378,6 +401,8 @@ public:
        CWindowCoord *x, *y;
        CWindowMaskFocus *focus;
        int focused;
+       CWindowMaskDrawCenter *draw_center;
+       int center_mark;
        CWindowMaskDrawMarkers *draw_markers;
        int markers;
        CWindowMaskDrawBoundary *draw_boundary;