2 #include "cwindowgui.h"
6 APanel::APanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h)
8 this->mwindow = mwindow;
9 this->subwindow = subwindow;
20 int APanel::create_objects()
22 int x = this->x + 5, y = this->y + 10;
23 char string[BCTEXTLEN];
26 subwindow->add_subwindow(new BC_Title(x, y, _("Automation")));
28 for(int i = 0; i < PLUGINS; i++)
30 sprintf(string, _("Plugin %d"), i + 1);
31 subwindow->add_subwindow(new BC_Title(x, y, string, SMALLFONT));
32 subwindow->add_subwindow(plugin_autos[i] = new APanelPluginAuto(mwindow, this, x, y + 20));
35 x += plugin_autos[i]->get_w();
40 y += plugin_autos[i]->get_h() + 20;
44 subwindow->add_subwindow(mute = new APanelMute(mwindow, this, x, y));
46 subwindow->add_subwindow(play = new APanelPlay(mwindow, this, x, y));
53 APanelPluginAuto::APanelPluginAuto(MWindow *mwindow, APanel *gui, int x, int y)
60 this->mwindow = mwindow;
63 int APanelPluginAuto::handle_event()
68 APanelMute::APanelMute(MWindow *mwindow, APanel *gui, int x, int y)
69 : BC_CheckBox(x, y, 0, _("Mute"))
71 this->mwindow = mwindow;
74 int APanelMute::handle_event()
80 APanelPlay::APanelPlay(MWindow *mwindow, APanel *gui, int x, int y)
81 : BC_CheckBox(x, y, 1, _("Play"))
83 this->mwindow = mwindow;
86 int APanelPlay::handle_event()