Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / patchgui.h
index 53ba9d20f3d617cc9b996c47da94134675777102..980296a9d790ec222e12121a03c5602306915b7a 100644 (file)
 #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