4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
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.
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 Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * Contributor(s): Blender Foundation (2008).
22 * ***** END GPL LICENSE BLOCK *****
25 #ifndef RNA_ENUM_TYPES
26 #define RNA_ENUM_TYPES
28 #include "RNA_types.h"
32 extern EnumPropertyItem id_type_items[];
34 /* use in cases where only dynamic types are used */
35 extern EnumPropertyItem DummyRNA_NULL_items[];
36 extern EnumPropertyItem DummyRNA_DEFAULT_items[];
38 extern EnumPropertyItem object_mode_items[];
40 extern EnumPropertyItem proportional_falloff_items[];
41 extern EnumPropertyItem proportional_editing_items[];
42 extern EnumPropertyItem snap_target_items[];
43 extern EnumPropertyItem snap_element_items[];
44 extern EnumPropertyItem mesh_select_mode_items[];
45 extern EnumPropertyItem space_type_items[];
46 extern EnumPropertyItem region_type_items[];
47 extern EnumPropertyItem modifier_type_items[];
48 extern EnumPropertyItem constraint_type_items[];
49 extern EnumPropertyItem boidrule_type_items[];
51 extern EnumPropertyItem image_type_items[];
53 extern EnumPropertyItem beztriple_keyframe_type_items[];
54 extern EnumPropertyItem beztriple_handle_type_items[];
55 extern EnumPropertyItem beztriple_interpolation_mode_items[];
57 extern EnumPropertyItem keyingset_path_grouping_items[];
59 extern EnumPropertyItem fmodifier_type_items[];
61 extern EnumPropertyItem nla_mode_extend_items[];
62 extern EnumPropertyItem nla_mode_blend_items[];
64 extern EnumPropertyItem event_value_items[];
65 extern EnumPropertyItem event_type_items[];
66 extern EnumPropertyItem operator_return_items[];
68 extern EnumPropertyItem brush_sculpt_tool_items[];
70 extern EnumPropertyItem texture_type_items[];
72 extern EnumPropertyItem unpack_method_items[];
74 extern EnumPropertyItem object_type_items[];
76 extern EnumPropertyItem object_type_curve_items[];
78 extern EnumPropertyItem space_type_items[];
80 extern EnumPropertyItem keymap_propvalue_items[];
82 extern EnumPropertyItem operator_context_items[];
84 extern EnumPropertyItem wm_report_items[];
86 extern EnumPropertyItem property_type_items[];
87 extern EnumPropertyItem property_unit_items[];
89 extern EnumPropertyItem viewport_shading_items[];
93 EnumPropertyItem *rna_TransformOrientation_itemf(struct bContext *C, struct PointerRNA *ptr, int *free);
95 /* Generic functions, return an enum from library data, index is the position
96 * in the linked list can add more for different types as needed */
97 EnumPropertyItem *RNA_action_itemf(struct bContext *C, struct PointerRNA *ptr, int *free);
98 EnumPropertyItem *RNA_group_itemf(struct bContext *C, struct PointerRNA *ptr, int *free);
99 EnumPropertyItem *RNA_image_itemf(struct bContext *C, struct PointerRNA *ptr, int *free);
100 EnumPropertyItem *RNA_scene_itemf(struct bContext *C, struct PointerRNA *ptr, int *free);
102 #endif /* RNA_ENUM_TYPES */