4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
29 #ifndef DNA_SPACE_TYPES_H
30 #define DNA_SPACE_TYPES_H
31 /** \file DNA_space_types.h
37 #include "DNA_listBase.h"
38 #include "DNA_color_types.h" /* for Histogram */
39 #include "DNA_vec_types.h"
40 #include "DNA_outliner_types.h" /* for TreeStoreElem */
41 #include "DNA_image_types.h" /* ImageUser */
42 /* Hum ... Not really nice... but needed for spacebuts. */
43 #include "DNA_view2d_types.h"
61 struct FileSelectParams;
69 * The base structure all the other spaces
70 * are derived (implicitly) from. Would be
71 * good to make this explicit.
74 typedef struct SpaceLink {
75 struct SpaceLink *next, *prev;
76 ListBase regionbase; /* storage of regions for inactive spaces */
78 float blockscale; /* XXX depricate this */
79 short blockhandler[8]; /* XXX depricate this */
82 typedef struct SpaceInfo {
83 SpaceLink *next, *prev;
84 ListBase regionbase; /* storage of regions for inactive spaces */
88 short blockhandler[8]; /* XXX depricate this */
95 /* SpaceInfo.rpt_mask */
97 INFO_RPT_DEBUG = 1<<0,
100 INFO_RPT_WARN = 1<<3,
104 /* 'Graph' Editor (formerly known as the IPO Editor) */
105 typedef struct SpaceIpo {
106 SpaceLink *next, *prev;
107 ListBase regionbase; /* storage of regions for inactive spaces */
111 short blockhandler[8];
112 View2D v2d; /* deprecated, copied to region */
114 struct bDopeSheet *ads; /* settings for filtering animation data (NOTE: we use a pointer due to code-linking issues) */
116 ListBase ghostCurves; /* sampled snapshots of F-Curves used as in-session guides */
118 short mode; /* mode for the Graph editor (eGraphEdit_Mode) */
119 short autosnap; /* time-transform autosnapping settings for Graph editor (eAnimEdit_AutoSnap in DNA_action_types.h) */
120 int flag; /* settings for Graph editor */
122 float cursorVal; /* cursor value (y-value, x-value is current frame) */
123 int around; /* pivot point for transforms */
126 typedef struct SpaceButs {
127 SpaceLink *next, *prev;
128 ListBase regionbase; /* storage of regions for inactive spaces */
132 short blockhandler[8];
134 struct RenderInfo *ri;
136 View2D v2d; /* deprecated, copied to region */
138 short mainb, mainbo, mainbuser; /* context tabs */
139 short re_align, align; /* align for panels */
140 short preview; /* preview is signal to refresh */
141 short texture_context; /* texture context selector (material, world, brush)*/
144 void *path; /* runtime */
145 int pathflag, dataicon; /* runtime */
149 typedef struct SpaceSeq {
150 SpaceLink *next, *prev;
151 ListBase regionbase; /* storage of regions for inactive spaces */
155 short blockhandler[8];
157 View2D v2d; /* deprecated, copied to region */
159 float xof, yof; /* deprecated: offset for drawing the image preview */
160 short mainb; /* weird name for the sequencer subtype (seq, image, luma... etc) */
165 float zoom; /* deprecated, handled by View2D now */
166 int view; /* see SEQ_VIEW_* below */
169 struct bGPdata *gpd; /* grease-pencil data */
172 typedef struct FileSelectParams {
173 char title[32]; /* title, also used for the text of the execute button */
174 char dir[240]; /* directory */
175 char file[80]; /* file */
177 char renameedit[80]; /* annoying but the first is only used for initialization */
179 char filter_glob[64]; /* list of filetypes to filter */
186 short type; /* XXXXX for now store type here, should be moved to the operator */
187 short flag; /* settings for filter, hiding dots files,... */
188 short sort; /* sort order */
189 short display; /* display mode flag */
190 short filter; /* filter when (flags & FILE_FILTER) is true */
192 /* XXX --- still unused -- */
193 short f_fp; /* show font preview */
194 char fp_str[8]; /* string to use for font preview */
196 /* XXX --- end unused -- */
200 typedef struct SpaceFile {
201 SpaceLink *next, *prev;
202 ListBase regionbase; /* storage of regions for inactive spaces */
206 struct FileSelectParams *params; /* config and input for file select */
208 struct FileList *files; /* holds the list of files to show */
210 ListBase *folders_prev; /* holds the list of previous directories to show */
211 ListBase *folders_next; /* holds the list of next directories (pushed from previous) to show */
213 /* operator that is invoking fileselect
214 op->exec() will be called on the 'Load' button.
215 if operator provides op->cancel(), then this will be invoked
216 on the cancel button.
218 struct wmOperator *op;
220 struct wmTimer *smoothscroll_timer;
222 struct FileLayout *layout;
224 short recentnr, bookmarknr;
225 short systemnr, pad2;
228 typedef struct SpaceOops {
229 SpaceLink *next, *prev;
230 ListBase regionbase; /* storage of regions for inactive spaces */
234 short blockhandler[8];
236 View2D v2d; /* deprecated, copied to region */
239 struct TreeStore *treestore;
242 char search_string[32];
243 struct TreeStoreElem search_tse;
245 short flag, outlinevis, storeflag, search_flags;
248 typedef struct SpaceImage {
249 SpaceLink *next, *prev;
250 ListBase regionbase; /* storage of regions for inactive spaces */
256 struct ImageUser iuser;
257 struct CurveMapping *cumap;
259 struct Scopes scopes; /* histogram waveform and vectorscope */
260 struct Histogram sample_line_hist; /* sample line histogram */
262 struct bGPdata *gpd; /* grease pencil data */
264 float cursor[2]; /* UV editor 2d cursor */
265 float xof, yof; /* user defined offset, image is centered */
266 float zoom; /* user defined zoom level */
267 float centx, centy; /* storage for offset while render drawing */
269 short curtile; /* the currently active tile of the image when tile is enabled, is kept in sync with the active faces tile */
273 char dt_uv; /* UV draw type */
274 char sticky; /* sticky selection type */
279 typedef struct SpaceNla {
280 struct SpaceLink *next, *prev;
281 ListBase regionbase; /* storage of regions for inactive spaces */
285 short blockhandler[8];
287 short autosnap; /* this uses the same settings as autosnap for Action Editor */
291 struct bDopeSheet *ads;
292 View2D v2d; /* deprecated, copied to region */
295 typedef struct SpaceText {
296 SpaceLink *next, *prev;
297 ListBase regionbase; /* storage of regions for inactive spaces */
301 short blockhandler[8];
308 short lheight; /* user preference */
309 char cwidth, linenrs_tot; /* runtime computed, character width and the number of chars to use when showing line numbers */
317 short live_edit; /* run python while editing, evil */
320 struct rcti txtscroll, txtbar;
322 int wordwrap, doplugins;
324 char findstr[256]; /* ST_MAX_FIND_STR */
325 char replacestr[256]; /* ST_MAX_FIND_STR */
327 short margin_column; /* column number to show right margin at */
330 void *drawcache; /* cache for faster drawing */
333 typedef struct Script {
339 void *py_browsercallback;
342 int flags, lastspace;
343 char scriptname[256]; /* store the script file here so we can re-run it on loading blender, if "Enable Scripts" is on */
346 #define SCRIPT_SET_NULL(_script) _script->py_draw = _script->py_event = _script->py_button = _script->py_browsercallback = _script->py_globaldict = NULL; _script->flags = 0;
348 typedef struct SpaceScript {
349 SpaceLink *next, *prev;
350 ListBase regionbase; /* storage of regions for inactive spaces */
353 struct Script *script;
361 # /* Only store the data array in the cache to avoid constant reallocation. */
362 # /* No need to store when saved. */
363 typedef struct SpaceTimeCache {
364 struct SpaceTimeCache *next, *prev;
368 typedef struct SpaceTime {
369 SpaceLink *next, *prev;
370 ListBase regionbase; /* storage of regions for inactive spaces */
374 View2D v2d; /* deprecated, copied to region */
377 int cache_display, pad;
379 int flag, redraws; /* redraws is deprecated... moved to screen */
383 typedef struct SpaceNode {
384 SpaceLink *next, *prev;
385 ListBase regionbase; /* storage of regions for inactive spaces */
389 short blockhandler[8];
391 View2D v2d; /* deprecated, copied to region */
393 struct ID *id, *from; /* context, no need to save in file? well... pinning... */
394 short flag, menunr; /* menunr: browse id block in header */
398 float xof, yof; /* offset for drawing the backdrop */
399 float zoom, padf; /* zoom for backdrop */
400 float mx, my; /* mousepos for drawing socketless link */
402 struct bNodeTree *nodetree, *edittree;
403 int treetype; /* treetype: as same nodetree->type */
404 short texfrom; /* texfrom object, world or brush */
405 short recalc; /* currently on 0/1, for auto compo */
406 ListBase linkdrag; /* temporary data for modal linking operator */
408 struct bGPdata *gpd; /* grease-pencil data */
412 #define SNODE_BACKDRAW 2
413 #define SNODE_DISPGP 4
414 #define SNODE_USE_ALPHA 8
415 #define SNODE_SHOW_ALPHA 16
416 #define SNODE_AUTO_RENDER 32
419 #define SNODE_TEX_OBJECT 0
420 #define SNODE_TEX_WORLD 1
421 #define SNODE_TEX_BRUSH 2
423 typedef struct SpaceLogic {
424 SpaceLink *next, *prev;
425 ListBase regionbase; /* storage of regions for inactive spaces */
429 short blockhandler[8];
434 struct bGPdata *gpd; /* grease-pencil data */
438 typedef struct SpaceImaSel {
439 SpaceLink *next, *prev;
440 ListBase regionbase; /* storage of regions for inactive spaces */
444 short blockhandler[8];
446 View2D v2d; /* deprecated, copied to region */
448 struct FileList *files;
450 /* specific stuff for drawing */
455 short type, menu, flag, sort;
465 struct rcti viewrect;
466 struct rcti bookmarkrect;
468 float scrollpos; /* current position of scrollhandle */
469 float scrollheight; /* height of the scrollhandle */
470 float scrollarea; /* scroll region, scrollpos is from 0 to scrollarea */
473 unsigned short retval; /* event */
478 short active_bookmark;
485 /* one day we'll add unions to dna */
486 void (*returnfunc)(char *);
487 void (*returnfunc_event)(unsigned short);
488 void (*returnfunc_args)(char *, void *, void *);
491 short *menup; /* pointer to menu result or ID browsing */
492 char *pupmenu; /* optional menu in header */
498 typedef struct ConsoleLine {
499 struct ConsoleLine *next, *prev;
501 /* keep these 3 vars so as to share free, realloc funcs */
502 int len_alloc; /* allocated length */
503 int len; /* real len - strlen() */
507 int type; /* only for use when in the 'scrollback' listbase */
510 /* ConsoleLine.type */
512 CONSOLE_LINE_OUTPUT=0,
514 CONSOLE_LINE_INFO, /* autocomp feedback */
518 typedef struct SpaceConsole {
519 SpaceLink *next, *prev;
520 ListBase regionbase; /* storage of regions for inactive spaces */
522 float blockscale; // XXX are these needed?
524 short blockhandler[8]; // XXX are these needed?
529 ListBase scrollback; /* ConsoleLine; output */
530 ListBase history; /* ConsoleLine; command history, current edited line is the first */
532 char language[32]; /* multiple consoles are possible, not just python */
538 typedef struct SpaceUserPref {
539 SpaceLink *next, *prev;
540 ListBase regionbase; /* storage of regions for inactive spaces */
545 char filter[64]; /* search term for filtering in the UI */
549 typedef struct SpaceSound {
550 struct SpaceLink *next, *prev;
551 ListBase regionbase; /* storage of regions for inactive spaces */
554 struct ScrArea *area;
558 struct bSound *sound;
565 /* view3d Now in DNA_view3d_types.h */
569 /* **************** SPACE DEFINES ********************* */
571 /* button defines (deprecated) */
572 /* warning: the values of these defines are used in sbuts->tabs[8] */
573 /* sbuts->mainb new */
574 #define CONTEXT_SCENE 0
575 #define CONTEXT_OBJECT 1
576 #define CONTEXT_TYPES 2
577 #define CONTEXT_SHADING 3
578 #define CONTEXT_EDITING 4
579 #define CONTEXT_SCRIPT 5
580 #define CONTEXT_LOGIC 6
582 /* sbuts->mainb old (deprecated) */
589 #define BUTS_RENDER 6
592 #define BUTS_FPAINT 9
593 #define BUTS_RADIO 10
594 #define BUTS_SCRIPT 11
595 #define BUTS_SOUND 12
596 #define BUTS_CONSTRAINT 13
597 #define BUTS_EFFECTS 14
599 /* sbuts->tab new (deprecated) */
600 #define TAB_SHADING_MAT 0
601 #define TAB_SHADING_TEX 1
602 #define TAB_SHADING_RAD 2
603 #define TAB_SHADING_WORLD 3
604 #define TAB_SHADING_LAMP 4
606 #define TAB_OBJECT_OBJECT 0
607 #define TAB_OBJECT_PHYSICS 1
608 #define TAB_OBJECT_PARTICLE 2
610 #define TAB_SCENE_RENDER 0
611 #define TAB_SCENE_WORLD 1
612 #define TAB_SCENE_ANIM 2
613 #define TAB_SCENE_SOUND 3
614 #define TAB_SCENE_SEQUENCER 4
616 /* buts->mainb new */
617 #define BCONTEXT_RENDER 0
618 #define BCONTEXT_SCENE 1
619 #define BCONTEXT_WORLD 2
620 #define BCONTEXT_OBJECT 3
621 #define BCONTEXT_DATA 4
622 #define BCONTEXT_MATERIAL 5
623 #define BCONTEXT_TEXTURE 6
624 #define BCONTEXT_PARTICLE 7
625 #define BCONTEXT_PHYSICS 8
626 #define BCONTEXT_BONE 9
627 #define BCONTEXT_MODIFIER 10
628 #define BCONTEXT_CONSTRAINT 12
629 #define BCONTEXT_BONE_CONSTRAINT 13
630 #define BCONTEXT_TOT 14
634 #define SB_PIN_CONTEXT 2
635 //#define SB_WORLD_TEX 4 //not used anymore
636 //#define SB_BRUSH_TEX 8 //not used anymore
637 #define SB_SHADING_CONTEXT 16
639 /* sbuts->texture_context */
640 #define SB_TEXC_MAT_OR_LAMP 0
641 #define SB_TEXC_WORLD 1
642 #define SB_TEXC_BRUSH 2
643 #define SB_TEXC_PARTICLES 3
647 #define BUT_HORIZONTAL 1
648 #define BUT_VERTICAL 2
652 #define BUTS_SENS_SEL 1
653 #define BUTS_SENS_ACT 2
654 #define BUTS_SENS_LINK 4
655 #define BUTS_CONT_SEL 8
656 #define BUTS_CONT_ACT 16
657 #define BUTS_CONT_LINK 32
658 #define BUTS_ACT_SEL 64
659 #define BUTS_ACT_ACT 128
660 #define BUTS_ACT_LINK 256
661 #define BUTS_SENS_STATE 512
662 #define BUTS_ACT_STATE 1024
663 #define BUTS_CONT_INIT_STATE 2048
665 /* FileSelectParams.display */
666 enum FileDisplayTypeE {
667 FILE_SHORTDISPLAY = 1,
672 /* FileSelectParams.sort */
681 /* these values need to be hardcoded in structs, dna does not recognize defines */
682 /* also defined in BKE */
683 #define FILE_MAXDIR 160
684 #define FILE_MAXFILE 80
689 #define FILE_BLENDER 8 /* dont display relative paths */
690 #define FILE_SPECIAL 9
692 #define FILE_LOADLIB 1
694 #define FILE_LOADFONT 3
695 /* filesel op property -> action */
696 #define FILE_OPENFILE 0
699 /* sfile->params->flag and simasel->flag */
700 #define FILE_SHOWSHORT (1<<0)
701 #define FILE_RELPATH (1<<1) /* was FILE_STRINGCODE */
702 #define FILE_LINK (1<<2)
703 #define FILE_HIDE_DOT (1<<3)
704 #define FILE_AUTOSELECT (1<<4)
705 #define FILE_ACTIVELAY (1<<5)
706 /* #define FILE_ATCURSOR (1<<6) */ /* deprecated */
707 #define FILE_DIRSEL_ONLY (1<<7)
708 #define FILE_FILTER (1<<8)
709 #define FILE_BOOKMARKS (1<<9)
710 #define FILE_GROUP_INSTANCE (1<<10)
713 /* files in filesel list: file types */
714 #define BLENDERFILE (1<<2)
715 #define BLENDERFILE_BACKUP (1<<3)
716 #define IMAGEFILE (1<<4)
717 #define MOVIEFILE (1<<5)
718 #define PYSCRIPTFILE (1<<6)
719 #define FTFONTFILE (1<<7)
720 #define SOUNDFILE (1<<8)
721 #define TEXTFILE (1<<9)
722 #define MOVIEFILE_ICON (1<<10) /* movie file that preview can't load */
723 #define FOLDERFILE (1<<11) /* represents folders for filtering */
724 #define BTXFILE (1<<12)
725 #define COLLADAFILE (1<<13)
726 #define OPERATORFILE (1<<14) /* from filter_glob operator property */
729 /* Selection Flags in filesel: struct direntry, unsigned char selflag */
730 #define ACTIVE_FILE (1<<1)
731 #define HILITED_FILE (1<<2)
732 #define SELECTED_FILE (1<<3)
733 #define EDITING_FILE (1<<4)
735 /* SpaceImage->dt_uv */
736 #define SI_UVDT_OUTLINE 0
737 #define SI_UVDT_DASH 1
738 #define SI_UVDT_BLACK 2
739 #define SI_UVDT_WHITE 3
741 /* SpaceImage->dt_uvstretch */
742 #define SI_UVDT_STRETCH_ANGLE 0
743 #define SI_UVDT_STRETCH_AREA 1
745 /* SpaceImage->sticky
746 * Note DISABLE should be 0, however would also need to re-arrange icon order,
747 * also, sticky loc is the default mode so this means we dont need to 'do_versons' */
748 #define SI_STICKY_LOC 0
749 #define SI_STICKY_DISABLE 1
750 #define SI_STICKY_VERTEX 2
752 /* SpaceImage->flag */
753 #define SI_BE_SQUARE (1<<0)
754 #define SI_EDITTILE (1<<1)
755 #define SI_CLIP_UV (1<<2)
756 #define SI_DRAWTOOL (1<<3)
757 #define SI_NO_DRAWFACES (1<<4)
758 #define SI_DRAWSHADOW (1<<5)
759 #define SI_SELACTFACE (1<<6) /* deprecated */
760 #define SI_DEPRECATED2 (1<<7)
761 #define SI_DEPRECATED3 (1<<8) /* stick UV selection to mesh vertex (UVs wont always be touching) */
762 #define SI_COORDFLOATS (1<<9)
763 #define SI_PIXELSNAP (1<<10)
764 #define SI_LIVE_UNWRAP (1<<11)
765 #define SI_USE_ALPHA (1<<12)
766 #define SI_SHOW_ALPHA (1<<13)
767 #define SI_SHOW_ZBUF (1<<14)
768 /* next two for render window dislay */
769 #define SI_PREVSPACE (1<<15)
770 #define SI_FULLWINDOW (1<<16)
771 #define SI_DEPRECATED4 (1<<17)
772 #define SI_DEPRECATED5 (1<<18)
773 /* this means that the image is drawn until it reaches the view edge,
774 * in the image view, its unrelated to the 'tile' mode for texface */
775 #define SI_DRAW_TILE (1<<19)
776 #define SI_SMOOTH_UV (1<<20)
777 #define SI_DRAW_STRETCH (1<<21)
778 #define SI_DISPGP (1<<22)
779 #define SI_DRAW_OTHER (1<<23)
781 #define SI_COLOR_CORRECTION (1<<24)
783 /* SpaceIpo->flag (Graph Editor Settings) */
784 /* OLD DEPRECEATED SETTING */
785 #define SIPO_LOCK_VIEW (1<<0)
786 /* don't merge keyframes on the same frame after a transform */
787 #define SIPO_NOTRANSKEYCULL (1<<1)
788 /* don't show any keyframe handles at all */
789 #define SIPO_NOHANDLES (1<<2)
790 /* don't show current frame number beside indicator line */
791 #define SIPO_NODRAWCFRANUM (1<<3)
792 /* show timing in seconds instead of frames */
793 #define SIPO_DRAWTIME (1<<4)
794 /* only show keyframes for selected F-Curves */
795 #define SIPO_SELCUVERTSONLY (1<<5)
796 /* draw names of F-Curves beside the respective curves */
797 /* NOTE: currently not used */
798 #define SIPO_DRAWNAMES (1<<6)
799 /* show sliders in channels list */
800 #define SIPO_SLIDERS (1<<7)
801 /* don't show the horizontal component of the cursor */
802 #define SIPO_NODRAWCURSOR (1<<8)
803 /* only show handles of selected keyframes */
804 #define SIPO_SELVHANDLESONLY (1<<9)
805 /* temporary flag to force channel selections to be synced with main */
806 #define SIPO_TEMP_NEEDCHANSYNC (1<<10)
807 /* don't perform realtime updates */
808 #define SIPO_NOREALTIMEUPDATES (1<<11)
809 /* don't draw curves with AA ("beauty-draw") for performance */
810 #define SIPO_BEAUTYDRAW_OFF (1<<12)
812 /* SpaceIpo->mode (Graph Editor Mode) */
814 /* all animation curves (from all over Blender) */
815 SIPO_MODE_ANIMATION = 0,
820 /* SpaceText flags (moved from DNA_text_types.h) */
822 #define ST_SCROLL_SELECT 0x0001 // scrollable
823 #define ST_CLEAR_NAMESPACE 0x0010 // clear namespace after script
824 // execution (see BPY_main.c)
825 #define ST_FIND_WRAP 0x0020
826 #define ST_FIND_ALL 0x0040
827 #define ST_SHOW_MARGIN 0x0080
828 #define ST_MATCH_CASE 0x0100
831 /* stext->findstr/replacestr */
832 #define ST_MAX_FIND_STR 256
834 /* SpaceOops->flag */
835 #define SO_TESTBLOCKS 1
836 #define SO_NEWSELECTED 2
837 #define SO_HIDE_RESTRICTCOLS 4
838 #define SO_HIDE_KEYINGSETINFO 8
840 /* SpaceOops->outlinevis */
841 #define SO_ALL_SCENES 0
842 #define SO_CUR_SCENE 1
844 #define SO_SELECTED 3
846 #define SO_SAME_TYPE 5
848 #define SO_LIBRARIES 7
849 #define SO_VERSE_SESSION 8
850 #define SO_VERSE_MS 9
851 #define SO_SEQUENCE 10
852 #define SO_DATABLOCKS 11
853 #define SO_USERDEF 12
856 /* SpaceOops->storeflag */
857 #define SO_TREESTORE_CLEANUP 1
858 /* if set, it allows redraws. gets set for some allqueue events */
859 #define SO_TREESTORE_REDRAW 2
861 /* outliner search flags (SpaceOops->search_flags) */
862 #define SO_FIND_CASE_SENSITIVE (1<<0)
863 #define SO_FIND_COMPLETE (1<<1)
865 /* headerbuttons: 450-499 */
867 #define B_IMASELHOME 451
868 #define B_IMASELREMOVEBIP 452
871 /* flags (1<<0), (1<<1), and (1<<3) are depreceated flags from old blenders */
872 /* draw timing in seconds instead of frames */
873 #define SNLA_DRAWTIME (1<<2)
874 /* don't draw frame number beside frame indicator */
875 #define SNLA_NODRAWCFRANUM (1<<4)
876 /* don't draw influence curves on strips */
877 #define SNLA_NOSTRIPCURVES (1<<5)
878 /* don't perform realtime updates */
879 #define SNLA_NOREALTIMEUPDATES (1<<6)
882 /* show timing in frames instead of in seconds */
883 #define TIME_DRAWFRAMES 1
884 /* show time indicator box beside the frame number */
885 #define TIME_CFRA_NUM 2
886 /* only keyframes from active/selected channels get shown */
887 #define TIME_ONLYACTSEL 4
889 /* time->redraws (now screen->redraws_flag) */
890 #define TIME_REGION 1
891 #define TIME_ALL_3D_WIN 2
892 #define TIME_ALL_ANIM_WIN 4
893 #define TIME_ALL_BUTS_WIN 8
894 #define TIME_WITH_SEQ_AUDIO 16 // deprecated
896 #define TIME_ALL_IMAGE_WIN 64
897 #define TIME_CONTINUE_PHYSICS 128
898 #define TIME_NODES 256
901 #define TIME_CACHE_DISPLAY 1
902 #define TIME_CACHE_SOFTBODY 2
903 #define TIME_CACHE_PARTICLES 4
904 #define TIME_CACHE_CLOTH 8
905 #define TIME_CACHE_SMOKE 16
906 #define TIME_CACHE_DYNAMICPAINT 32
909 #define SEQ_DRAW_SEQUENCE 0
910 #define SEQ_DRAW_IMG_IMBUF 1
911 #define SEQ_DRAW_IMG_WAVEFORM 2
912 #define SEQ_DRAW_IMG_VECTORSCOPE 3
913 #define SEQ_DRAW_IMG_HISTOGRAM 4
916 #define SEQ_DRAWFRAMES 1
917 #define SEQ_MARKER_TRANS 2
918 #define SEQ_DRAW_COLOR_SEPERATED 4
919 #define SEQ_DRAW_SAFE_MARGINS 8
920 #define SEQ_DRAW_GPENCIL 16
921 #define SEQ_NO_DRAW_CFRANUM 32
924 #define SEQ_VIEW_SEQUENCE 1
925 #define SEQ_VIEW_PREVIEW 2
926 #define SEQ_VIEW_SEQUENCE_PREVIEW 3
928 /* sseq->render_size */
929 #define SEQ_PROXY_RENDER_SIZE_NONE -1
930 #define SEQ_PROXY_RENDER_SIZE_SCENE 0
931 #define SEQ_PROXY_RENDER_SIZE_25 25
932 #define SEQ_PROXY_RENDER_SIZE_50 50
933 #define SEQ_PROXY_RENDER_SIZE_75 75
934 #define SEQ_PROXY_RENDER_SIZE_FULL 100
937 /* space types, moved from DNA_screen_types.h */
938 /* Do NOT change order, append on end. types are hardcoded needed */
960 SPACEICONMAX = SPACE_USERPREF