6 #include "patchbay.inc"
26 PatchGUI(MWindow
*mwindow
,
33 virtual int create_objects();
34 virtual int reposition(int x
, int y
);
35 void toggle_behavior(int type
,
39 virtual int update(int x
, int y
);
40 virtual void synchronize_fade(float change
) {};
41 void synchronize_faders(float change
, int audio
, int video
);
42 char* calculate_nudge_text(int *changed
);
43 int64_t calculate_nudge(char *string
);
48 // Used by update routines so non-existent track doesn't need to be dereferenced
49 // to know it doesn't match the current EDL.
53 // Don't synchronize the fader if this is true.
59 // AutoPatch *automate;
65 char string_return
[BCTEXTLEN
];
70 class PlayPatch
: public BC_Toggle
73 PlayPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
74 int button_press_event();
75 int button_release_event();
80 class RecordPatch
: public BC_Toggle
83 RecordPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
84 int button_press_event();
85 int button_release_event();
90 class TitlePatch
: public BC_TextBox
93 TitlePatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
99 class AutoPatch
: public BC_Toggle
102 AutoPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
103 int button_press_event();
104 int button_release_event();
109 class GangPatch
: public BC_Toggle
112 GangPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
113 int button_press_event();
114 int button_release_event();
119 class DrawPatch
: public BC_Toggle
122 DrawPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
123 int button_press_event();
124 int button_release_event();
129 class MutePatch
: public BC_Toggle
132 MutePatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
133 int button_press_event();
134 int button_release_event();
135 static IntAuto
* get_keyframe(MWindow
*mwindow
, PatchGUI
*patch
);
140 class ExpandPatch
: public BC_Toggle
143 ExpandPatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
);
144 int button_press_event();
145 int button_release_event();
150 class NudgePatch
: public BC_TextBox
153 NudgePatch(MWindow
*mwindow
, PatchGUI
*patch
, int x
, int y
, int w
);
155 int button_press_event();
157 void set_value(int64_t value
);
158 int64_t calculate_increment();