Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | static const EnumPropertyItem buttons_context_items[] = { | ||||
| {BCONTEXT_DATA, "DATA", ICON_NONE, "Data", "Object data"}, | {BCONTEXT_DATA, "DATA", ICON_NONE, "Data", "Object data"}, | ||||
| {BCONTEXT_BONE, "BONE", ICON_BONE_DATA, "Bone", "Bone"}, | {BCONTEXT_BONE, "BONE", ICON_BONE_DATA, "Bone", "Bone"}, | ||||
| {BCONTEXT_BONE_CONSTRAINT, "BONE_CONSTRAINT", ICON_CONSTRAINT_BONE, "Bone Constraints", "Bone constraints"}, | {BCONTEXT_BONE_CONSTRAINT, "BONE_CONSTRAINT", ICON_CONSTRAINT_BONE, "Bone Constraints", "Bone constraints"}, | ||||
| {BCONTEXT_MATERIAL, "MATERIAL", ICON_MATERIAL, "Material", "Material"}, | {BCONTEXT_MATERIAL, "MATERIAL", ICON_MATERIAL, "Material", "Material"}, | ||||
| {BCONTEXT_TEXTURE, "TEXTURE", ICON_TEXTURE, "Texture", "Texture"}, | {BCONTEXT_TEXTURE, "TEXTURE", ICON_TEXTURE, "Texture", "Texture"}, | ||||
| {BCONTEXT_PARTICLE, "PARTICLES", ICON_PARTICLES, "Particles", "Particle"}, | {BCONTEXT_PARTICLE, "PARTICLES", ICON_PARTICLES, "Particles", "Particle"}, | ||||
| {BCONTEXT_PHYSICS, "PHYSICS", ICON_PHYSICS, "Physics", "Physics"}, | {BCONTEXT_PHYSICS, "PHYSICS", ICON_PHYSICS, "Physics", "Physics"}, | ||||
| {BCONTEXT_WORKSPACE, "WORKSPACE", ICON_SPLITSCREEN, "Workspace", "Workspace"}, | {BCONTEXT_WORKSPACE, "WORKSPACE", ICON_SPLITSCREEN, "Workspace", "Workspace"}, | ||||
| {BCONTEXT_SHADERFX, "SHADERFX", ICON_SOLO_ON, "Effects", "Object visual effects" }, | |||||
| {0, NULL, 0, NULL, NULL} | {0, NULL, 0, NULL, NULL} | ||||
| }; | }; | ||||
| static const EnumPropertyItem fileselectparams_recursion_level_items[] = { | static const EnumPropertyItem fileselectparams_recursion_level_items[] = { | ||||
| {0, "NONE", 0, "None", "Only list current directory's content, with no recursion"}, | {0, "NONE", 0, "None", "Only list current directory's content, with no recursion"}, | ||||
| {1, "BLEND", 0, "Blend File", "List .blend files' content"}, | {1, "BLEND", 0, "Blend File", "List .blend files' content"}, | ||||
| {2, "ALL_1", 0, "One Level", "List all sub-directories' content, one level of recursion"}, | {2, "ALL_1", 0, "One Level", "List all sub-directories' content, one level of recursion"}, | ||||
| {3, "ALL_2", 0, "Two Levels", "List all sub-directories' content, two levels of recursion"}, | {3, "ALL_2", 0, "Two Levels", "List all sub-directories' content, two levels of recursion"}, | ||||
| ▲ Show 20 Lines • Show All 969 Lines • ▼ Show 20 Lines | static const EnumPropertyItem *rna_SpaceProperties_context_itemf( | ||||
| if (sbuts->pathflag & (1 << BCONTEXT_CONSTRAINT)) { | if (sbuts->pathflag & (1 << BCONTEXT_CONSTRAINT)) { | ||||
| RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_CONSTRAINT); | RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_CONSTRAINT); | ||||
| } | } | ||||
| if (sbuts->pathflag & (1 << BCONTEXT_MODIFIER)) { | if (sbuts->pathflag & (1 << BCONTEXT_MODIFIER)) { | ||||
| RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_MODIFIER); | RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_MODIFIER); | ||||
| } | } | ||||
| if (sbuts->pathflag & (1 << BCONTEXT_SHADERFX)) { | |||||
| RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_SHADERFX); | |||||
| } | |||||
| if (sbuts->pathflag & (1 << BCONTEXT_DATA)) { | if (sbuts->pathflag & (1 << BCONTEXT_DATA)) { | ||||
| RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_DATA); | RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_DATA); | ||||
| (item + totitem - 1)->icon = sbuts->dataicon; | (item + totitem - 1)->icon = sbuts->dataicon; | ||||
| } | } | ||||
| if (sbuts->pathflag & (1 << BCONTEXT_BONE)) { | if (sbuts->pathflag & (1 << BCONTEXT_BONE)) { | ||||
| RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_BONE); | RNA_enum_items_add_value(&item, &totitem, buttons_context_items, BCONTEXT_BONE); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,686 Lines • Show Last 20 Lines | |||||