r999: maintainers added to README_en.
[cinelerra_cv/mob.git] / cinelerra / formatpopup.C
blob8d1275bcb41f64fa7a47a6e361cb43d43a44706c
1 #include "bcsignals.h"
2 #include "file.inc"
3 #include "formatpopup.h"
4 #include "language.h"
5 #include "pluginserver.h"
9 FormatPopup::FormatPopup(ArrayList<PluginServer*> *plugindb, 
10         int x, 
11         int y,
12         int use_brender)
13  : BC_ListBox(x, 
14         y, 
15         200, 
16         200,
17         LISTBOX_TEXT,
18         0,
19         0,
20         0,
21         1,
22         0,
23         1)
25         this->plugindb = plugindb;
26         this->use_brender = use_brender;
27         set_tooltip(_("Change file format"));
30 int FormatPopup::create_objects()
32         if(!use_brender)
33         {
34                 format_items.append(new BC_ListBoxItem(_(AC3_NAME)));
35                 format_items.append(new BC_ListBoxItem(_(AIFF_NAME)));
36                 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
37                 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
38         }
40         format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
42         if(!use_brender)
43         {
44                 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
45                 format_items.append(new BC_ListBoxItem(_(EXR_NAME)));
46                 format_items.append(new BC_ListBoxItem(_(EXR_LIST_NAME)));
47                 format_items.append(new BC_ListBoxItem(_(YUV_NAME)));
48                 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
49                 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
50                 format_items.append(new BC_ListBoxItem(_(RAWDV_NAME)));
51                 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
52                 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
53                 format_items.append(new BC_ListBoxItem(_(VORBIS_NAME)));
54                 format_items.append(new BC_ListBoxItem(_(OGG_NAME)));
55                 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
56                 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
57         }
59         format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
61         if(!use_brender)
62         {
63                 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
64         }
66         format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
68         if(!use_brender)
69         {
70                 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
71         }
73         format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
74         update(&format_items,
75                 0,
76                 0,
77                 1);
78         return 0;
81 FormatPopup::~FormatPopup()
83         for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
86 int FormatPopup::handle_event()