~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_space_types.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
 
 * blenlib/DNA_space_types.h (mar-2001 nzc)
3
 
 *      
4
 
 * $Id: DNA_space_types.h 29604 2010-06-22 02:29:52Z broken $ 
5
 
 *
 
1
/*
6
2
 * ***** BEGIN GPL LICENSE BLOCK *****
7
3
 *
8
4
 * This program is free software; you can redistribute it and/or
28
24
 *
29
25
 * ***** END GPL LICENSE BLOCK *****
30
26
 */
31
 
#ifndef DNA_SPACE_TYPES_H
32
 
#define DNA_SPACE_TYPES_H
33
 
 
 
27
/** \file DNA_space_types.h
 
28
 *  \ingroup DNA
 
29
 *  \since mar-2001
 
30
 *  \author nzc
 
31
 */
 
32
 
 
33
#ifndef __DNA_SPACE_TYPES_H__
 
34
#define __DNA_SPACE_TYPES_H__
 
35
 
 
36
#include "DNA_defs.h"
34
37
#include "DNA_listBase.h"
35
38
#include "DNA_color_types.h"            /* for Histogram */
36
39
#include "DNA_vec_types.h"
37
40
#include "DNA_outliner_types.h"         /* for TreeStoreElem */
38
41
#include "DNA_image_types.h"    /* ImageUser */
 
42
#include "DNA_movieclip_types.h"        /* MovieClipUser */
39
43
/* Hum ... Not really nice... but needed for spacebuts. */
40
44
#include "DNA_view2d_types.h"
41
45
 
42
46
struct ID;
43
47
struct Text;
44
48
struct Script;
 
49
struct bSound;
45
50
struct ImBuf;
46
51
struct Image;
47
52
struct Scopes;
60
65
struct Scene;
61
66
struct wmOperator;
62
67
struct wmTimer;
 
68
struct MovieClip;
 
69
struct MovieClipScopes;
63
70
 
64
71
        /**
65
72
         * The base structure all the other spaces
71
78
        struct SpaceLink *next, *prev;
72
79
        ListBase regionbase;            /* storage of regions for inactive spaces */
73
80
        int spacetype;
74
 
        float blockscale;                       /* XXX depricate this */
75
 
        short blockhandler[8];          /* XXX depricate this */
 
81
        float blockscale  DNA_DEPRECATED;       /* XXX make deprecated */
 
82
        short blockhandler[8]  DNA_DEPRECATED;  /* XXX make deprecated */
76
83
} SpaceLink;
77
84
 
78
85
typedef struct SpaceInfo {
79
86
        SpaceLink *next, *prev;
80
87
        ListBase regionbase;            /* storage of regions for inactive spaces */
81
88
        int spacetype;
82
 
        float blockscale;
 
89
        float blockscale  DNA_DEPRECATED;
83
90
 
84
 
        short blockhandler[8];          /* XXX depricate this */
 
91
        short blockhandler[8]  DNA_DEPRECATED;          /* XXX make deprecated */
85
92
        
86
 
        struct bScreen *screen;         /* browse screen */
87
 
        struct Scene *scene;            /* browse scene */
 
93
        char rpt_mask;
 
94
        char pad[7];
88
95
        
89
96
} SpaceInfo;
90
97
 
 
98
/* SpaceInfo.rpt_mask */
 
99
enum {
 
100
        INFO_RPT_DEBUG  = 1<<0,
 
101
        INFO_RPT_INFO   = 1<<1,
 
102
        INFO_RPT_OP             = 1<<2,
 
103
        INFO_RPT_WARN   = 1<<3,
 
104
        INFO_RPT_ERR            = 1<<4,
 
105
};
 
106
 
91
107
/* 'Graph' Editor (formerly known as the IPO Editor) */
92
108
typedef struct SpaceIpo {
93
109
        SpaceLink *next, *prev;
94
110
        ListBase regionbase;            /* storage of regions for inactive spaces */
95
111
        int spacetype;
96
 
        float blockscale;
 
112
        float blockscale  DNA_DEPRECATED;
97
113
 
98
 
        short blockhandler[8];
99
 
        View2D v2d; /* deprecated, copied to region */
 
114
        short blockhandler[8]  DNA_DEPRECATED;
 
115
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
100
116
        
101
117
        struct bDopeSheet *ads; /* settings for filtering animation data (NOTE: we use a pointer due to code-linking issues) */
102
118
        
114
130
        SpaceLink *next, *prev;
115
131
        ListBase regionbase;            /* storage of regions for inactive spaces */
116
132
        int spacetype;
117
 
        float blockscale;
118
 
        
119
 
        short blockhandler[8];
120
 
        
121
 
        struct RenderInfo *ri;
 
133
        float blockscale  DNA_DEPRECATED;
 
134
        
 
135
        short blockhandler[8]  DNA_DEPRECATED;
122
136
 
123
 
        View2D v2d;                                             /* deprecated, copied to region */
 
137
        View2D v2d  DNA_DEPRECATED;                                             /* deprecated, copied to region */
124
138
        
125
139
        short mainb, mainbo, mainbuser; /* context tabs */
126
140
        short re_align, align;                  /* align for panels */
127
141
        short preview;                                  /* preview is signal to refresh */
128
 
        char flag, pad[3];
 
142
        short texture_context;                  /* texture context selector (material, world, brush)*/
 
143
        char flag, pad;
129
144
        
130
145
        void *path;                                             /* runtime */
131
146
        int pathflag, dataicon;                 /* runtime */
132
147
        ID *pinid;
 
148
 
 
149
        void *texuser;
133
150
} SpaceButs;
134
151
 
