11 #include "filexml.inc"
12 #include "mwindow.inc"
15 #include "patchbay.inc"
18 // coordinates for widgets
25 #define PATCH_AUTO_TITLE 67
27 #define PATCH_DRAW_TITLE 97
30 class Patch
: public ListItem
<Patch
>
34 Patch(MWindow
*mwindow
, PatchBay
*patchbay
, int data_type
);
37 int save(FileXML
*xml
);
38 int load(FileXML
*xml
);
40 int create_objects(char *text
, int pixel
); // linked list doesn't allow parameters in append()
41 int set_pixel(int pixel
);
42 int set_title(char *new_title
);
44 int pixelmovement(int distance
);
46 int pixel
; // distance from top of track window
71 RecordPatchOld
*recordpatch
;
72 PlayPatchOld
*playpatch
;
73 TitlePatchOld
*title_text
;
74 AutoPatchOld
*autopatch
;
75 DrawPatchOld
*drawpatch
;
76 Module
* get_module(); // return module of corresponding patch
79 class PlayPatchOld
: public BC_Toggle
82 PlayPatchOld(MWindow
*mwindow
, Patch
*patch
, int x
, int y
);
84 int cursor_moved_over();
90 class RecordPatchOld
: public BC_Toggle
93 RecordPatchOld(MWindow
*mwindow
, Patch
*patch
, int x
, int y
);
95 int cursor_moved_over();
101 class TitlePatchOld
: public BC_TextBox
104 TitlePatchOld(MWindow
*mwindow
, Patch
*patch
, char *text
, int x
, int y
);
111 class AutoPatchOld
: public BC_Toggle
114 AutoPatchOld(MWindow
*mwindow
, Patch
*patch
, int x
, int y
);
116 int cursor_moved_over();
117 int button_release();
122 class DrawPatchOld
: public BC_Toggle
125 DrawPatchOld(MWindow
*mwindow
, Patch
*patch
, int x
, int y
);
127 int cursor_moved_over();
136 // c-file-style: "linux"