2 #include "cwindowgui.h"
5 #define _(String) gettext(String)
6 #define gettext_noop(String) String
7 #define N_(String) gettext_noop (String)
9 APanel::APanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h)
11 this->mwindow = mwindow;
12 this->subwindow = subwindow;
23 int APanel::create_objects()
25 int x = this->x + 5, y = this->y + 10;
26 char string[BCTEXTLEN];
29 subwindow->add_subwindow(new BC_Title(x, y, _("Automation")));
31 for(int i = 0; i < PLUGINS; i++)
33 sprintf(string, _("Plugin %d"), i + 1);
34 subwindow->add_subwindow(new BC_Title(x, y, string, SMALLFONT));
35 subwindow->add_subwindow(plugin_autos[i] = new APanelPluginAuto(mwindow, this, x, y + 20));
38 x += plugin_autos[i]->get_w();
43 y += plugin_autos[i]->get_h() + 20;
47 subwindow->add_subwindow(mute = new APanelMute(mwindow, this, x, y));
49 subwindow->add_subwindow(play = new APanelPlay(mwindow, this, x, y));
56 APanelPluginAuto::APanelPluginAuto(MWindow *mwindow, APanel *gui, int x, int y)
63 this->mwindow = mwindow;
66 int APanelPluginAuto::handle_event()
71 APanelMute::APanelMute(MWindow *mwindow, APanel *gui, int x, int y)
72 : BC_CheckBox(x, y, 0, _("Mute"))
74 this->mwindow = mwindow;
77 int APanelMute::handle_event()
83 APanelPlay::APanelPlay(MWindow *mwindow, APanel *gui, int x, int y)
84 : BC_CheckBox(x, y, 1, _("Play"))
86 this->mwindow = mwindow;
89 int APanelPlay::handle_event()