135
152
typedef struct SpaceSeq {
136
153
        SpaceLink *next, *prev;
137
154
        ListBase regionbase;            /* storage of regions for inactive spaces */
138
155
        int spacetype;
139
 
        float blockscale;
140
 
 
141
 
        short blockhandler[8];
142
 
 
143
 
        View2D v2d; /* deprecated, copied to region */
 
156
        float blockscale  DNA_DEPRECATED;
 
157
 
 
158
        short blockhandler[8]  DNA_DEPRECATED;
 
159
 
 
160
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
144
161
        
145
 
        float xof, yof; /* deprecated: offset for drawing the image preview */
 
162
        float xof  DNA_DEPRECATED, yof  DNA_DEPRECATED; /* deprecated: offset for drawing the image preview */
146
163
        short mainb;    /* weird name for the sequencer subtype (seq, image, luma... etc) */
147
164
        short render_size;
148
165
        short chanshown;
149
166
        short zebra;
150
167
        int flag;
151
 
        float zoom; /* deprecated, handled by View2D now */
 
168
        float zoom  DNA_DEPRECATED; /* deprecated, handled by View2D now */
152
169
        int view; /* see SEQ_VIEW_* below */
153
170
        int pad;
154
171
 
156
173
} SpaceSeq;
157
174
 
158
175
typedef struct FileSelectParams {
159
 
        char title[24]; /* title, also used for the text of the execute button */
160
 
        char dir[240]; /* directory */
161
 
        char file[80]; /* file */
162
 
        char renamefile[80];
163
 
 
 
176
        char title[32]; /* title, also used for the text of the execute button */
 
177
        char dir[1056]; /* directory, FILE_MAX_LIBEXTRA, 1024 + 32, this is for extreme case when 1023 length path
 
178
                         * needs to be linked in, where foo.blend/Armature need adding  */
 
179
        char file[256]; /* file */
 
180
        char renamefile[256];
 
181
        char renameedit[256]; /* annoying but the first is only used for initialization */
 
182
 
 
183
        char filter_glob[64]; /* list of filetypes to filter */
 
184
 
 
185
        int     active_file;
 
186
        int sel_first;
 
187
        int sel_last;
 
188
 
 
189
        /* short */
164
190
        short type; /* XXXXX for now store type here, should be moved to the operator */
165
191
        short flag; /* settings for filter, hiding dots files,...  */
166
192
        short sort; /* sort order */
167
193
        short display; /* display mode flag */
168
194
        short filter; /* filter when (flags & FILE_FILTER) is true */
169
195
 
170
 
        /* XXX - temporary, better move to filelist */
171
 
        short active_bookmark;
172
 
 
173
 
        int     active_file;
174
 
        int selstate;
175
 
 
176
 
        /* short */
177
196
        /* XXX --- still unused -- */
178
197
        short f_fp; /* show font preview */
179
 
        short pad;
180
198
        char fp_str[8]; /* string to use for font preview */
181
199
 
182
200
        /* XXX --- end unused -- */
197
215
        ListBase *folders_next; /* holds the list of next directories (pushed from previous) to show */
198
216
 
199
217
        /* operator that is invoking fileselect 
200
 
           op->exec() will be called on the 'Load' button.
201
 
           if operator provides op->cancel(), then this will be invoked
202
 
           on the cancel button.
203
 
        */
 
218
         * op->exec() will be called on the 'Load' button.
 
219
         * if operator provides op->cancel(), then this will be invoked
 
220
         * on the cancel button.
 
221
         */
204
222
        struct wmOperator *op; 
205
223
 
206
224
        struct wmTimer *smoothscroll_timer;
215
233
        SpaceLink *next, *prev;
216
234
        ListBase regionbase;            /* storage of regions for inactive spaces */
217
235
        int spacetype;
218
 
        float blockscale;
219
 
 
220
 
        short blockhandler[8];
221
 
 
222
 
        View2D v2d; /* deprecated, copied to region */
 
236
        float blockscale  DNA_DEPRECATED;
 
237
 
 
238
        short blockhandler[8]  DNA_DEPRECATED;
 
239
 
 
240
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
223
241
        
224
242
        ListBase tree;
225
243
        struct TreeStore *treestore;
227
245
        /* search stuff */
228
246
        char search_string[32];
229
247
        struct TreeStoreElem search_tse;
230
 
        int search_flags, do_;
231
 
        
232
 
        short flag, outlinevis, storeflag, pad;
 
248
 
 
249
        short flag, outlinevis, storeflag, search_flags;
233
250
} SpaceOops;
234
251
 
