X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fpatchgui.h;h=53ba9d20f3d617cc9b996c47da94134675777102;hp=c2c4132eea2c0f747fae70c627aa6ff5064f8770;hb=2e48b660e37eb5c661264d601211e16cb6cd6e89;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd diff --git a/cinelerra-5.1/cinelerra/patchgui.h b/cinelerra-5.1/cinelerra/patchgui.h index c2c4132e..53ba9d20 100644 --- a/cinelerra-5.1/cinelerra/patchgui.h +++ b/cinelerra-5.1/cinelerra/patchgui.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * */ #ifndef PATCHGUI_H @@ -40,20 +40,21 @@ class DrawPatch; class MutePatch; class ExpandPatch; class NudgePatch; +class MixPatch; class PatchGUI { public: - PatchGUI(MWindow *mwindow, - PatchBay *patchbay, - Track *track, - int x, + PatchGUI(MWindow *mwindow, + PatchBay *patchbay, + Track *track, + int x, int y); virtual ~PatchGUI(); virtual void create_objects(); virtual int reposition(int x, int y); - void toggle_behavior(int type, + void toggle_behavior(int type, int value, BC_Toggle *toggle, int *output); @@ -69,7 +70,7 @@ public: // Used by update routines so non-existent track doesn't need to be dereferenced // to know it doesn't match the current EDL. int track_id; - int data_type; + int data_type, mixer; int x, y; // Don't synchronize the fader if this is true. int change_source; @@ -83,6 +84,7 @@ public: MutePatch *mute; ExpandPatch *expand; NudgePatch *nudge; + MixPatch *mix; char string_return[BCTEXTLEN]; }; @@ -111,8 +113,9 @@ public: class TitlePatch : public BC_TextBox { public: - TitlePatch(MWindow *mwindow, PatchGUI *patch, int x, int y); + TitlePatch(MWindow *mwindow, PatchGUI *patch, int x, int y, int w); int handle_event(); + void update(const char *text); MWindow *mwindow; PatchGUI *patch; }; @@ -153,7 +156,6 @@ public: MutePatch(MWindow *mwindow, PatchGUI *patch, int x, int y); int button_press_event(); int button_release_event(); - static IntAuto* get_keyframe(MWindow *mwindow, PatchGUI *patch); MWindow *mwindow; PatchGUI *patch; }; @@ -182,5 +184,17 @@ public: PatchGUI *patch; }; +class MixPatch : public BC_Toggle +{ +public: + MixPatch(MWindow *mwindow, PatchGUI *patch, int x, int y); + ~MixPatch(); + int handle_event(); + void update(int v); + + MWindow *mwindow; + PatchGUI *patch; +}; + #endif