~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/editors/space_buttons/buttons_intern.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * $Id: buttons_intern.h 27866 2010-03-30 12:15:16Z blendix $
3
 
 *
 
1
/*
4
2
 * ***** BEGIN GPL LICENSE BLOCK *****
5
3
 *
6
4
 * This program is free software; you can redistribute it and/or
25
23
 *
26
24
 * ***** END GPL LICENSE BLOCK *****
27
25
 */
28
 
#ifndef ED_BUTTONS_INTERN_H
29
 
#define ED_BUTTONS_INTERN_H
 
26
 
 
27
/** \file blender/editors/space_buttons/buttons_intern.h
 
28
 *  \ingroup spbuttons
 
29
 */
 
30
 
 
31
#ifndef __BUTTONS_INTERN_H__
 
32
#define __BUTTONS_INTERN_H__
 
33
 
 
34
#include "DNA_listBase.h"
 
35
#include "RNA_types.h"
30
36
 
31
37
struct ARegion;
32
38
struct ARegionType;
 
39
struct ID;
 
40
struct SpaceButs;
 
41
struct Tex;
33
42
struct bContext;
34
43
struct bContextDataResult;
35
 
struct SpaceButs;
 
44
struct bNode;
 
45
struct bNodeTree;
36
46
struct uiLayout;
37
47
struct wmOperatorType;
38
 
struct ID;
39
48
 
40
49
/* buts->scaflag */             
41
50
#define BUTS_SENS_SEL           1
50
59
#define BUTS_SENS_STATE         512
51
60
#define BUTS_ACT_STATE          1024
52
61
 
53
 
#define BUTS_HEADERY            (HEADERY*1.2)
54
 
#define BUTS_UI_UNIT            (UI_UNIT_Y*1.2)
 
62
/* context data */
 
63
 
 
64
typedef struct ButsContextPath {
 
65
        PointerRNA ptr[8];
 
66
        int len;
 
67
        int flag;
 
68
        int tex_ctx;
 
69
} ButsContextPath;
 
70
 
 
71
typedef struct ButsTextureUser {
 
72
        struct ButsTextureUser *next, *prev;
 
73
 
 
74
        struct ID *id;
 
75
 
 
76
        PointerRNA ptr;
 
77
        PropertyRNA *prop;
 
78
 
 
79
        struct bNodeTree *ntree;
 
80
        struct bNode *node;
 
81
 
 
82
        const char *category;
 
83
        int icon;
 
84
        const char *name;
 
85
 
 
86
        int index;
 
87
} ButsTextureUser;
 
88
 
 
89
typedef struct ButsContextTexture {
 
90
        ListBase users;
 
91
 
 
92
        struct Tex *texture;
 
93
 
 
94
        struct ButsTextureUser *user;
 
95
        int index;
 
96
} ButsContextTexture;
55
97
 
56
98
/* internal exports only */
57
99
 
65
107
void buttons_context_register(struct ARegionType *art);
66
108
struct ID *buttons_context_id_path(const struct bContext *C);
67
109
 
 
110
extern const char *buttons_context_dir[]; /* doc access */
 
111
 
 
112
/* buttons_texture.c */
 
113
void buttons_texture_context_compute(const struct bContext *C, struct SpaceButs *sbuts);
 
114
 
68
115
/* buttons_ops.c */
69
116
void BUTTONS_OT_file_browse(struct wmOperatorType *ot);
 
117
void BUTTONS_OT_directory_browse(struct wmOperatorType *ot);
70
118
void BUTTONS_OT_toolbox(struct wmOperatorType *ot);
71
119
 
72
 
#endif /* ED_BUTTONS_INTERN_H */
 
120
#endif /* __BUTTONS_INTERN_H__ */
73
121