235
252
typedef struct SpaceImage {
237
254
        ListBase regionbase;            /* storage of regions for inactive spaces */
238
255
        int spacetype;
239
256
 
240
 
        float blockscale;
241
 
        short blockhandler[8];
242
 
        
 
257
        int flag;
 
258
 
243
259
        struct Image *image;
244
260
        struct ImageUser iuser;
 
261
        struct CurveMapping *cumap;             
245
262
        
246
 
        struct CurveMapping *cumap;
247
 
        short menunr, imanr, pad2;
 
263
        struct Scopes scopes;                   /* histogram waveform and vectorscope */
 
264
        struct Histogram sample_line_hist;      /* sample line histogram */
 
265
 
 
266
        struct bGPdata *gpd;                    /* grease pencil data */
 
267
 
 
268
        float cursor[2];                                /* UV editor 2d cursor */
 
269
        float xof, yof;                                 /* user defined offset, image is centered */
 
270
        float zoom;                                             /* user defined zoom level */
 
271
        float centx, centy;                             /* storage for offset while render drawing */
 
272
 
248
273
        short curtile; /* the currently active tile of the image when tile is enabled, is kept in sync with the active faces tile */
249
 
        int flag;
250
 
        short imtypenr, lock;
251
 
        short pin, pad3;
 
274
        short pad;
 
275
        short lock;
 
276
        short pin;
252
277
        char dt_uv; /* UV draw type */
253
278
        char sticky; /* sticky selection type */
254
279
        char dt_uvstretch;
255
280
        char around;
256
 
        float cursor[2];                                /* UV editor 2d cursor */
257
 
        
258
 
        float xof, yof;                                 /* user defined offset, image is centered */
259
 
        float zoom, pad4;                               /* user defined zoom level */
260
 
        float centx, centy;                             /* storage for offset while render drawing */
261
 
        
262
 
        struct bGPdata *gpd;                    /* grease pencil data */
263
 
        
264
 
        struct Scopes scopes;                   /* histogram waveform and vectorscope */
265
 
 
266
 
        struct Histogram sample_line_hist;      /* sample line histogram */
267
 
        
268
281
} SpaceImage;
269
282
 
270
283
typedef struct SpaceNla {
271
284
        struct SpaceLink *next, *prev;
272
285
        ListBase regionbase;            /* storage of regions for inactive spaces */
273
286
        int spacetype;
274
 
        float blockscale;
 
287
        float blockscale  DNA_DEPRECATED;
275
288
 
276
 
        short blockhandler[8];
 
289
        short blockhandler[8]  DNA_DEPRECATED;
277
290
 
278
291
        short autosnap;                 /* this uses the same settings as autosnap for Action Editor */
279
292
        short flag;
280
293
        int pad;
281
294
        
282
295
        struct bDopeSheet *ads;
283
 
        View2D v2d;      /* deprecated, copied to region */
 
296
        View2D v2d  DNA_DEPRECATED;      /* deprecated, copied to region */
284
297
} SpaceNla;
285
298
 
286
299
typedef struct SpaceText {
287
300
        SpaceLink *next, *prev;
288
301
        ListBase regionbase;            /* storage of regions for inactive spaces */
289
302
        int spacetype;
290
 
        float blockscale;
 
303
        float blockscale  DNA_DEPRECATED;
291
304
 
292
 
        short blockhandler[8];
 
305
        short blockhandler[8]  DNA_DEPRECATED;
293
306
 
294
307
        struct Text *text;      
295
308
 
302
315
        int showlinenrs;
303
316
        int tabnumber;
304
317
 
305
 
        int showsyntax;
 
318
        short showsyntax;
 
319
        short line_hlight;
306
320
        short overwrite;
307
321
        short live_edit; /* run python while editing, evil */
308
322
        float pix_per_line;
313
327
 
314
328
        char findstr[256];              /* ST_MAX_FIND_STR */
315
329
        char replacestr[256];   /* ST_MAX_FIND_STR */
 
330
 
 
331
        short margin_column; /* column number to show right margin at */
 
332
        char pad[6];
 
333
 
 
334
        void *drawcache; /* cache for faster drawing */
316
335
} SpaceText;
317
336
 
318
337
typedef struct Script {
325
344
        void *py_globaldict;
326
345
 
327
346
        int flags, lastspace;
328
 
        char scriptname[256]; /* store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on */
329
 
        char scriptarg[256];
 
347
        /* store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on */
 
348
        char scriptname[1024]; /* 1024 = FILE_MAX */
 
349
        char scriptarg[256]; /* 1024 = FILE_MAX */
330
350
} Script;
331
 
#define SCRIPT_SET_NULL(_script) _script->py_draw = _script->py_event = _script->py_button = _script->py_browsercallback = _script->py_globaldict = NULL; _script->flags = 0;
332
 
#define SCRIPT_RUNNING  0x01
333
 
#define SCRIPT_GUI              0x02
334
 
#define SCRIPT_FILESEL  0x04
 
351
#define SCRIPT_SET_NULL(_script) _script->py_draw = _script->py_event = _script->py_button = _script->py_browsercallback = _script->py_globaldict = NULL; _script->flags = 0
335
352
 
336
353
typedef struct SpaceScript {
337
354
        SpaceLink *next, *prev;
338
355
        ListBase regionbase;            /* storage of regions for inactive spaces */
339
356
        int spacetype;
340
 
        float blockscale;
 
357
        float blockscale  DNA_DEPRECATED;
341
358
        struct Script *script;
342
359
 
343
360
        short flags, menunr;
346
363
        void *but_refs;
347
364
} SpaceScript;
348
365
 
 
366
# /* Only store the data array in the cache to avoid constant reallocation. */
 
367
# /* No need to store when saved. */
349
368
typedef struct SpaceTimeCache {
350
369
        struct SpaceTimeCache *next, *prev;
351
 
        int type;
352
 
        int flag;
353
 
        
354
370
        float *array;
355
 
        int len;
356
 
        int startframe, endframe;
357
 
        int ok;
358
371
} SpaceTimeCache;
359
372
 
