r974: configure: Check for presence of libtiff headers and libraries.
[cinelerra_cv.git] / cinelerra / apanel.C
blob517b954f6f2a16eff785a6ef3027ed3062d98061
1 #include "apanel.h"
2 #include "cwindowgui.h"
3 #include "language.h"
6 APanel::APanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h)
8         this->mwindow = mwindow;
9         this->subwindow = subwindow;
10         this->x = x;
11         this->y = y;
12         this->w = w;
13         this->h = h;
16 APanel::~APanel()
20 int APanel::create_objects()
22         int x = this->x + 5, y = this->y + 10;
23         char string[BCTEXTLEN];
24         int x1 = x;
26         subwindow->add_subwindow(new BC_Title(x, y, _("Automation")));
27         y += 20;
28         for(int i = 0; i < PLUGINS; i++)
29         {
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));
33                 if(x == x1)
34                 {
35                         x += plugin_autos[i]->get_w();
36                 }
37                 else
38                 {
39                         x = x1;
40                         y += plugin_autos[i]->get_h() + 20;
41                 }
42         }
43         
44         subwindow->add_subwindow(mute = new APanelMute(mwindow, this, x, y));
45         y += mute->get_h();
46         subwindow->add_subwindow(play = new APanelPlay(mwindow, this, x, y));
47         return 0;
53 APanelPluginAuto::APanelPluginAuto(MWindow *mwindow, APanel *gui, int x, int y)
54  : BC_FPot(x, 
55                 y, 
56                 0, 
57                 -1, 
58                 1)
60         this->mwindow = mwindow;
61         this->gui = gui;
63 int APanelPluginAuto::handle_event()
65         return 1;
68 APanelMute::APanelMute(MWindow *mwindow, APanel *gui, int x, int y)
69  : BC_CheckBox(x, y, 0, _("Mute"))
71         this->mwindow = mwindow;
72         this->gui = gui;
74 int APanelMute::handle_event()
76         return 1;
80 APanelPlay::APanelPlay(MWindow *mwindow, APanel *gui, int x, int y)
81  : BC_CheckBox(x, y, 1, _("Play"))
83         this->mwindow = mwindow;
84         this->gui = gui;
86 int APanelPlay::handle_event()
88         return 1;