r499: This commit was manufactured by cvs2svn to create tag 'r1_2_1-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / formatpopup.C
blob42d835a15aa20f817c82c08d92819664ce41f295
1 #include "file.inc"
2 #include "formatpopup.h"
3 #include "pluginserver.h"
5 #include <libintl.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, 
12         int x, 
13         int y,
14         int use_brender)
15  : BC_ListBox(x, 
16         y, 
17         200, 
18         200,
19         LISTBOX_TEXT,
20         0,
21         0,
22         0,
23         1,
24         0,
25         1)
27         this->plugindb = plugindb;
28         this->use_brender = use_brender;
29         set_tooltip(_("Change file format"));
32 int FormatPopup::create_objects()
34         if(!use_brender)
35         {
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)));
41 #ifdef USE_AVIFILE
42                 format_items.append(new BC_ListBoxItem(_(AVI_AVIFILE_NAME)));
43 #endif
44 //              format_items.append(new BC_ListBoxItem(_(AVI_LAVTOOLS_NAME)));
45                 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
46         }
48         format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
50         if(!use_brender)
51         {
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)));
63         }
65         format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
67         if(!use_brender)
68         {
69                 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
70         }
72         format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
74         if(!use_brender)
75         {
76                 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
77         }
79         format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
80 //      for(i = 0; i < plugindb->total; i++)
81 //      {
82 //              if(plugindb->values[i]->fileio)
83 //              {
84 //                      add_item(format_items[total_items++] = new FormatPopupItem(this, plugindb->values[i]->title));
85 //              }
86 //      }
87         update(&format_items,
88                 0,
89                 0,
90                 1);
91         return 0;
94 FormatPopup::~FormatPopup()
96         for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
99 int FormatPopup::handle_event()