360
373
typedef struct SpaceTime {
361
374
        SpaceLink *next, *prev;
362
375
        ListBase regionbase;            /* storage of regions for inactive spaces */
363
376
        int spacetype;
364
 
        float blockscale;
365
 
        
366
 
        View2D v2d; /* deprecated, copied to region */
367
 
        
 
377
        float blockscale  DNA_DEPRECATED;
 
378
        
 
379
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
 
380
 
368
381
        ListBase caches;
369
 
        int cache_display, pad;
370
 
        
371
 
        int flag, redraws;
372
 
        
 
382
 
 
383
        int cache_display;
 
384
        int flag;
373
385
} SpaceTime;
374
386
 
375
387
typedef struct SpaceNode {
376
388
        SpaceLink *next, *prev;
377
389
        ListBase regionbase;            /* storage of regions for inactive spaces */
378
390
        int spacetype;
379
 
        float blockscale;
380
 
        
381
 
        short blockhandler[8];
382
 
        
383
 
        View2D v2d; /* deprecated, copied to region */
 
391
        float blockscale  DNA_DEPRECATED;
 
392
        
 
393
        short blockhandler[8]  DNA_DEPRECATED;
 
394
        
 
395
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
384
396
        
385
397
        struct ID *id, *from;           /* context, no need to save in file? well... pinning... */
386
 
        short flag, menunr;                     /* menunr: browse id block in header */
 
398
        short flag, pad1;                       /* menunr: browse id block in header */
387
399
        float aspect;
388
 
        void *curfont;
389
400
        
390
401
        float xof, yof;         /* offset for drawing the backdrop */
391
402
        float zoom, padf;       /* zoom for backdrop */
392
403
        float mx, my;           /* mousepos for drawing socketless link */
393
404
        
394
405
        struct bNodeTree *nodetree, *edittree;
395
 
        int treetype;                   /* treetype: as same nodetree->type */
396
 
        short texfrom, pad;             /* texfrom object, world or brush */
 
406
        int treetype;           /* treetype: as same nodetree->type */
 
407
        short texfrom;          /* texfrom object, world or brush */
 
408
        short shaderfrom;       /* shader from object or world */
 
409
        short recalc;           /* currently on 0/1, for auto compo */
 
410
        short pad[3];
 
411
        ListBase linkdrag;      /* temporary data for modal linking operator */
397
412
        
398
413
        struct bGPdata *gpd;            /* grease-pencil data */
399
414
} SpaceNode;
401
416
/* snode->flag */
402
417
#define SNODE_BACKDRAW          2
403
418
#define SNODE_DISPGP            4
 
419
#define SNODE_USE_ALPHA         8
 
420
#define SNODE_SHOW_ALPHA        16
 
421
#define SNODE_AUTO_RENDER       32
404
422
 
405
423
/* snode->texfrom */
406
424
#define SNODE_TEX_OBJECT        0
407
425
#define SNODE_TEX_WORLD         1
408
426
#define SNODE_TEX_BRUSH         2
409
427
 
 
428
/* snode->shaderfrom */
 
429
#define SNODE_SHADER_OBJECT     0
 
430
#define SNODE_SHADER_WORLD      1
 
431
 
410
432
typedef struct SpaceLogic {
411
433
        SpaceLink *next, *prev;
412
434
        ListBase regionbase;            /* storage of regions for inactive spaces */
413
435
        int spacetype;
414
 
        float blockscale;
 
436
        float blockscale  DNA_DEPRECATED;
415
437
        
416
 
        short blockhandler[8];
 
438
        short blockhandler[8]  DNA_DEPRECATED;
417
439
        
418
440
        short flag, scaflag;
419
441
        int pad;
421
443
        struct bGPdata *gpd;            /* grease-pencil data */
422
444
} SpaceLogic;
423
445
 
424
 
 
425
 
typedef struct SpaceImaSel {
426
 
        SpaceLink *next, *prev;
427
 
        ListBase regionbase;            /* storage of regions for inactive spaces */
428
 
        int spacetype;
429
 
        float blockscale;
430
 
        
431
 
        short blockhandler[8];
432
 
 
433
 
        View2D v2d; /* deprecated, copied to region */
434
 
 
435
 
        struct FileList *files;
436
 
 
437
 
        /* specific stuff for drawing */
438
 
        char title[24];
439
 
        char dir[240];
440
 
        char file[80];
441
 
 
442
 
        short type, menu, flag, sort;
443
 
 
444
 
        void *curfont;
445
 
        int     active_file;
446
 
 
447
 
        int numtilesx;
448
 
        int numtilesy;
449
 
 
450
 
        int selstate;
451
 
 
452
 
        struct rcti viewrect;
453
 
        struct rcti bookmarkrect;
454
 
 
455
 
        float scrollpos; /* current position of scrollhandle */
456
 
        float scrollheight; /* height of the scrollhandle */
457
 
        float scrollarea; /* scroll region, scrollpos is from 0 to scrollarea */
458
 
 
459
 
        float aspect;
460
 
        unsigned short retval;          /* event */
461
 
 
462
 
        short ipotype;
463
 
        
464
 
        short filter;
465
 
        short active_bookmark;
466
 
        short pad, pad1;
467
 
 
468
 
        /* view settings */
469
 
        short prv_w;
470
 
        short prv_h;
471
 
 
472
 
        /* one day we'll add unions to dna */
473
 
        void (*returnfunc)(char *);
474
 
        void (*returnfunc_event)(unsigned short);
475
 
        void (*returnfunc_args)(char *, void *, void *);
476
 
        
477
 
        void *arg1, *arg2;
478
 
        short *menup;   /* pointer to menu result or ID browsing */
479
 
        char *pupmenu;  /* optional menu in header */
480
 
 
481
 
        struct ImBuf *img;
482
 
} SpaceImaSel;
483
 
 
484
 
 
485
446
typedef struct ConsoleLine {
486
447
        struct ConsoleLine *next, *prev;
487
448
        
502
463
        CONSOLE_LINE_ERROR
503
464
};
504
465
 
