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