2 #include "formatpopup.h"
3 #include "pluginserver.h"
6 #define _(String) gettext(String)
7 #define gettext_noop(String) String
8 #define N_(String) gettext_noop (String)
11 FormatPopup::FormatPopup(ArrayList<PluginServer*> *plugindb,
27 this->plugindb = plugindb;
28 this->use_brender = use_brender;
29 set_tooltip(_("Change file format"));
32 int FormatPopup::create_objects()
36 format_items.append(new BC_ListBoxItem(_(AC3_NAME)));
37 format_items.append(new BC_ListBoxItem(_(AIFF_NAME)));
38 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
39 // format_items.append(new BC_ListBoxItem(_(AVI_ARNE1_NAME)));
40 // format_items.append(new BC_ListBoxItem(_(AVI_ARNE2_NAME)));
42 format_items.append(new BC_ListBoxItem(_(AVI_AVIFILE_NAME)));
44 // format_items.append(new BC_ListBoxItem(_(AVI_LAVTOOLS_NAME)));
45 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
48 format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
52 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
53 format_items.append(new BC_ListBoxItem(_(EXR_NAME)));
54 format_items.append(new BC_ListBoxItem(_(YUV_NAME)));
55 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
56 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
57 format_items.append(new BC_ListBoxItem(_(RAWDV_NAME)));
58 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
59 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
60 format_items.append(new BC_ListBoxItem(_(VORBIS_NAME)));
61 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
62 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
65 format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
69 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
72 format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
76 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
79 format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
80 // for(i = 0; i < plugindb->total; i++)
82 // if(plugindb->values[i]->fileio)
84 // add_item(format_items[total_items++] = new FormatPopupItem(this, plugindb->values[i]->title));
94 FormatPopup::~FormatPopup()
96 for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
99 int FormatPopup::handle_event()