Blender V2.61 - r43446
Functions | Variables

buttons_context.c File Reference

#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "DNA_armature_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_speaker_types.h"
#include "DNA_brush_types.h"
#include "BKE_context.h"
#include "BKE_action.h"
#include "BKE_material.h"
#include "BKE_modifier.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_screen.h"
#include "BKE_texture.h"
#include "RNA_access.h"
#include "ED_armature.h"
#include "ED_screen.h"
#include "ED_physics.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "buttons_intern.h"

Go to the source code of this file.

Functions

static int set_pointer_type (ButsContextPath *path, bContextDataResult *result, StructRNA *type)
static PointerRNAget_pointer_type (ButsContextPath *path, StructRNA *type)
static int buttons_context_path_scene (ButsContextPath *path)
static int buttons_context_path_world (ButsContextPath *path)
static int buttons_context_path_object (ButsContextPath *path)
static int buttons_context_path_data (ButsContextPath *path, int type)
static int buttons_context_path_modifier (ButsContextPath *path)
static int buttons_context_path_material (ButsContextPath *path, int for_texture)
static int buttons_context_path_bone (ButsContextPath *path)
static int buttons_context_path_pose_bone (ButsContextPath *path)
static int buttons_context_path_particle (ButsContextPath *path)
static int buttons_context_path_brush (ButsContextPath *path)
static int buttons_context_path_texture (ButsContextPath *path, ButsContextTexture *ct)
static int buttons_context_path (const bContext *C, ButsContextPath *path, int mainb, int flag)
static int buttons_shading_context (const bContext *C, int mainb)
static int buttons_shading_new_context (const bContext *C, int flag)
void buttons_context_compute (const bContext *C, SpaceButs *sbuts)
int buttons_context (const bContext *C, const char *member, bContextDataResult *result)
static void pin_cb (bContext *C, void *UNUSED(arg1), void *UNUSED(arg2))
void buttons_context_draw (const bContext *C, uiLayout *layout)
static void buttons_panel_context (const bContext *C, Panel *pa)
void buttons_context_register (ARegionType *art)
IDbuttons_context_id_path (const bContext *C)

Variables

const char * buttons_context_dir []

Detailed Description

Definition in file buttons_context.c.


Function Documentation

int buttons_context ( const bContext C,
const char *  member,
bContextDataResult result 
)

Definition at line 689 of file buttons_context.c.

References Object::actcol, buttons_context_dir, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_pointer_set(), CTX_wm_space_buts(), PointerRNA::data, eModifierType_Cloth, eModifierType_Collision, eModifierType_DynamicPaint, eModifierType_Fluidsim, eModifierType_Smoke, eModifierType_Softbody, get_pointer_type(), give_current_material_texture_node(), give_node_material(), Material::id, World::id, Brush::id, Object::id, PointerRNA::id, ParticleSettings::id, Tex::id, Lamp::id, bNodeTree::id, Object::mat, modifiers_findByType(), Lamp::mtex, World::mtex, ParticleSettings::mtex, Brush::mtex, Material::mtex, ButsTextureUser::node, Material::nodetree, ButsTextureUser::ntree, NULL, OB_TYPE_SUPPORT_MATERIAL, SpaceButs::path, PE_poll(), ButsTextureUser::ptr, RNA_Armature, RNA_Bone, RNA_Brush, RNA_BrushTextureSlot, RNA_Camera, RNA_ClothModifier, RNA_CollisionModifier, RNA_Curve, RNA_DynamicPaintModifier, RNA_EditBone, RNA_FluidSimulationModifier, RNA_Lamp, RNA_LampTextureSlot, RNA_Lattice, RNA_Material, RNA_MaterialSlot, RNA_MaterialTextureSlot, RNA_Mesh, RNA_MetaBall, RNA_Node, RNA_Object, RNA_ParticleSettingsTextureSlot, RNA_ParticleSystem, RNA_PoseBone, RNA_SmokeModifier, RNA_SoftBodyModifier, RNA_Speaker, RNA_Texture, RNA_World, RNA_WorldTextureSlot, set_pointer_type(), World::texact, Lamp::texact, Material::texact, ParticleSettings::texact, ButsContextTexture::texture, SpaceButs::texuser, Object::totcol, Object::type, PointerRNA::type, Material::use_nodes, and ButsContextTexture::user.

Referenced by ED_spacetype_buttons().

void buttons_context_compute ( const bContext C,
SpaceButs sbuts 
)
void buttons_context_draw ( const bContext C,
uiLayout layout 
)
ID* buttons_context_id_path ( const bContext C)
static int buttons_context_path ( const bContext C,
ButsContextPath path,
int  mainb,
int  flag 
) [static]
static int buttons_context_path_bone ( ButsContextPath path) [static]
static int buttons_context_path_brush ( ButsContextPath path) [static]
static int buttons_context_path_data ( ButsContextPath path,
int  type 
) [static]
static int buttons_context_path_material ( ButsContextPath path,
int  for_texture 
) [static]
static int buttons_context_path_modifier ( ButsContextPath path) [static]
static int buttons_context_path_object ( ButsContextPath path) [static]
static int buttons_context_path_particle ( ButsContextPath path) [static]
static int buttons_context_path_pose_bone ( ButsContextPath path) [static]
static int buttons_context_path_scene ( ButsContextPath path) [static]
static int buttons_context_path_texture ( ButsContextPath path,
ButsContextTexture ct 
) [static]
static int buttons_context_path_world ( ButsContextPath path) [static]
void buttons_context_register ( ARegionType art)
static void buttons_panel_context ( const bContext C,
Panel pa 
) [static]

Definition at line 1026 of file buttons_context.c.

References buttons_context_draw(), and Panel::layout.

Referenced by buttons_context_register().

static int buttons_shading_context ( const bContext C,
int  mainb 
) [static]
static int buttons_shading_new_context ( const bContext C,
int  flag 
) [static]
static PointerRNA* get_pointer_type ( ButsContextPath path,
StructRNA type 
) [static]
static void pin_cb ( bContext C,
void *  UNUSEDarg1,
void *  UNUSEDarg2 
) [static]
static int set_pointer_type ( ButsContextPath path,
bContextDataResult result,
StructRNA type 
) [static]

Variable Documentation

const char* buttons_context_dir[]
Initial value:
 {
    "world", "object", "mesh", "armature", "lattice", "curve",
    "meta_ball", "lamp", "speaker", "camera", "material", "material_slot",
    "texture", "texture_slot", "texture_user", "bone", "edit_bone",
    "pose_bone", "particle_system", "particle_system_editable",
    "cloth", "soft_body", "fluid", "smoke", "collision", "brush", "dynamic_paint", NULL}

Definition at line 682 of file buttons_context.c.

Referenced by buttons_context().