X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpatchgui.h;h=980296a9d790ec222e12121a03c5602306915b7a;hp=53ba9d20f3d617cc9b996c47da94134675777102;hb=refs%2Fheads%2Fmaster;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/patchgui.h b/cinelerra-5.1/cinelerra/patchgui.h index 53ba9d20..980296a9 100644 --- a/cinelerra-5.1/cinelerra/patchgui.h +++ b/cinelerra-5.1/cinelerra/patchgui.h @@ -25,23 +25,11 @@ #include "guicast.h" #include "mwindow.inc" #include "patchbay.inc" +#include "patchgui.inc" #include "intauto.inc" #include "track.inc" - - -class TitlePatch; -class PlayPatch; -class RecordPatch; -class AutoPatch; -class GangPatch; -class DrawPatch; -class MutePatch; -class ExpandPatch; -class NudgePatch; -class MixPatch; - class PatchGUI { public: @@ -59,8 +47,7 @@ public: BC_Toggle *toggle, int *output); virtual int update(int x, int y); - virtual void synchronize_fade(float change) {}; - void synchronize_faders(float change, int audio, int video); + void synchronize_faders(float change, int audio, int video, int edge, int span); char* calculate_nudge_text(int *changed); int64_t calculate_nudge(const char *string); @@ -82,10 +69,13 @@ public: GangPatch *gang; DrawPatch *draw; MutePatch *mute; + ZoomPatch *zoom; + MasterPatch *master; ExpandPatch *expand; NudgePatch *nudge; MixPatch *mix; char string_return[BCTEXTLEN]; + int edge, span; }; @@ -160,6 +150,25 @@ public: PatchGUI *patch; }; +class ZoomPatch : public BC_Tumbler +{ +public: + ZoomPatch(MWindow *mwindow, PatchGUI *patch, int x, int y); + int handle_up_event(); + int handle_down_event(); + MWindow *mwindow; + PatchGUI *patch; +}; + +class MasterPatch : public BC_Toggle +{ +public: + MasterPatch(MWindow *mwindow, PatchGUI *patch, int x, int y); + int handle_event(); + MWindow *mwindow; + PatchGUI *patch; +}; + class ExpandPatch : public BC_Toggle { public: @@ -196,5 +205,4 @@ public: PatchGUI *patch; }; - #endif