1 #ifndef FORMATPRESETS_H
2 #define FORMATPRESETS_H
6 #include "formatpresets.inc"
10 #include "setformat.inc"
16 FormatPresets(MWindow
*mwindow
,
18 SetFormatWindow
*format_gui
,
21 virtual ~FormatPresets();
23 void create_objects();
24 FormatPresetItem
* find_preset(EDL
*edl
);
25 char* get_preset_text(EDL
*edl
);
27 // New preset selected
28 virtual int handle_event();
29 virtual EDL
* get_edl();
32 BC_WindowBase
*gui_base
;
34 SetFormatWindow
*format_gui
;
35 FormatPresetsText
*text
;
36 FormatPresetsPulldown
*pulldown
;
38 ArrayList
<FormatPresetItem
*> preset_items
;
43 class FormatPresetsText
: public BC_TextBox
46 FormatPresetsText(MWindow
*mwindow
,
51 // Find the listbox item which corresponds to the values in the edl.
56 class FormatPresetsPulldown
: public BC_ListBox
59 FormatPresetsPulldown(MWindow
*mwindow
,
68 class FormatPresetItem
: public BC_ListBoxItem
71 FormatPresetItem(MWindow
*mwindow
, FormatPresets
*gui
, char *text
);
76 // Storage of the values for the preset