2009-01-05 15:19:31 +00:00
|
|
|
/**
|
|
|
|
* $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_ARMATURE_INTERN_H
|
|
|
|
#define ED_ARMATURE_INTERN_H
|
|
|
|
|
|
|
|
/* internal exports only */
|
2009-02-01 19:53:24 +00:00
|
|
|
struct wmOperatorType;
|
2009-01-05 15:19:31 +00:00
|
|
|
|
2009-03-17 21:44:58 +00:00
|
|
|
/* editarmature.c operators */
|
2009-02-18 02:13:36 +00:00
|
|
|
void ARMATURE_OT_bone_primitive_add(struct wmOperatorType *ot);
|
2009-04-12 22:16:21 +00:00
|
|
|
void ARMATURE_OT_bones_align(struct wmOperatorType *ot);
|
2009-02-06 10:48:00 +00:00
|
|
|
void ARMATURE_OT_calculate_roll(struct wmOperatorType *ot);
|
2009-02-08 23:41:21 +00:00
|
|
|
void ARMATURE_OT_switch_direction(struct wmOperatorType *ot);
|
2009-02-09 01:27:44 +00:00
|
|
|
void ARMATURE_OT_subdivs(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_subdivide_simple(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_subdivide_multi(struct wmOperatorType *ot);
|
2009-02-10 06:12:35 +00:00
|
|
|
void ARMATURE_OT_parent_set(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_parent_clear(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void ARMATURE_OT_select_all_toggle(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_select_invert(struct wmOperatorType *ot);
|
2009-02-16 17:18:24 +00:00
|
|
|
void ARMATURE_OT_select_hierarchy(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void ARMATURE_OT_select_linked(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_delete(struct wmOperatorType *ot);
|
2009-02-25 13:48:39 +00:00
|
|
|
void ARMATURE_OT_duplicate_selected(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_extrude(struct wmOperatorType *ot);
|
|
|
|
void ARMATURE_OT_click_extrude(struct wmOperatorType *ot);
|
2009-02-06 01:39:55 +00:00
|
|
|
|
2009-02-01 19:53:24 +00:00
|
|
|
void POSE_OT_hide(struct wmOperatorType *ot);
|
2009-02-12 03:48:56 +00:00
|
|
|
void POSE_OT_reveal(struct wmOperatorType *ot);
|
2009-02-05 05:13:08 +00:00
|
|
|
void POSE_OT_rot_clear(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_loc_clear(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_scale_clear(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void POSE_OT_select_all_toggle(struct wmOperatorType *ot);
|
|
|
|
void POSE_OT_select_invert(struct wmOperatorType *ot);
|
2009-02-11 16:17:34 +00:00
|
|
|
void POSE_OT_select_parent(struct wmOperatorType *ot);
|
2009-02-16 17:18:24 +00:00
|
|
|
void POSE_OT_select_hierarchy(struct wmOperatorType *ot);
|
2009-03-29 02:15:13 +00:00
|
|
|
void POSE_OT_select_linked(struct wmOperatorType *ot);
|
2009-01-05 15:19:31 +00:00
|
|
|
|
2009-03-22 00:30:18 +00:00
|
|
|
void SKETCH_OT_gesture(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_delete(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_draw_stroke(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_draw_preview(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_finish_stroke(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_cancel_stroke(struct wmOperatorType *ot);
|
|
|
|
void SKETCH_OT_select(struct wmOperatorType *ot);
|
|
|
|
|
2009-04-15 03:22:22 +00:00
|
|
|
/* PoseLib */
|
|
|
|
void POSELIB_OT_pose_add(struct wmOperatorType *ot);
|
|
|
|
void POSELIB_OT_pose_remove(struct wmOperatorType *ot);
|
|
|
|
void POSELIB_OT_pose_rename(struct wmOperatorType *ot);
|
2009-04-15 12:04:10 +00:00
|
|
|
void POSELIB_OT_browse_interactive(struct wmOperatorType *ot);
|
2009-04-15 03:22:22 +00:00
|
|
|
|
2009-03-17 21:44:58 +00:00
|
|
|
/* editarmature.c */
|
|
|
|
struct bArmature;
|
|
|
|
struct EditBone;
|
2009-03-20 18:00:51 +00:00
|
|
|
struct ListBase;
|
|
|
|
|
|
|
|
void make_boneList(struct ListBase *edbo, struct ListBase *bones, struct EditBone *parent);
|
2009-03-17 21:44:58 +00:00
|
|
|
struct EditBone *addEditBone(struct bArmature *arm, char *name);
|
2.5
More cleanup!
- removed old UI font completely, including from uiBeginBlock
- emboss hints for uiBlock only have three types now;
Regular, Pulldown, or "Nothing" (only icon/text)
- removed old font path from Userdef
- removed all old button theme hinting
- removed old "auto block" to merge buttons in groups
(was only in use for radiosity buttons)
And went over all warnings. One hooray for make giving clean output :)
Well, we need uniform definitions for warnings, so people at least fix
them... here's the real bad bugs I found:
- in mesh code, a call to editmesh mixed *em and *me
- in armature, ED_util.h was not included, so no warnings for wrong call
to ED_undo_push()
- The extern Py api .h was not included in the bpy_interface.c, showing
a several calls using different args.
Further just added the missing includes, and removed unused vars.
2009-04-14 15:59:52 +00:00
|
|
|
void BIF_sk_selectStroke(struct bContext *C, short mval[2], short extend);
|
2009-03-17 21:44:58 +00:00
|
|
|
|
|
|
|
/* duplicate method */
|
|
|
|
void preEditBoneDuplicate(struct ListBase *editbones);
|
|
|
|
struct EditBone *duplicateEditBone(struct EditBone *curBone, char *name, struct ListBase *editbones, struct Object *ob);
|
|
|
|
void updateDuplicateSubtarget(struct EditBone *dupBone, struct ListBase *editbones, struct Object *ob);
|
|
|
|
|
|
|
|
/* duplicate method (cross objects */
|
|
|
|
|
|
|
|
/* editbones is the target list */
|
|
|
|
struct EditBone *duplicateEditBoneObjects(struct EditBone *curBone, char *name, struct ListBase *editbones, struct Object *src_ob, struct Object *dst_ob);
|
|
|
|
|
|
|
|
/* editbones is the source list */
|
|
|
|
void updateDuplicateSubtargetObjects(struct EditBone *dupBone, struct ListBase *editbones, struct Object *src_ob, struct Object *dst_ob);
|
|
|
|
|
2009-01-05 15:19:31 +00:00
|
|
|
#endif /* ED_ARMATURE_INTERN_H */
|
|
|
|
|