Keymaps are now saveable and configurable from the user preferences, note that editing one item in a keymap means the whole keymap is now defined by the user and will not be updated by Blender, an option for syncing might be added later. The outliner interface is still there, but I will probably remove it. There's actually 3 levels now: * Default builtin key configuration. * Key configuration loaded from .py file, for configs like Blender 2.4x or other 3D applications. * Keymaps edited by the user and saved in .B.blend. These can be saved to .py files as well to make creating distributable configurations easier. Also, user preferences sections were reorganized a bit, now there is: Interface, Editing, Input, Files and System. Implementation notes: * wmKeyConfig was added which represents a key configuration containing keymaps. * wmKeymapItem was renamed to wmKeyMapItem for consistency with wmKeyMap. * Modal maps are not wrapped yet. * User preferences DNA file reading did not support newdataadr() yet, added this now for reading keymaps. * Key configuration related settings are now RNA wrapped. * is_property_set and is_property_hidden python methods were added.
71 lines
2.0 KiB
C++
71 lines
2.0 KiB
C++
/**
|
|
* $Id:
|
|
*
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* 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.
|
|
*
|
|
* The Original Code is Copyright (C) 2009 Blender Foundation.
|
|
* All rights reserved.
|
|
*
|
|
*
|
|
* Contributor(s): Blender Foundation
|
|
*
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
*/
|
|
#ifndef ED_CURVE_H
|
|
#define ED_CURVE_H
|
|
|
|
struct Base;
|
|
struct bContext;
|
|
struct Nurb;
|
|
struct Object;
|
|
struct Scene;
|
|
struct Text;
|
|
struct View3D;
|
|
struct wmOperator;
|
|
struct wmKeyConfig;
|
|
|
|
/* curve_ops.c */
|
|
void ED_operatortypes_curve(void);
|
|
void ED_keymap_curve (struct wmKeyConfig *keyconf);
|
|
|
|
/* editcurve.c */
|
|
void undo_push_curve (struct bContext *C, char *name);
|
|
ListBase *curve_get_editcurve(struct Object *ob);
|
|
|
|
void load_editNurb (struct Object *obedit);
|
|
void make_editNurb (struct Object *obedit);
|
|
void free_editNurb (struct Object *obedit);
|
|
|
|
void mouse_nurb (struct bContext *C, short mval[2], int extend);
|
|
|
|
struct Nurb *add_nurbs_primitive(struct bContext *C, int type, int newname);
|
|
|
|
int isNurbsel (struct Nurb *nu);;
|
|
|
|
int join_curve_exec (struct bContext *C, struct wmOperator *op);
|
|
|
|
/* editfont.h */
|
|
void undo_push_font (struct bContext *C, char *name);
|
|
void make_editText (struct Object *obedit);
|
|
void load_editText (struct Object *obedit);
|
|
void free_editText (struct Object *obedit);
|
|
|
|
void ED_text_to_object(struct bContext *C, struct Text *text, int split_lines);
|
|
|
|
#endif /* ED_CURVE_H */
|
|
|