4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "bcmenuitem.h"
26 #include "bcmenupopup.h"
27 #include "floatauto.inc"
30 #include "vpatchgui.inc"
33 class VPatchGUI : public PatchGUI
36 VPatchGUI(MWindow *mwindow,
43 void create_objects();
44 int reposition(int x, int y);
45 int update(int x, int y);
46 void update_faders(float v);
53 class VFadePatch : public BC_ISlider
56 VFadePatch(VPatchGUI *patch, int x, int y, int w, int64_t v);
61 class VKeyFadePatch : public BC_SubWindow
64 VKeyFadePatch(MWindow *mwindow, VPatchGUI *patch, int x, int y);
65 void create_objects();
66 void update(int64_t v);
70 VKeyFadeOK *vkey_fade_ok;
71 VKeyFadeText *vkey_fade_text;
72 VKeyFadeSlider *vkey_fade_slider;
75 class VKeyFadeOK : public BC_Button
78 VKeyFadeOK(VKeyFadePatch *vkey_fade_patch, int x, int y, VFrame **images);
81 VKeyFadePatch *vkey_fade_patch;
84 class VKeyFadeText : public BC_TextBox
87 VKeyFadeText(VKeyFadePatch *vkey_fade_patch, int x, int y, int w, int64_t v);
90 VKeyFadePatch *vkey_fade_patch;
93 class VKeyFadeSlider : public VFadePatch
96 VKeyFadeSlider(VKeyFadePatch *akey_fade_patch, int x, int y, int w, int64_t v);
99 VKeyFadePatch *vkey_fade_patch;
102 class VModePatch : public BC_PopupMenu
105 VModePatch(MWindow *mwindow, VPatchGUI *patch, int x, int y);
106 VModePatch(MWindow *mwindow, VPatchGUI *patch);
109 void create_objects(); // add initial items
110 static const char* mode_to_text(int mode);
111 void update(int mode);
118 class VModePatchItem : public BC_MenuItem
121 VModePatchItem(VModePatch *popup, const char *text, int mode);
128 class VModePatchSubMenu : public BC_SubMenu
131 VModePatchSubMenu(VModePatchItem *mode_item);
132 ~VModePatchSubMenu();
134 VModePatchItem *mode_item;
137 class VModeSubMenuItem : public BC_MenuItem
140 VModeSubMenuItem(VModePatchSubMenu *submenu, const char *text, int mode);
144 VModePatchSubMenu *submenu;
148 class VKeyModePatch : public VModePatch
151 VKeyModePatch(MWindow *mwindow, VPatchGUI *patch);
155 class VMixPatch : public MixPatch
158 VMixPatch(MWindow *mwindow, VPatchGUI *patch, int x, int y);