505
 
/* SpaceConsole.rpt_mask */
506
 
enum {
507
 
        CONSOLE_TYPE_PYTHON=0,
508
 
        CONSOLE_TYPE_REPORT,
509
 
};
510
 
 
511
 
/* SpaceConsole.type see BKE_report.h */
512
 
enum {
513
 
        CONSOLE_RPT_DEBUG       = 1<<0,
514
 
        CONSOLE_RPT_INFO        = 1<<1,
515
 
        CONSOLE_RPT_OP          = 1<<2,
516
 
        CONSOLE_RPT_WARN        = 1<<3,
517
 
        CONSOLE_RPT_ERR         = 1<<4,
518
 
};
519
 
 
520
466
typedef struct SpaceConsole {
521
467
        SpaceLink *next, *prev;
522
468
        ListBase regionbase;            /* storage of regions for inactive spaces */
523
469
        int spacetype;
524
 
        float blockscale;                       // XXX are these needed?
 
470
        float blockscale  DNA_DEPRECATED;                       // XXX are these needed?
525
471
        
526
 
        short blockhandler[8];          // XXX are these needed?
 
472
        short blockhandler[8]  DNA_DEPRECATED;          // XXX are these needed?
527
473
        
528
474
        /* space vars */
529
 
        int type; /* console/report/..? */
530
 
        int rpt_mask; /* which reports to display */
531
 
        int flag, lheight;
 
475
        int lheight, pad;
532
476
 
533
477
        ListBase scrollback; /* ConsoleLine; output */
534
478
        ListBase history; /* ConsoleLine; command history, current edited line is the first */
550
494
 
551
495
} SpaceUserPref;
552
496
 
 
497
typedef struct SpaceClip {
 
498
        SpaceLink *next, *prev;
 
499
        ListBase regionbase;            /* storage of regions for inactive spaces */
 
500
        int spacetype;
 
501
 
 
502
        float xof, yof;                         /* user defined offset, image is centered */
 
503
        float xlockof, ylockof;         /* user defined offset from locked position */
 
504
        float zoom;                                     /* user defined zoom level */
 
505
 
 
506
        struct MovieClipUser user;              /* user of clip */
 
507
        struct MovieClip *clip;                 /* clip data */
 
508
        struct MovieClipScopes scopes;  /* different scoped displayed in space panels */
 
509
 
 
510
        int flag;                                       /* flags */
 
511
        short mode;                                     /* editor mode (editing context being displayed) */
 
512
        short view;                                     /* type of the clip editor view */
 
513
 
 
514
        int path_length;                        /* length of displaying path, in frames */
 
515
 
 
516
        /* current stabilization data */
 
517
        float loc[2], scale, angle;     /* pre-composed stabilization data */
 
518
        int pad;
 
519
        float stabmat[4][4], unistabmat[4][4];  /* current stabilization matrix and the same matrix in unified space,
 
520
                                                 * defined when drawing and used for mouse position calculation */
 
521
 
 
522
        /* movie postprocessing */
 
523
        int postproc_flag;
 
524
 
 
525
        int runtime_flag;                       /* different runtime flags */
 
526
} SpaceClip;
 
527
 
553
528
/* view3d  Now in DNA_view3d_types.h */
554
529
 
555
530
 
584
559
#define BUTS_CONSTRAINT         13
585
560
#define BUTS_EFFECTS            14
586
561
 
587
 
/* sbuts->tab new (deprecated) */
588
 
#define TAB_SHADING_MAT         0
589
 
#define TAB_SHADING_TEX         1
590
 
#define TAB_SHADING_RAD         2
591
 
#define TAB_SHADING_WORLD       3
592
 
#define TAB_SHADING_LAMP        4
593
 
 
594
 
#define TAB_OBJECT_OBJECT       0
595
 
#define TAB_OBJECT_PHYSICS      1
596
 
#define TAB_OBJECT_PARTICLE     2
597
 
 
598
 
#define TAB_SCENE_RENDER        0
599
 
#define TAB_SCENE_WORLD         1
600
 
#define TAB_SCENE_ANIM          2
601
 
#define TAB_SCENE_SOUND         3
602
 
#define TAB_SCENE_SEQUENCER     4
603
 
 
604
562
/* buts->mainb new */
605
563
#define BCONTEXT_RENDER                         0
606
564
#define BCONTEXT_SCENE                          1
620
578
/* sbuts->flag */
621
579
#define SB_PRV_OSA                      1
622
580
#define SB_PIN_CONTEXT          2
623
 
