svn merge ^/trunk/blender -r55700:55776
[blender.git] / source / blender / editors / render / render_ops.c
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version. 
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * The Original Code is Copyright (C) 2009 Blender Foundation.
19  * All rights reserved.
20  *
21  * Contributor(s): Blender Foundation
22  *
23  * ***** END GPL LICENSE BLOCK *****
24  */
25
26 /** \file blender/editors/render/render_ops.c
27  *  \ingroup edrend
28  */
29
30 #include <stdlib.h>
31
32 #include "BLI_utildefines.h"
33
34 #include "ED_render.h"
35
36 #include "WM_api.h"
37
38 #include "render_intern.h" // own include
39
40 #if (defined(WITH_QUICKTIME) && !defined(USE_QTKIT))
41 #include "quicktime_export.h"
42 #endif
43
44 /***************************** render ***********************************/
45
46 void ED_operatortypes_render(void)
47 {
48         WM_operatortype_append(OBJECT_OT_material_slot_add);
49         WM_operatortype_append(OBJECT_OT_material_slot_remove);
50         WM_operatortype_append(OBJECT_OT_material_slot_assign);
51         WM_operatortype_append(OBJECT_OT_material_slot_select);
52         WM_operatortype_append(OBJECT_OT_material_slot_deselect);
53         WM_operatortype_append(OBJECT_OT_material_slot_copy);
54
55         WM_operatortype_append(MATERIAL_OT_new);
56         WM_operatortype_append(TEXTURE_OT_new);
57         WM_operatortype_append(WORLD_OT_new);
58         
59         WM_operatortype_append(MATERIAL_OT_copy);
60         WM_operatortype_append(MATERIAL_OT_paste);
61
62         WM_operatortype_append(SCENE_OT_render_layer_add);
63         WM_operatortype_append(SCENE_OT_render_layer_remove);
64
65 #ifdef WITH_FREESTYLE
66         WM_operatortype_append(SCENE_OT_freestyle_module_add);
67         WM_operatortype_append(SCENE_OT_freestyle_module_remove);
68         WM_operatortype_append(SCENE_OT_freestyle_module_move);
69         WM_operatortype_append(SCENE_OT_freestyle_lineset_add);
70         WM_operatortype_append(SCENE_OT_freestyle_lineset_copy);
71         WM_operatortype_append(SCENE_OT_freestyle_lineset_paste);
72         WM_operatortype_append(SCENE_OT_freestyle_lineset_remove);
73         WM_operatortype_append(SCENE_OT_freestyle_lineset_move);
74         WM_operatortype_append(SCENE_OT_freestyle_linestyle_new);
75         WM_operatortype_append(SCENE_OT_freestyle_color_modifier_add);
76         WM_operatortype_append(SCENE_OT_freestyle_alpha_modifier_add);
77         WM_operatortype_append(SCENE_OT_freestyle_thickness_modifier_add);
78         WM_operatortype_append(SCENE_OT_freestyle_geometry_modifier_add);
79         WM_operatortype_append(SCENE_OT_freestyle_modifier_remove);
80         WM_operatortype_append(SCENE_OT_freestyle_modifier_move);
81         WM_operatortype_append(SCENE_OT_freestyle_modifier_copy);
82 #endif
83
84 #if (defined(WITH_QUICKTIME) && !defined(USE_QTKIT))
85         WM_operatortype_append(SCENE_OT_render_data_set_quicktime_codec);
86 #endif
87         
88         WM_operatortype_append(TEXTURE_OT_slot_copy);
89         WM_operatortype_append(TEXTURE_OT_slot_paste);
90         WM_operatortype_append(TEXTURE_OT_slot_move);
91         WM_operatortype_append(TEXTURE_OT_envmap_save);
92         WM_operatortype_append(TEXTURE_OT_envmap_clear);
93         WM_operatortype_append(TEXTURE_OT_envmap_clear_all);
94
95         /* render_internal.c */
96         WM_operatortype_append(RENDER_OT_view_show);
97         WM_operatortype_append(RENDER_OT_render);
98         WM_operatortype_append(RENDER_OT_view_cancel);
99
100         /* render_opengl.c */
101         WM_operatortype_append(RENDER_OT_opengl);
102 }
103