doxygen: blender/editors tagged.
[blender.git] / source / blender / editors / gpencil / gpencil_ops.c
index 2d23a33121192b2bba84c4a907430002a27cc668..f2efada8406ff7a3f32c0672f81c984925903dc1 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * $Id$
  *
  * ***** BEGIN GPL LICENSE BLOCK *****
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  * The Original Code is Copyright (C) 2009, Blender Foundation, Joshua Leung
  * This is a new part of Blender
  * ***** END GPL LICENSE BLOCK *****
  */
 
+/** \file blender/editors/gpencil/gpencil_ops.c
+ *  \ingroup edgpencil
+ */
+
+
 #include <stdlib.h>
 #include <stddef.h>
 #include <stdio.h>
 
-#include "BLI_blenlib.h"
+#include "BLO_sys_types.h"
 
-#include "DNA_windowmanager_types.h" 
+#include "BLI_blenlib.h"
 
 #include "WM_api.h"
 #include "WM_types.h"
 
 #include "RNA_access.h"
-#include "RNA_define.h"
-#include "RNA_enum_types.h"
+
+#include "ED_gpencil.h"
 
 #include "gpencil_intern.h"
 
 /* ****************************************** */
 /* Generic Editing Keymap */
 
-void gpencil_common_keymap(wmWindowManager *wm, ListBase *keymap)
+void ED_keymap_gpencil(wmKeyConfig *keyconf)
 {
-       wmKeymapItem *kmi;
-       
-       /* if no keymap provided, use default */
-       if (keymap == NULL)
-               keymap= WM_keymap_listbase(wm, "Grease Pencil Generic", 0, 0);
+       wmKeyMap *keymap= WM_keymap_find(keyconf, "Grease Pencil", 0, 0);
+       wmKeyMapItem *kmi;
        
        /* Draw */
                /* draw */
@@ -79,6 +81,10 @@ void ED_operatortypes_gpencil (void)
        
        WM_operatortype_append(GPENCIL_OT_layer_add);
        
+       WM_operatortype_append(GPENCIL_OT_active_frame_delete);
+       
+       WM_operatortype_append(GPENCIL_OT_convert);
+       
        /* Editing (Time) --------------- */
 }