#define SB_WORLD_TEX            4
624
 
#define SB_BRUSH_TEX            8
 
581
//#define SB_WORLD_TEX          4       //not used anymore
 
582
//#define SB_BRUSH_TEX          8       //not used anymore      
625
583
#define SB_SHADING_CONTEXT      16
626
584
 
 
585
/* sbuts->texture_context */
 
586
#define SB_TEXC_MAT_OR_LAMP     0
 
587
#define SB_TEXC_WORLD           1
 
588
#define SB_TEXC_BRUSH           2
 
589
#define SB_TEXC_PARTICLES       3
 
590
 
627
591
/* sbuts->align */
628
592
#define BUT_FREE                0
629
593
#define BUT_HORIZONTAL  1
646
610
 
647
611
/* FileSelectParams.display */
648
612
enum FileDisplayTypeE {
649
 
        FILE_SHORTDISPLAY = 1,
 
613
        FILE_DEFAULTDISPLAY = 0,
 
614
        FILE_SHORTDISPLAY,
650
615
        FILE_LONGDISPLAY,
651
616
        FILE_IMGDISPLAY
652
617
};
662
627
 
663
628
/* these values need to be hardcoded in structs, dna does not recognize defines */
664
629
/* also defined in BKE */
665
 
#define FILE_MAXDIR                     160
666
 
#define FILE_MAXFILE            80
667
 
#define FILE_MAX                        240
 
630
#define FILE_MAXDIR                     768
 
631
#define FILE_MAXFILE            256
 
632
#define FILE_MAX                        1024
 
633
 
 
634
#define FILE_MAX_LIBEXTRA   (FILE_MAX + 32)
668
635
 
669
636
/* filesel types */
670
637
#define FILE_UNIX                       8
671
 
#define FILE_BLENDER            8 /* dont display relative paths */
 
638
#define FILE_BLENDER            8 /* don't display relative paths */
672
639
#define FILE_SPECIAL            9
673
640
 
674
641
#define FILE_LOADLIB            1
678
645
#define FILE_OPENFILE           0
679
646
#define FILE_SAVE                       1
680
647
 
681
 
/* sfile->flag and simasel->flag */
682
 
#define FILE_SHOWSHORT          1
683
 
#define FILE_RELPATH            2 /* was FILE_STRINGCODE */
684
 
#define FILE_LINK                       4
685
 
#define FILE_HIDE_DOT           8
686
 
#define FILE_AUTOSELECT         16
687
 
#define FILE_ACTIVELAY          32
688
 
#define FILE_ATCURSOR           64
689
 
#define FILE_SYNCPOSE           128
690
 
#define FILE_FILTER                     256
691
 
#define FILE_BOOKMARKS          512
692
 
#define FILE_GROUP_INSTANCE     1024
693
 
 
694
 
/* files in filesel list: 2=ACTIVE  */
695
 
#define EDITING                         (1<<0)
696
 
#define ACTIVEFILE                      (1<<1)
 
648
/* sfile->params->flag and simasel->flag */
 
649
#define FILE_SHOWSHORT          (1<<0)
 
650
#define FILE_RELPATH            (1<<1) /* was FILE_STRINGCODE */
 
651
#define FILE_LINK                       (1<<2)
 
652
#define FILE_HIDE_DOT           (1<<3)
 
653
#define FILE_AUTOSELECT         (1<<4)
 
654
#define FILE_ACTIVELAY          (1<<5)
 
655
/* #define FILE_ATCURSOR        (1<<6) */ /* deprecated */
 
656
#define FILE_DIRSEL_ONLY        (1<<7)
 
657
#define FILE_FILTER                     (1<<8)
 
658
#define FILE_BOOKMARKS          (1<<9)
 
659
#define FILE_GROUP_INSTANCE     (1<<10)
 
660
 
 
661
 
 
662
/* files in filesel list: file types */
697
663
#define BLENDERFILE                     (1<<2)
698
 
#define PSXFILE                         (1<<3)
 
664
#define BLENDERFILE_BACKUP      (1<<3)
699
665
#define IMAGEFILE                       (1<<4)
700
666
#define MOVIEFILE                       (1<<5)
701
667
#define PYSCRIPTFILE            (1<<6)
706
672
#define FOLDERFILE                      (1<<11) /* represents folders for filtering */
707
673
#define BTXFILE                         (1<<12)
708
674
#define COLLADAFILE                     (1<<13)
 
675
#define OPERATORFILE            (1<<14) /* from filter_glob operator property */
 
676
 
 
677
 
 
678
/* Selection Flags in filesel: struct direntry, unsigned char selflag */
 
679
/* #define ACTIVE_FILE          (1<<1) */ /* UNUSED */
 
680
#define HILITED_FILE            (1<<2)
 
681
#define SELECTED_FILE           (1<<3)
 
682
#define EDITING_FILE            (1<<4)
709
683
 
710
684
/* SpaceImage->dt_uv */
711
685
#define SI_UVDT_OUTLINE 0
719
693
 
720
694
/* SpaceImage->sticky
721
695
 * Note DISABLE should be 0, however would also need to re-arrange icon order,
722
 
 * also, sticky loc is the default mode so this means we dont need to 'do_versons' */
 
696
 * also, sticky loc is the default mode so this means we don't need to 'do_versons' */
