Fix T71488: Flipping Custom Split Normal Data leads to artifacts
[blender.git] / source / blender / editors / space_outliner / outliner_ops.c
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2008 Blender Foundation.
17  * All rights reserved.
18  */
19
20 /** \file
21  * \ingroup spoutliner
22  */
23
24 #include "MEM_guardedalloc.h"
25
26 #include "DNA_collection_types.h"
27
28 #include "BLT_translation.h"
29
30 #include "RNA_access.h"
31
32 #include "UI_interface.h"
33 #include "UI_view2d.h"
34
35 #include "WM_api.h"
36 #include "WM_types.h"
37
38 #include "ED_screen.h"
39 #include "ED_select_utils.h"
40
41 #include "outliner_intern.h"
42
43 /* ************************** registration **********************************/
44
45 void outliner_operatortypes(void)
46 {
47   WM_operatortype_append(OUTLINER_OT_highlight_update);
48   WM_operatortype_append(OUTLINER_OT_item_activate);
49   WM_operatortype_append(OUTLINER_OT_select_box);
50   WM_operatortype_append(OUTLINER_OT_select_walk);
51   WM_operatortype_append(OUTLINER_OT_item_openclose);
52   WM_operatortype_append(OUTLINER_OT_item_rename);
53   WM_operatortype_append(OUTLINER_OT_item_drag_drop);
54   WM_operatortype_append(OUTLINER_OT_operation);
55   WM_operatortype_append(OUTLINER_OT_scene_operation);
56   WM_operatortype_append(OUTLINER_OT_object_operation);
57   WM_operatortype_append(OUTLINER_OT_lib_operation);
58   WM_operatortype_append(OUTLINER_OT_lib_relocate);
59   WM_operatortype_append(OUTLINER_OT_id_operation);
60   WM_operatortype_append(OUTLINER_OT_id_delete);
61   WM_operatortype_append(OUTLINER_OT_id_remap);
62   WM_operatortype_append(OUTLINER_OT_id_copy);
63   WM_operatortype_append(OUTLINER_OT_id_paste);
64   WM_operatortype_append(OUTLINER_OT_data_operation);
65   WM_operatortype_append(OUTLINER_OT_animdata_operation);
66   WM_operatortype_append(OUTLINER_OT_action_set);
67   WM_operatortype_append(OUTLINER_OT_constraint_operation);
68   WM_operatortype_append(OUTLINER_OT_modifier_operation);
69   WM_operatortype_append(OUTLINER_OT_delete);
70
71   WM_operatortype_append(OUTLINER_OT_show_one_level);
72   WM_operatortype_append(OUTLINER_OT_show_active);
73   WM_operatortype_append(OUTLINER_OT_show_hierarchy);
74   WM_operatortype_append(OUTLINER_OT_scroll_page);
75
76   WM_operatortype_append(OUTLINER_OT_select_all);
77   WM_operatortype_append(OUTLINER_OT_expanded_toggle);
78
79   WM_operatortype_append(OUTLINER_OT_keyingset_add_selected);
80   WM_operatortype_append(OUTLINER_OT_keyingset_remove_selected);
81
82   WM_operatortype_append(OUTLINER_OT_drivers_add_selected);
83   WM_operatortype_append(OUTLINER_OT_drivers_delete_selected);
84
85   WM_operatortype_append(OUTLINER_OT_orphans_purge);
86
87   WM_operatortype_append(OUTLINER_OT_parent_drop);
88   WM_operatortype_append(OUTLINER_OT_parent_clear);
89   WM_operatortype_append(OUTLINER_OT_scene_drop);
90   WM_operatortype_append(OUTLINER_OT_material_drop);
91   WM_operatortype_append(OUTLINER_OT_collection_drop);
92
93   /* collections */
94   WM_operatortype_append(OUTLINER_OT_collection_new);
95   WM_operatortype_append(OUTLINER_OT_collection_duplicate_linked);
96   WM_operatortype_append(OUTLINER_OT_collection_duplicate);
97   WM_operatortype_append(OUTLINER_OT_collection_hierarchy_delete);
98   WM_operatortype_append(OUTLINER_OT_collection_objects_select);
99   WM_operatortype_append(OUTLINER_OT_collection_objects_deselect);
100   WM_operatortype_append(OUTLINER_OT_collection_link);
101   WM_operatortype_append(OUTLINER_OT_collection_instance);
102   WM_operatortype_append(OUTLINER_OT_collection_exclude_set);
103   WM_operatortype_append(OUTLINER_OT_collection_exclude_clear);
104   WM_operatortype_append(OUTLINER_OT_collection_holdout_set);
105   WM_operatortype_append(OUTLINER_OT_collection_holdout_clear);
106   WM_operatortype_append(OUTLINER_OT_collection_indirect_only_set);
107   WM_operatortype_append(OUTLINER_OT_collection_indirect_only_clear);
108
109   WM_operatortype_append(OUTLINER_OT_collection_isolate);
110   WM_operatortype_append(OUTLINER_OT_collection_disable);
111   WM_operatortype_append(OUTLINER_OT_collection_enable);
112   WM_operatortype_append(OUTLINER_OT_collection_hide);
113   WM_operatortype_append(OUTLINER_OT_collection_show);
114   WM_operatortype_append(OUTLINER_OT_collection_disable_render);
115   WM_operatortype_append(OUTLINER_OT_collection_enable_render);
116   WM_operatortype_append(OUTLINER_OT_collection_hide_inside);
117   WM_operatortype_append(OUTLINER_OT_collection_show_inside);
118   WM_operatortype_append(OUTLINER_OT_hide);
119   WM_operatortype_append(OUTLINER_OT_unhide_all);
120 }
121
122 void outliner_keymap(wmKeyConfig *keyconf)
123 {
124   WM_keymap_ensure(keyconf, "Outliner", SPACE_OUTLINER, 0);
125 }