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

newpresets.C

Go to the documentation of this file.
00001 #include "newpresets.h"
00002 
00003 
00004 
00005 
00006 NewPresetsText::NewPresetsText(MWindow *mwindow, 
00007         NewWindow *new_gui, 
00008         SetFormatWindow *format_gui,
00009         int x, 
00010         int y)
00011  : BC_TextBox(x, y, 200, 1, window->get_preset_text())
00012 {
00013         this->mwindow = mwindow;
00014         this->new_gui = new_gui;
00015         this->format_gui = format_gui;
00016 }
00017 
00018 int NewPresetsText::handle_event()
00019 {
00020         return 1;
00021 }
00022 
00023 
00024 
00025 
00026 
00027 NewPresetsPulldown::NewPresetsPulldown(MWindow *mwindow, NewWindow *window, int x, int y)
00028  : BC_ListBox(x, 
00029                 y, 
00030                 200, 
00031                 200,
00032                 LISTBOX_TEXT,                   // Display text list or icons
00033                 (ArrayList<BC_ListBoxItem*>*)&window->preset_items, // Each column has an ArrayList of BC_ListBoxItems.
00034                 0,             // Titles for columns.  Set to 0 for no titles
00035                 0,                // width of each column
00036                 1,                      // Total columns.
00037                 0,                    // Pixel of top of window.
00038                 1)
00039 {
00040         this->mwindow = mwindow;
00041         this->window = window;
00042 }
00043 int NewPresetsPulldown::handle_event()
00044 {
00045         NewPresetItem *preset = ((NewPresetItem*)get_selection(0, 0));
00046         window->new_edl->copy_all(preset->edl);
00047         window->update();
00048         window->presets_text->update(preset->get_text());
00049         return 1;
00050 }
00051 
00052 NewPresetItem::NewPresetItem(MWindow *mwindow, NewWindow *window, char *text)
00053  : BC_ListBoxItem(text)
00054 {
00055         this->mwindow = mwindow;
00056         this->window = window;
00057         edl = new EDL;
00058         edl->create_objects();
00059         edl->copy_all(window->new_edl);
00060 }
00061 
00062 NewPresetItem::~NewPresetItem()
00063 {
00064         delete edl;
00065 }
00066 
00067 

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