Blender V2.61 - r43446
Defines | Functions

view3d_header.c File Reference

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "DNA_scene_types.h"
#include "DNA_object_types.h"
#include "RNA_access.h"
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLI_blenlib.h"
#include "BLI_editVert.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_effect.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "BKE_modifier.h"
#include "BKE_paint.h"
#include "BKE_screen.h"
#include "ED_mesh.h"
#include "ED_util.h"
#include "ED_screen.h"
#include "ED_transform.h"
#include "ED_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "view3d_intern.h"

Go to the source code of this file.

Defines

#define VIEW3D_HANDLER_BACKGROUND   1
#define VIEW3D_HANDLER_PROPERTIES   2
#define VIEW3D_HANDLER_OBJECT   3
#define VIEW3D_HANDLER_PREVIEW   4
#define VIEW3D_HANDLER_MULTIRES   5
#define VIEW3D_HANDLER_TRANSFORM   6
#define VIEW3D_HANDLER_GREASEPENCIL   7
#define VIEW3D_HANDLER_BONESKETCH   8
#define B_SCENELOCK   101
#define B_FULL   102
#define B_HOME   103
#define B_VIEWBUT   104
#define B_PERSP   105
#define B_MODESELECT   108
#define B_SEL_VERT   110
#define B_SEL_EDGE   111
#define B_SEL_FACE   112
#define B_MAN_TRANS   116
#define B_MAN_ROT   117
#define B_MAN_SCALE   118
#define B_NDOF   119
#define B_MAN_MODE   120
#define B_REDR   122
#define B_NOP   123

Functions

static void do_view3d_header_buttons (bContext *C, void *arg, int event)
static void handle_view3d_lock (bContext *C)
static void view3d_layers_editmode_ensure (Scene *scene, View3D *v3d)
static int view3d_layers_exec (bContext *C, wmOperator *op)
static int view3d_layers_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int view3d_layers_poll (bContext *C)
void VIEW3D_OT_layers (wmOperatorType *ot)
static int modeselect_addmode (char *str, const char *title, int id, int icon)
static char * view3d_modeselect_pup (Scene *scene)
static void do_view3d_header_buttons (bContext *C, void *UNUSED(arg), int event)
static int object_mode_icon (int mode)
void uiTemplateEditModeSelection (uiLayout *layout, struct bContext *C)
void uiTemplateHeader3D (uiLayout *layout, struct bContext *C)

Detailed Description

Definition in file view3d_header.c.


Define Documentation

#define B_FULL   102

Definition at line 101 of file view3d_header.c.

#define B_HOME   103

Definition at line 102 of file view3d_header.c.

#define B_MAN_MODE   120

Definition at line 113 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateHeader3D().

#define B_MAN_ROT   117

Definition at line 110 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateHeader3D().

#define B_MAN_SCALE   118

Definition at line 111 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateHeader3D().

#define B_MAN_TRANS   116

Definition at line 109 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateHeader3D().

#define B_MODESELECT   108

Definition at line 105 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateHeader3D().

#define B_NDOF   119

Definition at line 112 of file view3d_header.c.

Referenced by do_view3d_header_buttons().

#define B_NOP   123

Definition at line 115 of file view3d_header.c.

#define B_PERSP   105

Definition at line 104 of file view3d_header.c.

#define B_REDR   122

Definition at line 114 of file view3d_header.c.

#define B_SCENELOCK   101

Definition at line 100 of file view3d_header.c.

#define B_SEL_EDGE   111

Definition at line 107 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateEditModeSelection().

#define B_SEL_FACE   112

Definition at line 108 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateEditModeSelection().

#define B_SEL_VERT   110

Definition at line 106 of file view3d_header.c.

Referenced by do_view3d_header_buttons(), and uiTemplateEditModeSelection().

#define B_VIEWBUT   104

Definition at line 103 of file view3d_header.c.

#define VIEW3D_HANDLER_BACKGROUND   1

Definition at line 87 of file view3d_header.c.

#define VIEW3D_HANDLER_BONESKETCH   8

Definition at line 94 of file view3d_header.c.

#define VIEW3D_HANDLER_GREASEPENCIL   7

Definition at line 93 of file view3d_header.c.

#define VIEW3D_HANDLER_MULTIRES   5

Definition at line 91 of file view3d_header.c.

#define VIEW3D_HANDLER_OBJECT   3

Definition at line 89 of file view3d_header.c.

#define VIEW3D_HANDLER_PREVIEW   4

Definition at line 90 of file view3d_header.c.

#define VIEW3D_HANDLER_PROPERTIES   2

Definition at line 88 of file view3d_header.c.

#define VIEW3D_HANDLER_TRANSFORM   6

Definition at line 92 of file view3d_header.c.


Function Documentation

static void do_view3d_header_buttons ( bContext C,
void *  arg,
int  event 
) [static]
static void do_view3d_header_buttons ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]
static void handle_view3d_lock ( bContext C) [static]
static int modeselect_addmode ( char *  str,
const char *  title,
int  id,
int  icon 
) [static]

Definition at line 269 of file view3d_header.c.

References IFACE_.

Referenced by view3d_modeselect_pup().

static int object_mode_icon ( int  mode) [static]
void uiTemplateEditModeSelection ( uiLayout layout,
struct bContext C 
)
void uiTemplateHeader3D ( uiLayout layout,
struct bContext C 
)
static void view3d_layers_editmode_ensure ( Scene scene,
View3D v3d 
) [static]

Definition at line 147 of file view3d_header.c.

References Object::lay, View3D::lay, and Scene::obedit.

Referenced by view3d_layers_exec().

static int view3d_layers_exec ( bContext C,
wmOperator op 
) [static]
static int view3d_layers_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int view3d_layers_poll ( bContext C) [static]

Definition at line 244 of file view3d_header.c.

References CTX_wm_view3d(), ED_operator_view3d_active(), and NULL.

Referenced by VIEW3D_OT_layers().

static char* view3d_modeselect_pup ( Scene scene) [static]
void VIEW3D_OT_layers ( wmOperatorType ot)