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(_(AIFF_NAME)));
37 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
38 // format_items.append(new BC_ListBoxItem(_(AVI_ARNE1_NAME)));
39 // format_items.append(new BC_ListBoxItem(_(AVI_ARNE2_NAME)));
41 format_items.append(new BC_ListBoxItem(_(AVI_AVIFILE_NAME)));
43 // format_items.append(new BC_ListBoxItem(_(AVI_LAVTOOLS_NAME)));
44 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
47 format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
51 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
52 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
53 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
54 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
55 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
56 format_items.append(new BC_ListBoxItem(_(VORBIS_NAME)));
57 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
58 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
61 format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
65 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
68 format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
72 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
75 format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
76 // for(i = 0; i < plugindb->total; i++)
78 // if(plugindb->values[i]->fileio)
80 // add_item(format_items[total_items++] = new FormatPopupItem(this, plugindb->values[i]->title));
90 FormatPopup::~FormatPopup()
92 for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
95 int FormatPopup::handle_event()