+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+};
+
+class CWindowMaskSave : public BC_Button
+{
+public:
+ CWindowMaskSave(MWindow *mwindow, CWindowMaskGUI *gui,
+ int x, int y, int w);
+ ~CWindowMaskSave();
+ int handle_event();
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+ CWindowMaskPresetDialog *preset_dialog;
+};
+
+class CWindowMaskPresetDialog : public BC_DialogThread
+{
+public:
+ CWindowMaskPresetDialog(MWindow *mwindow, CWindowMaskGUI *gui);
+ ~CWindowMaskPresetDialog();
+ void handle_close_event(int result);
+ void handle_done_event(int result);
+ BC_Window* new_gui();
+ void start_dialog(int sx, int sy, MaskAuto *keyframe);
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+ CWindowMaskPresetGUI *pgui;
+ int sx, sy;
+ MaskAuto *keyframe;
+};
+
+class CWindowMaskPresetGUI : public BC_Window
+{
+public:
+ CWindowMaskPresetGUI(CWindowMaskPresetDialog *preset_dialog,
+ int x, int y, const char *title);
+ void create_objects();
+
+ CWindowMaskPresetDialog *preset_dialog;
+ CWindowMaskPresetText *preset_text;
+};
+
+class CWindowMaskPresetText : public BC_PopupTextBox
+{
+public:
+ CWindowMaskPresetText(CWindowMaskPresetGUI *pgui,
+ int x, int y, int w, int h, const char *text);
+ int handle_event();
+ void update_items();
+
+ CWindowMaskPresetGUI *pgui;
+ CWindowMaskItems mask_items;
+};
+
+class CWindowMaskDelete : public BC_Button
+{
+public:
+ CWindowMaskDelete(MWindow *mwindow, CWindowMaskGUI *gui,
+ int x, int y, int w);
+ int handle_event();
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+};
+
+class CWindowMaskCenter : public BC_Button
+{
+public:
+ CWindowMaskCenter(MWindow *mwindow, CWindowMaskGUI *gui,
+ int x, int y, int w);
+ int handle_event();
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+};
+
+class CWindowMaskNormal : public BC_Button
+{
+public:
+ CWindowMaskNormal(MWindow *mwindow, CWindowMaskGUI *gui,
+ int x, int y, int w);
+ int handle_event();
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+};
+
+class CWindowMaskShape : public BC_Button
+{
+public:
+ CWindowMaskShape(MWindow *mwindow, CWindowMaskGUI *gui,
+ const char *images, int shape, int x, int y, const char *tip);
+ ~CWindowMaskShape();
+ void builtin_shape(int i, SubMask *sub_mask);
+ int handle_event();
+
+ MWindow *mwindow;
+ CWindowMaskGUI *gui;
+ int shape;
+ CWindowMaskItems shape_items;