Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

apanel.C

Go to the documentation of this file.
00001 #include "apanel.h"
00002 #include "cwindowgui.h"
00003 #include "language.h"
00004 
00005 
00006 APanel::APanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h)
00007 {
00008         this->mwindow = mwindow;
00009         this->subwindow = subwindow;
00010         this->x = x;
00011         this->y = y;
00012         this->w = w;
00013         this->h = h;
00014 }
00015 
00016 APanel::~APanel()
00017 {
00018 }
00019 
00020 int APanel::create_objects()
00021 {
00022         int x = this->x + 5, y = this->y + 10;
00023         char string[BCTEXTLEN];
00024         int x1 = x;
00025 
00026         subwindow->add_subwindow(new BC_Title(x, y, _("Automation")));
00027         y += 20;
00028         for(int i = 0; i < PLUGINS; i++)
00029         {
00030                 sprintf(string, _("Plugin %d"), i + 1);
00031                 subwindow->add_subwindow(new BC_Title(x, y, string, SMALLFONT));
00032                 subwindow->add_subwindow(plugin_autos[i] = new APanelPluginAuto(mwindow, this, x, y + 20));
00033                 if(x == x1)
00034                 {
00035                         x += plugin_autos[i]->get_w();
00036                 }
00037                 else
00038                 {
00039                         x = x1;
00040                         y += plugin_autos[i]->get_h() + 20;
00041                 }
00042         }
00043         
00044         subwindow->add_subwindow(mute = new APanelMute(mwindow, this, x, y));
00045         y += mute->get_h();
00046         subwindow->add_subwindow(play = new APanelPlay(mwindow, this, x, y));
00047         return 0;
00048 }
00049 
00050 
00051 
00052 
00053 APanelPluginAuto::APanelPluginAuto(MWindow *mwindow, APanel *gui, int x, int y)
00054  : BC_FPot(x, 
00055                 y, 
00056                 0, 
00057                 -1, 
00058                 1)
00059 {
00060         this->mwindow = mwindow;
00061         this->gui = gui;
00062 }
00063 int APanelPluginAuto::handle_event()
00064 {
00065         return 1;
00066 }
00067 
00068 APanelMute::APanelMute(MWindow *mwindow, APanel *gui, int x, int y)
00069  : BC_CheckBox(x, y, 0, _("Mute"))
00070 {
00071         this->mwindow = mwindow;
00072         this->gui = gui;
00073 }
00074 int APanelMute::handle_event()
00075 {
00076         return 1;
00077 }
00078 
00079 
00080 APanelPlay::APanelPlay(MWindow *mwindow, APanel *gui, int x, int y)
00081  : BC_CheckBox(x, y, 1, _("Play"))
00082 {
00083         this->mwindow = mwindow;
00084         this->gui = gui;
00085 }
00086 int APanelPlay::handle_event()
00087 {
00088         return 1;
00089 }
00090 
00091 

Generated on Sun Jan 8 13:38:49 2006 for Cinelerra-svn by  doxygen 1.4.4