Commenting out code from commit 22457 by Genscher for PointCache.
[blender.git] / source / blender / editors / metaball / mball_ops.c
1 /**
2  * $Id$
3  *
4  * ***** BEGIN GPL LICENSE BLOCK *****
5  *
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. 
10  *
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.
15  *
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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19  *
20  * The Original Code is Copyright (C) 2008 Blender Foundation.
21  * All rights reserved.
22  *
23  * 
24  * Contributor(s): Blender Foundation
25  *
26  * ***** END GPL LICENSE BLOCK *****
27  */
28
29 #include "WM_api.h"
30 #include "WM_types.h"
31
32 #include "RNA_access.h"
33
34 #include "DNA_listBase.h"
35 #include "DNA_windowmanager_types.h"
36
37 #include "mball_intern.h"
38
39 void ED_operatortypes_metaball(void)
40 {
41         WM_operatortype_append(MBALL_OT_delete_metaelems);
42         WM_operatortype_append(MBALL_OT_duplicate_metaelems);
43         
44         WM_operatortype_append(MBALL_OT_hide_metaelems);
45         WM_operatortype_append(MBALL_OT_reveal_metaelems);
46         
47         WM_operatortype_append(MBALL_OT_select_deselect_all_metaelems);
48         WM_operatortype_append(MBALL_OT_select_inverse_metaelems);
49         WM_operatortype_append(MBALL_OT_select_random_metaelems);
50 }
51
52 void ED_keymap_metaball(wmWindowManager *wm)
53 {
54         ListBase *keymap= WM_keymap_listbase(wm, "Metaball", 0, 0);
55
56         WM_keymap_add_item(keymap, "OBJECT_OT_metaball_add", AKEY, KM_PRESS, KM_SHIFT, 0);
57         
58         WM_keymap_add_item(keymap, "MBALL_OT_reveal_metaelems", HKEY, KM_PRESS, KM_ALT, 0);
59         WM_keymap_add_item(keymap, "MBALL_OT_hide_metaelems", HKEY, KM_PRESS, 0, 0);
60         RNA_enum_set(WM_keymap_add_item(keymap, "MBALL_OT_hide_metaelems", HKEY, KM_PRESS, KM_SHIFT, 0)->ptr, "unselected", 1);
61         
62         WM_keymap_add_item(keymap, "MBALL_OT_delete_metaelems", XKEY, KM_PRESS, 0, 0);
63         WM_keymap_add_item(keymap, "MBALL_OT_duplicate_metaelems", DKEY, KM_PRESS, KM_SHIFT, 0);
64         
65         WM_keymap_add_item(keymap, "MBALL_OT_select_deselect_all_metaelems", AKEY, KM_PRESS, 0, 0);
66         WM_keymap_add_item(keymap, "MBALL_OT_select_inverse_metaelems", IKEY, KM_PRESS, KM_CTRL, 0);
67 }
68