diff options
author | Joseph Eagar <joeedh@gmail.com> | 2011-02-27 09:19:40 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2011-02-27 09:19:40 +0300 |
commit | f01261d040be27337db9f9996d648a279c89b7c4 (patch) | |
tree | c448230939b3c90d53ce8852dd00925d6052e3a4 /source/blender/editors/include | |
parent | dcaeda5c4e3a0687251b8511de4f2e8b85ef75c0 (diff) | |
parent | 2198cfdb2deec8b2e85e242c74a032f43d0b26ca (diff) |
merge with/from trunk at r35190
Diffstat (limited to 'source/blender/editors/include')
43 files changed, 1646 insertions, 1228 deletions
diff --git a/source/blender/editors/include/BIF_gl.h b/source/blender/editors/include/BIF_gl.h index aca0e671067..85244a85613 100644 --- a/source/blender/editors/include/BIF_gl.h +++ b/source/blender/editors/include/BIF_gl.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -28,6 +28,10 @@ * os dependent include locations of gl.h */ +/** \file BIF_gl.h + * \ingroup editorui + */ + #ifndef BIF_GL_H #define BIF_GL_H diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h index 8f37baf9af1..c9615204607 100644 --- a/source/blender/editors/include/BIF_glutil.h +++ b/source/blender/editors/include/BIF_glutil.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file BIF_glutil.h + * \ingroup editorui + */ + #ifndef BIF_GLUTIL_H #define BIF_GLUTIL_H @@ -197,7 +201,7 @@ void gla2DSetMap(gla2DDrawInfo *di, struct rctf *rect); /* use this for platform hacks. glPointSize is solved here */ void bglBegin(int mode); void bglEnd(void); -int bglPointHack(); +int bglPointHack(void); void bglVertex3fv(float *vec); void bglVertex3f(float x, float y, float z); void bglVertex2fv(float *vec); diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 5fb7fa41752..d19d3549fad 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_anim_api.h + * \ingroup editors + */ + #ifndef ED_ANIM_API_H #define ED_ANIM_API_H @@ -35,6 +39,7 @@ struct AnimData; struct bContext; struct wmKeyConfig; +struct ReportList; struct ScrArea; struct ARegion; struct View2D; @@ -73,7 +78,8 @@ typedef struct bAnimContext { struct Scene *scene; /* active scene */ struct Object *obact; /* active object */ ListBase *markers; /* active set of markers */ - ListBase *reports; /* pointer to current reports list */ // XXX not yet used + + struct ReportList *reports; /* pointer to current reports list */ } bAnimContext; /* Main Data container types */ @@ -86,7 +92,7 @@ typedef enum eAnimCont_Types { ANIMCONT_DOPESHEET, /* dopesheet (bDopesheet) */ ANIMCONT_FCURVES, /* animation F-Curves (bDopesheet) */ ANIMCONT_DRIVERS, /* drivers (bDopesheet) */ - ANIMCONT_NLA, /* nla (bDopesheet) */ + ANIMCONT_NLA /* nla (bDopesheet) */ } eAnimCont_Types; /* --------------- Channels -------------------- */ @@ -151,6 +157,7 @@ typedef enum eAnim_ChannelType { ANIMTYPE_DSARM, ANIMTYPE_DSMESH, ANIMTYPE_DSTEX, + ANIMTYPE_DSLAT, ANIMTYPE_SHAPEKEY, @@ -161,7 +168,7 @@ typedef enum eAnim_ChannelType { ANIMTYPE_NLAACTION, /* always as last item, the total number of channel types... */ - ANIMTYPE_NUM_TYPES, + ANIMTYPE_NUM_TYPES } eAnim_ChannelType; /* types of keyframe data in bAnimListElem */ @@ -175,7 +182,7 @@ typedef enum eAnim_KeyType { ALE_SCE, /* Scene summary */ ALE_OB, /* Object summary */ ALE_ACT, /* Action summary */ - ALE_GROUP, /* Action Group summary */ + ALE_GROUP /* Action Group summary */ } eAnim_KeyType; /* ----------------- Filtering -------------------- */ @@ -228,6 +235,8 @@ typedef enum eAnimFilter_Flags { #define FILTER_MBALL_OBJD(mb) ((mb->flag2 & MB_DS_EXPAND)) #define FILTER_ARM_OBJD(arm) ((arm->flag & ARM_DS_EXPAND)) #define FILTER_MESH_OBJD(me) ((me->flag & ME_DS_EXPAND)) +#define FILTER_LATTICE_OBJD(lt) ((lt->flag & LT_DS_EXPAND)) + /* 'Sub-object/Action' channels (flags stored in Action) */ #define SEL_ACTC(actc) ((actc->flag & ACT_SELECTED)) #define EXPANDED_ACTC(actc) ((actc->flag & ACT_COLLAPSED)==0) @@ -325,17 +334,17 @@ typedef enum eAnimChannels_SetFlag { ACHANNEL_SETFLAG_CLEAR = 0, /* turn off */ ACHANNEL_SETFLAG_ADD, /* turn on */ ACHANNEL_SETFLAG_INVERT, /* on->off, off->on */ - ACHANNEL_SETFLAG_TOGGLE, /* some on -> all off // all on */ + ACHANNEL_SETFLAG_TOGGLE /* some on -> all off // all on */ } eAnimChannels_SetFlag; /* types of settings for AnimChannels */ typedef enum eAnimChannel_Settings { - ACHANNEL_SETTING_SELECT = 0, + ACHANNEL_SETTING_SELECT = 0, ACHANNEL_SETTING_PROTECT, // warning: for drawing UI's, need to check if this is off (maybe inverse this later) ACHANNEL_SETTING_MUTE, ACHANNEL_SETTING_EXPAND, ACHANNEL_SETTING_VISIBLE, /* only for Graph Editor */ - ACHANNEL_SETTING_SOLO, /* only for NLA Tracks */ + ACHANNEL_SETTING_SOLO /* only for NLA Tracks */ } eAnimChannel_Settings; @@ -343,7 +352,7 @@ typedef enum eAnimChannel_Settings { typedef struct bAnimChannelType { /* type data */ /* name of the channel type, for debugging */ - char *channel_type_name; + const char *channel_type_name; /* drawing */ /* get RGB color that is used to draw the majority of the backdrop */ @@ -442,7 +451,7 @@ enum { /* time indication in seconds or frames */ DRAWCFRA_UNIT_SECONDS = (1<<1), /* show time-offset line */ - DRAWCFRA_SHOW_TIMEOFS = (1<<2), + DRAWCFRA_SHOW_TIMEOFS = (1<<2) } eAnimEditDraw_CurrentFrame; /* main call to draw current-frame indicator in an Animation Editor */ @@ -517,7 +526,7 @@ typedef enum eAnimUnitConv_Flags { /* only touch selected BezTriples */ ANIM_UNITCONV_ONLYSEL = (1<<2), /* only touch selected vertices */ - ANIM_UNITCONV_SELVERTS = (1<<3), + ANIM_UNITCONV_SELVERTS = (1<<3) } eAnimUnitConv_Flags; /* Get unit conversion factor for given ID + F-Curve */ diff --git a/source/blender/editors/include/ED_armature.h b/source/blender/editors/include/ED_armature.h index 52db36e188d..fcd56277b87 100644 --- a/source/blender/editors/include/ED_armature.h +++ b/source/blender/editors/include/ED_armature.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -24,9 +24,18 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_armature.h + * \ingroup editors + */ + #ifndef ED_ARMATURE_H #define ED_ARMATURE_H +#ifdef __cplusplus +extern "C" { +#endif + struct bArmature; struct Base; struct bContext; @@ -38,6 +47,7 @@ struct ListBase; struct MeshDeformModifierData; struct Object; struct RegionView3D; +struct ReportList; struct Scene; struct SK_Sketch; struct View3D; @@ -78,16 +88,16 @@ typedef struct EditBone short segments; } EditBone; -#define BONESEL_ROOT 0x10000000 -#define BONESEL_TIP 0x20000000 -#define BONESEL_BONE 0x40000000 +#define BONESEL_ROOT (1<<28) +#define BONESEL_TIP (1<<29) +#define BONESEL_BONE (1<<30) #define BONESEL_ANY (BONESEL_TIP|BONESEL_ROOT|BONESEL_BONE) -#define BONESEL_NOSEL 0x80000000 /* Indicates a negative number */ +#define BONESEL_NOSEL (1<<31) /* Indicates a negative number */ /* useful macros */ -#define EBONE_VISIBLE(arm, ebone) ((arm->layer & ebone->layer) && !(ebone->flag & BONE_HIDDEN_A)) -#define EBONE_EDITABLE(ebone) ((ebone->flag & BONE_SELECTED) && !(ebone->flag & BONE_EDITMODE_LOCKED)) +#define EBONE_VISIBLE(arm, ebone) (((arm)->layer & (ebone)->layer) && !((ebone)->flag & BONE_HIDDEN_A)) +#define EBONE_EDITABLE(ebone) (((ebone)->flag & BONE_SELECTED) && !((ebone)->flag & BONE_EDITMODE_LOCKED)) /* used in bone_select_hierachy() */ #define BONE_SELECT_PARENT 0 @@ -102,20 +112,21 @@ void ED_keymap_armature(struct wmKeyConfig *keyconf); void ED_armature_from_edit(struct Object *obedit); void ED_armature_to_edit(struct Object *ob); void ED_armature_edit_free(struct Object *ob); -void ED_armature_deselectall(struct Object *obedit, int toggle, int doundo); +void ED_armature_deselect_all(struct Object *obedit, int toggle); +void ED_armature_deselect_all_visible(struct Object *obedit); int ED_do_pose_selectbuffer(struct Scene *scene, struct Base *base, unsigned int *buffer, short hits, short extend); int mouse_armature(struct bContext *C, short mval[2], int extend); int join_armature_exec(struct bContext *C, struct wmOperator *op); struct Bone *get_indexed_bone (struct Object *ob, int index); -float ED_rollBoneToVector(EditBone *bone, float new_up_axis[3]); +float ED_rollBoneToVector(EditBone *bone, const float new_up_axis[3], const short axis_only); EditBone *ED_armature_bone_get_mirrored(struct ListBase *edbo, EditBone *ebo); // XXX this is needed for populating the context iterators void ED_armature_sync_selection(struct ListBase *edbo); void ED_armature_validate_active(struct bArmature *arm); void add_primitive_bone(struct Scene *scene, struct View3D *v3d, struct RegionView3D *rv3d); -struct EditBone *ED_armature_edit_bone_add(struct bArmature *arm, char *name); +struct EditBone *ED_armature_edit_bone_add(struct bArmature *arm, const char *name); void ED_armature_edit_bone_remove(struct bArmature *arm, EditBone *exBone); void transform_armature_mirror_update(struct Object *obedit); @@ -128,20 +139,21 @@ void ED_armature_apply_transform(struct Object *ob, float mat[4][4]); #define ARM_GROUPS_ENVELOPE 2 #define ARM_GROUPS_AUTO 3 -void create_vgroups_from_armature(struct Scene *scene, struct Object *ob, struct Object *par, int mode, int mirror); +void create_vgroups_from_armature(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct Object *par, int mode, int mirror); void auto_align_armature(struct Scene *scene, struct View3D *v3d, short mode); void unique_editbone_name(struct ListBase *ebones, char *name, EditBone *bone); /* if bone is already in list, pass it as param to ignore it */ void ED_armature_bone_rename(struct bArmature *arm, char *oldnamep, char *newnamep); -void undo_push_armature(struct bContext *C, char *name); +void undo_push_armature(struct bContext *C, const char *name); /* poseobject.c */ +struct Object *ED_object_pose_armature(struct Object *ob); void ED_armature_exit_posemode(struct bContext *C, struct Base *base); void ED_armature_enter_posemode(struct bContext *C, struct Base *base); int ED_pose_channel_in_IK_chain(struct Object *ob, struct bPoseChannel *pchan); -void ED_pose_deselectall(struct Object *ob, int test, int doundo); -void ED_pose_recalculate_paths(struct bContext *C, struct Scene *scene, struct Object *ob); +void ED_pose_deselectall(struct Object *ob, int test); +void ED_pose_recalculate_paths(struct Scene *scene, struct Object *ob); /* sketch */ @@ -159,7 +171,7 @@ int BIF_currentTemplate(const struct bContext *C); void BIF_freeTemplates(struct bContext *C); void BIF_setTemplate(struct bContext *C, int index); int BIF_nbJointsTemplate(const struct bContext *C); -char * BIF_nameBoneTemplate(const struct bContext *C); +const char * BIF_nameBoneTemplate(const struct bContext *C); void BDR_drawSketch(const struct bContext *vc); int BDR_drawSketchNames(struct ViewContext *vc); @@ -168,6 +180,10 @@ int BDR_drawSketchNames(struct ViewContext *vc); void mesh_deform_bind(struct Scene *scene, struct MeshDeformModifierData *mmd, float *vertexcos, int totvert, float cagemat[][4]); + +#ifdef __cplusplus +} +#endif #endif /* ED_ARMATURE_H */ diff --git a/source/blender/editors/include/ED_curve.h b/source/blender/editors/include/ED_curve.h index 0ff98b504d0..08a63a470c1 100644 --- a/source/blender/editors/include/ED_curve.h +++ b/source/blender/editors/include/ED_curve.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_curve.h + * \ingroup editors + */ + #ifndef ED_CURVE_H #define ED_CURVE_H @@ -52,7 +57,7 @@ void CU_select_all(struct Object *obedit); void CU_select_swap(struct Object *obedit); -void undo_push_curve (struct bContext *C, char *name); +void undo_push_curve (struct bContext *C, const char *name); ListBase *curve_get_editcurve(struct Object *ob); void load_editNurb (struct Object *obedit); @@ -63,14 +68,14 @@ void free_curve_editNurb (struct Curve *cu); int mouse_nurb (struct bContext *C, short mval[2], int extend); -struct Nurb *add_nurbs_primitive(struct bContext *C, float mat[4][4], int type, int newname); +struct Nurb *add_nurbs_primitive(struct bContext *C, float mat[4][4], int type, int newob); -int isNurbsel (struct Nurb *nu);; +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 undo_push_font (struct bContext *C, const char *name); void make_editText (struct Object *obedit); void load_editText (struct Object *obedit); void free_editText (struct Object *obedit); @@ -83,5 +88,10 @@ ListBase *ED_curve_editnurbs(struct Curve *cu); void ED_curve_beztcpy(struct EditNurb *editnurb, struct BezTriple *dst, struct BezTriple *src, int count); void ED_curve_bpcpy(struct EditNurb *editnurb, struct BPoint *dst, struct BPoint *src, int count); +int ED_curve_updateAnimPaths(struct Object *obedit); + +/* debug only */ +void printknots(struct Object *obedit); + #endif /* ED_CURVE_H */ diff --git a/source/blender/editors/include/ED_datafiles.h b/source/blender/editors/include/ED_datafiles.h index 2c352abcd00..ee29df3fffb 100644 --- a/source/blender/editors/include/ED_datafiles.h +++ b/source/blender/editors/include/ED_datafiles.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_datafiles.h + * \ingroup editors + */ + #ifndef ED_DATAFILES_H #define ED_DATAFILES_H diff --git a/source/blender/editors/include/ED_fileselect.h b/source/blender/editors/include/ED_fileselect.h index 5001323cb61..6b91779b832 100644 --- a/source/blender/editors/include/ED_fileselect.h +++ b/source/blender/editors/include/ED_fileselect.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_fileselect.h + * \ingroup editors + */ + #ifndef ED_FILES_H #define ED_FILES_H @@ -93,5 +98,7 @@ void ED_fileselect_clear(struct bContext *C, struct SpaceFile *sfile); void ED_fileselect_exit(struct bContext *C, struct SpaceFile *sfile); +int ED_file_extension_icon(char *relname); + #endif /* ED_FILES_H */ diff --git a/source/blender/editors/include/ED_fluidsim.h b/source/blender/editors/include/ED_fluidsim.h index a1ab3ba2fcc..3388280e5fa 100644 --- a/source/blender/editors/include/ED_fluidsim.h +++ b/source/blender/editors/include/ED_fluidsim.h @@ -1,4 +1,4 @@ -/** +/* * BKE_fluidsim.h * * $Id$ @@ -28,6 +28,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_fluidsim.h + * \ingroup editors + */ + #ifndef ED_FLUIDSIM_H #define ED_FLUIDSIM_H diff --git a/source/blender/editors/include/ED_gpencil.h b/source/blender/editors/include/ED_gpencil.h index 6c5a0cc3bf3..d06b0d6c4ee 100644 --- a/source/blender/editors/include/ED_gpencil.h +++ b/source/blender/editors/include/ED_gpencil.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,10 +25,15 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_gpencil.h + * \ingroup editors + */ + #ifndef ED_GPENCIL_H #define ED_GPENCIL_H struct ListBase; +struct bContext; struct bScreen; struct ScrArea; struct ARegion; @@ -55,6 +60,10 @@ typedef struct tGPspoint { float pressure; /* pressure of tablet at this point */ } tGPspoint; + +/* Check if 'sketching sessions' are enabled */ +#define GPENCIL_SKETCH_SESSIONS_ON(scene) ((scene)->toolsettings->gpencil_flags & GP_TOOL_FLAG_PAINTSESSIONS_ON) + /* ----------- Grease Pencil Tools/Context ------------- */ struct bGPdata **gpencil_data_get_pointers(struct bContext *C, struct PointerRNA *ptr); @@ -76,5 +85,27 @@ void draw_gpencil_view3d_ext(struct Scene *scene, struct View3D *v3d, struct ARe void gpencil_panel_standard(const struct bContext *C, struct Panel *pa); +/* ----------- Grease-Pencil AnimEdit API ------------------ */ +short gplayer_frames_looper(struct bGPDlayer *gpl, struct Scene *scene, short (*gpf_cb)(struct bGPDframe *, struct Scene *)); +void gplayer_make_cfra_list(struct bGPDlayer *gpl, ListBase *elems, short onlysel); + +void deselect_gpencil_layers(void *data, short select_mode); + +short is_gplayer_frame_selected(struct bGPDlayer *gpl); +void set_gplayer_frame_selection(struct bGPDlayer *gpl, short mode); +void select_gpencil_frames(struct bGPDlayer *gpl, short select_mode); +void select_gpencil_frame(struct bGPDlayer *gpl, int selx, short select_mode); +void borderselect_gplayer_frames(struct bGPDlayer *gpl, float min, float max, short select_mode); + +void delete_gpencil_layers(void); +void delete_gplayer_frames(struct bGPDlayer *gpl); +void duplicate_gplayer_frames(struct bGPDlayer *gpd); + +void free_gpcopybuf(void); +void copy_gpdata(void); +void paste_gpdata(void); + +void snap_gplayer_frames(struct bGPDlayer *gpl, short mode); +void mirror_gplayer_frames(struct bGPDlayer *gpl, short mode); #endif /* ED_GPENCIL_H */ diff --git a/source/blender/editors/include/ED_image.h b/source/blender/editors/include/ED_image.h index 1d674112b8d..2c866495503 100644 --- a/source/blender/editors/include/ED_image.h +++ b/source/blender/editors/include/ED_image.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,14 +25,21 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_image.h + * \ingroup editors + */ + #ifndef ED_IMAGE_H #define ED_IMAGE_H struct SpaceImage; +struct Main; struct bContext; struct Image; struct ImageUser; +struct ToolSettings; struct uiBlock; +struct wmWindowManager; /* space_image.c, exported for transform */ struct Image *ED_space_image(struct SpaceImage *sima); @@ -47,6 +54,8 @@ void ED_space_image_aspect(struct SpaceImage *sima, float *aspx, float *aspy); void ED_space_image_zoom(struct SpaceImage *sima, struct ARegion *ar, float *zoomx, float *zoomy); void ED_space_image_uv_aspect(struct SpaceImage *sima, float *aspx, float *aspy); +void ED_space_image_paint_update(struct wmWindowManager *wm, struct ToolSettings *settings); + void ED_image_size(struct Image *ima, int *width, int *height); void ED_image_aspect(struct Image *ima, float *aspx, float *aspy); void ED_image_uv_aspect(struct Image *ima, float *aspx, float *aspy); @@ -57,7 +66,7 @@ int ED_space_image_show_uvedit(struct SpaceImage *sima, struct Object *obedit); int ED_space_image_show_uvshadow(struct SpaceImage *sima, struct Object *obedit); /* UI level image (texture) updating... render calls own stuff (too) */ -void ED_image_update_frame(const struct bContext *C); +void ED_image_update_frame(const struct Main *mainp, int cfra); /* image_render.c, export for screen_ops.c, render operator */ void ED_space_image_output(struct bContext *C); diff --git a/source/blender/editors/include/ED_info.h b/source/blender/editors/include/ED_info.h index 33b890cea60..c76c478c6d6 100644 --- a/source/blender/editors/include/ED_info.h +++ b/source/blender/editors/include/ED_info.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -22,11 +22,15 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_info.h + * \ingroup editors + */ + #ifndef ED_INFO_H #define ED_INFO_H /* info_stats.c */ void ED_info_stats_clear(struct Scene *scene); -char *ED_info_stats_string(struct Scene *scene); +const char *ED_info_stats_string(struct Scene *scene); #endif /* ED_INFO_H */ diff --git a/source/blender/editors/include/ED_keyframes_draw.h b/source/blender/editors/include/ED_keyframes_draw.h index 78a645d6b50..c697f8cc435 100644 --- a/source/blender/editors/include/ED_keyframes_draw.h +++ b/source/blender/editors/include/ED_keyframes_draw.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_keyframes_draw.h + * \ingroup editors + */ + #ifndef ED_KEYFRAMES_DRAW_H #define ED_KEYFRAMES_DRAW_H @@ -100,7 +104,7 @@ typedef enum eKeyframeShapeDrawOpts { } eKeyframeShapeDrawOpts; /* draw simple diamond-shape keyframe (with OpenGL) */ -void draw_keyframe_shape(float x, float y, float xscale, float hsize, short sel, short key_type, short mode); +void draw_keyframe_shape(float x, float y, float xscale, float hsize, short sel, short key_type, short mode, float alpha); /* ******************************* Methods ****************************** */ @@ -136,7 +140,7 @@ void scene_to_keylist(struct bDopeSheet *ads, struct Scene *sce, struct DLRBT_Tr void summary_to_keylist(struct bAnimContext *ac, struct DLRBT_Tree *keys, struct DLRBT_Tree *blocks); /* Grease Pencil Layer */ // XXX not restored -void gpl_to_keylist(struct bDopeSheet *ads, struct bGPDlayer *gpl, struct DLRBT_Tree *keys, struct DLRBT_Tree *blocks); +void gpl_to_keylist(struct bDopeSheet *ads, struct bGPDlayer *gpl, struct DLRBT_Tree *keys); /* ActKeyColumn API ---------------- */ /* Comparator callback used for ActKeyColumns and cframe float-value pointer */ diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index 60f2526191c..e6fe7efbaba 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_keyframes_edit.h + * \ingroup editors + */ + #ifndef ED_KEYFRAMES_EDIT_H #define ED_KEYFRAMES_EDIT_H @@ -53,7 +57,7 @@ typedef enum eEditKeyframes_Validate { BEZT_OK_SELECTED, BEZT_OK_VALUE, BEZT_OK_VALUERANGE, - BEZT_OK_REGION, + BEZT_OK_REGION } eEditKeyframes_Validate; /* ------------ */ @@ -67,13 +71,13 @@ typedef enum eEditKeyframes_Select { /* remove ok keyframes from selection */ SELECT_SUBTRACT = (1<<2), /* flip ok status of keyframes based on key status */ - SELECT_INVERT = (1<<3), + SELECT_INVERT = (1<<3) } eEditKeyframes_Select; /* "selection map" building modes */ typedef enum eEditKeyframes_SelMap { SELMAP_MORE = 0, - SELMAP_LESS, + SELMAP_LESS } eEditKeyframes_SelMap; /* snapping tools */ @@ -83,7 +87,7 @@ typedef enum eEditKeyframes_Snap { SNAP_KEYS_NEARSEC, SNAP_KEYS_NEARMARKER, SNAP_KEYS_HORIZONTAL, - SNAP_KEYS_VALUE, + SNAP_KEYS_VALUE } eEditKeyframes_Snap; /* mirroring tools */ @@ -92,7 +96,7 @@ typedef enum eEditKeyframes_Mirror { MIRROR_KEYS_YAXIS, MIRROR_KEYS_XAXIS, MIRROR_KEYS_MARKER, - MIRROR_KEYS_VALUE, + MIRROR_KEYS_VALUE } eEditKeyframes_Mirror; /* ************************************************ */ @@ -152,6 +156,29 @@ typedef struct KeyframeEditCD_Remap { float newMin, newMax; /* new range */ } KeyframeEditCD_Remap; +/* Paste options */ +typedef enum eKeyPasteOffset { + /* paste keys starting at current frame */ + KEYFRAME_PASTE_OFFSET_CFRA_START, + /* paste keys ending at current frame */ + KEYFRAME_PASTE_OFFSET_CFRA_END, + /* paste keys relative to the current frame when copying */ + KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE, + /* paste keys from original time */ + KEYFRAME_PASTE_OFFSET_NONE +} eKeyPasteOffset; + +typedef enum eKeyMergeMode { + /* overlay existing with new keys */ + KEYFRAME_PASTE_MERGE_MIX, + /* replace entire fcurve */ + KEYFRAME_PASTE_MERGE_OVER, + /* overwrite keys in pasted range */ + KEYFRAME_PASTE_MERGE_OVER_RANGE, + /* overwrite keys in pasted range (use all keyframe start & end for range) */ + KEYFRAME_PASTE_MERGE_OVER_RANGE_ALL +} eKeyMergeMode; + /* ---------------- Looping API --------------------- */ /* functions for looping over keyframes */ @@ -212,6 +239,7 @@ void bezt_remap_times(KeyframeEditData *ked, struct BezTriple *bezt); void delete_fcurve_key(struct FCurve *fcu, int index, short do_recalc); void delete_fcurve_keys(struct FCurve *fcu); +void clear_fcurve_keys(struct FCurve *fcu); void duplicate_fcurve_keys(struct FCurve *fcu); void clean_fcurve(struct FCurve *fcu, float thresh); @@ -222,7 +250,8 @@ void sample_fcurve(struct FCurve *fcu); void free_anim_copybuf(void); short copy_animedit_keys(struct bAnimContext *ac, ListBase *anim_data); -short paste_animedit_keys(struct bAnimContext *ac, ListBase *anim_data); +short paste_animedit_keys(struct bAnimContext *ac, ListBase *anim_data, + const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode); /* ************************************************ */ diff --git a/source/blender/editors/include/ED_keyframing.h b/source/blender/editors/include/ED_keyframing.h index fc5e3a43a62..7bab563641a 100644 --- a/source/blender/editors/include/ED_keyframing.h +++ b/source/blender/editors/include/ED_keyframing.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,9 +25,17 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_keyframing.h + * \ingroup editors + */ + #ifndef ED_KEYFRAMING_H #define ED_KEYFRAMING_H +#ifdef __cplusplus +extern "C" { +#endif + struct ListBase; struct ID; struct Scene; @@ -43,9 +51,11 @@ struct bConstraint; struct bContext; struct wmOperatorType; +struct ReportList; struct PointerRNA; struct PropertyRNA; +struct EnumPropertyItem; #include "RNA_types.h" @@ -89,7 +99,7 @@ int insert_vert_fcurve(struct FCurve *fcu, float x, float y, short flag); * Use this to insert a keyframe using the current value being keyframed, in the * nominated F-Curve (no creation of animation data performed). Returns success. */ -short insert_keyframe_direct(struct PointerRNA ptr, struct PropertyRNA *prop, struct FCurve *fcu, float cfra, short flag); +short insert_keyframe_direct(struct ReportList *reports, struct PointerRNA ptr, struct PropertyRNA *prop, struct FCurve *fcu, float cfra, short flag); /* -------- */ @@ -97,12 +107,12 @@ short insert_keyframe_direct(struct PointerRNA ptr, struct PropertyRNA *prop, st * Use this to create any necessary animation data, and then insert a keyframe * using the current value being keyframed, in the relevant place. Returns success. */ -short insert_keyframe(struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag); +short insert_keyframe(struct ReportList *reports, struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag); /* Main Keyframing API call: * Use this to delete keyframe on current frame for relevant channel. Will perform checks just in case. */ -short delete_keyframe(struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag); +short delete_keyframe(struct ReportList *reports, struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag); /* ************ Keying Sets ********************** */ @@ -179,7 +189,7 @@ struct KeyingSet *ANIM_builtin_keyingset_get_named(struct KeyingSet *prevKS, con KeyingSetInfo *ANIM_keyingset_info_find_named(const char name[]); /* for RNA type registrations... */ -void ANIM_keyingset_info_register(const struct bContext *C, KeyingSetInfo *ksi); +void ANIM_keyingset_info_register(KeyingSetInfo *ksi); void ANIM_keyingset_info_unregister(const struct bContext *C, KeyingSetInfo *ksi); /* cleanup on exit */ @@ -193,37 +203,50 @@ struct KeyingSet *ANIM_scene_get_active_keyingset(struct Scene *scene); /* Get the index of the Keying Set provided, for the given Scene */ int ANIM_scene_get_keyingset_index(struct Scene *scene, struct KeyingSet *ks); +/* Get Keying Set to use for Auto-Keyframing some transforms */ +struct KeyingSet *ANIM_get_keyingset_for_autokeying(struct Scene *scene, const char *tranformKSName); + /* Create (and show) a menu containing all the Keying Sets which can be used in the current context */ -void ANIM_keying_sets_menu_setup(struct bContext *C, char title[], char op_name[]); +void ANIM_keying_sets_menu_setup(struct bContext *C, const char title[], const char op_name[]); + +/* Dynamically populate an enum of Keying Sets */ +struct EnumPropertyItem *ANIM_keying_sets_enum_itemf(struct bContext *C, struct PointerRNA *ptr, int *free); /* Check if KeyingSet can be used in the current context */ short ANIM_keyingset_context_ok_poll(struct bContext *C, struct KeyingSet *ks); /* ************ Drivers ********************** */ +/* Flags for use by driver creation calls */ +typedef enum eCreateDriverFlags { + CREATEDRIVER_WITH_DEFAULT_DVAR = (1<<0), /* create drivers with a default variable for nicer UI */ +} eCreateDriverFlags; + +/* -------- */ + /* Returns whether there is a driver in the copy/paste buffer to paste */ short ANIM_driver_can_paste(void); /* Main Driver Management API calls: * Add a new driver for the specified property on the given ID block */ -short ANIM_add_driver(struct ID *id, const char rna_path[], int array_index, short flag, int type); +short ANIM_add_driver(struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag, int type); /* Main Driver Management API calls: * Remove the driver for the specified property on the given ID block (if available) */ -short ANIM_remove_driver(struct ID *id, const char rna_path[], int array_index, short flag); +short ANIM_remove_driver(struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag); /* Main Driver Management API calls: * Make a copy of the driver for the specified property on the given ID block */ -short ANIM_copy_driver(struct ID *id, const char rna_path[], int array_index, short flag); +short ANIM_copy_driver(struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag); /* Main Driver Management API calls: * Add a new driver for the specified property on the given ID block or replace an existing one * with the driver + driver-curve data from the buffer */ -short ANIM_paste_driver(struct ID *id, const char rna_path[], int array_index, short flag); +short ANIM_paste_driver(struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag); /* ************ Auto-Keyframing ********************** */ /* Notes: @@ -240,8 +263,12 @@ short ANIM_paste_driver(struct ID *id, const char rna_path[], int array_index, s #define IS_AUTOKEY_ON(scene) ((scene) ? (scene->toolsettings->autokey_mode & AUTOKEY_ON) : (U.autokey_mode & AUTOKEY_ON)) /* check the mode for auto-keyframing (per scene takes presidence) */ #define IS_AUTOKEY_MODE(scene, mode) ((scene) ? (scene->toolsettings->autokey_mode == AUTOKEY_MODE_##mode) : (U.autokey_mode == AUTOKEY_MODE_##mode)) - /* check if a flag is set for auto-keyframing (as userprefs only!) */ -#define IS_AUTOKEY_FLAG(flag) (U.autokey_flag & AUTOKEY_FLAG_##flag) + /* check if a flag is set for auto-keyframing (per scene takes presidence) */ +#define IS_AUTOKEY_FLAG(scene, flag) \ + ((scene)? \ + ((scene->toolsettings->autokey_flag & AUTOKEY_FLAG_##flag) || (U.autokey_flag & AUTOKEY_FLAG_##flag)) \ + : \ + (U.autokey_flag & AUTOKEY_FLAG_##flag)) /* auto-keyframing feature - checks for whether anything should be done for the current frame */ int autokeyframe_cfra_can_key(struct Scene *scene, struct ID *id); @@ -277,4 +304,8 @@ typedef enum eAnimFilterFlags { ANIMFILTER_KEYS_NOSKEY = (1<<10), /* don't include shape keys (for geometry) */ } eAnimFilterFlags; +#ifdef __cplusplus +} +#endif + #endif /* ED_KEYFRAMING_H */ diff --git a/source/blender/editors/include/ED_lattice.h b/source/blender/editors/include/ED_lattice.h index bebd6c5f3ab..066dd23a629 100644 --- a/source/blender/editors/include/ED_lattice.h +++ b/source/blender/editors/include/ED_lattice.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_lattice.h + * \ingroup editors + */ + struct Object; void free_editLatt(struct Object *ob); diff --git a/source/blender/editors/include/ED_logic.h b/source/blender/editors/include/ED_logic.h index 96d10cf2c72..00fc6ccac26 100644 --- a/source/blender/editors/include/ED_logic.h +++ b/source/blender/editors/include/ED_logic.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -24,6 +24,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_logic.h + * \ingroup editors + */ + #ifndef ED_LOGIC_H #define ED_LOGIC_H diff --git a/source/blender/editors/include/ED_markers.h b/source/blender/editors/include/ED_markers.h index e5e1f3cef10..728d9253760 100644 --- a/source/blender/editors/include/ED_markers.h +++ b/source/blender/editors/include/ED_markers.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,11 +25,17 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_markers.h + * \ingroup editors + */ + #ifndef ED_MARKERS_H #define ED_MARKERS_H struct wmKeyConfig; struct bContext; +struct bAnimContext; struct TimeMarker; /* Drawing API ------------------------------ */ @@ -44,6 +50,9 @@ void draw_markers_time(const struct bContext *C, int flag); /* Backend API ----------------------------- */ +ListBase *ED_context_get_markers(const struct bContext *C); +ListBase *ED_animcontext_get_markers(const struct bAnimContext *ac); + struct TimeMarker *ED_markers_find_nearest_marker(ListBase *markers, float x); int ED_markers_find_nearest_marker_time(ListBase *markers, float x); @@ -51,6 +60,8 @@ void ED_markers_get_minmax(ListBase *markers, short sel, float *first, float *la void ED_markers_make_cfra_list(ListBase *markers, ListBase *lb, short sel); +struct TimeMarker *ED_markers_get_first_selected(ListBase *markers); + /* Operators ------------------------------ */ /* called in screen_ops.c:ED_operatortypes_screen() */ @@ -58,6 +69,8 @@ void ED_operatortypes_marker(void); /* called in screen_ops.c:ED_keymap_screen() */ void ED_marker_keymap(struct wmKeyConfig *keyconf); +/* debugging only */ +void debug_markers_print_list(struct ListBase *markers); #endif /* ED_MARKERS_H */ diff --git a/source/blender/editors/include/ED_mball.h b/source/blender/editors/include/ED_mball.h index 3fd74a9cdaf..504cc4e2d52 100644 --- a/source/blender/editors/include/ED_mball.h +++ b/source/blender/editors/include/ED_mball.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,13 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_mball.h + * \ingroup editors + */ + +#ifndef _ED_MBALL_H_ +#define _ED_MBALL_H_ + struct bContext; struct Object; struct wmKeyConfig; @@ -41,5 +48,7 @@ void free_editMball(struct Object *obedit); void make_editMball(struct Object *obedit); void load_editMball(struct Object *obedit); -void undo_push_mball(struct bContext *C, char *name); +void undo_push_mball(struct bContext *C, const char *name); + +#endif diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index c63d212ba89..d486a8f2fef 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,9 +25,18 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_mesh.h + * \ingroup editors + */ + #ifndef ED_MESH_H #define ED_MESH_H +#ifdef __cplusplus +extern "C" { +#endif + struct ID; struct View3D; struct ARegion; @@ -46,6 +55,9 @@ struct MDeformWeight; struct MDeformVert; struct Scene; struct Mesh; +struct MFace; +struct MEdge; +struct MVert; struct MCol; struct UvVertMap; struct UvMapVert; @@ -54,6 +66,7 @@ struct BMEditMesh; struct BMEditSelection; struct BMesh; struct BMVert; +struct MLoopCol; struct BMEdge; struct BMFace; struct UvVertMap; @@ -89,7 +102,12 @@ float *bm_get_cd_float(struct CustomData *cdata, void *data, int type); /* bmeshutils.c */ -/*x-mirror editing api. usage: +/* + [note: I've decided to use ideasman's code for non-editmode stuff, but since + it has a big "not for editmode!" disclaimer, I'm going to keep what I have here + - joeedh] + + x-mirror editing api. usage: EDBM_CacheMirrorVerts(em); ... @@ -125,7 +143,7 @@ struct BMFace *EDBM_get_face_for_index(struct BMEditMesh *em, int index); struct BMFace *EDBM_get_actFace(struct BMEditMesh *em, int sloppy); int EDBM_CallAndSelectOpf(struct BMEditMesh *em, struct wmOperator *op, - char *selectslot, char *fmt, ...); + const char *selectslot, const char *fmt, ...); /*flushes based on the current select mode. if in vertex select mode, verts select/deselect edges and faces, if in edge select mode, @@ -142,11 +160,13 @@ void EDBM_deselect_flush(struct BMEditMesh *em); void EDBM_selectmode_set(struct BMEditMesh *em); void EDBM_convertsel(struct BMEditMesh *em, short oldmode, short selectmode); +void undo_push_mesh(struct bContext *C, const char *name); void EDBM_editselection_center(struct BMEditMesh *em, float *center, struct BMEditSelection *ese); void EDBM_editselection_plane(struct BMEditMesh *em, float *plane, struct BMEditSelection *ese); void EDBM_editselection_normal(float *normal, struct BMEditSelection *ese); int EDBM_vertColorCheck(struct BMEditMesh *em); +void EDBM_validate_selections(struct BMEditMesh *em); void EDBM_pin_mesh(struct BMEditMesh *em, int swap); void EDBM_unpin_mesh(struct BMEditMesh *em, int swap); @@ -169,15 +189,25 @@ struct MTexPoly *EDBM_get_active_mtexpoly(struct BMEditMesh *em, struct BMFace * void EDBM_free_uv_vert_map(struct UvVertMap *vmap); struct UvMapVert *EDBM_get_uv_map_vert(struct UvVertMap *vmap, unsigned int v); struct UvVertMap *EDBM_make_uv_vert_map(struct BMEditMesh *em, int selected, int do_face_idx_array, float *limit); +void EM_add_data_layer(struct BMEditMesh *em, struct CustomData *data, int type, const char *name); +void EM_free_data_layer(struct BMEditMesh *em, struct CustomData *data, int type); void EDBM_toggle_select_all(struct BMEditMesh *em); void EDBM_set_flag_all(struct BMEditMesh *em, int flag); +void EDBM_clear_flag_all(struct BMEditMesh *em, int flag); +void EDBM_automerge(struct Scene *scene, struct Object *ob, int update); /* meshtools.c */ -/*these functinos are all deprecated, use stuff in editbmesh_bvh.h instead*/ +void EM_project_snap_verts(struct bContext *C, struct ARegion *ar, struct Object *obedit, struct BMEditMesh *em); + +/* editmesh_mods.c */ +extern unsigned int bm_vertoffs, bm_solidoffs, bm_wireoffs; + intptr_t mesh_octree_table(struct Object *ob, struct BMEditMesh *em, float *co, char mode); -struct BMVert *editmesh_get_x_mirror_vert(struct Object *ob, struct BMEditMesh *em, float *co); +long mesh_mirrtopo_table(struct Object *ob, char mode); + +struct BMVert *editbmesh_get_x_mirror_vert(struct Object *ob, struct BMEditMesh *em, struct BMVert *eve, float *co, int index); int mesh_get_x_mirror_vert(struct Object *ob, int index); int *mesh_get_x_mirror_faces(struct Object *ob, struct BMEditMesh *em); @@ -194,9 +224,23 @@ void ED_keymap_mesh(struct wmKeyConfig *keyconf); void ED_spacetypes_init(void); void ED_keymap_mesh(struct wmKeyConfig *keyconf); + /* bmesh_mods.c */ extern unsigned int bm_vertoffs, bm_solidoffs, bm_wireoffs; +int mouse_mesh(struct bContext *C, short mval[2], short extend); + +/* editface.c */ +void paintface_flush_flags(struct Object *ob); +struct MTexPoly *EM_get_active_mtexpoly(struct BMEditMesh *em, struct BMFace **act_efa, struct MLoopCol **col, int sloppy); +int paintface_mouse_select(struct bContext *C, struct Object *ob, short mval[2], int extend); +int do_paintface_box_select(struct ViewContext *vc, struct rcti *rect, int select, int extend); +void paintface_deselect_all_visible(struct Object *ob, int action, short flush_flags); +void paintface_select_linked(struct bContext *C, struct Object *ob, short mval[2], int mode); +int paintface_minmax(struct Object *ob, float *min, float *max); + +void paintface_hide(struct Object *ob, const int unselected); +void paintface_reveal(struct Object *ob); /* object_vgroup.c */ @@ -205,13 +249,16 @@ extern unsigned int bm_vertoffs, bm_solidoffs, bm_wireoffs; #define WEIGHT_SUBTRACT 3 struct bDeformGroup *ED_vgroup_add(struct Object *ob); -struct bDeformGroup *ED_vgroup_add_name(struct Object *ob, char *name); -void ED_vgroup_select_by_name(struct Object *ob, char *name); +struct bDeformGroup *ED_vgroup_add_name(struct Object *ob, const char *name); +void ED_vgroup_delete(struct Object *ob, struct bDeformGroup *defgroup); +void ED_vgroup_select_by_name(struct Object *ob, const char *name); void ED_vgroup_data_create(struct ID *id); int ED_vgroup_give_array(struct ID *id, struct MDeformVert **dvert_arr, int *dvert_tot); int ED_vgroup_copy_array(struct Object *ob, struct Object *ob_from); void ED_vgroup_mirror(struct Object *ob, int mirror_weights, int flip_vgroups); +int ED_vgroup_object_is_edit_mode(struct Object *ob); + void ED_vgroup_vert_add(struct Object *ob, struct bDeformGroup *dg, int vertnum, float weight, int assignmode); void ED_vgroup_vert_remove(struct Object *ob, struct bDeformGroup *dg, int vertnum); float ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vertnum); @@ -241,11 +288,17 @@ void ED_mesh_calc_normals(struct Mesh *me); void ED_mesh_material_link(struct Mesh *me, struct Material *ma); void ED_mesh_update(struct Mesh *mesh, struct bContext *C, int calc_edges); -int ED_mesh_uv_texture_add(struct bContext *C, struct Scene *scene, struct Object *ob, struct Mesh *me, const char *name, int active_set); +int ED_mesh_uv_texture_add(struct bContext *C, struct Mesh *me, const char *name, int active_set); int ED_mesh_uv_texture_remove(struct bContext *C, struct Object *ob, struct Mesh *me); int ED_mesh_color_add(struct bContext *C, struct Scene *scene, struct Object *ob, struct Mesh *me, const char *name, int active_set); int ED_mesh_color_remove(struct bContext *C, struct Object *ob, struct Mesh *me); +void EDBM_selectmode_to_scene(struct Scene *scene, struct Object *obedit); + #include "../mesh/editbmesh_bvh.h" +#ifdef __cplusplus +} +#endif + #endif /* ED_MESH_H */ diff --git a/source/blender/editors/include/ED_node.h b/source/blender/editors/include/ED_node.h index 6e42b772bef..829ad3217a9 100644 --- a/source/blender/editors/include/ED_node.h +++ b/source/blender/editors/include/ED_node.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_node.h + * \ingroup editors + */ + #ifndef ED_NODE_H #define ED_NODE_H @@ -40,7 +45,7 @@ void ED_init_node_butfuncs(void); /* node_draw.c */ void ED_node_changed_update(struct ID *id, struct bNode *node); -void ED_node_generic_update(struct Main *bmain, struct Scene *scene, struct bNodeTree *ntree, struct bNode *node); +void ED_node_generic_update(struct Main *bmain, struct bNodeTree *ntree, struct bNode *node); /* node_edit.c */ void ED_node_shader_default(struct Material *ma); diff --git a/source/blender/editors/include/ED_numinput.h b/source/blender/editors/include/ED_numinput.h index 7df1f1f28cb..d605a9b3377 100644 --- a/source/blender/editors/include/ED_numinput.h +++ b/source/blender/editors/include/ED_numinput.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -22,6 +22,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_numinput.h + * \ingroup editors + */ + #ifndef ED_NUMINPUT_H #define ED_NUMINPUT_H diff --git a/source/blender/editors/include/ED_object.h b/source/blender/editors/include/ED_object.h index f243b4cc497..ce6a9d609db 100644 --- a/source/blender/editors/include/ED_object.h +++ b/source/blender/editors/include/ED_object.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,9 +25,18 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_object.h + * \ingroup editors + */ + #ifndef ED_OBJECT_H #define ED_OBJECT_H +#ifdef __cplusplus +extern "C" { +#endif + struct Base; struct bConstraint; struct bContext; @@ -100,12 +109,9 @@ struct Object *ED_object_add_type(struct bContext *C, int type, float *loc, floa void ED_object_single_users(struct Main *bmain, struct Scene *scene, int full); -/* cleanup */ -int object_is_libdata(struct Object *ob); -int object_data_is_libdata(struct Object *ob); /* object motion paths */ -void ED_objects_clear_paths(struct bContext *C, struct Scene *scene); +void ED_objects_clear_paths(struct bContext *C); void ED_objects_recalculate_paths(struct bContext *C, struct Scene *scene); /* constraints */ @@ -121,7 +127,7 @@ void ED_object_constraint_dependency_update(struct Main *bmain, struct Scene *sc /* object_lattice.c */ int mouse_lattice(struct bContext *C, short mval[2], int extend); -void undo_push_lattice(struct bContext *C, char *name); +void undo_push_lattice(struct bContext *C, const char *name); /* object_lattice.c */ @@ -133,7 +139,7 @@ enum { MODIFIER_APPLY_SHAPE, } eModifier_Apply_Mode; -struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, char *name, int type); +struct ModifierData *ED_object_modifier_add(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, const char *name, int type); int ED_object_modifier_remove(struct ReportList *reports, struct Main *bmain, struct Scene *scene, struct Object *ob, struct ModifierData *md); int ED_object_modifier_move_down(struct ReportList *reports, struct Object *ob, struct ModifierData *md); int ED_object_modifier_move_up(struct ReportList *reports, struct Object *ob, struct ModifierData *md); @@ -141,5 +147,9 @@ int ED_object_modifier_convert(struct ReportList *reports, struct Main *bmain, s int ED_object_modifier_apply(struct ReportList *reports, struct Scene *scene, struct Object *ob, struct ModifierData *md, int mode); int ED_object_modifier_copy(struct ReportList *reports, struct Object *ob, struct ModifierData *md); +#ifdef __cplusplus +} +#endif + #endif /* ED_OBJECT_H */ diff --git a/source/blender/editors/include/ED_particle.h b/source/blender/editors/include/ED_particle.h index 87aa7ca9195..7b4a2e6fe16 100644 --- a/source/blender/editors/include/ED_particle.h +++ b/source/blender/editors/include/ED_particle.h @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_particle.h + * \ingroup editors + */ + #ifndef ED_PARTICLE_H #define ED_PARTICLE_H @@ -59,14 +63,16 @@ void PE_update_object(struct Scene *scene, struct Object *ob, int useflag); int PE_mouse_particles(struct bContext *C, short *mval, int extend); int PE_border_select(struct bContext *C, struct rcti *rect, int select, int extend); int PE_circle_select(struct bContext *C, int selecting, short *mval, float rad); -int PE_lasso_select(struct bContext *C, short mcords[][2], short moves, short select); +int PE_lasso_select(struct bContext *C, short mcords[][2], short moves, short extend, short select); +void PE_deselect_all_visible(struct PTCacheEdit *edit); /* undo */ -void PE_undo_push(struct Scene *scene, char *str); +void PE_undo_push(struct Scene *scene, const char *str); void PE_undo_step(struct Scene *scene, int step); void PE_undo(struct Scene *scene); void PE_redo(struct Scene *scene); void PE_undo_menu(struct Scene *scene, struct Object *ob); +int PE_undo_valid(struct Scene *scene); #endif /* ED_PARTICLE_H */ diff --git a/source/blender/editors/include/ED_physics.h b/source/blender/editors/include/ED_physics.h index 51906bf41c1..c58e70a0768 100644 --- a/source/blender/editors/include/ED_physics.h +++ b/source/blender/editors/include/ED_physics.h @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_physics.h + * \ingroup editors + */ + #ifndef ED_PHYSICS_H #define ED_PHYSICS_H diff --git a/source/blender/editors/include/ED_render.h b/source/blender/editors/include/ED_render.h index f34670da471..651c298ad5e 100644 --- a/source/blender/editors/include/ED_render.h +++ b/source/blender/editors/include/ED_render.h @@ -1,4 +1,4 @@ -/** +/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or @@ -21,6 +21,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_render.h + * \ingroup editors + */ + #ifndef ED_RENDER_H #define ED_RENDER_H @@ -43,8 +47,6 @@ void ED_render_id_flush_update(struct Main *bmain, struct ID *id); /* render_preview.c */ -#define _RENDERSIZE 140 - /* stores rendered preview - is also used for icons */ typedef struct RenderInfo { int pr_rectx; diff --git a/source/blender/editors/include/ED_retopo.h b/source/blender/editors/include/ED_retopo.h deleted file mode 100644 index e8d74411871..00000000000 --- a/source/blender/editors/include/ED_retopo.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - * $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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * The Original Code is Copyright (C) 2006 by Nicholas Bishop - * All rights reserved. - * - * The Original Code is: all of this file. - * - * Contributor(s): none yet. - * - * ***** END GPL LICENSE BLOCK ***** - */ - -#ifndef ED_RETOPO_H -#define ED_RETOPO_H - -#include "DNA_vec_types.h" - -/* For bglMats */ -#include "BIF_glutil.h" - -struct EditVert; -struct Mesh; -struct View3D; - -typedef struct RetopoViewData { - bglMats mats; - - char queue_matrix_update; -} RetopoViewData; - -typedef struct RetopoPaintPoint { - struct RetopoPaintPoint *next, *prev; - vec2s loc; - short index; - float co[3]; - struct EditVert *eve; -} RetopoPaintPoint; - -typedef struct RetopoPaintLine { - struct RetopoPaintLine *next, *prev; - ListBase points; - ListBase hitlist; /* RetopoPaintHit */ - RetopoPaintPoint *cyclic; -} RetopoPaintLine; - -typedef struct RetopoPaintSel { - struct RetopoPaintSel *next, *prev; - RetopoPaintLine *line; - char first; -} RetopoPaintSel; - -typedef struct RetopoPaintData { - char in_drag; - short sloc[2]; - - ListBase lines; - ListBase intersections; /* RetopoPaintPoint */ - - short seldist; - RetopoPaintSel nearest; - - struct View3D *paint_v3d; -} RetopoPaintData; - -RetopoPaintData *get_retopo_paint_data(void); - -char retopo_mesh_check(void); -char retopo_curve_check(void); - -void retopo_end_okee(void); - -void retopo_free_paint_data(RetopoPaintData *rpd); -void retopo_free_paint(void); - -char retopo_mesh_paint_check(void); -void retopo_paint_view_update(struct View3D *v3d); -void retopo_force_update(void); -void retopo_paint_toggle(void*,void*); -char retopo_paint(const unsigned short event); -void retopo_draw_paint_lines(void); -RetopoPaintData *retopo_paint_data_copy(RetopoPaintData *rpd); - -void retopo_toggle(void*,void*); -void retopo_do_vert(struct View3D *v3d, float *v); -void retopo_do_all(void); -void retopo_do_all_cb(void *, void *); -void retopo_queue_updates(struct View3D *v3d); - -void retopo_matrix_update(struct View3D *v3d); - -void retopo_free_view_data(struct View3D *v3d); - -#endif - diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 3478447b058..f1665f2b165 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_screen.h + * \ingroup editors + */ + #ifndef ED_SCREEN_H #define ED_SCREEN_H @@ -57,7 +62,7 @@ void ED_region_tag_redraw(struct ARegion *ar); void ED_region_tag_redraw_partial(struct ARegion *ar, struct rcti *rct); void ED_region_tag_redraw_overlay(struct ARegion *ar); void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *ar); -void ED_region_panels(const struct bContext *C, struct ARegion *ar, int vertical, char *context, int contextnr); +void ED_region_panels(const struct bContext *C, struct ARegion *ar, int vertical, const char *context, int contextnr); void ED_region_header_init(struct ARegion *ar); void ED_region_header(const struct bContext *C, struct ARegion *ar); void ED_region_toggle_hidden(struct bContext *C, struct ARegion *ar); @@ -69,7 +74,7 @@ void ED_spacetypes_keymap(struct wmKeyConfig *keyconf); int ED_area_header_switchbutton(const struct bContext *C, struct uiBlock *block, int yco); int ED_area_header_standardbuttons(const struct bContext *C, struct uiBlock *block, int yco); void ED_area_overdraw(struct bContext *C); -void ED_area_overdraw_flush(struct bContext *C, struct ScrArea *sa, struct ARegion *ar); +void ED_area_overdraw_flush(struct ScrArea *sa, struct ARegion *ar); /* areas */ @@ -78,6 +83,7 @@ void ED_area_exit(struct bContext *C, struct ScrArea *sa); int ED_screen_area_active(const struct bContext *C); void ED_area_do_listen(ScrArea *sa, struct wmNotifier *note); void ED_area_tag_redraw(ScrArea *sa); +void ED_area_tag_redraw_regiontype(ScrArea *sa, int type); void ED_area_tag_refresh(ScrArea *sa); void ED_area_do_refresh(struct bContext *C, ScrArea *sa); void ED_area_headerprint(ScrArea *sa, const char *str); @@ -91,7 +97,7 @@ void ED_screen_draw(struct wmWindow *win); void ED_screen_refresh(struct wmWindowManager *wm, struct wmWindow *win); void ED_screen_do_listen(struct wmWindow *win, struct wmNotifier *note); bScreen *ED_screen_duplicate(struct wmWindow *win, struct bScreen *sc); -bScreen *ED_screen_add(struct wmWindow *win, struct Scene *scene, char *name); +bScreen *ED_screen_add(struct wmWindow *win, struct Scene *scene, const char *name); void ED_screen_set(struct bContext *C, struct bScreen *sc); void ED_screen_delete(struct bContext *C, struct bScreen *sc); void ED_screen_set_scene(struct bContext *C, struct Scene *scene); @@ -108,7 +114,8 @@ struct ScrArea *ED_screen_full_toggle(struct bContext *C, struct wmWindow *win, void ED_screen_new_window(struct bContext *C, struct rcti *position, int type); /* anim */ -void ED_update_for_newframe(const struct bContext *C, int mute); +void ED_update_for_newframe(struct Main *bmain, struct Scene *scene, struct bScreen *screen, int mute); + void ED_refresh_viewport_fps(struct bContext *C); int ED_screen_animation_play(struct bContext *C, int sync, int mode); @@ -123,28 +130,38 @@ int ED_operator_areaactive(struct bContext *C); int ED_operator_regionactive(struct bContext *C); int ED_operator_scene_editable(struct bContext *C); +int ED_operator_objectmode(struct bContext *C); int ED_operator_view3d_active(struct bContext *C); +int ED_operator_region_view3d_active(struct bContext *C); +int ED_operator_animview_active(struct bContext *C); int ED_operator_timeline_active(struct bContext *C); int ED_operator_outliner_active(struct bContext *C); +int ED_operator_outliner_active_no_editobject(struct bContext *C); int ED_operator_file_active(struct bContext *C); int ED_operator_action_active(struct bContext *C); int ED_operator_buttons_active(struct bContext *C); int ED_operator_node_active(struct bContext *C); -int ED_operator_ipo_active(struct bContext *C); +int ED_operator_graphedit_active(struct bContext *C); int ED_operator_sequencer_active(struct bContext *C); int ED_operator_image_active(struct bContext *C); int ED_operator_nla_active(struct bContext *C); int ED_operator_logic_active(struct bContext *C); +int ED_operator_info_active(struct bContext *C); +int ED_operator_console_active(struct bContext *C); + int ED_operator_object_active(struct bContext *C); int ED_operator_object_active_editable(struct bContext *C); +int ED_operator_object_active_editable_mesh(struct bContext *C); int ED_operator_editmesh(struct bContext *C); int ED_operator_editmesh_view3d(struct bContext *C); +int ED_operator_editmesh_region_view3d(struct bContext *C); int ED_operator_editarmature(struct bContext *C); int ED_operator_editcurve(struct bContext *C); int ED_operator_editsurf(struct bContext *C); int ED_operator_editsurfcurve(struct bContext *C); +int ED_operator_editsurfcurve_region_view3d(struct bContext *C); int ED_operator_editfont(struct bContext *C); int ED_operator_editlattice(struct bContext *C); int ED_operator_editmball(struct bContext *C); diff --git a/source/blender/editors/include/ED_screen_types.h b/source/blender/editors/include/ED_screen_types.h index c55dafa6f51..71e3780fe24 100644 --- a/source/blender/editors/include/ED_screen_types.h +++ b/source/blender/editors/include/ED_screen_types.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_screen_types.h + * \ingroup editors + */ + #ifndef ED_SCREEN_TYPES_H__ #define ED_SCREEN_TYPES_H__ @@ -38,6 +42,7 @@ typedef struct ScreenAnimData { short refresh; short flag; /* flags for playback */ int sfra; /* frame that playback was started from */ + int nextfra; /* next frame to go to (when ANIMPLAY_FLAG_USE_NEXT_FRAME is set) */ } ScreenAnimData; /* for animplayer */ @@ -50,6 +55,8 @@ enum { ANIMPLAY_FLAG_SYNC = (1<<2), /* don't drop frames (and ignore SCE_FRAME_DROP flag) */ ANIMPLAY_FLAG_NO_SYNC = (1<<3), + /* use nextfra at next timer update */ + ANIMPLAY_FLAG_USE_NEXT_FRAME = (1<<4) }; /* ----------------------------------------------------- */ @@ -68,13 +75,21 @@ typedef struct ScreenFrameRateInfo { /* ----------------------------------------------------- */ +/* Enum for Action Zone Edges. Which edge of area is action zone. */ +typedef enum { + AE_RIGHT_TO_TOPLEFT, /* Region located on the left, _right_ edge is action zone. Region minimised to the top left */ + AE_LEFT_TO_TOPRIGHT, /* Region located on the right, _left_ edge is action zone. Region minimised to the top right */ + AE_TOP_TO_BOTTOMRIGHT, /* Region located at the bottom, _top_ edge is action zone. Region minimised to the bottom right */ + AE_BOTTOM_TO_TOPLEFT /* Region located at the top, _bottom_edge is action zone. Region minimised to the top left */ +} AZEdge; + /* for editing areas/regions */ typedef struct AZone { struct AZone *next, *prev; ARegion *ar; int type; /* region-azone, which of the edges */ - short edge; + AZEdge edge; /* internal */ short do_draw; /* for draw */ diff --git a/source/blender/editors/include/ED_sculpt.h b/source/blender/editors/include/ED_sculpt.h index 506813ce626..33d2dfcf4c5 100644 --- a/source/blender/editors/include/ED_sculpt.h +++ b/source/blender/editors/include/ED_sculpt.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_sculpt.h + * \ingroup editors + */ + #ifndef ED_SCULPT_H #define ED_SCULPT_H @@ -40,6 +44,7 @@ void ED_operatortypes_sculpt(void); void sculpt_get_redraw_planes(float planes[4][4], struct ARegion *ar, struct RegionView3D *rv3d, struct Object *ob); void ED_sculpt_force_update(struct bContext *C); +void ED_sculpt_modifiers_changed(struct Object *ob); /* paint_ops.c */ void ED_operatortypes_paint(void); @@ -51,5 +56,6 @@ void ED_keymap_paint(struct wmKeyConfig *keyconf); int ED_undo_paint_step(struct bContext *C, int type, int step, const char *name); void ED_undo_paint_free(void); +int ED_undo_paint_valid(int type, const char *name); #endif diff --git a/source/blender/editors/include/ED_sequencer.h b/source/blender/editors/include/ED_sequencer.h index d99187afce9..39eb66e56e9 100644 --- a/source/blender/editors/include/ED_sequencer.h +++ b/source/blender/editors/include/ED_sequencer.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -22,6 +22,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_sequencer.h + * \ingroup editors + */ + #ifndef ED_SEQUENCER_H #define ED_SEQUENCER_H diff --git a/source/blender/editors/include/ED_sound.h b/source/blender/editors/include/ED_sound.h index 8b157d86279..3c6b12da076 100644 --- a/source/blender/editors/include/ED_sound.h +++ b/source/blender/editors/include/ED_sound.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_sound.h + * \ingroup editors + */ + #ifndef ED_SOUND_H #define ED_SOUND_H diff --git a/source/blender/editors/include/ED_space_api.h b/source/blender/editors/include/ED_space_api.h index 69a3d1f758a..053b1d4fd9c 100644 --- a/source/blender/editors/include/ED_space_api.h +++ b/source/blender/editors/include/ED_space_api.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,6 +26,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_space_api.h + * \ingroup editors + */ + #ifndef ED_SPACE_API_H #define ED_SPACE_API_H diff --git a/source/blender/editors/include/ED_text.h b/source/blender/editors/include/ED_text.h index 081e83b1844..bc8c9958e18 100644 --- a/source/blender/editors/include/ED_text.h +++ b/source/blender/editors/include/ED_text.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_text.h + * \ingroup editors + */ + #ifndef ED_TEXT_H #define ED_TEXT_H diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index d8954be08c9..3ab634afeff 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_transform.h + * \ingroup editors + */ + #ifndef ED_TRANSFORM_H #define ED_TRANSFORM_H @@ -126,7 +130,7 @@ void BIF_selectTransformOrientationValue(struct bContext *C, int orientation); void ED_getTransformOrientationMatrix(const struct bContext *C, float orientation_mat[][3], int activeOnly); struct EnumPropertyItem *BIF_enumTransformOrientation(struct bContext *C); -char * BIF_menustringTransformOrientation(const struct bContext *C, char *title); /* the returned value was allocated and needs to be freed after use */ +const char * BIF_menustringTransformOrientation(const struct bContext *C, const char *title); /* the returned value was allocated and needs to be freed after use */ int BIF_countTransformOrientation(const struct bContext *C); void BIF_TransformSetUndo(char *str); @@ -142,6 +146,7 @@ void BIF_selectOrientation(void); #define P_GEO_SNAP (P_SNAP|(1 << 4)) #define P_ALIGN_SNAP (P_GEO_SNAP|(1 << 5)) #define P_CONSTRAINT (1 << 6) +#define P_OPTIONS (1 << 7) void Transform_Properties(struct wmOperatorType *ot, int flags); diff --git a/source/blender/editors/include/ED_types.h b/source/blender/editors/include/ED_types.h index 96a5d5857fa..0218b8d9c2d 100644 --- a/source/blender/editors/include/ED_types.h +++ b/source/blender/editors/include/ED_types.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_types.h + * \ingroup editors + */ + #ifndef ED_TYPES_H #define ED_TYPES_H @@ -35,18 +40,13 @@ #define SELECT 1 #define ACTIVE 2 -/* nonstandard define, sometimes in math.h */ -#ifndef MAXFLOAT -#define MAXFLOAT ((float)3.40282347e+38) -#endif - /* buttons */ #define XIC 20 #define YIC 20 /* proposal = put scene pointers on function calls? */ -#define BASACT (scene->basact) -#define OBACT (BASACT? BASACT->object: 0) +// #define BASACT (scene->basact) +// #define OBACT (BASACT? BASACT->object: NULL) diff --git a/source/blender/editors/include/ED_util.h b/source/blender/editors/include/ED_util.h index 96ad1989497..06c9c12444e 100644 --- a/source/blender/editors/include/ED_util.h +++ b/source/blender/editors/include/ED_util.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,15 +25,23 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_util.h + * \ingroup editors + */ + #ifndef ED_UTIL_H #define ED_UTIL_H +struct Scene; struct Object; struct bContext; struct ARegion; struct uiBlock; struct wmOperator; struct wmOperatorType; +struct EditMesh; +struct Mesh; /* ed_util.c */ @@ -43,16 +51,24 @@ void ED_editors_exit (struct bContext *C); /* ************** Undo ************************ */ /* undo.c */ -void ED_undo_push (struct bContext *C, char *str); +void ED_undo_push (struct bContext *C, const char *str); void ED_undo_push_op (struct bContext *C, struct wmOperator *op); void ED_undo_pop_op (struct bContext *C, struct wmOperator *op); void ED_undo_pop (struct bContext *C); void ED_undo_redo (struct bContext *C); void ED_OT_undo (struct wmOperatorType *ot); +void ED_OT_undo_push (struct wmOperatorType *ot); void ED_OT_redo (struct wmOperatorType *ot); +int ED_undo_operator_repeat(struct bContext *C, struct wmOperator *op); + /* convenience since UI callbacks use this mostly*/ +void ED_undo_operator_repeat_cb(struct bContext *C, void *arg_op, void *arg_unused); +void ED_undo_operator_repeat_cb_evt(struct bContext *C, void *arg_op, int arg_unused); + +int ED_undo_valid (const struct bContext *C, const char *undoname); + /* undo_editmode.c */ -void undo_editmode_push(struct bContext *C, char *name, +void undo_editmode_push(struct bContext *C, const char *name, void * (*getdata)(struct bContext *C), void (*freedata)(void *), void (*to_editmode)(void *, void *, void *), @@ -66,11 +82,21 @@ void undo_editmode_menu (struct bContext *C); void undo_editmode_clear (void); void undo_editmode_step (struct bContext *C, int step); +/* crazyspace.c */ +float *crazyspace_get_mapped_editverts(struct Scene *scene, struct Object *obedit); +void crazyspace_set_quats_editmesh(struct BMEditMesh *em, float *origcos, float *mappedcos, float *quats); +void crazyspace_set_quats_mesh(struct Mesh *me, float *origcos, float *mappedcos, float *quats); +int sculpt_get_first_deform_matrices(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); +void crazyspace_build_sculpt(struct Scene *scene, struct Object *ob, float (**deformmats)[3][3], float (**deformcos)[3]); + /* ************** XXX OLD CRUFT WARNING ************* */ void apply_keyb_grid(int shift, int ctrl, float *val, float fac1, float fac2, float fac3, int invert); -int GetButStringLength(char *str); +int GetButStringLength(const char *str); + +/* where else to go ? */ +void unpack_menu(struct bContext *C, const char *opname, const char *id_name, const char *abs_name, const char *folder, struct PackedFile *pf); #endif /* ED_UTIL_H */ diff --git a/source/blender/editors/include/ED_uvedit.h b/source/blender/editors/include/ED_uvedit.h index 65ead416971..5d45415c3b3 100644 --- a/source/blender/editors/include/ED_uvedit.h +++ b/source/blender/editors/include/ED_uvedit.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file ED_uvedit.h + * \ingroup editors + */ + #ifndef ED_UVEDIT_H #define ED_UVEDIT_H @@ -41,17 +45,24 @@ void ED_operatortypes_uvedit(void); void ED_keymap_uvedit(struct wmKeyConfig *keyconf); void ED_uvedit_assign_image(struct Scene *scene, struct Object *obedit, struct Image *ima, struct Image *previma); -void ED_uvedit_set_tile(struct bContext *C, struct Scene *scene, struct Object *obedit, struct Image *ima, int curtile, int dotile); int ED_uvedit_minmax(struct Scene *scene, struct Image *ima, struct Object *obedit, float *min, float *max); int ED_uvedit_test_silent(struct Object *obedit); int ED_uvedit_test(struct Object *obedit); +/* visibility and selection */ int uvedit_face_visible(struct Scene *scene, struct Image *ima, struct BMFace *efa, struct MTexPoly *tf); int uvedit_face_selected(struct Scene *scene, struct BMEditMesh *em, struct BMFace *efa); int uvedit_edge_selected(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); int uvedit_uv_selected(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); +int uvedit_face_select(struct Scene *scene, struct BMEditMesh *em, struct BMFace *efa); +int uvedit_face_deselect(struct Scene *scene, struct BMEditMesh *em, struct BMFace *efa); +void uvedit_edge_select(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); +void uvedit_edge_deselect(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); +void uvedit_uv_select(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); +void uvedit_uv_deselect(struct BMEditMesh *em, struct Scene *scene, struct BMLoop *l); + int ED_uvedit_nearest_uv(struct Scene *scene, struct Object *obedit, struct Image *ima, float co[2], float uv[2]); /* uvedit_unwrap.c */ @@ -59,5 +70,7 @@ void ED_uvedit_live_unwrap_begin(struct Scene *scene, struct Object *obedit); void ED_uvedit_live_unwrap_re_solve(void); void ED_uvedit_live_unwrap_end(short cancel); +void draw_uvedit_main(struct SpaceImage *sima, struct ARegion *ar, struct Scene *scene, struct Object *obedit); + #endif /* ED_UVEDIT_H */ diff --git a/source/blender/editors/include/ED_view3d.h b/source/blender/editors/include/ED_view3d.h index bd4791055e2..37541722682 100644 --- a/source/blender/editors/include/ED_view3d.h +++ b/source/blender/editors/include/ED_view3d.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -25,6 +25,11 @@ * * ***** END GPL LICENSE BLOCK ***** */ + +/** \file ED_view3d.h + * \ingroup editors + */ + #ifndef ED_VIEW3D_H #define ED_VIEW3D_H @@ -50,6 +55,7 @@ struct RegionView3D; struct Scene; struct View3D; struct ViewContext; +struct wmWindow; /* for derivedmesh drawing callbacks, for view3d_select, .... */ @@ -66,6 +72,7 @@ typedef struct ViewContext { typedef struct ViewDepths { unsigned short w, h; + short x, y; /* only for temp use for sub-rects, added to ar->winx/y */ float *depths; double depth_range[2]; @@ -81,6 +88,7 @@ void window_to_3d_delta(struct ARegion *ar, float *vec, short mx, short my); void view3d_unproject(struct bglMats *mats, float out[3], const short x, const short y, const float z); /* Depth buffer */ +void view3d_update_depths(struct ARegion *ar); float read_cached_depth(struct ViewContext *vc, int x, int y); void request_depth_update(struct RegionView3D *rv3d); @@ -109,11 +117,10 @@ int get_view3d_ortho(struct View3D *v3d, struct RegionView3D *rv3d); void view3d_get_object_project_mat(struct RegionView3D *v3d, struct Object *ob, float pmat[4][4]); /* computes screen x/y in vec */ void view3d_project_float(struct ARegion *a, float *vec, float *adr, float mat[4][4]); -/* computes z, as well as x and y */ void view3d_project_float_v3(struct ARegion *a, float *vec, float *adr, float mat[4][4]); -void view3d_calc_camera_border(struct Scene *scene, struct ARegion *ar, struct RegionView3D *rv3d, struct View3D *v3d, struct rctf *viewborder_r); +void view3d_calc_camera_border(struct Scene *scene, struct ARegion *ar, struct RegionView3D *rv3d, struct View3D *v3d, struct rctf *viewborder_r, short do_shift); -/* drawobject.c itterators */ +/* drawobject.c iterators */ void mesh_foreachScreenVert(struct ViewContext *vc, void (*func)(void *userData, struct BMVert *eve, int x, int y, int index), void *userData, int clipVerts); void mesh_foreachScreenEdge(struct ViewContext *vc, void (*func)(void *userData, struct BMEdge *eed, int x0, int y0, int x1, int y1, int index), void *userData, int clipVerts); void mesh_foreachScreenFace(struct ViewContext *vc, void (*func)(void *userData, struct BMFace *efa, int x, int y, int index), void *userData); @@ -123,8 +130,9 @@ void lattice_foreachScreenVert(struct ViewContext *vc, void (*func)(void *userDa void ED_view3d_local_clipping(struct RegionView3D *rv3d, float mat[][4]); int view3d_test_clipping(struct RegionView3D *rv3d, float *vec, int local); void view3d_align_axis_to_vector(struct View3D *v3d, struct RegionView3D *rv3d, int axisidx, float vec[3]); +float view3d_pixel_size(struct RegionView3D *rv3d, const float co[3]); -void drawcircball(int mode, float *cent, float rad, float tmat[][4]); +void drawcircball(int mode, const float cent[3], float rad, float tmat[][4]); /* backbuffer select and draw support */ void view3d_validate_backbuf(struct ViewContext *vc); @@ -138,8 +146,9 @@ int view_autodist(struct Scene *scene, struct ARegion *ar, struct View3D *v3d, s /* only draw so view_autodist_simple can be called many times after */ int view_autodist_init(struct Scene *scene, struct ARegion *ar, struct View3D *v3d, int mode); -int view_autodist_simple(struct ARegion *ar, short *mval, float mouse_worldloc[3], int margin, float *force_depth); -int view_autodist_depth(struct ARegion *ar, short *mval, int margin, float *depth); +int view_autodist_simple(struct ARegion *ar, short mval[2], float mouse_worldloc[3], int margin, float *force_depth); +int view_autodist_depth(struct ARegion *ar, short mval[2], int margin, float *depth); +int view_autodist_depth_segment(struct ARegion *ar, short mval_sta[2], short mval_end[2], int margin, float *depth); /* select */ #define MAXPICKBUF 10000 @@ -147,6 +156,7 @@ short view3d_opengl_select(struct ViewContext *vc, unsigned int *buffer, unsigne void view3d_set_viewcontext(struct bContext *C, struct ViewContext *vc); void view3d_operator_needs_opengl(const struct bContext *C); +void view3d_region_operator_needs_opengl(struct wmWindow *win, struct ARegion *ar); void view3d_get_view_aligned_coordinate(struct ViewContext *vc, float *fp, short mval[2]); void view3d_get_transformation(struct ARegion *ar, struct RegionView3D *rv3d, struct Object *ob, struct bglMats *mats); @@ -169,10 +179,11 @@ void ED_view3d_draw_offscreen(struct Scene *scene, struct View3D *v3d, struct AR struct ImBuf *ED_view3d_draw_offscreen_imbuf(struct Scene *scene, struct View3D *v3d, struct ARegion *ar, int sizex, int sizey, unsigned int flag); struct ImBuf *ED_view3d_draw_offscreen_imbuf_simple(Scene *scene, int width, int height, unsigned int flag, int drawtype); -void view3d_clipping_local(struct RegionView3D *rv3d, float mat[][4]); Base *ED_view3d_give_base_under_cursor(struct bContext *C, short *mval); -void ED_view3d_quadview_update(struct ScrArea *sa, struct ARegion *ar); +void ED_view3d_quadview_update(struct ScrArea *sa, struct ARegion *ar, short do_clip); + +unsigned int ED_viewedit_datamask(struct bScreen *screen); #endif /* ED_VIEW3D_H */ diff --git a/source/blender/editors/include/UI_icons.h b/source/blender/editors/include/UI_icons.h index 3e8420df7eb..b2a353b0647 100644 --- a/source/blender/editors/include/UI_icons.h +++ b/source/blender/editors/include/UI_icons.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -26,890 +26,984 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file UI_icons.h + * \ingroup editorui + */ + /* Note: this is included twice with different #defines for DEF_ICON once from UI_resources.h for the internal icon enum and once for interface_api.c for the definition of the RNA enum for the icons */ -DEF_ICON(ICON_BLENDER) -DEF_ICON(ICON_QUESTION) -DEF_ICON(ICON_ERROR) -DEF_ICON(ICON_CANCEL) -DEF_ICON(ICON_TRIA_RIGHT) -DEF_ICON(ICON_TRIA_DOWN) -DEF_ICON(ICON_TRIA_LEFT) -DEF_ICON(ICON_TRIA_UP) -DEF_ICON(ICON_ARROW_LEFTRIGHT) -DEF_ICON(ICON_PLUS) -DEF_ICON(ICON_DISCLOSURE_TRI_DOWN) -DEF_ICON(ICON_DISCLOSURE_TRI_RIGHT) -DEF_ICON(ICON_RADIOBUT_OFF) -DEF_ICON(ICON_RADIOBUT_ON) -DEF_ICON(ICON_MENU_PANEL) -DEF_ICON(ICON_PYTHON) -DEF_ICON(ICON_BLANK003) -DEF_ICON(ICON_DOT) -DEF_ICON(ICON_BLANK004) -DEF_ICON(ICON_X) -DEF_ICON(ICON_BLANK005) -DEF_ICON(ICON_GO_LEFT) -DEF_ICON(ICON_PLUG) -DEF_ICON(ICON_UI) -DEF_ICON(ICON_NODE) -DEF_ICON(ICON_NODE_SEL) +/* ICON_ prefix added */ +DEF_ICON(BLENDER) +DEF_ICON(QUESTION) +DEF_ICON(ERROR) +DEF_ICON(CANCEL) +DEF_ICON(TRIA_RIGHT) +DEF_ICON(TRIA_DOWN) +DEF_ICON(TRIA_LEFT) +DEF_ICON(TRIA_UP) +DEF_ICON(ARROW_LEFTRIGHT) +DEF_ICON(PLUS) +DEF_ICON(DISCLOSURE_TRI_DOWN) +DEF_ICON(DISCLOSURE_TRI_RIGHT) +DEF_ICON(RADIOBUT_OFF) +DEF_ICON(RADIOBUT_ON) +DEF_ICON(MENU_PANEL) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK002) + DEF_ICON(BLANK003) +#endif +DEF_ICON(DOT) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK004) +#endif +DEF_ICON(X) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK005) +#endif +DEF_ICON(GO_LEFT) +DEF_ICON(PLUG) +DEF_ICON(UI) +DEF_ICON(NODE) +DEF_ICON(NODE_SEL) /* ui */ -DEF_ICON(ICON_FULLSCREEN) -DEF_ICON(ICON_SPLITSCREEN) -DEF_ICON(ICON_RIGHTARROW_THIN) -DEF_ICON(ICON_BORDERMOVE) -DEF_ICON(ICON_VIEWZOOM) -DEF_ICON(ICON_ZOOMIN) -DEF_ICON(ICON_ZOOMOUT) -DEF_ICON(ICON_PANEL_CLOSE) -DEF_ICON(ICON_COPY_ID) //ICON_BLANK009 -DEF_ICON(ICON_EYEDROPPER) -DEF_ICON(ICON_LINK_AREA) //ICON_BLANK010 -DEF_ICON(ICON_AUTO) -DEF_ICON(ICON_CHECKBOX_DEHLT) -DEF_ICON(ICON_CHECKBOX_HLT) -DEF_ICON(ICON_UNLOCKED) -DEF_ICON(ICON_LOCKED) -DEF_ICON(ICON_UNPINNED) -DEF_ICON(ICON_PINNED) -DEF_ICON(ICON_SCREEN_BACK) -DEF_ICON(ICON_RIGHTARROW) -DEF_ICON(ICON_DOWNARROW_HLT) -DEF_ICON(ICON_DOTSUP) -DEF_ICON(ICON_DOTSDOWN) -DEF_ICON(ICON_LINK) -DEF_ICON(ICON_INLINK) -DEF_ICON(ICON_PLUGIN) +DEF_ICON(FULLSCREEN) +DEF_ICON(SPLITSCREEN) +DEF_ICON(RIGHTARROW_THIN) +DEF_ICON(BORDERMOVE) +DEF_ICON(VIEWZOOM) +DEF_ICON(ZOOMIN) +DEF_ICON(ZOOMOUT) +DEF_ICON(PANEL_CLOSE) +DEF_ICON(COPY_ID) //ICON_BLANK009 +DEF_ICON(EYEDROPPER) +DEF_ICON(LINK_AREA) //ICON_BLANK010 +DEF_ICON(AUTO) +DEF_ICON(CHECKBOX_DEHLT) +DEF_ICON(CHECKBOX_HLT) +DEF_ICON(UNLOCKED) +DEF_ICON(LOCKED) +DEF_ICON(UNPINNED) +DEF_ICON(PINNED) +DEF_ICON(SCREEN_BACK) +DEF_ICON(RIGHTARROW) +DEF_ICON(DOWNARROW_HLT) +DEF_ICON(DOTSUP) +DEF_ICON(DOTSDOWN) +DEF_ICON(LINK) +DEF_ICON(INLINK) +DEF_ICON(PLUGIN) /* various ui */ -DEF_ICON(ICON_HELP) -DEF_ICON(ICON_GHOST_ENABLED) -DEF_ICON(ICON_COLOR) -DEF_ICON(ICON_LINKED) -DEF_ICON(ICON_UNLINKED) -DEF_ICON(ICON_HAND) -DEF_ICON(ICON_ZOOM_ALL) -DEF_ICON(ICON_ZOOM_SELECTED) -DEF_ICON(ICON_ZOOM_PREVIOUS) -DEF_ICON(ICON_ZOOM_IN) -DEF_ICON(ICON_ZOOM_OUT) -DEF_ICON(ICON_RENDER_REGION) -DEF_ICON(ICON_BORDER_RECT) -DEF_ICON(ICON_BORDER_LASSO) -DEF_ICON(ICON_FREEZE) -DEF_ICON(ICON_STYLUS_PRESSURE) -DEF_ICON(ICON_GHOST_DISABLED) -DEF_ICON(ICON_NEW) -DEF_ICON(ICON_FILE_TICK) -DEF_ICON(ICON_QUIT) -DEF_ICON(ICON_URL) -DEF_ICON(ICON_RECOVER_LAST) -DEF_ICON(ICON_BLANK038) -DEF_ICON(ICON_FULLSCREEN_ENTER) -DEF_ICON(ICON_FULLSCREEN_EXIT) -DEF_ICON(ICON_BLANK1) // Not actually blank - this is used all over the place +DEF_ICON(HELP) +DEF_ICON(GHOST_ENABLED) +DEF_ICON(COLOR) +DEF_ICON(LINKED) +DEF_ICON(UNLINKED) +DEF_ICON(HAND) +DEF_ICON(ZOOM_ALL) +DEF_ICON(ZOOM_SELECTED) +DEF_ICON(ZOOM_PREVIOUS) +DEF_ICON(ZOOM_IN) +DEF_ICON(ZOOM_OUT) +DEF_ICON(RENDER_REGION) +DEF_ICON(BORDER_RECT) +DEF_ICON(BORDER_LASSO) +DEF_ICON(FREEZE) +DEF_ICON(STYLUS_PRESSURE) +DEF_ICON(GHOST_DISABLED) +DEF_ICON(NEW) +DEF_ICON(FILE_TICK) +DEF_ICON(QUIT) +DEF_ICON(URL) +DEF_ICON(RECOVER_LAST) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK038) +#endif +DEF_ICON(FULLSCREEN_ENTER) +DEF_ICON(FULLSCREEN_EXIT) +DEF_ICON(BLANK1) // Not actually blank - this is used all over the place /* BUTTONS */ -DEF_ICON(ICON_LAMP) -DEF_ICON(ICON_MATERIAL) -DEF_ICON(ICON_TEXTURE) -DEF_ICON(ICON_ANIM) -DEF_ICON(ICON_WORLD) -DEF_ICON(ICON_SCENE) -DEF_ICON(ICON_EDIT) -DEF_ICON(ICON_GAME) -DEF_ICON(ICON_RADIO) -DEF_ICON(ICON_SCRIPT) -DEF_ICON(ICON_PARTICLES) -DEF_ICON(ICON_PHYSICS) -DEF_ICON(ICON_SPEAKER) -DEF_ICON(ICON_TEXTURE_SHADED) //ICON_BLANK041 -DEF_ICON(ICON_BLANK042) -DEF_ICON(ICON_BLANK043) -DEF_ICON(ICON_BLANK044) -DEF_ICON(ICON_BLANK045) -DEF_ICON(ICON_BLANK046) -DEF_ICON(ICON_BLANK047) -DEF_ICON(ICON_BLANK048) -DEF_ICON(ICON_BLANK049) -DEF_ICON(ICON_BLANK050) -DEF_ICON(ICON_BLANK051) -DEF_ICON(ICON_BLANK052) -DEF_ICON(ICON_BLANK052b) - +DEF_ICON(LAMP) +DEF_ICON(MATERIAL) +DEF_ICON(TEXTURE) +DEF_ICON(ANIM) +DEF_ICON(WORLD) +DEF_ICON(SCENE) +DEF_ICON(EDIT) +DEF_ICON(GAME) +DEF_ICON(RADIO) +DEF_ICON(SCRIPT) +DEF_ICON(PARTICLES) +DEF_ICON(PHYSICS) +DEF_ICON(SPEAKER) +DEF_ICON(TEXTURE_SHADED) //ICON_BLANK041 +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK042) + DEF_ICON(BLANK043) + DEF_ICON(BLANK044) + DEF_ICON(BLANK045) + DEF_ICON(BLANK046) + DEF_ICON(BLANK047) + DEF_ICON(BLANK048) + DEF_ICON(BLANK049) + DEF_ICON(BLANK050) + DEF_ICON(BLANK051) + DEF_ICON(BLANK052) + DEF_ICON(BLANK052b) +#endif /* EDITORS */ -DEF_ICON(ICON_VIEW3D) -DEF_ICON(ICON_IPO) -DEF_ICON(ICON_OOPS) -DEF_ICON(ICON_BUTS) -DEF_ICON(ICON_FILESEL) -DEF_ICON(ICON_IMAGE_COL) -DEF_ICON(ICON_INFO) -DEF_ICON(ICON_SEQUENCE) -DEF_ICON(ICON_TEXT) -DEF_ICON(ICON_IMASEL) -DEF_ICON(ICON_SOUND) -DEF_ICON(ICON_ACTION) -DEF_ICON(ICON_NLA) -DEF_ICON(ICON_SCRIPTWIN) -DEF_ICON(ICON_TIME) -DEF_ICON(ICON_NODETREE) -DEF_ICON(ICON_LOGIC) -DEF_ICON(ICON_CONSOLE) -DEF_ICON(ICON_PREFERENCES) -DEF_ICON(ICON_ASSET_MANAGER) -DEF_ICON(ICON_BLANK057) -DEF_ICON(ICON_BLANK058) -DEF_ICON(ICON_BLANK059) -DEF_ICON(ICON_BLANK060) -DEF_ICON(ICON_BLANK061) -DEF_ICON(ICON_BLANK061b) - +DEF_ICON(VIEW3D) +DEF_ICON(IPO) +DEF_ICON(OOPS) +DEF_ICON(BUTS) +DEF_ICON(FILESEL) +DEF_ICON(IMAGE_COL) +DEF_ICON(INFO) +DEF_ICON(SEQUENCE) +DEF_ICON(TEXT) +DEF_ICON(IMASEL) +DEF_ICON(SOUND) +DEF_ICON(ACTION) +DEF_ICON(NLA) +DEF_ICON(SCRIPTWIN) +DEF_ICON(TIME) +DEF_ICON(NODETREE) +DEF_ICON(LOGIC) +DEF_ICON(CONSOLE) +DEF_ICON(PREFERENCES) +DEF_ICON(ASSET_MANAGER) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK057) + DEF_ICON(BLANK058) + DEF_ICON(BLANK059) + DEF_ICON(BLANK060) + DEF_ICON(BLANK061) + DEF_ICON(BLANK061b) +#endif + /* MODES */ -DEF_ICON(ICON_OBJECT_DATAMODE) // XXX fix this up -DEF_ICON(ICON_EDITMODE_HLT) -DEF_ICON(ICON_FACESEL_HLT) -DEF_ICON(ICON_VPAINT_HLT) -DEF_ICON(ICON_TPAINT_HLT) -DEF_ICON(ICON_WPAINT_HLT) -DEF_ICON(ICON_SCULPTMODE_HLT) -DEF_ICON(ICON_POSE_HLT) -DEF_ICON(ICON_PARTICLEMODE) -DEF_ICON(ICON_LIGHTPAINT) -DEF_ICON(ICON_BLANK063) -DEF_ICON(ICON_BLANK064) -DEF_ICON(ICON_BLANK065) -DEF_ICON(ICON_BLANK066) -DEF_ICON(ICON_BLANK067) -DEF_ICON(ICON_BLANK068) -DEF_ICON(ICON_BLANK069) -DEF_ICON(ICON_BLANK070) -DEF_ICON(ICON_BLANK071) -DEF_ICON(ICON_BLANK072) -DEF_ICON(ICON_BLANK073) -DEF_ICON(ICON_BLANK074) -DEF_ICON(ICON_BLANK075) -DEF_ICON(ICON_BLANK076) -DEF_ICON(ICON_BLANK077) -DEF_ICON(ICON_BLANK077b) +DEF_ICON(OBJECT_DATAMODE) // XXX fix this up +DEF_ICON(EDITMODE_HLT) +DEF_ICON(FACESEL_HLT) +DEF_ICON(VPAINT_HLT) +DEF_ICON(TPAINT_HLT) +DEF_ICON(WPAINT_HLT) +DEF_ICON(SCULPTMODE_HLT) +DEF_ICON(POSE_HLT) +DEF_ICON(PARTICLEMODE) +DEF_ICON(LIGHTPAINT) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK063) + DEF_ICON(BLANK064) + DEF_ICON(BLANK065) + DEF_ICON(BLANK066) + DEF_ICON(BLANK067) + DEF_ICON(BLANK068) + DEF_ICON(BLANK069) + DEF_ICON(BLANK070) + DEF_ICON(BLANK071) + DEF_ICON(BLANK072) + DEF_ICON(BLANK073) + DEF_ICON(BLANK074) + DEF_ICON(BLANK075) + DEF_ICON(BLANK076) + DEF_ICON(BLANK077) + DEF_ICON(BLANK077b) +#endif /* DATA */ -DEF_ICON(ICON_SCENE_DATA) -DEF_ICON(ICON_RENDERLAYERS) -DEF_ICON(ICON_WORLD_DATA) -DEF_ICON(ICON_OBJECT_DATA) -DEF_ICON(ICON_MESH_DATA) -DEF_ICON(ICON_CURVE_DATA) -DEF_ICON(ICON_META_DATA) -DEF_ICON(ICON_LATTICE_DATA) -DEF_ICON(ICON_LAMP_DATA) -DEF_ICON(ICON_MATERIAL_DATA) -DEF_ICON(ICON_TEXTURE_DATA) -DEF_ICON(ICON_ANIM_DATA) -DEF_ICON(ICON_CAMERA_DATA) -DEF_ICON(ICON_PARTICLE_DATA) -DEF_ICON(ICON_LIBRARY_DATA_DIRECT) -DEF_ICON(ICON_GROUP) -DEF_ICON(ICON_ARMATURE_DATA) -DEF_ICON(ICON_POSE_DATA) -DEF_ICON(ICON_BONE_DATA) -DEF_ICON(ICON_CONSTRAINT) -DEF_ICON(ICON_SHAPEKEY_DATA) -DEF_ICON(ICON_CONSTRAINT_BONE) -DEF_ICON(ICON_BLANK079) -DEF_ICON(ICON_PACKAGE) -DEF_ICON(ICON_UGLYPACKAGE) -DEF_ICON(ICON_BLANK079b) +DEF_ICON(SCENE_DATA) +DEF_ICON(RENDERLAYERS) +DEF_ICON(WORLD_DATA) +DEF_ICON(OBJECT_DATA) +DEF_ICON(MESH_DATA) +DEF_ICON(CURVE_DATA) +DEF_ICON(META_DATA) +DEF_ICON(LATTICE_DATA) +DEF_ICON(LAMP_DATA) +DEF_ICON(MATERIAL_DATA) +DEF_ICON(TEXTURE_DATA) +DEF_ICON(ANIM_DATA) +DEF_ICON(CAMERA_DATA) +DEF_ICON(PARTICLE_DATA) +DEF_ICON(LIBRARY_DATA_DIRECT) +DEF_ICON(GROUP) +DEF_ICON(ARMATURE_DATA) +DEF_ICON(POSE_DATA) +DEF_ICON(BONE_DATA) +DEF_ICON(CONSTRAINT) +DEF_ICON(SHAPEKEY_DATA) +DEF_ICON(CONSTRAINT_BONE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK079) +#endif +DEF_ICON(PACKAGE) +DEF_ICON(UGLYPACKAGE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK079b) +#endif /* DATA */ -DEF_ICON(ICON_BRUSH_DATA) -DEF_ICON(ICON_IMAGE_DATA) -DEF_ICON(ICON_FILE) -DEF_ICON(ICON_FCURVE) -DEF_ICON(ICON_FONT_DATA) -DEF_ICON(ICON_RENDER_RESULT) -DEF_ICON(ICON_SURFACE_DATA) -DEF_ICON(ICON_EMPTY_DATA) -DEF_ICON(ICON_SETTINGS) -DEF_ICON(ICON_RENDER_ANIMATION) -DEF_ICON(ICON_RENDER_STILL) -DEF_ICON(ICON_BLANK080F) -DEF_ICON(ICON_BOIDS) -DEF_ICON(ICON_STRANDS) -DEF_ICON(ICON_LIBRARY_DATA_INDIRECT) -DEF_ICON(ICON_GREASEPENCIL) -DEF_ICON(ICON_BLANK083) -DEF_ICON(ICON_BLANK084) -DEF_ICON(ICON_GROUP_BONE) -DEF_ICON(ICON_GROUP_VERTEX) -DEF_ICON(ICON_GROUP_VCOL) -DEF_ICON(ICON_GROUP_UVS) -DEF_ICON(ICON_BLANK089) -DEF_ICON(ICON_BLANK090) -DEF_ICON(ICON_RNA) -DEF_ICON(ICON_RNA_ADD) +DEF_ICON(BRUSH_DATA) +DEF_ICON(IMAGE_DATA) +DEF_ICON(FILE) +DEF_ICON(FCURVE) +DEF_ICON(FONT_DATA) +DEF_ICON(RENDER_RESULT) +DEF_ICON(SURFACE_DATA) +DEF_ICON(EMPTY_DATA) +DEF_ICON(SETTINGS) +DEF_ICON(RENDER_ANIMATION) +DEF_ICON(RENDER_STILL) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK080F) +#endif +DEF_ICON(BOIDS) +DEF_ICON(STRANDS) +DEF_ICON(LIBRARY_DATA_INDIRECT) +DEF_ICON(GREASEPENCIL) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK083) + DEF_ICON(BLANK084) +#endif +DEF_ICON(GROUP_BONE) +DEF_ICON(GROUP_VERTEX) +DEF_ICON(GROUP_VCOL) +DEF_ICON(GROUP_UVS) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK089) + DEF_ICON(BLANK090) +#endif +DEF_ICON(RNA) +DEF_ICON(RNA_ADD) /* available */ -DEF_ICON(ICON_BLANK092) -DEF_ICON(ICON_BLANK093) -DEF_ICON(ICON_BLANK094) -DEF_ICON(ICON_BLANK095) -DEF_ICON(ICON_BLANK096) -DEF_ICON(ICON_BLANK097) -DEF_ICON(ICON_BLANK098) -DEF_ICON(ICON_BLANK099) -DEF_ICON(ICON_BLANK100) -DEF_ICON(ICON_BLANK101) -DEF_ICON(ICON_BLANK102) -DEF_ICON(ICON_BLANK103) -DEF_ICON(ICON_BLANK104) -DEF_ICON(ICON_BLANK105) -DEF_ICON(ICON_BLANK106) -DEF_ICON(ICON_BLANK107) -DEF_ICON(ICON_BLANK108) -DEF_ICON(ICON_BLANK109) -DEF_ICON(ICON_BLANK110) -DEF_ICON(ICON_BLANK111) -DEF_ICON(ICON_BLANK112) -DEF_ICON(ICON_BLANK113) -DEF_ICON(ICON_BLANK114) -DEF_ICON(ICON_BLANK115) -DEF_ICON(ICON_BLANK116) -DEF_ICON(ICON_BLANK116b) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK092) + DEF_ICON(BLANK093) + DEF_ICON(BLANK094) + DEF_ICON(BLANK095) + DEF_ICON(BLANK096) + DEF_ICON(BLANK097) + DEF_ICON(BLANK098) + DEF_ICON(BLANK099) + DEF_ICON(BLANK100) + DEF_ICON(BLANK101) + DEF_ICON(BLANK102) + DEF_ICON(BLANK103) + DEF_ICON(BLANK104) + DEF_ICON(BLANK105) + DEF_ICON(BLANK106) + DEF_ICON(BLANK107) + DEF_ICON(BLANK108) + DEF_ICON(BLANK109) + DEF_ICON(BLANK110) + DEF_ICON(BLANK111) + DEF_ICON(BLANK112) + DEF_ICON(BLANK113) + DEF_ICON(BLANK114) + DEF_ICON(BLANK115) + DEF_ICON(BLANK116) + DEF_ICON(BLANK116b) +#endif /* OUTLINER */ -DEF_ICON(ICON_OUTLINER_OB_EMPTY) -DEF_ICON(ICON_OUTLINER_OB_MESH) -DEF_ICON(ICON_OUTLINER_OB_CURVE) -DEF_ICON(ICON_OUTLINER_OB_LATTICE) -DEF_ICON(ICON_OUTLINER_OB_META) -DEF_ICON(ICON_OUTLINER_OB_LAMP) -DEF_ICON(ICON_OUTLINER_OB_CAMERA) -DEF_ICON(ICON_OUTLINER_OB_ARMATURE) -DEF_ICON(ICON_OUTLINER_OB_FONT) -DEF_ICON(ICON_OUTLINER_OB_SURFACE) -DEF_ICON(ICON_BLANK119) -DEF_ICON(ICON_BLANK120) -DEF_ICON(ICON_BLANK121) -DEF_ICON(ICON_BLANK122) -DEF_ICON(ICON_BLANK123) -DEF_ICON(ICON_BLANK124) -DEF_ICON(ICON_BLANK125) -DEF_ICON(ICON_BLANK126) -DEF_ICON(ICON_BLANK127) -DEF_ICON(ICON_RESTRICT_VIEW_OFF) -DEF_ICON(ICON_RESTRICT_VIEW_ON) -DEF_ICON(ICON_RESTRICT_SELECT_OFF) -DEF_ICON(ICON_RESTRICT_SELECT_ON) -DEF_ICON(ICON_RESTRICT_RENDER_OFF) -DEF_ICON(ICON_RESTRICT_RENDER_ON) -DEF_ICON(ICON_BLANK127b) +DEF_ICON(OUTLINER_OB_EMPTY) +DEF_ICON(OUTLINER_OB_MESH) +DEF_ICON(OUTLINER_OB_CURVE) +DEF_ICON(OUTLINER_OB_LATTICE) +DEF_ICON(OUTLINER_OB_META) +DEF_ICON(OUTLINER_OB_LAMP) +DEF_ICON(OUTLINER_OB_CAMERA) +DEF_ICON(OUTLINER_OB_ARMATURE) +DEF_ICON(OUTLINER_OB_FONT) +DEF_ICON(OUTLINER_OB_SURFACE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK119) + DEF_ICON(BLANK120) + DEF_ICON(BLANK121) + DEF_ICON(BLANK122) + DEF_ICON(BLANK123) + DEF_ICON(BLANK124) + DEF_ICON(BLANK125) + DEF_ICON(BLANK126) + DEF_ICON(BLANK127) +#endif +DEF_ICON(RESTRICT_VIEW_OFF) +DEF_ICON(RESTRICT_VIEW_ON) +DEF_ICON(RESTRICT_SELECT_OFF) +DEF_ICON(RESTRICT_SELECT_ON) +DEF_ICON(RESTRICT_RENDER_OFF) +DEF_ICON(RESTRICT_RENDER_ON) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK127b) +#endif /* OUTLINER */ -DEF_ICON(ICON_OUTLINER_DATA_EMPTY) -DEF_ICON(ICON_OUTLINER_DATA_MESH) -DEF_ICON(ICON_OUTLINER_DATA_CURVE) -DEF_ICON(ICON_OUTLINER_DATA_LATTICE) -DEF_ICON(ICON_OUTLINER_DATA_META) -DEF_ICON(ICON_OUTLINER_DATA_LAMP) -DEF_ICON(ICON_OUTLINER_DATA_CAMERA) -DEF_ICON(ICON_OUTLINER_DATA_ARMATURE) -DEF_ICON(ICON_OUTLINER_DATA_FONT) -DEF_ICON(ICON_OUTLINER_DATA_SURFACE) -DEF_ICON(ICON_OUTLINER_DATA_POSE) -DEF_ICON(ICON_BLANK129) -DEF_ICON(ICON_BLANK130) -DEF_ICON(ICON_BLANK131) -DEF_ICON(ICON_BLANK132) -DEF_ICON(ICON_BLANK133) -DEF_ICON(ICON_BLANK134) -DEF_ICON(ICON_BLANK135) -DEF_ICON(ICON_BLANK136) -DEF_ICON(ICON_BLANK137) -DEF_ICON(ICON_BLANK138) -DEF_ICON(ICON_BLANK139) -DEF_ICON(ICON_BLANK140) -DEF_ICON(ICON_BLANK141) -DEF_ICON(ICON_BLANK142) -DEF_ICON(ICON_BLANK142b) +DEF_ICON(OUTLINER_DATA_EMPTY) +DEF_ICON(OUTLINER_DATA_MESH) +DEF_ICON(OUTLINER_DATA_CURVE) +DEF_ICON(OUTLINER_DATA_LATTICE) +DEF_ICON(OUTLINER_DATA_META) +DEF_ICON(OUTLINER_DATA_LAMP) +DEF_ICON(OUTLINER_DATA_CAMERA) +DEF_ICON(OUTLINER_DATA_ARMATURE) +DEF_ICON(OUTLINER_DATA_FONT) +DEF_ICON(OUTLINER_DATA_SURFACE) +DEF_ICON(OUTLINER_DATA_POSE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK129) + DEF_ICON(BLANK130) + DEF_ICON(BLANK131) + DEF_ICON(BLANK132) + DEF_ICON(BLANK133) + DEF_ICON(BLANK134) + DEF_ICON(BLANK135) + DEF_ICON(BLANK136) + DEF_ICON(BLANK137) + DEF_ICON(BLANK138) + DEF_ICON(BLANK139) + DEF_ICON(BLANK140) + DEF_ICON(BLANK141) + DEF_ICON(BLANK142) + DEF_ICON(BLANK142b) +#endif /* PRIMITIVES */ -DEF_ICON(ICON_MESH_PLANE) -DEF_ICON(ICON_MESH_CUBE) -DEF_ICON(ICON_MESH_CIRCLE) -DEF_ICON(ICON_MESH_UVSPHERE) -DEF_ICON(ICON_MESH_ICOSPHERE) -DEF_ICON(ICON_MESH_GRID) -DEF_ICON(ICON_MESH_MONKEY) -DEF_ICON(ICON_MESH_CYLINDER) -DEF_ICON(ICON_MESH_TORUS) -DEF_ICON(ICON_MESH_CONE) -DEF_ICON(ICON_BLANK610) -DEF_ICON(ICON_BLANK611) -DEF_ICON(ICON_LAMP_POINT) -DEF_ICON(ICON_LAMP_SUN) -DEF_ICON(ICON_LAMP_SPOT) -DEF_ICON(ICON_LAMP_HEMI) -DEF_ICON(ICON_LAMP_AREA) -DEF_ICON(ICON_BLANK617) -DEF_ICON(ICON_BLANK618) -DEF_ICON(ICON_BLANK619) -DEF_ICON(ICON_META_PLANE) -DEF_ICON(ICON_META_CUBE) -DEF_ICON(ICON_META_BALL) -DEF_ICON(ICON_META_ELLIPSOID) -DEF_ICON(ICON_META_CAPSULE) -DEF_ICON(ICON_BLANK625) +DEF_ICON(MESH_PLANE) +DEF_ICON(MESH_CUBE) +DEF_ICON(MESH_CIRCLE) +DEF_ICON(MESH_UVSPHERE) +DEF_ICON(MESH_ICOSPHERE) +DEF_ICON(MESH_GRID) +DEF_ICON(MESH_MONKEY) +DEF_ICON(MESH_CYLINDER) +DEF_ICON(MESH_TORUS) +DEF_ICON(MESH_CONE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK610) + DEF_ICON(BLANK611) +#endif +DEF_ICON(LAMP_POINT) +DEF_ICON(LAMP_SUN) +DEF_ICON(LAMP_SPOT) +DEF_ICON(LAMP_HEMI) +DEF_ICON(LAMP_AREA) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK617) + DEF_ICON(BLANK618) + DEF_ICON(BLANK619) +#endif +DEF_ICON(META_PLANE) +DEF_ICON(META_CUBE) +DEF_ICON(META_BALL) +DEF_ICON(META_ELLIPSOID) +DEF_ICON(META_CAPSULE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK625) +#endif /* PRIMITIVES */ -DEF_ICON(ICON_SURFACE_NCURVE) -DEF_ICON(ICON_SURFACE_NCIRCLE) -DEF_ICON(ICON_SURFACE_NSURFACE) -DEF_ICON(ICON_SURFACE_NCYLINDER) -DEF_ICON(ICON_SURFACE_NSPHERE) -DEF_ICON(ICON_SURFACE_NTORUS) -DEF_ICON(ICON_BLANK636) -DEF_ICON(ICON_BLANK637) -DEF_ICON(ICON_BLANK638) -DEF_ICON(ICON_CURVE_BEZCURVE) -DEF_ICON(ICON_CURVE_BEZCIRCLE) -DEF_ICON(ICON_CURVE_NCURVE) -DEF_ICON(ICON_CURVE_NCIRCLE) -DEF_ICON(ICON_CURVE_PATH) -DEF_ICON(ICON_BLANK644) -DEF_ICON(ICON_BLANK645) -DEF_ICON(ICON_BLANK646) -DEF_ICON(ICON_BLANK647) -DEF_ICON(ICON_BLANK648) -DEF_ICON(ICON_BLANK649) -DEF_ICON(ICON_BLANK650) -DEF_ICON(ICON_BLANK651) -DEF_ICON(ICON_BLANK652) -DEF_ICON(ICON_BLANK653) -DEF_ICON(ICON_BLANK654) -DEF_ICON(ICON_BLANK655) +DEF_ICON(SURFACE_NCURVE) +DEF_ICON(SURFACE_NCIRCLE) +DEF_ICON(SURFACE_NSURFACE) +DEF_ICON(SURFACE_NCYLINDER) +DEF_ICON(SURFACE_NSPHERE) +DEF_ICON(SURFACE_NTORUS) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK636) + DEF_ICON(BLANK637) + DEF_ICON(BLANK638) +#endif +DEF_ICON(CURVE_BEZCURVE) +DEF_ICON(CURVE_BEZCIRCLE) +DEF_ICON(CURVE_NCURVE) +DEF_ICON(CURVE_NCIRCLE) +DEF_ICON(CURVE_PATH) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK644) + DEF_ICON(BLANK645) + DEF_ICON(BLANK646) + DEF_ICON(BLANK647) + DEF_ICON(BLANK648) + DEF_ICON(BLANK649) + DEF_ICON(BLANK650) + DEF_ICON(BLANK651) + DEF_ICON(BLANK652) + DEF_ICON(BLANK653) + DEF_ICON(BLANK654) + DEF_ICON(BLANK655) +#endif /* EMPTY */ -DEF_ICON(ICON_FORCE_FORCE) -DEF_ICON(ICON_FORCE_WIND) -DEF_ICON(ICON_FORCE_VORTEX) -DEF_ICON(ICON_FORCE_MAGNETIC) -DEF_ICON(ICON_FORCE_HARMONIC) -DEF_ICON(ICON_FORCE_CHARGE) -DEF_ICON(ICON_FORCE_LENNARDJONES) -DEF_ICON(ICON_FORCE_TEXTURE) -DEF_ICON(ICON_FORCE_CURVE) -DEF_ICON(ICON_FORCE_BOID) -DEF_ICON(ICON_FORCE_TURBULENCE) -DEF_ICON(ICON_FORCE_DRAG) -DEF_ICON(ICON_BLANK672) -DEF_ICON(ICON_BLANK673) -DEF_ICON(ICON_BLANK674) -DEF_ICON(ICON_BLANK675) -DEF_ICON(ICON_BLANK676) -DEF_ICON(ICON_BLANK677) -DEF_ICON(ICON_BLANK678) -DEF_ICON(ICON_BLANK679) -DEF_ICON(ICON_BLANK680) -DEF_ICON(ICON_BLANK681) -DEF_ICON(ICON_BLANK682) -DEF_ICON(ICON_BLANK683) -DEF_ICON(ICON_BLANK684) -DEF_ICON(ICON_BLANK685) +DEF_ICON(FORCE_FORCE) +DEF_ICON(FORCE_WIND) +DEF_ICON(FORCE_VORTEX) +DEF_ICON(FORCE_MAGNETIC) +DEF_ICON(FORCE_HARMONIC) +DEF_ICON(FORCE_CHARGE) +DEF_ICON(FORCE_LENNARDJONES) +DEF_ICON(FORCE_TEXTURE) +DEF_ICON(FORCE_CURVE) +DEF_ICON(FORCE_BOID) +DEF_ICON(FORCE_TURBULENCE) +DEF_ICON(FORCE_DRAG) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK672) + DEF_ICON(BLANK673) + DEF_ICON(BLANK674) + DEF_ICON(BLANK675) + DEF_ICON(BLANK676) + DEF_ICON(BLANK677) + DEF_ICON(BLANK678) + DEF_ICON(BLANK679) + DEF_ICON(BLANK680) + DEF_ICON(BLANK681) + DEF_ICON(BLANK682) + DEF_ICON(BLANK683) + DEF_ICON(BLANK684) + DEF_ICON(BLANK685) /* EMPTY */ -DEF_ICON(ICON_BLANK690) -DEF_ICON(ICON_BLANK691) -DEF_ICON(ICON_BLANK692) -DEF_ICON(ICON_BLANK693) -DEF_ICON(ICON_BLANK694) -DEF_ICON(ICON_BLANK695) -DEF_ICON(ICON_BLANK696) -DEF_ICON(ICON_BLANK697) -DEF_ICON(ICON_BLANK698) -DEF_ICON(ICON_BLANK699) -DEF_ICON(ICON_BLANK700) -DEF_ICON(ICON_BLANK701) -DEF_ICON(ICON_BLANK702) -DEF_ICON(ICON_BLANK703) -DEF_ICON(ICON_BLANK704) -DEF_ICON(ICON_BLANK705) -DEF_ICON(ICON_BLANK706) -DEF_ICON(ICON_BLANK707) -DEF_ICON(ICON_BLANK708) -DEF_ICON(ICON_BLANK709) -DEF_ICON(ICON_BLANK710) -DEF_ICON(ICON_BLANK711) -DEF_ICON(ICON_BLANK712) -DEF_ICON(ICON_BLANK713) -DEF_ICON(ICON_BLANK714) -DEF_ICON(ICON_BLANK715) + DEF_ICON(BLANK690) + DEF_ICON(BLANK691) + DEF_ICON(BLANK692) + DEF_ICON(BLANK693) + DEF_ICON(BLANK694) + DEF_ICON(BLANK695) + DEF_ICON(BLANK696) + DEF_ICON(BLANK697) + DEF_ICON(BLANK698) + DEF_ICON(BLANK699) + DEF_ICON(BLANK700) + DEF_ICON(BLANK701) + DEF_ICON(BLANK702) + DEF_ICON(BLANK703) + DEF_ICON(BLANK704) + DEF_ICON(BLANK705) + DEF_ICON(BLANK706) + DEF_ICON(BLANK707) + DEF_ICON(BLANK708) + DEF_ICON(BLANK709) + DEF_ICON(BLANK710) + DEF_ICON(BLANK711) + DEF_ICON(BLANK712) + DEF_ICON(BLANK713) + DEF_ICON(BLANK714) + DEF_ICON(BLANK715) /* EMPTY */ -DEF_ICON(ICON_BLANK720) -DEF_ICON(ICON_BLANK721) -DEF_ICON(ICON_BLANK722) -DEF_ICON(ICON_BLANK733) -DEF_ICON(ICON_BLANK734) -DEF_ICON(ICON_BLANK735) -DEF_ICON(ICON_BLANK736) -DEF_ICON(ICON_BLANK737) -DEF_ICON(ICON_BLANK738) -DEF_ICON(ICON_BLANK739) -DEF_ICON(ICON_BLANK740) -DEF_ICON(ICON_BLANK741) -DEF_ICON(ICON_BLANK742) -DEF_ICON(ICON_BLANK743) -DEF_ICON(ICON_BLANK744) -DEF_ICON(ICON_BLANK745) -DEF_ICON(ICON_BLANK746) -DEF_ICON(ICON_BLANK747) -DEF_ICON(ICON_BLANK748) -DEF_ICON(ICON_BLANK749) -DEF_ICON(ICON_BLANK750) -DEF_ICON(ICON_BLANK751) -DEF_ICON(ICON_BLANK752) -DEF_ICON(ICON_BLANK753) -DEF_ICON(ICON_BLANK754) -DEF_ICON(ICON_BLANK755) + DEF_ICON(BLANK720) + DEF_ICON(BLANK721) + DEF_ICON(BLANK722) + DEF_ICON(BLANK733) + DEF_ICON(BLANK734) + DEF_ICON(BLANK735) + DEF_ICON(BLANK736) + DEF_ICON(BLANK737) + DEF_ICON(BLANK738) + DEF_ICON(BLANK739) + DEF_ICON(BLANK740) + DEF_ICON(BLANK741) + DEF_ICON(BLANK742) + DEF_ICON(BLANK743) + DEF_ICON(BLANK744) + DEF_ICON(BLANK745) + DEF_ICON(BLANK746) + DEF_ICON(BLANK747) + DEF_ICON(BLANK748) + DEF_ICON(BLANK749) + DEF_ICON(BLANK750) + DEF_ICON(BLANK751) + DEF_ICON(BLANK752) + DEF_ICON(BLANK753) + DEF_ICON(BLANK754) + DEF_ICON(BLANK755) /* EMPTY */ -DEF_ICON(ICON_BLANK760) -DEF_ICON(ICON_BLANK761) -DEF_ICON(ICON_BLANK762) -DEF_ICON(ICON_BLANK763) -DEF_ICON(ICON_BLANK764) -DEF_ICON(ICON_BLANK765) -DEF_ICON(ICON_BLANK766) -DEF_ICON(ICON_BLANK767) -DEF_ICON(ICON_BLANK768) -DEF_ICON(ICON_BLANK769) -DEF_ICON(ICON_BLANK770) -DEF_ICON(ICON_BLANK771) -DEF_ICON(ICON_BLANK772) -DEF_ICON(ICON_BLANK773) -DEF_ICON(ICON_BLANK774) -DEF_ICON(ICON_BLANK775) -DEF_ICON(ICON_BLANK776) -DEF_ICON(ICON_BLANK777) -DEF_ICON(ICON_BLANK778) -DEF_ICON(ICON_BLANK779) -DEF_ICON(ICON_BLANK780) -DEF_ICON(ICON_BLANK781) -DEF_ICON(ICON_BLANK782) -DEF_ICON(ICON_BLANK783) -DEF_ICON(ICON_BLANK784) -DEF_ICON(ICON_BLANK785) + DEF_ICON(BLANK760) + DEF_ICON(BLANK761) + DEF_ICON(BLANK762) + DEF_ICON(BLANK763) + DEF_ICON(BLANK764) + DEF_ICON(BLANK765) + DEF_ICON(BLANK766) + DEF_ICON(BLANK767) + DEF_ICON(BLANK768) + DEF_ICON(BLANK769) + DEF_ICON(BLANK770) + DEF_ICON(BLANK771) + DEF_ICON(BLANK772) + DEF_ICON(BLANK773) + DEF_ICON(BLANK774) + DEF_ICON(BLANK775) + DEF_ICON(BLANK776) + DEF_ICON(BLANK777) + DEF_ICON(BLANK778) + DEF_ICON(BLANK779) + DEF_ICON(BLANK780) + DEF_ICON(BLANK781) + DEF_ICON(BLANK782) + DEF_ICON(BLANK783) + DEF_ICON(BLANK784) + DEF_ICON(BLANK785) +#endif /* MODIFIERS */ -DEF_ICON(ICON_MODIFIER) -DEF_ICON(ICON_MOD_WAVE) -DEF_ICON(ICON_MOD_BUILD) -DEF_ICON(ICON_MOD_DECIM) -DEF_ICON(ICON_MOD_MIRROR) -DEF_ICON(ICON_MOD_SOFT) -DEF_ICON(ICON_MOD_SUBSURF) -DEF_ICON(ICON_HOOK) -DEF_ICON(ICON_MOD_PHYSICS) -DEF_ICON(ICON_MOD_PARTICLES) -DEF_ICON(ICON_MOD_BOOLEAN) -DEF_ICON(ICON_MOD_EDGESPLIT) -DEF_ICON(ICON_MOD_ARRAY) -DEF_ICON(ICON_MOD_UVPROJECT) -DEF_ICON(ICON_MOD_DISPLACE) -DEF_ICON(ICON_MOD_CURVE) -DEF_ICON(ICON_MOD_LATTICE) -DEF_ICON(ICON_CONSTRAINT_DATA) -DEF_ICON(ICON_MOD_ARMATURE) -DEF_ICON(ICON_MOD_SHRINKWRAP) -DEF_ICON(ICON_MOD_CAST) -DEF_ICON(ICON_MOD_MESHDEFORM) -DEF_ICON(ICON_MOD_BEVEL) -DEF_ICON(ICON_MOD_SMOOTH) -DEF_ICON(ICON_MOD_SIMPLEDEFORM) -DEF_ICON(ICON_MOD_MASK) +DEF_ICON(MODIFIER) +DEF_ICON(MOD_WAVE) +DEF_ICON(MOD_BUILD) +DEF_ICON(MOD_DECIM) +DEF_ICON(MOD_MIRROR) +DEF_ICON(MOD_SOFT) +DEF_ICON(MOD_SUBSURF) +DEF_ICON(HOOK) +DEF_ICON(MOD_PHYSICS) +DEF_ICON(MOD_PARTICLES) +DEF_ICON(MOD_BOOLEAN) +DEF_ICON(MOD_EDGESPLIT) +DEF_ICON(MOD_ARRAY) +DEF_ICON(MOD_UVPROJECT) +DEF_ICON(MOD_DISPLACE) +DEF_ICON(MOD_CURVE) +DEF_ICON(MOD_LATTICE) +DEF_ICON(CONSTRAINT_DATA) +DEF_ICON(MOD_ARMATURE) +DEF_ICON(MOD_SHRINKWRAP) +DEF_ICON(MOD_CAST) +DEF_ICON(MOD_MESHDEFORM) +DEF_ICON(MOD_BEVEL) +DEF_ICON(MOD_SMOOTH) +DEF_ICON(MOD_SIMPLEDEFORM) +DEF_ICON(MOD_MASK) /* MODIFIERS */ -DEF_ICON(ICON_MOD_CLOTH) -DEF_ICON(ICON_MOD_EXPLODE) -DEF_ICON(ICON_MOD_FLUIDSIM) -DEF_ICON(ICON_MOD_MULTIRES) -DEF_ICON(ICON_MOD_SMOKE) -DEF_ICON(ICON_MOD_SOLIDIFY) -DEF_ICON(ICON_MOD_SCREW) -DEF_ICON(ICON_BLANK160) -DEF_ICON(ICON_BLANK161) -DEF_ICON(ICON_BLANK162) -DEF_ICON(ICON_BLANK163) -DEF_ICON(ICON_BLANK164) -DEF_ICON(ICON_BLANK165) -DEF_ICON(ICON_BLANK166) -DEF_ICON(ICON_BLANK167) -DEF_ICON(ICON_BLANK168) -DEF_ICON(ICON_BLANK169) -DEF_ICON(ICON_BLANK170) -DEF_ICON(ICON_BLANK171) -DEF_ICON(ICON_BLANK172) -DEF_ICON(ICON_BLANK173) -DEF_ICON(ICON_BLANK174) -DEF_ICON(ICON_BLANK175) -DEF_ICON(ICON_BLANK176) -DEF_ICON(ICON_BLANK177) -DEF_ICON(ICON_BLANK177b) +DEF_ICON(MOD_CLOTH) +DEF_ICON(MOD_EXPLODE) +DEF_ICON(MOD_FLUIDSIM) +DEF_ICON(MOD_MULTIRES) +DEF_ICON(MOD_SMOKE) +DEF_ICON(MOD_SOLIDIFY) +DEF_ICON(MOD_SCREW) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK160) + DEF_ICON(BLANK161) + DEF_ICON(BLANK162) + DEF_ICON(BLANK163) + DEF_ICON(BLANK164) + DEF_ICON(BLANK165) + DEF_ICON(BLANK166) + DEF_ICON(BLANK167) + DEF_ICON(BLANK168) + DEF_ICON(BLANK169) + DEF_ICON(BLANK170) + DEF_ICON(BLANK171) + DEF_ICON(BLANK172) + DEF_ICON(BLANK173) + DEF_ICON(BLANK174) + DEF_ICON(BLANK175) + DEF_ICON(BLANK176) + DEF_ICON(BLANK177) + DEF_ICON(BLANK177b) +#endif /* ANIMATION */ -DEF_ICON(ICON_REC) -DEF_ICON(ICON_PLAY) -DEF_ICON(ICON_FF) -DEF_ICON(ICON_REW) -DEF_ICON(ICON_PAUSE) -DEF_ICON(ICON_PREV_KEYFRAME) -DEF_ICON(ICON_NEXT_KEYFRAME) -DEF_ICON(ICON_PLAY_AUDIO) -DEF_ICON(ICON_PLAY_REVERSE) -DEF_ICON(ICON_PREVIEW_RANGE) -DEF_ICON(ICON_BLANK180) -DEF_ICON(ICON_PMARKER_ACT) -DEF_ICON(ICON_PMARKER_SEL) -DEF_ICON(ICON_PMARKER) -DEF_ICON(ICON_MARKER_HLT) -DEF_ICON(ICON_MARKER) -DEF_ICON(ICON_SPACE2) // XXX -DEF_ICON(ICON_SPACE3) // XXX -DEF_ICON(ICON_BLANK181) -DEF_ICON(ICON_KEY_DEHLT) -DEF_ICON(ICON_KEY_HLT) -DEF_ICON(ICON_MUTE_IPO_OFF) -DEF_ICON(ICON_MUTE_IPO_ON) -DEF_ICON(ICON_BLANK182) -DEF_ICON(ICON_BLANK183) -DEF_ICON(ICON_BLANK183b) +DEF_ICON(REC) +DEF_ICON(PLAY) +DEF_ICON(FF) +DEF_ICON(REW) +DEF_ICON(PAUSE) +DEF_ICON(PREV_KEYFRAME) +DEF_ICON(NEXT_KEYFRAME) +DEF_ICON(PLAY_AUDIO) +DEF_ICON(PLAY_REVERSE) +DEF_ICON(PREVIEW_RANGE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK180) +#endif +DEF_ICON(PMARKER_ACT) +DEF_ICON(PMARKER_SEL) +DEF_ICON(PMARKER) +DEF_ICON(MARKER_HLT) +DEF_ICON(MARKER) +DEF_ICON(SPACE2) // XXX +DEF_ICON(SPACE3) // XXX +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK181) +#endif +DEF_ICON(KEY_DEHLT) +DEF_ICON(KEY_HLT) +DEF_ICON(MUTE_IPO_OFF) +DEF_ICON(MUTE_IPO_ON) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK182) + DEF_ICON(BLANK183) + DEF_ICON(BLANK183b) /* available */ -DEF_ICON(ICON_BLANK184) -DEF_ICON(ICON_BLANK185) -DEF_ICON(ICON_BLANK186) -DEF_ICON(ICON_BLANK187) -DEF_ICON(ICON_BLANK188) -DEF_ICON(ICON_BLANK189) -DEF_ICON(ICON_BLANK190) -DEF_ICON(ICON_BLANK191) -DEF_ICON(ICON_BLANK192) -DEF_ICON(ICON_BLANK193) -DEF_ICON(ICON_BLANK194) -DEF_ICON(ICON_BLANK195) -DEF_ICON(ICON_BLANK196) -DEF_ICON(ICON_BLANK197) -DEF_ICON(ICON_BLANK198) -DEF_ICON(ICON_BLANK199) -DEF_ICON(ICON_BLANK200) -DEF_ICON(ICON_BLANK201) -DEF_ICON(ICON_BLANK202) -DEF_ICON(ICON_BLANK203) -DEF_ICON(ICON_BLANK204) -DEF_ICON(ICON_BLANK205) -DEF_ICON(ICON_BLANK206) -DEF_ICON(ICON_BLANK207) -DEF_ICON(ICON_BLANK208) -DEF_ICON(ICON_BLANK208b) + DEF_ICON(BLANK184) + DEF_ICON(BLANK185) + DEF_ICON(BLANK186) + DEF_ICON(BLANK187) + DEF_ICON(BLANK188) + DEF_ICON(BLANK189) + DEF_ICON(BLANK190) + DEF_ICON(BLANK191) + DEF_ICON(BLANK192) + DEF_ICON(BLANK193) + DEF_ICON(BLANK194) + DEF_ICON(BLANK195) + DEF_ICON(BLANK196) + DEF_ICON(BLANK197) + DEF_ICON(BLANK198) + DEF_ICON(BLANK199) + DEF_ICON(BLANK200) + DEF_ICON(BLANK201) + DEF_ICON(BLANK202) + DEF_ICON(BLANK203) + DEF_ICON(BLANK204) + DEF_ICON(BLANK205) + DEF_ICON(BLANK206) + DEF_ICON(BLANK207) + DEF_ICON(BLANK208) + DEF_ICON(BLANK208b) +#endif /* EDITING */ -DEF_ICON(ICON_VERTEXSEL) -DEF_ICON(ICON_EDGESEL) -DEF_ICON(ICON_FACESEL) -DEF_ICON(ICON_LINKEDSEL) -DEF_ICON(ICON_BLANK210) -DEF_ICON(ICON_ROTATE) -DEF_ICON(ICON_CURSOR) -DEF_ICON(ICON_ROTATECOLLECTION) -DEF_ICON(ICON_ROTATECENTER) -DEF_ICON(ICON_ROTACTIVE) -DEF_ICON(ICON_ALIGN) -DEF_ICON(ICON_BLANK211) -DEF_ICON(ICON_SMOOTHCURVE) -DEF_ICON(ICON_SPHERECURVE) -DEF_ICON(ICON_ROOTCURVE) -DEF_ICON(ICON_SHARPCURVE) -DEF_ICON(ICON_LINCURVE) -DEF_ICON(ICON_NOCURVE) -DEF_ICON(ICON_RNDCURVE) -DEF_ICON(ICON_PROP_OFF) -DEF_ICON(ICON_PROP_ON) -DEF_ICON(ICON_PROP_CON) -DEF_ICON(ICON_BLANK212) -DEF_ICON(ICON_PARTICLE_POINT) -DEF_ICON(ICON_PARTICLE_TIP) -DEF_ICON(ICON_PARTICLE_PATH) +DEF_ICON(VERTEXSEL) +DEF_ICON(EDGESEL) +DEF_ICON(FACESEL) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK209) + DEF_ICON(BLANK210) +#endif +DEF_ICON(ROTATE) +DEF_ICON(CURSOR) +DEF_ICON(ROTATECOLLECTION) +DEF_ICON(ROTATECENTER) +DEF_ICON(ROTACTIVE) +DEF_ICON(ALIGN) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK211) +#endif +DEF_ICON(SMOOTHCURVE) +DEF_ICON(SPHERECURVE) +DEF_ICON(ROOTCURVE) +DEF_ICON(SHARPCURVE) +DEF_ICON(LINCURVE) +DEF_ICON(NOCURVE) +DEF_ICON(RNDCURVE) +DEF_ICON(PROP_OFF) +DEF_ICON(PROP_ON) +DEF_ICON(PROP_CON) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK212) +#endif +DEF_ICON(PARTICLE_POINT) +DEF_ICON(PARTICLE_TIP) +DEF_ICON(PARTICLE_PATH) /* EDITING */ -DEF_ICON(ICON_MAN_TRANS) -DEF_ICON(ICON_MAN_ROT) -DEF_ICON(ICON_MAN_SCALE) -DEF_ICON(ICON_MANIPUL) -DEF_ICON(ICON_SNAP_OFF) -DEF_ICON(ICON_SNAP_ON) -DEF_ICON(ICON_SNAP_NORMAL) -DEF_ICON(ICON_SNAP_INCREMENT) -DEF_ICON(ICON_SNAP_VERTEX) -DEF_ICON(ICON_SNAP_EDGE) -DEF_ICON(ICON_SNAP_FACE) -DEF_ICON(ICON_SNAP_VOLUME) -DEF_ICON(ICON_UVS_FACE) -DEF_ICON(ICON_STICKY_UVS_LOC) -DEF_ICON(ICON_STICKY_UVS_DISABLE) -DEF_ICON(ICON_STICKY_UVS_VERT) -DEF_ICON(ICON_CLIPUV_DEHLT) -DEF_ICON(ICON_CLIPUV_HLT) -DEF_ICON(ICON_SNAP_PEEL_OBJECT) -DEF_ICON(ICON_GRID) -DEF_ICON(ICON_GEARS) -DEF_ICON(ICON_BLANK221) -DEF_ICON(ICON_BLANK224) -DEF_ICON(ICON_BLANK225) -DEF_ICON(ICON_BLANK226) -DEF_ICON(ICON_BLANK226b) +DEF_ICON(MAN_TRANS) +DEF_ICON(MAN_ROT) +DEF_ICON(MAN_SCALE) +DEF_ICON(MANIPUL) +DEF_ICON(SNAP_OFF) +DEF_ICON(SNAP_ON) +DEF_ICON(SNAP_NORMAL) +DEF_ICON(SNAP_INCREMENT) +DEF_ICON(SNAP_VERTEX) +DEF_ICON(SNAP_EDGE) +DEF_ICON(SNAP_FACE) +DEF_ICON(SNAP_VOLUME) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK220) +#endif +DEF_ICON(STICKY_UVS_LOC) +DEF_ICON(STICKY_UVS_DISABLE) +DEF_ICON(STICKY_UVS_VERT) +DEF_ICON(CLIPUV_DEHLT) +DEF_ICON(CLIPUV_HLT) +DEF_ICON(SNAP_PEEL_OBJECT) +DEF_ICON(GRID) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK221) + DEF_ICON(BLANK222) + DEF_ICON(BLANK224) + DEF_ICON(BLANK225) + DEF_ICON(BLANK226) + DEF_ICON(BLANK226b) +#endif /* EDITING */ -DEF_ICON(ICON_PASTEDOWN) -DEF_ICON(ICON_COPYDOWN) -DEF_ICON(ICON_PASTEFLIPUP) -DEF_ICON(ICON_PASTEFLIPDOWN) -DEF_ICON(ICON_BLANK227) -DEF_ICON(ICON_BLANK228) -DEF_ICON(ICON_BLANK229) -DEF_ICON(ICON_BLANK230) -DEF_ICON(ICON_SNAP_SURFACE) -DEF_ICON(ICON_BLANK232) -DEF_ICON(ICON_BLANK233) -DEF_ICON(ICON_RETOPO) -DEF_ICON(ICON_UV_VERTEXSEL) -DEF_ICON(ICON_UV_EDGESEL) -DEF_ICON(ICON_UV_FACESEL) -DEF_ICON(ICON_UV_ISLANDSEL) -DEF_ICON(ICON_UV_SYNC_SELECT) -DEF_ICON(ICON_BLANK240) -DEF_ICON(ICON_BLANK241) -DEF_ICON(ICON_BLANK242) -DEF_ICON(ICON_BLANK243) -DEF_ICON(ICON_BLANK244) -DEF_ICON(ICON_BLANK245) -DEF_ICON(ICON_BLANK246) -DEF_ICON(ICON_BLANK247) -DEF_ICON(ICON_BLANK247b) +DEF_ICON(PASTEDOWN) +DEF_ICON(COPYDOWN) +DEF_ICON(PASTEFLIPUP) +DEF_ICON(PASTEFLIPDOWN) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK227) + DEF_ICON(BLANK228) + DEF_ICON(BLANK229) + DEF_ICON(BLANK230) +#endif +DEF_ICON(SNAP_SURFACE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK232) + DEF_ICON(BLANK233) +#endif +DEF_ICON(RETOPO) +DEF_ICON(UV_VERTEXSEL) +DEF_ICON(UV_EDGESEL) +DEF_ICON(UV_FACESEL) +DEF_ICON(UV_ISLANDSEL) +DEF_ICON(UV_SYNC_SELECT) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK240) + DEF_ICON(BLANK241) + DEF_ICON(BLANK242) + DEF_ICON(BLANK243) + DEF_ICON(BLANK244) + DEF_ICON(BLANK245) + DEF_ICON(BLANK246) + DEF_ICON(BLANK247) + DEF_ICON(BLANK247b) +#endif /* 3D VIEW */ -DEF_ICON(ICON_BBOX) -DEF_ICON(ICON_WIRE) -DEF_ICON(ICON_SOLID) -DEF_ICON(ICON_SMOOTH) -DEF_ICON(ICON_POTATO) -DEF_ICON(ICON_BLANK248) -DEF_ICON(ICON_ORTHO) -DEF_ICON(ICON_ORTHO_OFF) -DEF_ICON(ICON_CAMERA) -DEF_ICON(ICON_LOCKVIEW_OFF) -DEF_ICON(ICON_LOCKVIEW_ON) -DEF_ICON(ICON_BLANK250) -DEF_ICON(ICON_AXIS_SIDE) -DEF_ICON(ICON_AXIS_FRONT) -DEF_ICON(ICON_AXIS_TOP) -DEF_ICON(ICON_NDOF_DOM) -DEF_ICON(ICON_NDOF_TURN) -DEF_ICON(ICON_NDOF_FLY) -DEF_ICON(ICON_NDOF_TRANS) -DEF_ICON(ICON_LAYER_USED) -DEF_ICON(ICON_LAYER_ACTIVE) -DEF_ICON(ICON_BLANK254) -DEF_ICON(ICON_BLANK255) -DEF_ICON(ICON_BLANK256) -DEF_ICON(ICON_BLANK257) -DEF_ICON(ICON_BLANK257b) +DEF_ICON(BBOX) +DEF_ICON(WIRE) +DEF_ICON(SOLID) +DEF_ICON(SMOOTH) +DEF_ICON(POTATO) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK248) +#endif +DEF_ICON(ORTHO) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK249) + DEF_ICON(BLANK250) +#endif +DEF_ICON(LOCKVIEW_OFF) +DEF_ICON(LOCKVIEW_ON) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK251) +#endif +DEF_ICON(AXIS_SIDE) +DEF_ICON(AXIS_FRONT) +DEF_ICON(AXIS_TOP) +DEF_ICON(NDOF_DOM) +DEF_ICON(NDOF_TURN) +DEF_ICON(NDOF_FLY) +DEF_ICON(NDOF_TRANS) +DEF_ICON(LAYER_USED) +DEF_ICON(LAYER_ACTIVE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK254) + DEF_ICON(BLANK255) + DEF_ICON(BLANK256) + DEF_ICON(BLANK257) + DEF_ICON(BLANK257b) /* available */ -DEF_ICON(ICON_BLANK258) -DEF_ICON(ICON_BLANK259) -DEF_ICON(ICON_BLANK260) -DEF_ICON(ICON_BLANK261) -DEF_ICON(ICON_BLANK262) -DEF_ICON(ICON_BLANK263) -DEF_ICON(ICON_BLANK264) -DEF_ICON(ICON_BLANK265) -DEF_ICON(ICON_BLANK266) -DEF_ICON(ICON_BLANK267) -DEF_ICON(ICON_BLANK268) -DEF_ICON(ICON_BLANK269) -DEF_ICON(ICON_BLANK270) -DEF_ICON(ICON_BLANK271) -DEF_ICON(ICON_BLANK272) -DEF_ICON(ICON_BLANK273) -DEF_ICON(ICON_BLANK274) -DEF_ICON(ICON_BLANK275) -DEF_ICON(ICON_BLANK276) -DEF_ICON(ICON_BLANK277) -DEF_ICON(ICON_BLANK278) -DEF_ICON(ICON_BLANK279) -DEF_ICON(ICON_BLANK280) -DEF_ICON(ICON_BLANK281) -DEF_ICON(ICON_BLANK282) -DEF_ICON(ICON_BLANK282b) + DEF_ICON(BLANK258) + DEF_ICON(BLANK259) + DEF_ICON(BLANK260) + DEF_ICON(BLANK261) + DEF_ICON(BLANK262) + DEF_ICON(BLANK263) + DEF_ICON(BLANK264) + DEF_ICON(BLANK265) + DEF_ICON(BLANK266) + DEF_ICON(BLANK267) + DEF_ICON(BLANK268) + DEF_ICON(BLANK269) + DEF_ICON(BLANK270) + DEF_ICON(BLANK271) + DEF_ICON(BLANK272) + DEF_ICON(BLANK273) + DEF_ICON(BLANK274) + DEF_ICON(BLANK275) + DEF_ICON(BLANK276) + DEF_ICON(BLANK277) + DEF_ICON(BLANK278) + DEF_ICON(BLANK279) + DEF_ICON(BLANK280) + DEF_ICON(BLANK281) + DEF_ICON(BLANK282) + DEF_ICON(BLANK282b) +#endif /* FILE SELECT */ -DEF_ICON(ICON_SORTALPHA) -DEF_ICON(ICON_SORTBYEXT) -DEF_ICON(ICON_SORTTIME) -DEF_ICON(ICON_SORTSIZE) -DEF_ICON(ICON_LONGDISPLAY) -DEF_ICON(ICON_SHORTDISPLAY) -DEF_ICON(ICON_GHOST) -DEF_ICON(ICON_IMGDISPLAY) -DEF_ICON(ICON_BLANK284) -DEF_ICON(ICON_BLANK285) -DEF_ICON(ICON_BOOKMARKS) -DEF_ICON(ICON_FONTPREVIEW) -DEF_ICON(ICON_FILTER) -DEF_ICON(ICON_NEWFOLDER) -DEF_ICON(ICON_BLANK285F) -DEF_ICON(ICON_FILE_PARENT) -DEF_ICON(ICON_FILE_REFRESH) -DEF_ICON(ICON_FILE_FOLDER) -DEF_ICON(ICON_FILE_BLANK) -DEF_ICON(ICON_FILE_BLEND) -DEF_ICON(ICON_FILE_IMAGE) -DEF_ICON(ICON_FILE_MOVIE) -DEF_ICON(ICON_FILE_SCRIPT) -DEF_ICON(ICON_FILE_SOUND) -DEF_ICON(ICON_FILE_FONT) -DEF_ICON(ICON_BLANK291b) +DEF_ICON(SORTALPHA) +DEF_ICON(SORTBYEXT) +DEF_ICON(SORTTIME) +DEF_ICON(SORTSIZE) +DEF_ICON(LONGDISPLAY) +DEF_ICON(SHORTDISPLAY) +DEF_ICON(GHOST) +DEF_ICON(IMGDISPLAY) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK284) + DEF_ICON(BLANK285) +#endif +DEF_ICON(BOOKMARKS) +DEF_ICON(FONTPREVIEW) +DEF_ICON(FILTER) +DEF_ICON(NEWFOLDER) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK285F) +#endif +DEF_ICON(FILE_PARENT) +DEF_ICON(FILE_REFRESH) +DEF_ICON(FILE_FOLDER) +DEF_ICON(FILE_BLANK) +DEF_ICON(FILE_BLEND) +DEF_ICON(FILE_IMAGE) +DEF_ICON(FILE_MOVIE) +DEF_ICON(FILE_SCRIPT) +DEF_ICON(FILE_SOUND) +DEF_ICON(FILE_FONT) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK291b) /* available */ -DEF_ICON(ICON_BLANK292) -DEF_ICON(ICON_BLANK293) -DEF_ICON(ICON_BLANK294) -DEF_ICON(ICON_BLANK295) -DEF_ICON(ICON_BLANK296) -DEF_ICON(ICON_BLANK297) -DEF_ICON(ICON_BLANK298) -DEF_ICON(ICON_BLANK299) -DEF_ICON(ICON_BLANK300) -DEF_ICON(ICON_BLANK301) -DEF_ICON(ICON_BLANK302) -DEF_ICON(ICON_BLANK303) -DEF_ICON(ICON_BLANK304) -DEF_ICON(ICON_BLANK305) -DEF_ICON(ICON_BLANK306) -DEF_ICON(ICON_BACK) -DEF_ICON(ICON_FORWARD) -DEF_ICON(ICON_BLANK309) -DEF_ICON(ICON_BLANK310) -DEF_ICON(ICON_BLANK311) -DEF_ICON(ICON_BLANK312) -DEF_ICON(ICON_BLANK313) -DEF_ICON(ICON_BLANK314) -DEF_ICON(ICON_BLANK315) -DEF_ICON(ICON_BLANK316) -DEF_ICON(ICON_DISK_DRIVE) + DEF_ICON(BLANK292) + DEF_ICON(BLANK293) + DEF_ICON(BLANK294) + DEF_ICON(BLANK295) + DEF_ICON(BLANK296) + DEF_ICON(BLANK297) + DEF_ICON(BLANK298) + DEF_ICON(BLANK299) + DEF_ICON(BLANK300) + DEF_ICON(BLANK301) + DEF_ICON(BLANK302) + DEF_ICON(BLANK303) + DEF_ICON(BLANK304) + DEF_ICON(BLANK305) + DEF_ICON(BLANK306) +#endif +DEF_ICON(BACK) +DEF_ICON(FORWARD) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK309) + DEF_ICON(BLANK310) + DEF_ICON(BLANK311) + DEF_ICON(BLANK312) + DEF_ICON(BLANK313) + DEF_ICON(BLANK314) + DEF_ICON(BLANK315) + DEF_ICON(BLANK316) +#endif +DEF_ICON(DISK_DRIVE) /* SHADING / TEXT */ -DEF_ICON(ICON_MATPLANE) -DEF_ICON(ICON_MATSPHERE) -DEF_ICON(ICON_MATCUBE) -DEF_ICON(ICON_MONKEY) -DEF_ICON(ICON_HAIR) -DEF_ICON(ICON_ALIASED) -DEF_ICON(ICON_ANTIALIASED) -DEF_ICON(ICON_MAT_SPHERE_SKY) -DEF_ICON(ICON_BLANK319) -DEF_ICON(ICON_BLANK320) -DEF_ICON(ICON_BLANK321) -DEF_ICON(ICON_BLANK322) -DEF_ICON(ICON_WORDWRAP_OFF) -DEF_ICON(ICON_WORDWRAP_ON) -DEF_ICON(ICON_SYNTAX_OFF) -DEF_ICON(ICON_SYNTAX_ON) -DEF_ICON(ICON_LINENUMBERS_OFF) -DEF_ICON(ICON_LINENUMBERS_ON) -DEF_ICON(ICON_SCRIPTPLUGINS) // XXX CREATE NEW -DEF_ICON(ICON_BLANK323) -DEF_ICON(ICON_BLANK324) -DEF_ICON(ICON_BLANK325) -DEF_ICON(ICON_BLANK326) -DEF_ICON(ICON_BLANK327) -DEF_ICON(ICON_BLANK328) -DEF_ICON(ICON_BLANK328b) +DEF_ICON(MATPLANE) +DEF_ICON(MATSPHERE) +DEF_ICON(MATCUBE) +DEF_ICON(MONKEY) +DEF_ICON(HAIR) +DEF_ICON(ALIASED) +DEF_ICON(ANTIALIASED) +DEF_ICON(MAT_SPHERE_SKY) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK319) + DEF_ICON(BLANK320) + DEF_ICON(BLANK321) + DEF_ICON(BLANK322) +#endif +DEF_ICON(WORDWRAP_OFF) +DEF_ICON(WORDWRAP_ON) +DEF_ICON(SYNTAX_OFF) +DEF_ICON(SYNTAX_ON) +DEF_ICON(LINENUMBERS_OFF) +DEF_ICON(LINENUMBERS_ON) +DEF_ICON(SCRIPTPLUGINS) // XXX CREATE NEW +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK323) + DEF_ICON(BLANK324) + DEF_ICON(BLANK325) + DEF_ICON(BLANK326) + DEF_ICON(BLANK327) + DEF_ICON(BLANK328) + DEF_ICON(BLANK328b) +#endif /* SEQUENCE / IMAGE EDITOR */ -DEF_ICON(ICON_SEQ_SEQUENCER) -DEF_ICON(ICON_SEQ_PREVIEW) -DEF_ICON(ICON_SEQ_LUMA_WAVEFORM) -DEF_ICON(ICON_SEQ_CHROMA_SCOPE) -DEF_ICON(ICON_SEQ_HISTOGRAM) -DEF_ICON(ICON_SEQ_SPLITVIEW) -DEF_ICON(ICON_BLANK331) -DEF_ICON(ICON_BLANK332) -DEF_ICON(ICON_BLANK333) -DEF_ICON(ICON_IMAGE_RGB) // XXX CHANGE TO STRAIGHT ALPHA, Z ETC -DEF_ICON(ICON_IMAGE_RGB_ALPHA) -DEF_ICON(ICON_IMAGE_ALPHA) -DEF_ICON(ICON_IMAGE_ZDEPTH) -DEF_ICON(ICON_IMAGEFILE) -DEF_ICON(ICON_BLANK336) -DEF_ICON(ICON_BLANK337) -DEF_ICON(ICON_BLANK338) -DEF_ICON(ICON_BLANK339) -DEF_ICON(ICON_BLANK340) -DEF_ICON(ICON_BLANK341) -DEF_ICON(ICON_BLANK342) -DEF_ICON(ICON_BLANK343) -DEF_ICON(ICON_BLANK344) -DEF_ICON(ICON_BLANK345) -DEF_ICON(ICON_BLANK346) -DEF_ICON(ICON_BLANK346b) +DEF_ICON(SEQ_SEQUENCER) +DEF_ICON(SEQ_PREVIEW) +DEF_ICON(SEQ_LUMA_WAVEFORM) +DEF_ICON(SEQ_CHROMA_SCOPE) +DEF_ICON(SEQ_HISTOGRAM) +DEF_ICON(SEQ_SPLITVIEW) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK331) + DEF_ICON(BLANK332) + DEF_ICON(BLANK333) +#endif +DEF_ICON(IMAGE_RGB) // XXX CHANGE TO STRAIGHT ALPHA, Z ETC +DEF_ICON(IMAGE_RGB_ALPHA) +DEF_ICON(IMAGE_ALPHA) +DEF_ICON(IMAGE_ZDEPTH) +DEF_ICON(IMAGEFILE) +#ifndef DEF_ICON_BLANK_SKIP + DEF_ICON(BLANK336) + DEF_ICON(BLANK337) + DEF_ICON(BLANK338) + DEF_ICON(BLANK339) + DEF_ICON(BLANK340) + DEF_ICON(BLANK341) + DEF_ICON(BLANK342) + DEF_ICON(BLANK343) + DEF_ICON(BLANK344) + DEF_ICON(BLANK345) + DEF_ICON(BLANK346) + DEF_ICON(BLANK346b) +#endif /* brush icons */ -DEF_ICON(ICON_BRUSH_ADD) -DEF_ICON(ICON_BRUSH_BLOB) -DEF_ICON(ICON_BRUSH_BLUR) -DEF_ICON(ICON_BRUSH_CLAY) -DEF_ICON(ICON_BRUSH_CLONE) -DEF_ICON(ICON_BRUSH_CREASE) -DEF_ICON(ICON_BRUSH_DARKEN) -DEF_ICON(ICON_BRUSH_FILL) -DEF_ICON(ICON_BRUSH_FLATTEN) -DEF_ICON(ICON_BRUSH_GRAB) -DEF_ICON(ICON_BRUSH_INFLATE) -DEF_ICON(ICON_BRUSH_LAYER) -DEF_ICON(ICON_BRUSH_LIGHTEN) -DEF_ICON(ICON_BRUSH_MIX) -DEF_ICON(ICON_BRUSH_MULTIPLY) -DEF_ICON(ICON_BRUSH_NUDGE) -DEF_ICON(ICON_BRUSH_PINCH) -DEF_ICON(ICON_BRUSH_SCRAPE) -DEF_ICON(ICON_BRUSH_SCULPT_DRAW) -DEF_ICON(ICON_BRUSH_SMEAR) -DEF_ICON(ICON_BRUSH_SMOOTH) -DEF_ICON(ICON_BRUSH_SNAKE_HOOK) -DEF_ICON(ICON_BRUSH_SOFTEN) -DEF_ICON(ICON_BRUSH_SUBTRACT) -DEF_ICON(ICON_BRUSH_TEXDRAW) -DEF_ICON(ICON_BRUSH_THUMB) -DEF_ICON(ICON_BRUSH_ROTATE) -DEF_ICON(ICON_BRUSH_VERTEXDRAW) - - /* vector icons */ - -DEF_ICON(VICO_VIEW3D_VEC) -DEF_ICON(VICO_EDIT_VEC) -DEF_ICON(VICO_EDITMODE_DEHLT) -DEF_ICON(VICO_EDITMODE_HLT) -DEF_ICON(VICO_DISCLOSURE_TRI_RIGHT_VEC) -DEF_ICON(VICO_DISCLOSURE_TRI_DOWN_VEC) -DEF_ICON(VICO_MOVE_UP_VEC) -DEF_ICON(VICO_MOVE_DOWN_VEC) -DEF_ICON(VICO_X_VEC) -DEF_ICON(VICO_SMALL_TRI_RIGHT_VEC) +DEF_ICON(BRUSH_ADD) +DEF_ICON(BRUSH_BLOB) +DEF_ICON(BRUSH_BLUR) +DEF_ICON(BRUSH_CLAY) +DEF_ICON(BRUSH_CLONE) +DEF_ICON(BRUSH_CREASE) +DEF_ICON(BRUSH_DARKEN) +DEF_ICON(BRUSH_FILL) +DEF_ICON(BRUSH_FLATTEN) +DEF_ICON(BRUSH_GRAB) +DEF_ICON(BRUSH_INFLATE) +DEF_ICON(BRUSH_LAYER) +DEF_ICON(BRUSH_LIGHTEN) +DEF_ICON(BRUSH_MIX) +DEF_ICON(BRUSH_MULTIPLY) +DEF_ICON(BRUSH_NUDGE) +DEF_ICON(BRUSH_PINCH) +DEF_ICON(BRUSH_SCRAPE) +DEF_ICON(BRUSH_SCULPT_DRAW) +DEF_ICON(BRUSH_SMEAR) +DEF_ICON(BRUSH_SMOOTH) +DEF_ICON(BRUSH_SNAKE_HOOK) +DEF_ICON(BRUSH_SOFTEN) +DEF_ICON(BRUSH_SUBTRACT) +DEF_ICON(BRUSH_TEXDRAW) +DEF_ICON(BRUSH_THUMB) +DEF_ICON(BRUSH_ROTATE) +DEF_ICON(BRUSH_VERTEXDRAW) +/* vector icons, VICO_ prefix added */ +DEF_VICO(VIEW3D_VEC) +DEF_VICO(EDIT_VEC) +DEF_VICO(EDITMODE_DEHLT) +DEF_VICO(EDITMODE_HLT) +DEF_VICO(DISCLOSURE_TRI_RIGHT_VEC) +DEF_VICO(DISCLOSURE_TRI_DOWN_VEC) +DEF_VICO(MOVE_UP_VEC) +DEF_VICO(MOVE_DOWN_VEC) +DEF_VICO(X_VEC) +DEF_VICO(SMALL_TRI_RIGHT_VEC) diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index 40985a918d4..553ac3b0222 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file UI_interface.h + * \ingroup editorui + */ + #ifndef UI_INTERFACE_H #define UI_INTERFACE_H @@ -77,26 +81,27 @@ typedef struct uiLayout uiLayout; #define UI_EMBOSST 3 /* Table */ /* uiBlock->direction */ +#define UI_DIRECTION (UI_TOP|UI_DOWN|UI_LEFT|UI_RIGHT) #define UI_TOP 1 #define UI_DOWN 2 #define UI_LEFT 4 #define UI_RIGHT 8 -#define UI_DIRECTION 15 + #define UI_CENTER 16 #define UI_SHIFT_FLIPPED 32 /* uiBlock->autofill (not yet used) */ -#define UI_BLOCK_COLLUMNS 1 -#define UI_BLOCK_ROWS 2 +// #define UI_BLOCK_COLLUMNS 1 +// #define UI_BLOCK_ROWS 2 /* uiBlock->flag (controls) */ #define UI_BLOCK_LOOP 1 #define UI_BLOCK_REDRAW 2 #define UI_BLOCK_RET_1 4 /* XXX 2.5 not implemented */ #define UI_BLOCK_NUMSELECT 8 -#define UI_BLOCK_ENTER_OK 16 -#define UI_BLOCK_NOSHADOW 32 -#define UI_BLOCK_UNUSED 64 +/*#define UI_BLOCK_ENTER_OK 16*/ /*UNUSED*/ +/*#define UI_BLOCK_NOSHADOW 32*/ /*UNUSED*/ +/*#define UI_BLOCK_UNUSED 64*/ /*UNUSED*/ #define UI_BLOCK_MOVEMOUSE_QUIT 128 #define UI_BLOCK_KEEP_OPEN 256 #define UI_BLOCK_POPUP 512 @@ -113,13 +118,8 @@ typedef struct uiLayout uiLayout; /* block->flag bits 12-15 are identical to but->flag bits */ /* panel controls */ -#define UI_PNL_TRANSP 1 #define UI_PNL_SOLID 2 - #define UI_PNL_CLOSE 32 -#define UI_PNL_STOW 64 -#define UI_PNL_TO_MOUSE 128 -#define UI_PNL_UNSTOW 256 #define UI_PNL_SCALE 512 /* warning the first 6 flags are internal */ @@ -146,15 +146,17 @@ typedef struct uiLayout uiLayout; #define UI_BUT_ANIMATED (1<<20) #define UI_BUT_ANIMATED_KEY (1<<21) #define UI_BUT_DRIVEN (1<<22) -#define UI_BUT_INACTIVE (1<<23) -#define UI_BUT_LAST_ACTIVE (1<<24) -#define UI_BUT_UNDO (1<<25) -#define UI_BUT_IMMEDIATE (1<<26) -#define UI_BUT_NO_TOOLTIP (1<<27) +#define UI_BUT_REDALERT (1<<23) +#define UI_BUT_INACTIVE (1<<24) +#define UI_BUT_LAST_ACTIVE (1<<25) +#define UI_BUT_UNDO (1<<26) +#define UI_BUT_IMMEDIATE (1<<27) +#define UI_BUT_NO_TOOLTIP (1<<28) +#define UI_BUT_NO_UTF8 (1<<29) #define UI_BUT_NO_UTF8 (1<<28) -#define UI_BUT_VEC_SIZE_LOCK (1<<29) /* used to flag if color hsv-circle should keep luminance */ -#define UI_BUT_COLOR_CUBIC (1<<30) /* cubic saturation for the color wheel */ +#define UI_BUT_VEC_SIZE_LOCK (1<<30) /* used to flag if color hsv-circle should keep luminance */ +#define UI_BUT_COLOR_CUBIC (1<<31) /* cubic saturation for the color wheel */ #define UI_PANEL_WIDTH 340 #define UI_COMPACT_PANEL_WIDTH 160 @@ -170,7 +172,7 @@ typedef struct uiLayout uiLayout; #define SHO 64 #define INT 96 #define FLO 128 -#define FUN 192 +/*#define FUN 192*/ /*UNUSED*/ #define BIT 256 #define BUTPOIN (128+64+32) @@ -214,6 +216,7 @@ typedef struct uiLayout uiLayout; #define TOGBUT (37<<9) #define OPTION (38<<9) #define OPTIONN (39<<9) + /* buttons with value >= SEARCH_MENU don't get undo pushes */ #define SEARCH_MENU (40<<9) #define BUT_EXTRA (41<<9) #define HSVCIRCLE (42<<9) @@ -250,6 +253,9 @@ int uiGetRoundBox(void); void uiRoundRect(float minx, float miny, float maxx, float maxy, float rad); void uiDrawMenuBox(float minx, float miny, float maxx, float maxy, short flag, short direction); void uiDrawBoxShadow(unsigned char alpha, float minx, float miny, float maxx, float maxy); +void uiDrawBox(int mode, float minx, float miny, float maxx, float maxy, float rad); +void uiDrawBoxShade(int mode, float minx, float miny, float maxx, float maxy, float rad, float shadetop, float shadedown); +void uiDrawBoxVerticalShade(int mode, float minx, float miny, float maxx, float maxy, float rad, float shadeLeft, float shadeRight); /* state for scrolldrawing */ #define UI_SCROLL_PRESSED 1 @@ -266,7 +272,7 @@ typedef void (*uiMenuHandleFunc)(struct bContext *C, void *arg, int event); * * Functions used to create popup menus. For more extended menus the * uiPupMenuBegin/End functions can be used to define own items with - * the uiItem functions inbetween. If it is a simple confirmation menu + * the uiItem functions in between. If it is a simple confirmation menu * or similar, popups can be created with a single function call. */ typedef struct uiPopupMenu uiPopupMenu; @@ -275,10 +281,10 @@ uiPopupMenu *uiPupMenuBegin(struct bContext *C, const char *title, int icon); void uiPupMenuEnd(struct bContext *C, struct uiPopupMenu *head); struct uiLayout *uiPupMenuLayout(uiPopupMenu *head); -void uiPupMenuOkee(struct bContext *C, char *opname, char *str, ...); -void uiPupMenuSaveOver(struct bContext *C, struct wmOperator *op, char *filename); -void uiPupMenuNotice(struct bContext *C, char *str, ...); -void uiPupMenuError(struct bContext *C, char *str, ...); +void uiPupMenuOkee(struct bContext *C, const char *opname, const char *str, ...); +void uiPupMenuSaveOver(struct bContext *C, struct wmOperator *op, const char *filename); +void uiPupMenuNotice(struct bContext *C, const char *str, ...); +void uiPupMenuError(struct bContext *C, const char *str, ...); void uiPupMenuReports(struct bContext *C, struct ReportList *reports); void uiPupMenuInvoke(struct bContext *C, const char *idname); /* popup registered menu */ @@ -290,7 +296,7 @@ void uiPupMenuInvoke(struct bContext *C, const char *idname); /* popup registere typedef uiBlock* (*uiBlockCreateFunc)(struct bContext *C, struct ARegion *ar, void *arg1); void uiPupBlock(struct bContext *C, uiBlockCreateFunc func, void *arg); -void uiPupBlockO(struct bContext *C, uiBlockCreateFunc func, void *arg, char *opname, int opcontext); +void uiPupBlockO(struct bContext *C, uiBlockCreateFunc func, void *arg, const char *opname, int opcontext); void uiPupBlockOperator(struct bContext *C, uiBlockCreateFunc func, struct wmOperator *op, int opcontext); void uiPupBlockClose(struct bContext *C, uiBlock *block); @@ -310,9 +316,9 @@ uiBlock *uiBeginBlock(const struct bContext *C, struct ARegion *region, const ch void uiEndBlock(const struct bContext *C, uiBlock *block); void uiDrawBlock(const struct bContext *C, struct uiBlock *block); -uiBlock *uiGetBlock(char *name, struct ARegion *ar); +uiBlock *uiGetBlock(const char *name, struct ARegion *ar); -void uiBlockSetEmboss(uiBlock *block, short dt); +void uiBlockSetEmboss(uiBlock *block, char dt); void uiFreeBlock(const struct bContext *C, uiBlock *block); void uiFreeBlocks(const struct bContext *C, struct ListBase *lb); @@ -320,7 +326,7 @@ void uiFreeInactiveBlocks(const struct bContext *C, struct ListBase *lb); void uiBlockSetRegion(uiBlock *block, struct ARegion *region); -void uiBlockSetButLock(uiBlock *block, int val, char *lockstr); +void uiBlockSetButLock(uiBlock *block, int val, const char *lockstr); void uiBlockClearButLock(uiBlock *block); /* automatic aligning, horiz or verical */ @@ -333,7 +339,7 @@ enum { UI_BLOCK_BOUNDS_TEXT, UI_BLOCK_BOUNDS_POPUP_MOUSE, UI_BLOCK_BOUNDS_POPUP_MENU, - UI_BLOCK_BOUNDS_POPUP_CENTER, + UI_BLOCK_BOUNDS_POPUP_CENTER } eBlockBoundsCalc; void uiBoundsBlock(struct uiBlock *block, int addval); @@ -379,62 +385,66 @@ int uiButActiveOnly (const struct bContext *C, uiBlock *block, uiBut *but); * - O: operator */ uiBut *uiDefBut(uiBlock *block, - int type, int retval, char *str, - short x1, short y1, + int type, int retval, const char *str, + int x1, int y1, short x2, short y2, void *poin, float min, float max, - float a1, float a2, char *tip); -uiBut *uiDefButF(uiBlock *block, int type, int retval, char *str, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButBitF(uiBlock *block, int type, int bit, int retval, char *str, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButI(uiBlock *block, int type, int retval, char *str, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButBitI(uiBlock *block, int type, int bit, int retval, char *str, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButS(uiBlock *block, int type, int retval, char *str, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButBitS(uiBlock *block, int type, int bit, int retval, char *str, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButC(uiBlock *block, int type, int retval, char *str, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButBitC(uiBlock *block, int type, int bit, int retval, char *str, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButR(uiBlock *block, int type, int retval, char *str, short x1, short y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefButO(uiBlock *block, int type, char *opname, int opcontext, char *str, short x1, short y1, short x2, short y2, char *tip); + float a1, float a2, const char *tip); +uiBut *uiDefButF(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButBitF(uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButI(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButBitI(uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButS(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButBitS(uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButC(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButBitC(uiBlock *block, int type, int bit, int retval, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButR(uiBlock *block, int type, int retval, const char *str, int x1, int y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefButO(uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefButTextO(uiBlock *block, int type, const char *opname, int opcontext, const char *str, int x1, int y1, short x2, short y2, void *poin, float min, float max, float a1, float a2, const char *tip); uiBut *uiDefIconBut(uiBlock *block, int type, int retval, int icon, - short x1, short y1, + int x1, int y1, short x2, short y2, void *poin, float min, float max, - float a1, float a2, char *tip); -uiBut *uiDefIconButF(uiBlock *block, int type, int retval, int icon, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButBitF(uiBlock *block, int type, int bit, int retval, int icon, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButI(uiBlock *block, int type, int retval, int icon, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButBitI(uiBlock *block, int type, int bit, int retval, int icon, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButS(uiBlock *block, int type, int retval, int icon, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButBitS(uiBlock *block, int type, int bit, int retval, int icon, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButC(uiBlock *block, int type, int retval, int icon, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButBitC(uiBlock *block, int type, int bit, int retval, int icon, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButR(uiBlock *block, int type, int retval, int icon, short x1, short y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconButO(uiBlock *block, int type, char *opname, int opcontext, int icon, short x1, short y1, short x2, short y2, char *tip); + float a1, float a2, const char *tip); +uiBut *uiDefIconButF(uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButBitF(uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButI(uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButBitI(uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButS(uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButBitS(uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButC(uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButBitC(uiBlock *block, int type, int bit, int retval, int icon, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButR(uiBlock *block, int type, int retval, int icon, int x1, int y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconButO(uiBlock *block, int type, const char *opname, int opcontext, int icon, int x1, int y1, short x2, short y2, const char *tip); uiBut *uiDefIconTextBut(uiBlock *block, - int type, int retval, int icon, char *str, - short x1, short y1, + int type, int retval, int icon, const char *str, + int x1, int y1, short x2, short y2, void *poin, float min, float max, - float a1, float a2, char *tip); -uiBut *uiDefIconTextButF(uiBlock *block, int type, int retval, int icon, char *str, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButBitF(uiBlock *block, int type, int bit, int retval, int icon, char *str, short x1, short y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButI(uiBlock *block, int type, int retval, int icon, char *str, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButBitI(uiBlock *block, int type, int bit, int retval, int icon, char *str, short x1, short y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButS(uiBlock *block, int type, int retval, int icon, char *str, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButBitS(uiBlock *block, int type, int bit, int retval, int icon, char *str, short x1, short y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButC(uiBlock *block, int type, int retval, int icon, char *str, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButBitC(uiBlock *block, int type, int bit, int retval, int icon, char *str, short x1, short y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButR(uiBlock *block, int type, int retval, int icon, char *str, short x1, short y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, char *tip); -uiBut *uiDefIconTextButO(uiBlock *block, int type, char *opname, int opcontext, int icon, char *str, short x1, short y1, short x2, short y2, char *tip); + float a1, float a2, const char *tip); +uiBut *uiDefIconTextButF(uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButBitF(uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, float *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButI(uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButBitI(uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, int *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButS(uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButBitS(uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, short *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButC(uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButBitC(uiBlock *block, int type, int bit, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, char *poin, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButR(uiBlock *block, int type, int retval, int icon, const char *str, int x1, int y1, short x2, short y2, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip); +uiBut *uiDefIconTextButO(uiBlock *block, int type, const char *opname, int opcontext, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip); /* for passing inputs to ButO buttons */ struct PointerRNA *uiButGetOperatorPtrRNA(uiBut *but); +void uiButSetUnitType(uiBut *but, const int unit_type); +int uiButGetUnitType(uiBut *but); + /* Special Buttons * * Butons with a more specific purpose: @@ -460,34 +470,34 @@ struct PointerRNA *uiButGetOperatorPtrRNA(uiBut *but); #define UI_ID_PREVIEWS 2048 #define UI_ID_FULL (UI_ID_RENAME|UI_ID_BROWSE|UI_ID_ADD_NEW|UI_ID_OPEN|UI_ID_ALONE|UI_ID_DELETE|UI_ID_LOCAL) -typedef void (*uiIDPoinFuncFP)(struct bContext *C, char *str, struct ID **idpp); +typedef void (*uiIDPoinFuncFP)(struct bContext *C, const char *str, struct ID **idpp); typedef void (*uiIDPoinFunc)(struct bContext *C, struct ID *id, int event); -uiBut *uiDefIDPoinBut(uiBlock *block, uiIDPoinFuncFP func, short blocktype, int retval, char *str, - short x1, short y1, short x2, short y2, void *idpp, char *tip); +uiBut *uiDefIDPoinBut(uiBlock *block, uiIDPoinFuncFP func, short blocktype, int retval, const char *str, + int x1, int y1, short x2, short y2, void *idpp, const char *tip); int uiIconFromID(struct ID *id); -uiBut *uiDefPulldownBut(uiBlock *block, uiBlockCreateFunc func, void *arg, char *str, short x1, short y1, short x2, short y2, char *tip); -uiBut *uiDefMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, char *str, short x1, short y1, short x2, short y2, char *tip); -uiBut *uiDefIconTextMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, char *str, short x1, short y1, short x2, short y2, char *tip); -uiBut *uiDefIconMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, short x1, short y1, short x2, short y2, char *tip); +uiBut *uiDefPulldownBut(uiBlock *block, uiBlockCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, const char *str, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefIconTextMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefIconMenuBut(uiBlock *block, uiMenuCreateFunc func, void *arg, int icon, int x1, int y1, short x2, short y2, const char *tip); -uiBut *uiDefBlockBut(uiBlock *block, uiBlockCreateFunc func, void *func_arg1, char *str, short x1, short y1, short x2, short y2, char *tip); -uiBut *uiDefBlockButN(uiBlock *block, uiBlockCreateFunc func, void *argN, char *str, short x1, short y1, short x2, short y2, char *tip); +uiBut *uiDefBlockBut(uiBlock *block, uiBlockCreateFunc func, void *func_arg1, const char *str, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefBlockButN(uiBlock *block, uiBlockCreateFunc func, void *argN, const char *str, int x1, int y1, short x2, short y2, const char *tip); -uiBut *uiDefIconBlockBut(uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, short x1, short y1, short x2, short y2, char *tip); -uiBut *uiDefIconTextBlockBut(uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, char *str, short x1, short y1, short x2, short y2, char *tip); +uiBut *uiDefIconBlockBut(uiBlock *block, uiBlockCreateFunc func, void *arg, int retval, int icon, int x1, int y1, short x2, short y2, const char *tip); +uiBut *uiDefIconTextBlockBut(uiBlock *block, uiBlockCreateFunc func, void *arg, int icon, const char *str, int x1, int y1, short x2, short y2, const char *tip); -uiBut *uiDefKeyevtButS(uiBlock *block, int retval, char *str, short x1, short y1, short x2, short y2, short *spoin, char *tip); -uiBut *uiDefHotKeyevtButS(uiBlock *block, int retval, char *str, short x1, short y1, short x2, short y2, short *keypoin, short *modkeypoin, char *tip); +uiBut *uiDefKeyevtButS(uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *spoin, const char *tip); +uiBut *uiDefHotKeyevtButS(uiBlock *block, int retval, const char *str, int x1, int y1, short x2, short y2, short *keypoin, short *modkeypoin, const char *tip); -uiBut *uiDefSearchBut(uiBlock *block, void *arg, int retval, int icon, int maxlen, short x1, short y1, short x2, short y2, float a1, float a2, char *tip); +uiBut *uiDefSearchBut(uiBlock *block, void *arg, int retval, int icon, int maxlen, int x1, int y1, short x2, short y2, float a1, float a2, const char *tip); void uiBlockPickerButtons(struct uiBlock *block, float *col, float *hsv, float *old, char *hexcol, char mode, short retval); -uiBut *uiDefAutoButR(uiBlock *block, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, char *name, int icon, int x1, int y1, int x2, int y2); -void uiDefAutoButsRNA(const struct bContext *C, uiLayout *layout, struct PointerRNA *ptr, int columns); +uiBut *uiDefAutoButR(uiBlock *block, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, const char *name, int icon, int x1, int y1, int x2, int y2); +int uiDefAutoButsRNA(uiLayout *layout, struct PointerRNA *ptr, int (*check_prop)(struct PropertyRNA *), const char label_align); /* Links * @@ -520,7 +530,7 @@ typedef void (*uiButHandleFunc)(struct bContext *C, void *arg1, void *arg2); typedef void (*uiButHandleRenameFunc)(struct bContext *C, void *arg, char *origstr); typedef void (*uiButHandleNFunc)(struct bContext *C, void *argN, void *arg2); typedef void (*uiButCompleteFunc)(struct bContext *C, char *str, void *arg); -typedef void (*uiButSearchFunc)(const struct bContext *C, void *arg, char *str, uiSearchItems *items); +typedef void (*uiButSearchFunc)(const struct bContext *C, void *arg, const char *str, uiSearchItems *items); typedef void (*uiBlockHandleFunc)(struct bContext *C, void *arg, int event); /* use inside searchfunc to add items */ @@ -543,6 +553,8 @@ void uiButSetCompleteFunc(uiBut *but, uiButCompleteFunc func, void *arg); void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const struct bContext *C, void *, void *, void *, struct rcti *rect), void *arg1, void *arg2); +void uiButSetFocusOnEnter (struct wmWindow *win, uiBut *but); + /* Autocomplete * * Tab complete helper functions, for use in uiButCompleteFunc callbacks. @@ -551,7 +563,7 @@ void uiBlockSetDrawExtraFunc(uiBlock *block, void (*func)(const struct bContext typedef struct AutoComplete AutoComplete; -AutoComplete *autocomplete_begin(char *startname, int maxlen); +AutoComplete *autocomplete_begin(const char *startname, int maxlen); void autocomplete_do_name(AutoComplete *autocpl, const char *name); void autocomplete_end(AutoComplete *autocpl, char *autoname); @@ -624,6 +636,13 @@ void UI_exit(void); #define UI_ITEM_R_NO_BG 128 #define UI_ITEM_R_IMMEDIATE 256 +/* uiLayoutOperatorButs flags */ +#define UI_LAYOUT_OP_SHOW_TITLE 1 +#define UI_LAYOUT_OP_SHOW_EMPTY 2 + +/* for more readable function names */ +#define ICON_NULL 0 + uiLayout *uiBlockLayout(uiBlock *block, int dir, int type, int x, int y, int size, int em, struct uiStyle *style); void uiBlockSetCurLayout(uiBlock *block, uiLayout *layout); void uiBlockLayoutResolve(uiBlock *block, int *x, int *y); @@ -631,8 +650,9 @@ void uiBlockLayoutResolve(uiBlock *block, int *x, int *y); uiBlock *uiLayoutGetBlock(uiLayout *layout); void uiLayoutSetFunc(uiLayout *layout, uiMenuHandleFunc handlefunc, void *argv); -void uiLayoutSetContextPointer(uiLayout *layout, char *name, struct PointerRNA *ptr); -char *uiLayoutIntrospect(uiLayout *layout); // XXX - testing +void uiLayoutSetContextPointer(uiLayout *layout, const char *name, struct PointerRNA *ptr); +const char *uiLayoutIntrospect(uiLayout *layout); // XXX - testing +void uiLayoutOperatorButs(const struct bContext *C, struct uiLayout *layout, struct wmOperator *op, int (*check_prop)(struct PropertyRNA *), const char label_align, const short flag); void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext); void uiLayoutSetActive(uiLayout *layout, int active); @@ -669,28 +689,28 @@ uiBlock *uiLayoutAbsoluteBlock(uiLayout *layout); /* templates */ void uiTemplateHeader(uiLayout *layout, struct bContext *C, int menus); void uiTemplateDopeSheetFilter(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr); -void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, - char *newop, char *openop, char *unlinkop); -void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, - char *newop, char *openop, char *unlinkop); -void uiTemplateIDPreview(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, - char *newop, char *openop, char *unlinkop, int rows, int cols); -void uiTemplateAnyID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, - char *proptypename, char *text); -void uiTemplatePathBuilder(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, - struct PointerRNA *root_ptr, char *text); +void uiTemplateID(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, + const char *newop, const char *openop, const char *unlinkop); +void uiTemplateIDBrowse(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, + const char *newop, const char *openop, const char *unlinkop); +void uiTemplateIDPreview(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, + const char *newop, const char *openop, const char *unlinkop, int rows, int cols); +void uiTemplateAnyID(uiLayout *layout, struct PointerRNA *ptr, const char *propname, + const char *proptypename, const char *text); +void uiTemplatePathBuilder(uiLayout *layout, struct PointerRNA *ptr, const char *propname, + struct PointerRNA *root_ptr, const char *text); uiLayout *uiTemplateModifier(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr); uiLayout *uiTemplateConstraint(uiLayout *layout, struct PointerRNA *ptr); -void uiTemplatePreview(uiLayout *layout, struct ID *id, struct ID *parent, struct MTex *slot); -void uiTemplateColorRamp(uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand); -void uiTemplateHistogram(uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand); -void uiTemplateWaveform(uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand); -void uiTemplateVectorscope(uiLayout *layout, struct PointerRNA *ptr, char *propname, int expand); -void uiTemplateCurveMapping(uiLayout *layout, struct PointerRNA *ptr, char *propname, int type, int levels, int brush); -void uiTemplateColorWheel(uiLayout *layout, struct PointerRNA *ptr, char *propname, int value_slider, int lock, int lock_luminosity, int cubic); -void uiTemplateLayers(uiLayout *layout, struct PointerRNA *ptr, char *propname, - PointerRNA *used_ptr, char *used_propname, int active_layer); -void uiTemplateImage(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, struct PointerRNA *userptr, int compact); +void uiTemplatePreview(uiLayout *layout, struct ID *id, int show_buttons, struct ID *parent, struct MTex *slot); +void uiTemplateColorRamp(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int expand); +void uiTemplateHistogram(uiLayout *layout, struct PointerRNA *ptr, const char *propname); +void uiTemplateWaveform(uiLayout *layout, struct PointerRNA *ptr, const char *propname); +void uiTemplateVectorscope(uiLayout *layout, struct PointerRNA *ptr, const char *propname); +void uiTemplateCurveMapping(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int type, int levels, int brush); +void uiTemplateColorWheel(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int value_slider, int lock, int lock_luminosity, int cubic); +void uiTemplateLayers(uiLayout *layout, struct PointerRNA *ptr, const char *propname, + PointerRNA *used_ptr, const char *used_propname, int active_layer); +void uiTemplateImage(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *userptr, int compact); void uiTemplateImageLayers(uiLayout *layout, struct bContext *C, struct Image *ima, struct ImageUser *iuser); void uiTemplateRunningJobs(uiLayout *layout, struct bContext *C); void uiTemplateOperatorSearch(uiLayout *layout); @@ -698,52 +718,59 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C); void uiTemplateTextureImage(uiLayout *layout, struct bContext *C, struct Tex *tex); void uiTemplateReportsBanner(uiLayout *layout, struct bContext *C); -void uiTemplateList(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, char *propname, struct PointerRNA *activeptr, char *activeprop, int rows, int maxrows, int type); +void uiTemplateList(uiLayout *layout, struct bContext *C, struct PointerRNA *ptr, const char *propname, struct PointerRNA *activeptr, const char *activeprop, int rows, int maxrows, int type); /* items */ -void uiItemO(uiLayout *layout, char *name, int icon, char *opname); -void uiItemEnumO(uiLayout *layout, char *opname, char *name, int icon, char *propname, int value); -void uiItemEnumO_string(uiLayout *layout, char *name, int icon, char *opname, char *propname, char *value); -void uiItemsEnumO(uiLayout *layout, char *opname, char *propname); -void uiItemBooleanO(uiLayout *layout, char *name, int icon, char *opname, char *propname, int value); -void uiItemIntO(uiLayout *layout, char *name, int icon, char *opname, char *propname, int value); -void uiItemFloatO(uiLayout *layout, char *name, int icon, char *opname, char *propname, float value); -void uiItemStringO(uiLayout *layout, char *name, int icon, char *opname, char *propname, char *value); -PointerRNA uiItemFullO(uiLayout *layout, char *idname, char *name, int icon, struct IDProperty *properties, int context, int flag); - -void uiItemR(uiLayout *layout, struct PointerRNA *ptr, char *propname, int flag, char *name, int icon); -void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, char *name, int icon); -void uiItemEnumR(uiLayout *layout, char *name, int icon, struct PointerRNA *ptr, char *propname, int value); -void uiItemEnumR_string(uiLayout *layout, struct PointerRNA *ptr, char *propname, char *value, char *name, int icon); -void uiItemsEnumR(uiLayout *layout, struct PointerRNA *ptr, char *propname); -void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, char *propname, struct PointerRNA *searchptr, char *searchpropname, char *name, int icon); -void uiItemsFullEnumO(uiLayout *layout, char *opname, char *propname, struct IDProperty *properties, int context, int flag); - -void uiItemL(uiLayout *layout, char *name, int icon); /* label */ -void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, char *name, int icon); /* label icon for dragging */ -void uiItemM(uiLayout *layout, struct bContext *C, char *menuname, char *name, int icon); /* menu */ -void uiItemV(uiLayout *layout, char *name, int icon, int argval); /* value */ +void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname); +void uiItemEnumO(uiLayout *layout, const char *opname, const char *name, int icon, const char *propname, int value); +void uiItemEnumO_string(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value); +void uiItemsEnumO(uiLayout *layout, const char *opname, const char *propname); +void uiItemBooleanO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value); +void uiItemIntO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, int value); +void uiItemFloatO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, float value); +void uiItemStringO(uiLayout *layout, const char *name, int icon, const char *opname, const char *propname, const char *value); +PointerRNA uiItemFullO(uiLayout *layout, const char *idname, const char *name, int icon, struct IDProperty *properties, int context, int flag); + +void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon); +void uiItemFullR(uiLayout *layout, struct PointerRNA *ptr, struct PropertyRNA *prop, int index, int value, int flag, const char *name, int icon); +void uiItemEnumR(uiLayout *layout, const char *name, int icon, struct PointerRNA *ptr, const char *propname, int value); +void uiItemEnumR_string(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *value, const char *name, int icon); +void uiItemsEnumR(uiLayout *layout, struct PointerRNA *ptr, const char *propname); +void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, struct PointerRNA *searchptr, const char *searchpropname, const char *name, int icon); +void uiItemsFullEnumO(uiLayout *layout, const char *opname, const char *propname, struct IDProperty *properties, int context, int flag); + +void uiItemL(uiLayout *layout, const char *name, int icon); /* label */ +void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon); /* label icon for dragging */ +void uiItemM(uiLayout *layout, struct bContext *C, const char *menuname, const char *name, int icon); /* menu */ +void uiItemV(uiLayout *layout, const char *name, int icon, int argval); /* value */ void uiItemS(uiLayout *layout); /* separator */ -void uiItemMenuF(uiLayout *layout, char *name, int icon, uiMenuCreateFunc func, void *arg); -void uiItemMenuEnumO(uiLayout *layout, char *opname, char *propname, char *name, int icon); -void uiItemMenuEnumR(uiLayout *layout, struct PointerRNA *ptr, char *propname, char *name, int icon); +void uiItemMenuF(uiLayout *layout, const char *name, int icon, uiMenuCreateFunc func, void *arg); +void uiItemMenuEnumO(uiLayout *layout, const char *opname, const char *propname, const char *name, int icon); +void uiItemMenuEnumR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, const char *name, int icon); /* UI Operators */ void UI_buttons_operatortypes(void); /* Helpers for Operators */ -void uiAnimContextProperty(const struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA **prop, int *index); +void uiContextActiveProperty(const struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA **prop, int *index); +void uiContextAnimUpdate(const struct bContext *C); void uiFileBrowseContextProperty(const struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA **prop); void uiIDContextProperty(struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA **prop); /* Styled text draw */ void uiStyleFontSet(struct uiFontStyle *fs); -void uiStyleFontDraw(struct uiFontStyle *fs, struct rcti *rect, char *str); -void uiStyleFontDrawRotated(struct uiFontStyle *fs, struct rcti *rect, char *str); +void uiStyleFontDrawExt(struct uiFontStyle *fs, struct rcti *rect, const char *str, + float *r_xofs, float *r_yofs); +void uiStyleFontDraw(struct uiFontStyle *fs, struct rcti *rect, const char *str); +void uiStyleFontDrawRotated(struct uiFontStyle *fs, struct rcti *rect, const char *str); + +int UI_GetStringWidth(const char *str); // XXX temp +void UI_DrawString(float x, float y, const char *str); // XXX temp +void UI_DrawTriIcon(float x, float y, char dir); -int UI_GetStringWidth(char *str); // XXX temp -void UI_DrawString(float x, float y, char *str); // XXX temp +/* linker workaround ack! */ +void UI_template_fix_linking(void); #endif /* UI_INTERFACE_H */ diff --git a/source/blender/editors/include/UI_interface_icons.h b/source/blender/editors/include/UI_interface_icons.h index 73fc2d6316d..50b14cb832a 100644 --- a/source/blender/editors/include/UI_interface_icons.h +++ b/source/blender/editors/include/UI_interface_icons.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -27,6 +27,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file UI_interface_icons.h + * \ingroup editorui + */ + #ifndef UI_INTERFACE_ICONS_H #define UI_INTERFACE_ICONS_H @@ -62,11 +66,11 @@ void UI_icon_draw_preview_aspect_size(float x, float y, int icon_id, float aspec void UI_icon_draw_aspect(float x, float y, int icon_id, float aspect, float alpha); void UI_icon_draw_aspect_color(float x, float y, int icon_id, float aspect, float *rgb); void UI_icon_draw_size(float x, float y, int size, int icon_id, float alpha); -void UI_icons_free(); +void UI_icons_free(void); void UI_icons_free_drawinfo(void *drawinfo); struct ListBase *UI_iconfile_list(void); -int UI_iconfile_get_index(char *filename); +int UI_iconfile_get_index(const char *filename); #endif /* UI_INTERFACE_ICONS_H */ diff --git a/source/blender/editors/include/UI_resources.h b/source/blender/editors/include/UI_resources.h index 3b76520c4bf..9c3a378608b 100644 --- a/source/blender/editors/include/UI_resources.h +++ b/source/blender/editors/include/UI_resources.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** @@ -30,12 +30,17 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ +/** \file UI_resources.h + * \ingroup editorui + */ + #ifndef UI_RESOURCES_H #define UI_RESOURCES_H /* elubie: TODO: move the typedef for icons to UI_interface_icons.h */ /* and add/replace include of UI_resources.h by UI_interface_icons.h */ -#define DEF_ICON(name) name, +#define DEF_ICON(name) ICON_##name, +#define DEF_VICO(name) VICO_##name, typedef enum { #define BIFICONID_FIRST (ICON_BLENDER) @@ -45,6 +50,7 @@ typedef enum { #define BIFNICONIDS (BIFICONID_LAST-BIFICONID_FIRST + 1) } BIFIconID; #undef DEF_ICON +#undef DEF_VICO typedef enum { @@ -233,6 +239,10 @@ enum { TH_PREVIEW_BACK, TH_EDGE_CREASE, + + TH_DRAWEXTRA_EDGELEN, + TH_DRAWEXTRA_FACEAREA, + TH_DRAWEXTRA_FACEANG }; /* XXX WARNING: previous is saved in file, so do not change order! */ @@ -271,17 +281,17 @@ void UI_GetThemeColor3fv(int colorid, float *col); void UI_GetThemeColorShade3fv(int colorid, int offset, float *col); // get the 3 or 4 byte values -void UI_GetThemeColor3ubv(int colorid, char *col); -void UI_GetThemeColor4ubv(int colorid, char *col); +void UI_GetThemeColor3ubv(int colorid, unsigned char col[3]); +void UI_GetThemeColor4ubv(int colorid, unsigned char col[4]); // get a theme color from specified space type -void UI_GetThemeColorType4ubv(int colorid, int spacetype, char *col); +void UI_GetThemeColorType4ubv(int colorid, int spacetype, char col[4]); // blends and shades between two color pointers -void UI_ColorPtrBlendShade3ubv(char *cp1, char *cp2, float fac, int offset); +void UI_ColorPtrBlendShade3ubv(const unsigned char cp1[3], const unsigned char cp2[3], float fac, int offset); // get a 3 byte color, blended and shaded between two other char color pointers -void UI_GetColorPtrBlendShade3ubv(char *cp1, char *cp2, char *col, float fac, int offset); +void UI_GetColorPtrBlendShade3ubv(const unsigned char cp1[3], const unsigned char cp2[3], unsigned char col[3], float fac, int offset); // clear the openGL ClearColor using the input colorid void UI_ThemeClearColor(int colorid); @@ -290,9 +300,8 @@ void UI_ThemeClearColor(int colorid); void UI_SetTheme(int spacetype, int regionid); /* only for buttons in theme editor! */ -char *UI_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid); -char *UI_ThemeColorsPup(int spacetype); +const unsigned char *UI_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid); -void UI_make_axis_color(char *src_col, char *dst_col, char axis); +void UI_make_axis_color(const unsigned char *src_col, unsigned char *dst_col, const char axis); #endif /* UI_ICONS_H */ diff --git a/source/blender/editors/include/UI_view2d.h b/source/blender/editors/include/UI_view2d.h index bf4a3de9cc6..1aadb63181d 100644 --- a/source/blender/editors/include/UI_view2d.h +++ b/source/blender/editors/include/UI_view2d.h @@ -1,4 +1,4 @@ -/** +/* * $Id$ * * ***** BEGIN GPL LICENSE BLOCK ***** @@ -29,6 +29,10 @@ * ***** END GPL LICENSE BLOCK ***** */ +/** \file UI_view2d.h + * \ingroup editorui + */ + #ifndef UI_VIEW2D_H #define UI_VIEW2D_H @@ -57,7 +61,7 @@ enum { /* headers (this is basically the same as listview, but no y-panning) */ V2D_COMMONVIEW_HEADER, /* ui region containing panels */ - V2D_COMMONVIEW_PANELS_UI, + V2D_COMMONVIEW_PANELS_UI } eView2D_CommonViewTypes; /* ---- Defines for Scroller/Grid Arguments ----- */ @@ -76,13 +80,13 @@ enum { V2D_UNIT_VALUES, V2D_UNIT_DEGREES, V2D_UNIT_TIME, - V2D_UNIT_SECONDSSEQ, + V2D_UNIT_SECONDSSEQ } eView2D_Units; /* clamping of grid values to whole numbers */ enum { V2D_GRID_NOCLAMP = 0, - V2D_GRID_CLAMP, + V2D_GRID_CLAMP } eView2D_Clamp; /* flags for grid-lines to draw */ @@ -156,14 +160,14 @@ void UI_view2d_totRect_set_resize(struct View2D *v2d, int width, int height, int int UI_view2d_tab_set(struct View2D *v2d, int tab); /* view matrix operations */ -void UI_view2d_view_ortho(const struct bContext *C, struct View2D *v2d); -void UI_view2d_view_orthoSpecial(const struct bContext *C, struct View2D *v2d, short xaxis); +void UI_view2d_view_ortho(struct View2D *v2d); +void UI_view2d_view_orthoSpecial(struct ARegion *ar, struct View2D *v2d, short xaxis); void UI_view2d_view_restore(const struct bContext *C); /* grid drawing */ -View2DGrid *UI_view2d_grid_calc(const struct bContext *C, struct View2D *v2d, short xunits, short xclamp, short yunits, short yclamp, int winx, int winy); -void UI_view2d_grid_draw(const struct bContext *C, struct View2D *v2d, View2DGrid *grid, int flag); -void UI_view2d_constant_grid_draw(const struct bContext *C, struct View2D *v2d); +View2DGrid *UI_view2d_grid_calc(struct Scene *scene, struct View2D *v2d, short xunits, short xclamp, short yunits, short yclamp, int winx, int winy); +void UI_view2d_grid_draw(struct View2D *v2d, View2DGrid *grid, int flag); +void UI_view2d_constant_grid_draw(struct View2D *v2d); void UI_view2d_grid_size(View2DGrid *grid, float *r_dx, float *r_dy); void UI_view2d_grid_free(View2DGrid *grid); @@ -191,8 +195,8 @@ void UI_view2d_getscale(struct View2D *v2d, float *x, float *y); short UI_view2d_mouse_in_scrollers(const struct bContext *C, struct View2D *v2d, int x, int y); /* cached text drawing in v2d, to allow pixel-aligned draw as post process */ -void UI_view2d_text_cache_add(struct View2D *v2d, float x, float y, char *str); -void UI_view2d_text_cache_rectf(struct View2D *v2d, struct rctf *rect, char *str); +void UI_view2d_text_cache_add(struct View2D *v2d, float x, float y, const char *str, const char col[4]); +void UI_view2d_text_cache_rectf(struct View2D *v2d, struct rctf *rect, const char *str, const char col[4]); void UI_view2d_text_cache_draw(struct ARegion *ar); /* operators */ |