723
697
#define SI_STICKY_LOC           0
724
698
#define SI_STICKY_DISABLE       1
725
699
#define SI_STICKY_VERTEX        2
726
700
 
727
701
/* SpaceImage->flag */
728
 
#define SI_BE_SQUARE    1<<0
729
 
#define SI_EDITTILE             1<<1
730
 
#define SI_CLIP_UV              1<<2
731
 
#define SI_DRAWTOOL             1<<3
732
 
#define SI_DEPRECATED1  1<<4    /* stick UVs to others in the same location */
733
 
#define SI_DRAWSHADOW   1<<5
734
 
#define SI_SELACTFACE   1<<6    /* deprecated */
735
 
#define SI_DEPRECATED2  1<<7
736
 
#define SI_DEPRECATED3  1<<8    /* stick UV selection to mesh vertex (UVs wont always be touching) */
737
 
#define SI_COORDFLOATS  1<<9
738
 
#define SI_PIXELSNAP    1<<10
739
 
#define SI_LIVE_UNWRAP  1<<11
740
 
#define SI_USE_ALPHA    1<<12
741
 
#define SI_SHOW_ALPHA   1<<13
742
 
#define SI_SHOW_ZBUF    1<<14
 
702
#define SI_BE_SQUARE    (1<<0)
 
703
#define SI_EDITTILE             (1<<1)
 
704
#define SI_CLIP_UV              (1<<2)
 
705
#define SI_DRAWTOOL             (1<<3)
 
706
#define SI_NO_DRAWFACES (1<<4)
 
707
#define SI_DRAWSHADOW   (1<<5)
 
708
/* #define SI_SELACTFACE   (1<<6) */ /* deprecated */
 
709
#define SI_DEPRECATED2  (1<<7)
 
710
#define SI_DEPRECATED3  (1<<8)  /* stick UV selection to mesh vertex (UVs wont always be touching) */
 
711
#define SI_COORDFLOATS  (1<<9)
 
712
#define SI_PIXELSNAP    (1<<10)
 
713
#define SI_LIVE_UNWRAP  (1<<11)
 
714
#define SI_USE_ALPHA    (1<<12)
 
715
#define SI_SHOW_ALPHA   (1<<13)
 
716
#define SI_SHOW_ZBUF    (1<<14)
743
717
                /* next two for render window dislay */
744
 
#define SI_PREVSPACE    1<<15
745
 
#define SI_FULLWINDOW   1<<16
746
 
#define SI_DEPRECATED4  1<<17
747
 
#define SI_DEPRECATED5  1<<18
 
718
#define SI_PREVSPACE    (1<<15)
 
719
#define SI_FULLWINDOW   (1<<16)
 
720
#define SI_DEPRECATED4  (1<<17)
 
721
#define SI_DEPRECATED5  (1<<18)
748
722
                /* this means that the image is drawn until it reaches the view edge,
749
723
                 * in the image view, its unrelated to the 'tile' mode for texface */
750
 
#define SI_DRAW_TILE    1<<19 
751
 
#define SI_SMOOTH_UV    1<<20
752
 
#define SI_DRAW_STRETCH 1<<21
753
 
#define SI_DISPGP               1<<22
754
 
#define SI_DRAW_OTHER   1<<23
 
724
#define SI_DRAW_TILE    (1<<19)
 
725
#define SI_SMOOTH_UV    (1<<20)
 
726
#define SI_DRAW_STRETCH (1<<21)
 
727
#define SI_DISPGP               (1<<22)
 
728
#define SI_DRAW_OTHER   (1<<23)
755
729
 
756
 
#define SI_COLOR_CORRECTION     1<<24
 
730
#define SI_COLOR_CORRECTION     (1<<24)
757
731
 
758
732
/* SpaceIpo->flag (Graph Editor Settings) */
759
733
        /* OLD DEPRECEATED SETTING */
781
755
#define SIPO_TEMP_NEEDCHANSYNC  (1<<10)
782
756
        /* don't perform realtime updates */
783
757
#define SIPO_NOREALTIMEUPDATES  (1<<11)
 
758
        /* don't draw curves with AA ("beauty-draw") for performance */
 
759
#define SIPO_BEAUTYDRAW_OFF             (1<<12)
784
760
 
