1 #include "newpresets.h"
6 NewPresetsText::NewPresetsText(MWindow *mwindow,
8 SetFormatWindow *format_gui,
11 : BC_TextBox(x, y, 200, 1, window->get_preset_text())
13 this->mwindow = mwindow;
14 this->new_gui = new_gui;
15 this->format_gui = format_gui;
18 int NewPresetsText::handle_event()
27 NewPresetsPulldown::NewPresetsPulldown(MWindow *mwindow, NewWindow *window, int x, int y)
32 LISTBOX_TEXT, // Display text list or icons
33 (ArrayList<BC_ListBoxItem*>*)&window->preset_items, // Each column has an ArrayList of BC_ListBoxItems.
34 0, // Titles for columns. Set to 0 for no titles
35 0, // width of each column
37 0, // Pixel of top of window.
40 this->mwindow = mwindow;
41 this->window = window;
43 int NewPresetsPulldown::handle_event()
45 NewPresetItem *preset = ((NewPresetItem*)get_selection(0, 0));
46 window->new_edl->copy_all(preset->edl);
48 window->presets_text->update(preset->get_text());
52 NewPresetItem::NewPresetItem(MWindow *mwindow, NewWindow *window, char *text)
53 : BC_ListBoxItem(text)
55 this->mwindow = mwindow;
56 this->window = window;
58 edl->create_objects();
59 edl->copy_all(window->new_edl);
62 NewPresetItem::~NewPresetItem()