Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

formatpopup.C

Go to the documentation of this file.
00001 #include "file.inc"
00002 #include "formatpopup.h"
00003 #include "language.h"
00004 #include "pluginserver.h"
00005 
00006 
00007 
00008 FormatPopup::FormatPopup(ArrayList<PluginServer*> *plugindb, 
00009         int x, 
00010         int y,
00011         int use_brender)
00012  : BC_ListBox(x, 
00013         y, 
00014         200, 
00015         200,
00016         LISTBOX_TEXT,
00017         0,
00018         0,
00019         0,
00020         1,
00021         0,
00022         1)
00023 {
00024         this->plugindb = plugindb;
00025         this->use_brender = use_brender;
00026         set_tooltip(_("Change file format"));
00027 }
00028 
00029 int FormatPopup::create_objects()
00030 {
00031         if(!use_brender)
00032         {
00033                 format_items.append(new BC_ListBoxItem(_(AC3_NAME)));
00034                 format_items.append(new BC_ListBoxItem(_(AIFF_NAME)));
00035                 format_items.append(new BC_ListBoxItem(_(AU_NAME)));
00036 //              format_items.append(new BC_ListBoxItem(_(AVI_ARNE1_NAME)));
00037 //              format_items.append(new BC_ListBoxItem(_(AVI_ARNE2_NAME)));
00038 #ifdef USE_AVIFILE
00039                 format_items.append(new BC_ListBoxItem(_(AVI_AVIFILE_NAME)));
00040 #endif
00041 //              format_items.append(new BC_ListBoxItem(_(AVI_LAVTOOLS_NAME)));
00042                 format_items.append(new BC_ListBoxItem(_(JPEG_NAME)));
00043         }
00044 
00045         format_items.append(new BC_ListBoxItem(_(JPEG_LIST_NAME)));
00046 
00047         if(!use_brender)
00048         {
00049                 format_items.append(new BC_ListBoxItem(_(AVI_NAME)));
00050                 format_items.append(new BC_ListBoxItem(_(EXR_NAME)));
00051                 format_items.append(new BC_ListBoxItem(_(EXR_LIST_NAME)));
00052                 format_items.append(new BC_ListBoxItem(_(YUV_NAME)));
00053                 format_items.append(new BC_ListBoxItem(_(WAV_NAME)));
00054                 format_items.append(new BC_ListBoxItem(_(MOV_NAME)));
00055                 format_items.append(new BC_ListBoxItem(_(RAWDV_NAME)));
00056                 format_items.append(new BC_ListBoxItem(_(AMPEG_NAME)));
00057                 format_items.append(new BC_ListBoxItem(_(VMPEG_NAME)));
00058                 format_items.append(new BC_ListBoxItem(_(VORBIS_NAME)));
00059                 format_items.append(new BC_ListBoxItem(_(OGG_NAME)));
00060                 format_items.append(new BC_ListBoxItem(_(PCM_NAME)));
00061                 format_items.append(new BC_ListBoxItem(_(PNG_NAME)));
00062         }
00063 
00064         format_items.append(new BC_ListBoxItem(_(PNG_LIST_NAME)));
00065 
00066         if(!use_brender)
00067         {
00068                 format_items.append(new BC_ListBoxItem(_(TGA_NAME)));
00069         }
00070 
00071         format_items.append(new BC_ListBoxItem(_(TGA_LIST_NAME)));
00072 
00073         if(!use_brender)
00074         {
00075                 format_items.append(new BC_ListBoxItem(_(TIFF_NAME)));
00076         }
00077 
00078         format_items.append(new BC_ListBoxItem(_(TIFF_LIST_NAME)));
00079 //      for(i = 0; i < plugindb->total; i++)
00080 //      {
00081 //              if(plugindb->values[i]->fileio)
00082 //              {
00083 //                      add_item(format_items[total_items++] = new FormatPopupItem(this, plugindb->values[i]->title));
00084 //              }
00085 //      }
00086         update(&format_items,
00087                 0,
00088                 0,
00089                 1);
00090         return 0;
00091 }
00092 
00093 FormatPopup::~FormatPopup()
00094 {
00095         for(int i = 0; i < format_items.total; i++) delete format_items.values[i];
00096 }
00097 
00098 int FormatPopup::handle_event()
00099 {
00100 }

Generated on Sun Jan 8 13:38:55 2006 for Cinelerra-svn by  doxygen 1.4.4