785
761
/* SpaceIpo->mode (Graph Editor Mode) */
786
762
enum {
797
773
                                                                           // execution (see BPY_main.c)
798
774
#define ST_FIND_WRAP                    0x0020
799
775
#define ST_FIND_ALL                             0x0040
 
776
#define ST_SHOW_MARGIN                  0x0080
 
777
#define ST_MATCH_CASE                   0x0100
800
778
 
801
779
 
802
780
/* stext->findstr/replacestr */
832
810
/* outliner search flags (SpaceOops->search_flags) */
833
811
#define SO_FIND_CASE_SENSITIVE          (1<<0)
834
812
#define SO_FIND_COMPLETE                        (1<<1)
 
813
#define SO_SEARCH_RECURSIVE             (1<<2)
835
814
 
836
815
/* headerbuttons: 450-499 */
837
816
 
838
817
#define B_IMASELHOME            451
839
818
#define B_IMASELREMOVEBIP       452
840
819
 
841
 
#define C_BACK  0xBAAAAA
842
 
#define C_DARK  0x665656
843
 
#define C_DERK  0x766666
844
 
#define C_HI    0xCBBBBB
845
 
#define C_LO    0x544444
846
 
 
847
820
/* nla->flag */
848
821
/* flags (1<<0), (1<<1), and (1<<3) are depreceated flags from old blenders */
849
822
        /* draw timing in seconds instead of frames */
863
836
        /* only keyframes from active/selected channels get shown */
864
837
#define TIME_ONLYACTSEL         4
865
838
 
866
 
/* time->redraws */
 
839
/* time->redraws (now screen->redraws_flag) */
867
840
#define TIME_REGION                             1
868
841
#define TIME_ALL_3D_WIN                 2
869
842
#define TIME_ALL_ANIM_WIN               4
873
846
#define TIME_ALL_IMAGE_WIN              64
874
847
#define TIME_CONTINUE_PHYSICS   128
875
848
#define TIME_NODES                              256
 
849
#define TIME_CLIPS                              512
876
850
 
877
851
/* time->cache */
878
852
#define TIME_CACHE_DISPLAY              1
880
854
#define TIME_CACHE_PARTICLES    4
881
855
#define TIME_CACHE_CLOTH                8
882
856
#define TIME_CACHE_SMOKE                16
 
857
#define TIME_CACHE_DYNAMICPAINT 32
883
858
 
884
859
/* sseq->mainb */
885
860
#define SEQ_DRAW_SEQUENCE         0
891
866
/* sseq->flag */
892
867
#define SEQ_DRAWFRAMES   1
893
868
#define SEQ_MARKER_TRANS 2
894
 
#define SEQ_DRAW_COLOR_SEPERATED     4
 
869
#define SEQ_DRAW_COLOR_SEPARATED     4
895
870
#define SEQ_DRAW_SAFE_MARGINS        8
896
871
#define SEQ_DRAW_GPENCIL                        16
897
872
#define SEQ_NO_DRAW_CFRANUM                     32
907
882
#define SEQ_PROXY_RENDER_SIZE_25        25
908
883
#define SEQ_PROXY_RENDER_SIZE_50        50
909
884
#define SEQ_PROXY_RENDER_SIZE_75        75
 
885
#define SEQ_PROXY_RENDER_SIZE_100       99
910
886
#define SEQ_PROXY_RENDER_SIZE_FULL      100
911
887
 
 
888
/* SpaceClip->flag */
 
889
#define SC_SHOW_MARKER_PATTERN  (1<<0)
 
890
#define SC_SHOW_MARKER_SEARCH   (1<<1)
 
891
#define SC_LOCK_SELECTION               (1<<2)
 
892
#define SC_SHOW_TINY_MARKER             (1<<3)
 
893
#define SC_SHOW_TRACK_PATH              (1<<4)
 
894
#define SC_SHOW_BUNDLES                 (1<<5)
 
895
#define SC_MUTE_FOOTAGE                 (1<<6)
 
896
#define SC_HIDE_DISABLED                (1<<7)
 
897
#define SC_SHOW_NAMES                   (1<<8)
 
898
#define SC_SHOW_GRID                    (1<<9)
 
899
#define SC_SHOW_STABLE                  (1<<10)
 
900
#define SC_MANUAL_CALIBRATION   (1<<11)
 
901
/*#define SC_SHOW_GPENCIL                       (1<<12)*/       /* UNUSED */
 
902
#define SC_SHOW_FILTERS                 (1<<13)
 
903
#define SC_SHOW_GRAPH_FRAMES    (1<<14)
 
904
#define SC_SHOW_GRAPH_TRACKS    (1<<15)
 
905
/*#define SC_SHOW_PYRAMID_LEVELS        (1<<16) */      /* UNUSED */
 
906
#define SC_LOCK_TIMECURSOR              (1<<17)
 
907
 
 
908
/* SpaceClip->mode */
 
909
#define SC_MODE_TRACKING                0
 
910
#define SC_MODE_RECONSTRUCTION  1
 
911
#define SC_MODE_DISTORTION              2
 
912
 
 
913
/* SpaceClip->view */
 
914
#define SC_VIEW_CLIP            0
 
915
#define SC_VIEW_GRAPH           1
 
916
 
 
917
/* SpaceClip->runtime_flag */
 
918
#define SC_GRAPH_BOTTOM         (1<<0)
912
919
 
913
920
/* space types, moved from DNA_screen_types.h */
 
921
/* Do NOT change order, append on end. types are hardcoded needed */
914
922
enum {
915
923
        SPACE_EMPTY,
916
924
        SPACE_VIEW3D,
922
930
        SPACE_INFO,
923
931
        SPACE_SEQ,
924
932
        SPACE_TEXT,
925
 
        SPACE_IMASEL,
926
 
        SPACE_SOUND,
 
933
        SPACE_IMASEL, /* deprecated */
 
934
        SPACE_SOUND, /* Deprecated */
927
935
        SPACE_ACTION,
928
936
        SPACE_NLA,
929
 
        SPACE_SCRIPT,
 
937
        SPACE_SCRIPT, /* Deprecated */
930
938
        SPACE_TIME,
931
939
        SPACE_NODE,
932
940
        SPACE_LOGIC,
933
941
        SPACE_CONSOLE,
934
942
        SPACE_USERPREF,
935
 
        SPACEICONMAX = SPACE_USERPREF
 
943
        SPACE_CLIP,
 
944
        SPACEICONMAX = SPACE_CLIP
936
945
};
937
946
 
938
947
#endif