r726: Implementing ability to add textural info to the labels
[cinelerra_cv/mob.git] / cinelerra / formatpopup.C
blob524e08da03b6e79ffa5f350f80c42852dc2e3e6e
1 #include "file.inc"
2 #include "formatpopup.h"
3 #include "language.h"
4 #include "pluginserver.h"
8 FormatPopup::FormatPopup(ArrayList<PluginServer*> *plugindb, 
9         int x, 
10         int y,
11         int use_brender)
12  : BC_ListBox(x, 
13         y, 
14         200, 
15         200,
16         LISTBOX_TEXT,
17         0,
18         0,
19         0,
20         1,
21         0,
22         1)
24         this->plugindb = plugindb;
25         this->use_brender = use_brender;
26         set_tooltip(_("Change file format"));
29 int FormatPopup::create_objects()
31         if(!use_brender)
32         {
33                 format_items.append(new BC_ListBoxItem(_(AC3_NAME)));
34                 format_items.append(new BC_ListBoxItem(_(AIFF_NAME)));
35                 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
36 //              format_items.append(new BC_ListBoxItem(_(AVI_ARNE1_NAME)));
37 //              format_items.append(new BC_ListBoxItem(_(AVI_ARNE2_NAME)));
38 #ifdef USE_AVIFILE
39                 format_items.append(new BC_ListBoxItem(_(AVI_AVIFILE_NAME)));
40 #endif
41 //              format_items.append(new BC_ListBoxItem(_(AVI_LAVTOOLS_NAME)));
42                 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
43         }
45         format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
47         if(!use_brender)
48         {
49                 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
50                 format_items.append(new BC_ListBoxItem(_(EXR_NAME)));
51                 format_items.append(new BC_ListBoxItem(_(EXR_LIST_NAME)));
52                 format_items.append(new BC_ListBoxItem(_(YUV_NAME)));
53                 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
54                 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
55                 format_items.append(new BC_ListBoxItem(_(RAWDV_NAME)));
56                 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
57                 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
58                 format_items.append(new BC_ListBoxItem(_(VORBIS_NAME)));
59                 format_items.append(new BC_ListBoxItem(_(OGG_NAME)));
60                 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
61                 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
62         }
64         format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
66         if(!use_brender)
67         {
68                 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
69         }
71         format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
73         if(!use_brender)
74         {
75                 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
76         }
78         format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
79 //      for(i = 0; i < plugindb->total; i++)
80 //      {
81 //              if(plugindb->values[i]->fileio)
82 //              {
83 //                      add_item(format_items[total_items++] = new FormatPopupItem(this, plugindb->values[i]->title));
84 //              }
85 //      }
86         update(&format_items,
87                 0,
88                 0,
89                 1);
90         return 0;
93 FormatPopup::~FormatPopup()
95         for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
98 int FormatPopup::handle_event()