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), Roland Hess 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_scene_types.h" 00035 00036 #include "WM_types.h" 00037 00038 #ifdef RNA_RUNTIME 00039 00040 #else 00041 00042 static void rna_def_timeline_marker(BlenderRNA *brna) 00043 { 00044 StructRNA *srna; 00045 PropertyRNA *prop; 00046 00047 srna= RNA_def_struct(brna, "TimelineMarker", NULL); 00048 RNA_def_struct_sdna(srna, "TimeMarker"); 00049 RNA_def_struct_ui_text(srna, "Marker", "Marker for noting points in the timeline"); 00050 00051 /* String values */ 00052 prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); 00053 RNA_def_property_ui_text(prop, "Name", ""); 00054 RNA_def_struct_name_property(srna, prop); 00055 RNA_def_property_update(prop, NC_ANIMATION, NULL); 00056 00057 prop= RNA_def_property(srna, "frame", PROP_INT, PROP_TIME); 00058 RNA_def_property_ui_text(prop, "Frame", "The frame on which the timeline marker appears"); 00059 RNA_def_property_update(prop, NC_ANIMATION, NULL); 00060 00061 prop= RNA_def_property(srna, "select", PROP_BOOLEAN, PROP_NONE); 00062 RNA_def_property_boolean_sdna(prop, NULL, "flag", 1 /*SELECT*/); 00063 RNA_def_property_ui_text(prop, "Select", "Marker selection state"); 00064 RNA_def_property_update(prop, NC_ANIMATION, NULL); 00065 00066 #ifdef DURIAN_CAMERA_SWITCH 00067 prop= RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE); 00068 RNA_def_property_struct_type(prop, "Object"); 00069 RNA_def_property_flag(prop, PROP_EDITABLE|PROP_ID_SELF_CHECK); 00070 RNA_def_property_ui_text(prop, "Camera", "Camera this timeline sets to active"); 00071 #endif 00072 } 00073 00074 void RNA_def_timeline_marker(BlenderRNA *brna) 00075 { 00076 rna_def_timeline_marker(brna); 00077 } 00078 00079 00080 #endif