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"
36 class VPatchGUI : public PatchGUI
39 VPatchGUI(MWindow *mwindow,
46 void create_objects();
47 int reposition(int x, int y);
48 int update(int x, int y);
49 void synchronize_fade(float value_change);
56 class VFadePatch : public BC_ISlider
59 VFadePatch(MWindow *mwindow, VPatchGUI *patch, int x, int y, int w);
66 class VKeyFadePatch : public BC_SubWindow
69 VKeyFadePatch(MWindow *mwindow, VPatchGUI *patch, int x, int y);
70 void create_objects();
74 VKeyFadeValue *vkey_fade_value;
77 class VKeyFadeValue : public VFadePatch
80 VKeyFadeValue(VKeyFadePatch *vkey_fade_patch);
81 int button_release_event();
84 VKeyFadePatch *vkey_fade_patch;
87 class VModePatch : public BC_PopupMenu
90 VModePatch(MWindow *mwindow, VPatchGUI *patch, int x, int y);
91 VModePatch(MWindow *mwindow, VPatchGUI *patch);
94 void create_objects(); // add initial items
95 static const char* mode_to_text(int mode);
96 void update(int mode);
103 class VModePatchItem : public BC_MenuItem
106 VModePatchItem(VModePatch *popup, const char *text, int mode);
113 class VModePatchSubMenu : public BC_SubMenu
116 VModePatchSubMenu(VModePatchItem *mode_item);
117 ~VModePatchSubMenu();
119 VModePatchItem *mode_item;
122 class VModeSubMenuItem : public BC_MenuItem
125 VModeSubMenuItem(VModePatchSubMenu *submenu, const char *text, int mode);
129 VModePatchSubMenu *submenu;
133 class VKeyModePatch : public VModePatch
136 VKeyModePatch(MWindow *mwindow, VPatchGUI *patch);
137 int button_release_event();