Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * Contributor(s): Blender Foundation (2008). 00019 * 00020 * ***** END GPL LICENSE BLOCK ***** 00021 */ 00022 00028 #include <stdlib.h> 00029 00030 #include "RNA_define.h" 00031 00032 #include "rna_internal.h" 00033 00034 #include "DNA_packedFile_types.h" 00035 00036 EnumPropertyItem unpack_method_items[] = { 00037 {PF_USE_LOCAL, "USE_LOCAL", 0, "Use Local File", ""}, 00038 {PF_WRITE_LOCAL, "WRITE_LOCAL", 0, "Write Local File (overwrite existing)", ""}, 00039 {PF_USE_ORIGINAL, "USE_ORIGINAL", 0, "Use Original File", ""}, 00040 {PF_WRITE_ORIGINAL, "WRITE_ORIGINAL", 0, "Write Original File (overwrite existing)", ""}, 00041 {0, NULL, 0, NULL, NULL}}; 00042 00043 #ifdef RNA_RUNTIME 00044 #else 00045 00046 void RNA_def_packedfile(BlenderRNA *brna) 00047 { 00048 StructRNA *srna; 00049 PropertyRNA *prop; 00050 00051 srna= RNA_def_struct(brna, "PackedFile", NULL); 00052 RNA_def_struct_ui_text(srna, "Packed File", "External file packed into the .blend file"); 00053 00054 prop= RNA_def_property(srna, "size", PROP_INT, PROP_NONE); 00055 RNA_def_property_clear_flag(prop, PROP_EDITABLE); 00056 RNA_def_property_ui_text(prop, "Size", "Size of packed file in bytes"); 00057 00058 } 00059 00060 #endif 00061