vorbis bld msgs, ffmpeg one frame/frame flush bug, ffmpeg audio history fixes
[goodguy/history.git] / cinelerra-5.0 / cinelerra / formatpopup.C
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  * 
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  * 
20  */
21
22 #include "bcsignals.h"
23 #include "file.inc"
24 #include "formatpopup.h"
25 #include "language.h"
26 #include "pluginserver.h"
27
28
29
30 FormatPopup::FormatPopup(ArrayList<PluginServer*> *plugindb, 
31         int x, int y, int use_brender)
32  : BC_ListBox(x, y, 200, 200, LISTBOX_TEXT, 0, 0, 0, 1, 0, 1)
33 {
34         this->plugindb = plugindb;
35         this->use_brender = use_brender;
36         set_tooltip(_("Change file format"));
37 }
38
39 void FormatPopup::create_objects()
40 {
41         if(!use_brender)
42         {
43                 format_items.append(new BC_ListBoxItem(_(AC3_NAME)));
44                 format_items.append(new BC_ListBoxItem(_(AIFF_NAME)));
45                 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
46                 format_items.append(new BC_ListBoxItem(_(FLAC_NAME)));
47                 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
48         }
49
50         format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
51
52         if(!use_brender)
53         {
54                 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
55                 format_items.append(new BC_ListBoxItem(_(EXR_NAME)));
56                 format_items.append(new BC_ListBoxItem(_(EXR_LIST_NAME)));
57                 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
58                 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
59                 format_items.append(new BC_ListBoxItem(_(FFMPEG_NAME)));
60                 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
61                 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
62                 format_items.append(new BC_ListBoxItem(_(OGG_NAME)));
63                 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
64                 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
65         }
66
67         format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
68
69         if(!use_brender)
70         {
71                 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
72         }
73
74         format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
75
76         if(!use_brender)
77         {
78                 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
79         }
80
81         format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
82         update(&format_items, 0, 0, 1);
83 }
84
85 FormatPopup::~FormatPopup()
86 {
87         for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
88 }
89
90 int FormatPopup::handle_event()
91 {
92         return 0;
93 }