Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 * $Id$ | 2 * $Id$ |
3 * | 3 * |
4 * ***** BEGIN GPL LICENSE BLOCK ***** | 4 * ***** BEGIN GPL LICENSE BLOCK ***** |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or | 6 * This program is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU General Public License | 7 * modify it under the terms of the GNU General Public License |
8 * as published by the Free Software Foundation; either version 2 | 8 * as published by the Free Software Foundation; either version 2 |
9 * of the License, or (at your option) any later version. | 9 * of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 //{SPACE_IMASEL, "IMAGE_BROWSER", 0, "Image Browser", ""}, | 65 //{SPACE_IMASEL, "IMAGE_BROWSER", 0, "Image Browser", ""}, |
66 {SPACE_SOUND, "AUDIO_WINDOW", 0, "Audio Window", ""}, | 66 {SPACE_SOUND, "AUDIO_WINDOW", 0, "Audio Window", ""}, |
67 {SPACE_ACTION, "DOPESHEET_EDITOR", 0, "DopeSheet Editor", ""}, | 67 {SPACE_ACTION, "DOPESHEET_EDITOR", 0, "DopeSheet Editor", ""}, |
68 {SPACE_NLA, "NLA_EDITOR", 0, "NLA Editor", ""}, | 68 {SPACE_NLA, "NLA_EDITOR", 0, "NLA Editor", ""}, |
69 {SPACE_SCRIPT, "SCRIPTS_WINDOW", 0, "Scripts Window", ""}, | 69 {SPACE_SCRIPT, "SCRIPTS_WINDOW", 0, "Scripts Window", ""}, |
70 {SPACE_TIME, "TIMELINE", 0, "Timeline", ""}, | 70 {SPACE_TIME, "TIMELINE", 0, "Timeline", ""}, |
71 {SPACE_NODE, "NODE_EDITOR", 0, "Node Editor", ""}, | 71 {SPACE_NODE, "NODE_EDITOR", 0, "Node Editor", ""}, |
72 {SPACE_LOGIC, "LOGIC_EDITOR", 0, "Logic Editor", ""}, | 72 {SPACE_LOGIC, "LOGIC_EDITOR", 0, "Logic Editor", ""}, |
73 {SPACE_CONSOLE, "CONSOLE", 0, "Python Console", ""}, | 73 {SPACE_CONSOLE, "CONSOLE", 0, "Python Console", ""}, |
74 {SPACE_USERPREF, "USER_PREFERENCES", 0, "User Preferences", ""}, | 74 {SPACE_USERPREF, "USER_PREFERENCES", 0, "User Preferences", ""}, |
75 {SPACE_CLIP, "CLIP_EDITOR", 0, "Clip Editor", ""}, | |
75 {0, NULL, 0, NULL, NULL}}; | 76 {0, NULL, 0, NULL, NULL}}; |
76 | 77 |
77 static EnumPropertyItem draw_channels_items[] = { | 78 static EnumPropertyItem draw_channels_items[] = { |
78 {0, "COLOR", ICON_IMAGE_RGB, "Color", "Draw image with RGB colors"}, | 79 {0, "COLOR", ICON_IMAGE_RGB, "Color", "Draw image with RGB colors"}, |
79 {SI_USE_ALPHA, "COLOR_ALPHA", ICON_IMAGE_RGB_ALPHA, "Color and Alpha", " Draw image with RGB colors and alpha transparency"}, | 80 {SI_USE_ALPHA, "COLOR_ALPHA", ICON_IMAGE_RGB_ALPHA, "Color and Alpha", " Draw image with RGB colors and alpha transparency"}, |
80 {SI_SHOW_ALPHA, "ALPHA", ICON_IMAGE_ALPHA, "Alpha", "Draw alpha transpar ency channel"}, | 81 {SI_SHOW_ALPHA, "ALPHA", ICON_IMAGE_ALPHA, "Alpha", "Draw alpha transpar ency channel"}, |
81 {SI_SHOW_ZBUF, "Z_BUFFER", ICON_IMAGE_ZDEPTH, "Z-Buffer", | 82 {SI_SHOW_ZBUF, "Z_BUFFER", ICON_IMAGE_ZDEPTH, "Z-Buffer", |
82 "Draw Z-buffer associated with image (mapped from camera clip start to end)"}, | 83 "Draw Z-buffer associated with image (mapped from camera clip start to end)"}, |
83 {0, NULL, 0, NULL, NULL}}; | 84 {0, NULL, 0, NULL, NULL}}; |
84 | 85 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 #include "BKE_colortools.h" | 122 #include "BKE_colortools.h" |
122 #include "BKE_context.h" | 123 #include "BKE_context.h" |
123 #include "BKE_depsgraph.h" | 124 #include "BKE_depsgraph.h" |
124 #include "BKE_paint.h" | 125 #include "BKE_paint.h" |
125 | 126 |
126 #include "ED_image.h" | 127 #include "ED_image.h" |
127 #include "ED_node.h" | 128 #include "ED_node.h" |
128 #include "ED_screen.h" | 129 #include "ED_screen.h" |
129 #include "ED_view3d.h" | 130 #include "ED_view3d.h" |
130 #include "ED_sequencer.h" | 131 #include "ED_sequencer.h" |
132 #include "ED_clip.h" | |
131 | 133 |
132 #include "IMB_imbuf_types.h" | 134 #include "IMB_imbuf_types.h" |
133 | 135 |
134 static StructRNA* rna_Space_refine(struct PointerRNA *ptr) | 136 static StructRNA* rna_Space_refine(struct PointerRNA *ptr) |
135 { | 137 { |
136 SpaceLink *space= (SpaceLink*)ptr->data; | 138 SpaceLink *space= (SpaceLink*)ptr->data; |
137 | 139 |
138 switch(space->spacetype) { | 140 switch(space->spacetype) { |
139 case SPACE_VIEW3D: | 141 case SPACE_VIEW3D: |
140 return &RNA_SpaceView3D; | 142 return &RNA_SpaceView3D; |
(...skipping 26 matching lines...) Expand all Loading... | |
167 case SPACE_TIME: | 169 case SPACE_TIME: |
168 return &RNA_SpaceTimeline; | 170 return &RNA_SpaceTimeline; |
169 case SPACE_NODE: | 171 case SPACE_NODE: |
170 return &RNA_SpaceNodeEditor; | 172 return &RNA_SpaceNodeEditor; |
171 case SPACE_LOGIC: | 173 case SPACE_LOGIC: |
172 return &RNA_SpaceLogicEditor; | 174 return &RNA_SpaceLogicEditor; |
173 case SPACE_CONSOLE: | 175 case SPACE_CONSOLE: |
174 return &RNA_SpaceConsole; | 176 return &RNA_SpaceConsole; |
175 case SPACE_USERPREF: | 177 case SPACE_USERPREF: |
176 return &RNA_SpaceUserPreferences; | 178 return &RNA_SpaceUserPreferences; |
179 case SPACE_CLIP: | |
180 return &RNA_SpaceClipEditor; | |
177 default: | 181 default: |
178 return &RNA_Space; | 182 return &RNA_Space; |
179 } | 183 } |
180 } | 184 } |
181 | 185 |
182 static ScrArea *rna_area_from_space(PointerRNA *ptr) | 186 static ScrArea *rna_area_from_space(PointerRNA *ptr) |
183 { | 187 { |
184 bScreen *sc = (bScreen*)ptr->id.data; | 188 bScreen *sc = (bScreen*)ptr->id.data; |
185 SpaceLink *link= (SpaceLink*)ptr->data; | 189 SpaceLink *link= (SpaceLink*)ptr->data; |
186 ScrArea *sa; | 190 ScrArea *sa; |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
842 BGpic *bgpic= (BGpic *)ptr->data; | 846 BGpic *bgpic= (BGpic *)ptr->data; |
843 return 1.0f-bgpic->blend; | 847 return 1.0f-bgpic->blend; |
844 } | 848 } |
845 | 849 |
846 static void rna_BackgroundImage_opacity_set(PointerRNA *ptr, float value) | 850 static void rna_BackgroundImage_opacity_set(PointerRNA *ptr, float value) |
847 { | 851 { |
848 BGpic *bgpic= (BGpic *)ptr->data; | 852 BGpic *bgpic= (BGpic *)ptr->data; |
849 bgpic->blend = 1.0f - value; | 853 bgpic->blend = 1.0f - value; |
850 } | 854 } |
851 | 855 |
856 static BGpic *rna_BackgroundImage_add(View3D *v3d) | |
brechtvl
2011/10/21 13:53:39
Please deduplicate this code with background_image
nazgul
2011/10/22 15:23:30
Wasn't sure which file is correct to add this func
| |
857 { | |
858 BGpic *bgpic= MEM_callocN(sizeof(BGpic), "Background Image"); | |
859 | |
860 bgpic->size= 5.0; | |
861 bgpic->blend= 0.5; | |
862 bgpic->iuser.fie_ima= 2; | |
863 bgpic->iuser.ok= 1; | |
864 bgpic->view= 0; /* 0 for all */ | |
865 | |
866 BLI_addtail(&v3d->bgpicbase, bgpic); | |
867 | |
868 WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
869 | |
870 return bgpic; | |
871 } | |
872 | |
852 /* Space Node Editor */ | 873 /* Space Node Editor */ |
853 | 874 |
854 static int rna_SpaceNodeEditor_node_tree_poll(PointerRNA *ptr, PointerRNA value) | 875 static int rna_SpaceNodeEditor_node_tree_poll(PointerRNA *ptr, PointerRNA value) |
855 { | 876 { |
856 SpaceNode *snode= (SpaceNode*)ptr->data; | 877 SpaceNode *snode= (SpaceNode*)ptr->data; |
857 bNodeTree *ntree= (bNodeTree*)value.data; | 878 bNodeTree *ntree= (bNodeTree*)value.data; |
858 ········ | 879 ········ |
859 /* exclude group trees, only trees of the active type */ | 880 /* exclude group trees, only trees of the active type */ |
860 return (ntree->nodetype==0 && ntree->type == snode->treetype); | 881 return (ntree->nodetype==0 && ntree->type == snode->treetype); |
861 } | 882 } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
914 tmp.identifier = "BRUSH"; | 935 tmp.identifier = "BRUSH"; |
915 tmp.icon = ICON_BRUSH_DATA; | 936 tmp.icon = ICON_BRUSH_DATA; |
916 RNA_enum_item_add(&item, &totitem, &tmp); | 937 RNA_enum_item_add(&item, &totitem, &tmp); |
917 ········ | 938 ········ |
918 RNA_enum_item_end(&item, &totitem); | 939 RNA_enum_item_end(&item, &totitem); |
919 *free = 1; | 940 *free = 1; |
920 | 941 |
921 return item; | 942 return item; |
922 } | 943 } |
923 | 944 |
945 static void rna_SpaceClipEditor_clip_set(PointerRNA *ptr, PointerRNA value) | |
946 { | |
947 SpaceClip *sc= (SpaceClip*)(ptr->data); | |
948 | |
949 ED_space_clip_set(NULL, sc, (MovieClip*)value.data); | |
950 } | |
951 | |
952 static void rna_SpaceClipEditor_clip_mode_update(Main *UNUSED(bmain), Scene *UNU SED(scene), PointerRNA *ptr) | |
953 { | |
954 SpaceClip *sc= (SpaceClip*)(ptr->data); | |
955 | |
956 sc->scopes.ok= 0; | |
957 } | |
958 | |
959 static void rna_SpaceClipEditor_lock_selection_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | |
960 { | |
961 SpaceClip *sc= (SpaceClip*)(ptr->data); | |
962 | |
963 sc->xlockof= 0.f; | |
964 sc->ylockof= 0.f; | |
965 } | |
966 | |
967 static void rna_SpaceClipEditor_view_type_update(Main *UNUSED(bmain), Scene *UNU SED(scene), PointerRNA *ptr) | |
968 { | |
969 ScrArea *sa= rna_area_from_space(ptr); | |
970 ED_area_tag_refresh(sa); | |
971 } | |
972 | |
924 #else | 973 #else |
925 | 974 |
926 static void rna_def_space(BlenderRNA *brna) | 975 static void rna_def_space(BlenderRNA *brna) |
927 { | 976 { |
928 StructRNA *srna; | 977 StructRNA *srna; |
929 PropertyRNA *prop; | 978 PropertyRNA *prop; |
930 ········ | 979 ········ |
931 srna= RNA_def_struct(brna, "Space", NULL); | 980 srna= RNA_def_struct(brna, "Space", NULL); |
932 RNA_def_struct_sdna(srna, "SpaceLink"); | 981 RNA_def_struct_sdna(srna, "SpaceLink"); |
933 RNA_def_struct_ui_text(srna, "Space", "Space data for a screen area"); | 982 RNA_def_struct_ui_text(srna, "Space", "Space data for a screen area"); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1129 /*{(1<<RV3D_VIEW_BACK)|(1<<RV3D_VIEW_FRONT), "BACK_FRONT", 0, "B ack/Front", ""},*/ | 1178 /*{(1<<RV3D_VIEW_BACK)|(1<<RV3D_VIEW_FRONT), "BACK_FRONT", 0, "B ack/Front", ""},*/ |
1130 {0, "", 0, "Z Axis", ""}, | 1179 {0, "", 0, "Z Axis", ""}, |
1131 {(1<<RV3D_VIEW_BOTTOM), "BOTTOM", 0, "Bottom", "Show background image in bottom view"}, | 1180 {(1<<RV3D_VIEW_BOTTOM), "BOTTOM", 0, "Bottom", "Show background image in bottom view"}, |
1132 {(1<<RV3D_VIEW_TOP), "TOP", 0, "Top", "Show background image in top view"}, | 1181 {(1<<RV3D_VIEW_TOP), "TOP", 0, "Top", "Show background image in top view"}, |
1133 /*{(1<<RV3D_VIEW_BOTTOM)|(1<<RV3D_VIEW_TOP), "BOTTOM_TOP", 0, "T op/Bottom", ""},*/ | 1182 /*{(1<<RV3D_VIEW_BOTTOM)|(1<<RV3D_VIEW_TOP), "BOTTOM_TOP", 0, "T op/Bottom", ""},*/ |
1134 {0, "", 0, "Other", ""}, | 1183 {0, "", 0, "Other", ""}, |
1135 {0, "ALL", 0, "All Views", "Show background image in all views"} , | 1184 {0, "ALL", 0, "All Views", "Show background image in all views"} , |
1136 {(1<<RV3D_VIEW_CAMERA), "CAMERA", 0, "Camera", "Show background image in camera view"}, | 1185 {(1<<RV3D_VIEW_CAMERA), "CAMERA", 0, "Camera", "Show background image in camera view"}, |
1137 {0, NULL, 0, NULL, NULL}}; | 1186 {0, NULL, 0, NULL, NULL}}; |
1138 | 1187 |
1188 static EnumPropertyItem bgpic_source_items[] = { | |
1189 {V3D_BGPIC_IMAGE, "IMAGE", 0, "Image", ""}, | |
1190 {V3D_BGPIC_MOVIE, "MOVIE", 0, "Movie", ""}, | |
1191 {0, NULL, 0, NULL, NULL} | |
1192 }; | |
1193 | |
1139 srna= RNA_def_struct(brna, "BackgroundImage", NULL); | 1194 srna= RNA_def_struct(brna, "BackgroundImage", NULL); |
1140 RNA_def_struct_sdna(srna, "BGpic"); | 1195 RNA_def_struct_sdna(srna, "BGpic"); |
1141 RNA_def_struct_ui_text(srna, "Background Image", "Image and settings for display in the 3d View background"); | 1196 RNA_def_struct_ui_text(srna, "Background Image", "Image and settings for display in the 3d View background"); |
1142 | 1197 |
1198 prop= RNA_def_property(srna, "source", PROP_ENUM, PROP_NONE); | |
1199 RNA_def_property_enum_sdna(prop, NULL, "source"); | |
1200 RNA_def_property_enum_items(prop, bgpic_source_items); | |
1201 RNA_def_property_ui_text(prop, "Background Source", "Data source used fo r background"); | |
1202 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1203 | |
1143 prop= RNA_def_property(srna, "image", PROP_POINTER, PROP_NONE); | 1204 prop= RNA_def_property(srna, "image", PROP_POINTER, PROP_NONE); |
1144 RNA_def_property_pointer_sdna(prop, NULL, "ima"); | 1205 RNA_def_property_pointer_sdna(prop, NULL, "ima"); |
1145 RNA_def_property_ui_text(prop, "Image", "Image displayed and edited in t his space"); | 1206 RNA_def_property_ui_text(prop, "Image", "Image displayed and edited in t his space"); |
1146 RNA_def_property_flag(prop, PROP_EDITABLE); | 1207 RNA_def_property_flag(prop, PROP_EDITABLE); |
1147 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1208 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1148 | 1209 |
1210 prop= RNA_def_property(srna, "clip", PROP_POINTER, PROP_NONE); | |
1211 RNA_def_property_pointer_sdna(prop, NULL, "clip"); | |
1212 RNA_def_property_ui_text(prop, "MovieClip", "Movie clip displayed and ed ited in this space"); | |
1213 RNA_def_property_flag(prop, PROP_EDITABLE); | |
1214 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1215 | |
1149 prop= RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE); | 1216 prop= RNA_def_property(srna, "image_user", PROP_POINTER, PROP_NONE); |
1150 RNA_def_property_flag(prop, PROP_NEVER_NULL); | 1217 RNA_def_property_flag(prop, PROP_NEVER_NULL); |
1151 RNA_def_property_pointer_sdna(prop, NULL, "iuser"); | 1218 RNA_def_property_pointer_sdna(prop, NULL, "iuser"); |
1152 RNA_def_property_ui_text(prop, "Image User", "Parameters defining which layer, pass and frame of the image is displayed"); | 1219 RNA_def_property_ui_text(prop, "Image User", "Parameters defining which layer, pass and frame of the image is displayed"); |
1153 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1220 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1221 | |
1222 prop= RNA_def_property(srna, "clip_user", PROP_POINTER, PROP_NONE); | |
1223 RNA_def_property_flag(prop, PROP_NEVER_NULL); | |
1224 RNA_def_property_struct_type(prop, "MovieClipUser"); | |
1225 RNA_def_property_pointer_sdna(prop, NULL, "cuser"); | |
1226 RNA_def_property_ui_text(prop, "Clip User", "Parameters defining which f rame of the movie clip is displayed"); | |
1227 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1154 ········ | 1228 ········ |
1155 prop= RNA_def_property(srna, "offset_x", PROP_FLOAT, PROP_NONE); | 1229 prop= RNA_def_property(srna, "offset_x", PROP_FLOAT, PROP_NONE); |
1156 RNA_def_property_float_sdna(prop, NULL, "xof"); | 1230 RNA_def_property_float_sdna(prop, NULL, "xof"); |
1157 RNA_def_property_ui_text(prop, "X Offset", "Offset image horizontally fr om the world origin"); | 1231 RNA_def_property_ui_text(prop, "X Offset", "Offset image horizontally fr om the world origin"); |
1158 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1232 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1159 ········ | 1233 ········ |
1160 prop= RNA_def_property(srna, "offset_y", PROP_FLOAT, PROP_NONE); | 1234 prop= RNA_def_property(srna, "offset_y", PROP_FLOAT, PROP_NONE); |
1161 RNA_def_property_float_sdna(prop, NULL, "yof"); | 1235 RNA_def_property_float_sdna(prop, NULL, "yof"); |
1162 RNA_def_property_ui_text(prop, "Y Offset", "Offset image vertically from the world origin"); | 1236 RNA_def_property_ui_text(prop, "Y Offset", "Offset image vertically from the world origin"); |
1163 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1237 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
(...skipping 15 matching lines...) Expand all Loading... | |
1179 RNA_def_property_enum_sdna(prop, NULL, "view"); | 1253 RNA_def_property_enum_sdna(prop, NULL, "view"); |
1180 RNA_def_property_enum_items(prop, bgpic_axis_items); | 1254 RNA_def_property_enum_items(prop, bgpic_axis_items); |
1181 RNA_def_property_ui_text(prop, "Image Axis", "The axis to display the im age on"); | 1255 RNA_def_property_ui_text(prop, "Image Axis", "The axis to display the im age on"); |
1182 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1256 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1183 | 1257 |
1184 prop= RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); | 1258 prop= RNA_def_property(srna, "show_expanded", PROP_BOOLEAN, PROP_NONE); |
1185 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_BGPIC_EXPANDED); | 1259 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_BGPIC_EXPANDED); |
1186 RNA_def_property_ui_text(prop, "Show Expanded", "Show the expanded in th e user interface"); | 1260 RNA_def_property_ui_text(prop, "Show Expanded", "Show the expanded in th e user interface"); |
1187 RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); | 1261 RNA_def_property_ui_icon(prop, ICON_TRIA_RIGHT, 1); |
1188 | 1262 |
1263 prop= RNA_def_property(srna, "use_camera_clip", PROP_BOOLEAN, PROP_NONE) ; | |
1264 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_BGPIC_CAMERACLIP); | |
1265 RNA_def_property_ui_text(prop, "Camera Clip", "Use movie clip from activ e scene camera"); | |
1266 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1267 } | |
1268 | |
1269 static void rna_def_backgroundImages(BlenderRNA *brna, PropertyRNA *cprop) | |
1270 { | |
1271 StructRNA *srna; | |
1272 FunctionRNA *func; | |
1273 PropertyRNA *parm; | |
1274 | |
1275 RNA_def_property_srna(cprop, "BackgroundImages"); | |
1276 srna= RNA_def_struct(brna, "BackgroundImages", NULL); | |
1277 RNA_def_struct_sdna(srna, "View3D"); | |
1278 RNA_def_struct_ui_text(srna, "Background Images", "Collection of backgro und images"); | |
1279 | |
1280 func= RNA_def_function(srna, "add", "rna_BackgroundImage_add"); | |
1281 RNA_def_function_ui_description(func, "Add new background image"); | |
1282 | |
1283 parm= RNA_def_pointer(func, "image", "BackgroundImage", "", "Image displ ayed as viewport background"); | |
1284 RNA_def_function_return(func, parm); | |
1189 } | 1285 } |
1190 | 1286 |
1191 static void rna_def_space_view3d(BlenderRNA *brna) | 1287 static void rna_def_space_view3d(BlenderRNA *brna) |
1192 { | 1288 { |
1193 StructRNA *srna; | 1289 StructRNA *srna; |
1194 PropertyRNA *prop; | 1290 PropertyRNA *prop; |
1195 const int matrix_dimsize[]= {4, 4}; | 1291 const int matrix_dimsize[]= {4, 4}; |
1196 ················ | 1292 ················ |
1197 static EnumPropertyItem pivot_items[] = { | 1293 static EnumPropertyItem pivot_items[] = { |
1198 {V3D_CENTER, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box C enter", | 1294 {V3D_CENTER, "BOUNDING_BOX_CENTER", ICON_ROTATE, "Bounding Box C enter", |
1199 "Pivot around bounding box center of selected objec t(s)"}, | 1295 "Pivot around bounding box center of selected objec t(s)"}, |
1200 {V3D_CURSOR, "CURSOR", ICON_CURSOR, "3D Cursor", "Pivot around t he 3D cursor"}, | 1296 {V3D_CURSOR, "CURSOR", ICON_CURSOR, "3D Cursor", "Pivot around t he 3D cursor"}, |
1201 {V3D_LOCAL, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, "Indivi dual Origins", "Pivot around each object's own origin"}, | 1297 {V3D_LOCAL, "INDIVIDUAL_ORIGINS", ICON_ROTATECOLLECTION, "Indivi dual Origins", "Pivot around each object's own origin"}, |
1202 {V3D_CENTROID, "MEDIAN_POINT", ICON_ROTATECENTER, "Median Point" , "Pivot around the median point of selected objects"}, | 1298 {V3D_CENTROID, "MEDIAN_POINT", ICON_ROTATECENTER, "Median Point" , "Pivot around the median point of selected objects"}, |
1203 {V3D_ACTIVE, "ACTIVE_ELEMENT", ICON_ROTACTIVE, "Active Element", "Pivot around active object"}, | 1299 {V3D_ACTIVE, "ACTIVE_ELEMENT", ICON_ROTACTIVE, "Active Element", "Pivot around active object"}, |
1204 {0, NULL, 0, NULL, NULL}}; | 1300 {0, NULL, 0, NULL, NULL}}; |
1205 | 1301 |
1206 static EnumPropertyItem rv3d_persp_items[] = { | 1302 static EnumPropertyItem rv3d_persp_items[] = { |
1207 {RV3D_PERSP, "PERSP", 0, "Perspective", ""}, | 1303 {RV3D_PERSP, "PERSP", 0, "Perspective", ""}, |
1208 {RV3D_ORTHO, "ORTHO", 0, "Orthographic", ""}, | 1304 {RV3D_ORTHO, "ORTHO", 0, "Orthographic", ""}, |
1209 {RV3D_CAMOB, "CAMERA", 0, "Camera", ""}, | 1305 {RV3D_CAMOB, "CAMERA", 0, "Camera", ""}, |
1210 {0, NULL, 0, NULL, NULL}}; | 1306 {0, NULL, 0, NULL, NULL}}; |
1211 ········ | 1307 ········ |
1308 static EnumPropertyItem bundle_drawtype_items[] = { | |
1309 {OB_PLAINAXES, "PLAIN_AXES", 0, "Plain Axes", ""}, | |
1310 {OB_ARROWS, "ARROWS", 0, "Arrows", ""}, | |
1311 {OB_SINGLE_ARROW, "SINGLE_ARROW", 0, "Single Arrow", ""}, | |
1312 {OB_CIRCLE, "CIRCLE", 0, "Circle", ""}, | |
1313 {OB_CUBE, "CUBE", 0, "Cube", ""}, | |
1314 {OB_EMPTY_SPHERE, "SPHERE", 0, "Sphere", ""}, | |
1315 {OB_EMPTY_CONE, "CONE", 0, "Cone", ""}, | |
1316 {0, NULL, 0, NULL, NULL}}; | |
1317 ········ | |
1212 srna= RNA_def_struct(brna, "SpaceView3D", "Space"); | 1318 srna= RNA_def_struct(brna, "SpaceView3D", "Space"); |
1213 RNA_def_struct_sdna(srna, "View3D"); | 1319 RNA_def_struct_sdna(srna, "View3D"); |
1214 RNA_def_struct_ui_text(srna, "3D View Space", "3D View space data"); | 1320 RNA_def_struct_ui_text(srna, "3D View Space", "3D View space data"); |
1215 ········ | 1321 ········ |
1216 prop= RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE); | 1322 prop= RNA_def_property(srna, "camera", PROP_POINTER, PROP_NONE); |
1217 RNA_def_property_flag(prop, PROP_EDITABLE); | 1323 RNA_def_property_flag(prop, PROP_EDITABLE); |
1218 RNA_def_property_pointer_sdna(prop, NULL, "camera"); | 1324 RNA_def_property_pointer_sdna(prop, NULL, "camera"); |
1219 RNA_def_property_ui_text(prop, "Camera", "Active camera used in this vie w (when unlocked from the scene's active camera)"); | 1325 RNA_def_property_ui_text(prop, "Camera", "Active camera used in this vie w (when unlocked from the scene's active camera)"); |
1220 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1326 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1221 ········ | 1327 ········ |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1344 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_ZBUF_SELECT); | 1450 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_ZBUF_SELECT); |
1345 RNA_def_property_ui_text(prop, "Occlude Geometry", "Limit selection to v isible (clipped with depth buffer)"); | 1451 RNA_def_property_ui_text(prop, "Occlude Geometry", "Limit selection to v isible (clipped with depth buffer)"); |
1346 RNA_def_property_ui_icon(prop, ICON_ORTHO, 0); | 1452 RNA_def_property_ui_icon(prop, ICON_ORTHO, 0); |
1347 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1453 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1348 | 1454 |
1349 prop= RNA_def_property(srna, "background_images", PROP_COLLECTION, PROP_ NONE); | 1455 prop= RNA_def_property(srna, "background_images", PROP_COLLECTION, PROP_ NONE); |
1350 RNA_def_property_collection_sdna(prop, NULL, "bgpicbase", NULL); | 1456 RNA_def_property_collection_sdna(prop, NULL, "bgpicbase", NULL); |
1351 RNA_def_property_struct_type(prop, "BackgroundImage"); | 1457 RNA_def_property_struct_type(prop, "BackgroundImage"); |
1352 RNA_def_property_ui_text(prop, "Background Images", "List of background images"); | 1458 RNA_def_property_ui_text(prop, "Background Images", "List of background images"); |
1353 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1459 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1460 rna_def_backgroundImages(brna, prop); | |
1354 | 1461 |
1355 prop= RNA_def_property(srna, "show_background_images", PROP_BOOLEAN, PRO P_NONE); | 1462 prop= RNA_def_property(srna, "show_background_images", PROP_BOOLEAN, PRO P_NONE); |
1356 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_DISPBGPICS); | 1463 RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_DISPBGPICS); |
1357 RNA_def_property_ui_text(prop, "Display Background Images", "Display ref erence images behind objects in the 3D View"); | 1464 RNA_def_property_ui_text(prop, "Display Background Images", "Display ref erence images behind objects in the 3D View"); |
1358 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | 1465 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); |
1359 | 1466 |
1360 prop= RNA_def_property(srna, "pivot_point", PROP_ENUM, PROP_NONE); | 1467 prop= RNA_def_property(srna, "pivot_point", PROP_ENUM, PROP_NONE); |
1361 RNA_def_property_enum_sdna(prop, NULL, "around"); | 1468 RNA_def_property_enum_sdna(prop, NULL, "around"); |
1362 RNA_def_property_enum_items(prop, pivot_items); | 1469 RNA_def_property_enum_items(prop, pivot_items); |
1363 RNA_def_property_ui_text(prop, "Pivot Point", "Pivot center for rotation /scaling"); | 1470 RNA_def_property_ui_text(prop, "Pivot Point", "Pivot center for rotation /scaling"); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1429 prop= RNA_def_property(srna, "region_3d", PROP_POINTER, PROP_NONE); | 1536 prop= RNA_def_property(srna, "region_3d", PROP_POINTER, PROP_NONE); |
1430 RNA_def_property_struct_type(prop, "RegionView3D"); | 1537 RNA_def_property_struct_type(prop, "RegionView3D"); |
1431 RNA_def_property_pointer_funcs(prop, "rna_SpaceView3D_region_3d_get", NU LL, NULL, NULL); | 1538 RNA_def_property_pointer_funcs(prop, "rna_SpaceView3D_region_3d_get", NU LL, NULL, NULL); |
1432 RNA_def_property_ui_text(prop, "3D Region", "3D region in this space, in case of quad view the camera region"); | 1539 RNA_def_property_ui_text(prop, "3D Region", "3D region in this space, in case of quad view the camera region"); |
1433 | 1540 |
1434 prop= RNA_def_property(srna, "region_quadview", PROP_POINTER, PROP_NONE) ; | 1541 prop= RNA_def_property(srna, "region_quadview", PROP_POINTER, PROP_NONE) ; |
1435 RNA_def_property_struct_type(prop, "RegionView3D"); | 1542 RNA_def_property_struct_type(prop, "RegionView3D"); |
1436 RNA_def_property_pointer_funcs(prop, "rna_SpaceView3D_region_quadview_ge t", NULL, NULL, NULL); | 1543 RNA_def_property_pointer_funcs(prop, "rna_SpaceView3D_region_quadview_ge t", NULL, NULL, NULL); |
1437 RNA_def_property_ui_text(prop, "Quad View Region", "3D region that defin es the quad view settings"); | 1544 RNA_def_property_ui_text(prop, "Quad View Region", "3D region that defin es the quad view settings"); |
1438 | 1545 |
1546 prop= RNA_def_property(srna, "show_reconstruction", PROP_BOOLEAN, PROP_N ONE); | |
1547 RNA_def_property_boolean_sdna(prop, NULL, "flag2", V3D_SHOW_RECONSTRUCTI ON); | |
1548 RNA_def_property_ui_text(prop, "Show Reconstruction", "Display reconstru ction data from active movie clip"); | |
1549 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1550 | |
1551 prop= RNA_def_property(srna, "bundle_draw_size", PROP_FLOAT, PROP_NONE); | |
1552 RNA_def_property_range(prop, 0.0, FLT_MAX); | |
1553 RNA_def_property_float_sdna(prop, NULL, "bundle_size"); | |
1554 RNA_def_property_ui_text(prop, "Bundle Size", "Display size of bundles f rom reconstructed data"); | |
1555 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1556 | |
1557 prop= RNA_def_property(srna, "bundle_draw_type", PROP_ENUM, PROP_NONE); | |
1558 RNA_def_property_enum_sdna(prop, NULL, "bundle_drawtype"); | |
1559 RNA_def_property_enum_items(prop, bundle_drawtype_items); | |
1560 RNA_def_property_ui_text(prop, "Bundle Display Type", "Viewport display style for bundles"); | |
1561 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1562 | |
1563 prop= RNA_def_property(srna, "show_camera_path", PROP_BOOLEAN, PROP_NONE ); | |
1564 RNA_def_property_boolean_sdna(prop, NULL, "flag2", V3D_SHOW_CAMERAPATH); | |
1565 RNA_def_property_ui_text(prop, "Show Camera Path", "Show reconstructed p ath of ameraip"); | |
brechtvl
2011/10/21 13:53:39
ameraip => camera
| |
1566 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1567 | |
1568 prop= RNA_def_property(srna, "show_bundle_name", PROP_BOOLEAN, PROP_NONE ); | |
1569 RNA_def_property_boolean_sdna(prop, NULL, "flag2", V3D_SHOW_BUNDLENAME); | |
1570 RNA_def_property_ui_text(prop, "Show Bundle Name", "Show names for bundl e objects"); | |
1571 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); | |
1572 | |
1439 /* region */ | 1573 /* region */ |
1440 | 1574 |
1441 srna= RNA_def_struct(brna, "RegionView3D", NULL); | 1575 srna= RNA_def_struct(brna, "RegionView3D", NULL); |
1442 RNA_def_struct_sdna(srna, "RegionView3D"); | 1576 RNA_def_struct_sdna(srna, "RegionView3D"); |
1443 RNA_def_struct_ui_text(srna, "3D View Region", "3D View region data"); | 1577 RNA_def_struct_ui_text(srna, "3D View Region", "3D View region data"); |
1444 | 1578 |
1445 prop= RNA_def_property(srna, "lock_rotation", PROP_BOOLEAN, PROP_NONE); | 1579 prop= RNA_def_property(srna, "lock_rotation", PROP_BOOLEAN, PROP_NONE); |
1446 RNA_def_property_boolean_sdna(prop, NULL, "viewlock", RV3D_LOCKED); | 1580 RNA_def_property_boolean_sdna(prop, NULL, "viewlock", RV3D_LOCKED); |
1447 RNA_def_property_ui_text(prop, "Lock", "Lock view rotation in side views "); | 1581 RNA_def_property_ui_text(prop, "Lock", "Lock view rotation in side views "); |
1448 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, "rna_RegionView3 D_quadview_update"); | 1582 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, "rna_RegionView3 D_quadview_update"); |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2606 RNA_def_property_ui_text(prop, "Show Linked to Actuator", "Show linked o bjects to the actuator"); | 2740 RNA_def_property_ui_text(prop, "Show Linked to Actuator", "Show linked o bjects to the actuator"); |
2607 RNA_def_property_update(prop, NC_LOGIC, NULL); | 2741 RNA_def_property_update(prop, NC_LOGIC, NULL); |
2608 | 2742 |
2609 prop= RNA_def_property(srna, "show_actuators_active_states", PROP_BOOLEA N, PROP_NONE); | 2743 prop= RNA_def_property(srna, "show_actuators_active_states", PROP_BOOLEA N, PROP_NONE); |
2610 RNA_def_property_boolean_sdna(prop, NULL, "scaflag", BUTS_ACT_STATE); | 2744 RNA_def_property_boolean_sdna(prop, NULL, "scaflag", BUTS_ACT_STATE); |
2611 RNA_def_property_ui_text(prop, "Show Active States", "Show only actuator s connected to active states"); | 2745 RNA_def_property_ui_text(prop, "Show Active States", "Show only actuator s connected to active states"); |
2612 RNA_def_property_update(prop, NC_LOGIC, NULL); | 2746 RNA_def_property_update(prop, NC_LOGIC, NULL); |
2613 | 2747 |
2614 } | 2748 } |
2615 | 2749 |
2750 static void rna_def_space_clip(BlenderRNA *brna) | |
2751 { | |
2752 StructRNA *srna; | |
2753 PropertyRNA *prop; | |
2754 | |
2755 static EnumPropertyItem mode_items[] = { | |
2756 {SC_MODE_TRACKING, "TRACKING", ICON_ANIM_DATA, "Tracking", "Show tracking and solving tools"}, | |
2757 {SC_MODE_RECONSTRUCTION, "RECONSTRUCTION", ICON_SNAP_FACE, "Reco nstruction", "Show tracking/reconstruction tools"}, | |
2758 {SC_MODE_DISTORTION, "DISTORTION", ICON_GRID, "Distortion", "Sho w distortion tools"}, | |
2759 {0, NULL, 0, NULL, NULL}}; | |
2760 | |
2761 static EnumPropertyItem view_items[] = { | |
2762 {SC_VIEW_CLIP, "CLIP", ICON_SEQUENCE, "Clip", "Show editing clip preview"}, | |
2763 {SC_VIEW_GRAPH, "GRAPH", ICON_IPO, "Graph", "Show graph view for active element"}, | |
2764 {0, NULL, 0, NULL, NULL}}; | |
2765 | |
2766 srna= RNA_def_struct(brna, "SpaceClipEditor", "Space"); | |
2767 RNA_def_struct_sdna(srna, "SpaceClip"); | |
2768 RNA_def_struct_ui_text(srna, "Space Clip Editor", "Clip editor space dat a"); | |
2769 | |
2770 /* movieclip */ | |
2771 prop= RNA_def_property(srna, "clip", PROP_POINTER, PROP_NONE); | |
2772 RNA_def_property_flag(prop, PROP_EDITABLE); | |
2773 RNA_def_property_ui_text(prop, "Movie Clip", "Movie clip displayed and e dited in this space"); | |
2774 RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceClipEditor_clip_set ", NULL, NULL); | |
2775 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2776 | |
2777 /* clip user */ | |
2778 prop= RNA_def_property(srna, "clip_user", PROP_POINTER, PROP_NONE); | |
2779 RNA_def_property_flag(prop, PROP_NEVER_NULL); | |
2780 RNA_def_property_struct_type(prop, "MovieClipUser"); | |
2781 RNA_def_property_pointer_sdna(prop, NULL, "user"); | |
2782 RNA_def_property_ui_text(prop, "Movie Clip User", "Parameters defining w hich frame of the movie clip is displayed"); | |
2783 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2784 | |
2785 /* mode */ | |
2786 prop= RNA_def_property(srna, "mode", PROP_ENUM, PROP_NONE); | |
2787 RNA_def_property_enum_sdna(prop, NULL, "mode"); | |
2788 RNA_def_property_enum_items(prop, mode_items); | |
2789 RNA_def_property_ui_text(prop, "Mode", "Editing context being displayed" ); | |
2790 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, "rna_SpaceClipEdit or_clip_mode_update"); | |
2791 | |
2792 /* view */ | |
2793 prop= RNA_def_property(srna, "view", PROP_ENUM, PROP_NONE); | |
2794 RNA_def_property_enum_sdna(prop, NULL, "view"); | |
2795 RNA_def_property_enum_items(prop, view_items); | |
2796 RNA_def_property_ui_text(prop, "View", "Type of the clip editor view"); | |
2797 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, "rna_SpaceClipEdit or_view_type_update"); | |
2798 | |
2799 /* show pattern */ | |
2800 prop= RNA_def_property(srna, "show_marker_pattern", PROP_BOOLEAN, PROP_N ONE); | |
2801 RNA_def_property_ui_text(prop, "Show Marker Pattern", "Show pattern boun dbox for markers"); | |
2802 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_MARKER_PATTERN ); | |
2803 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2804 | |
2805 /* show search */ | |
2806 prop= RNA_def_property(srna, "show_marker_search", PROP_BOOLEAN, PROP_NO NE); | |
2807 RNA_def_property_ui_text(prop, "Show Marker Search", "Show search boundb ox for markers"); | |
2808 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_MARKER_SEARCH) ; | |
2809 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2810 | |
2811 /* lock to selection */ | |
2812 prop= RNA_def_property(srna, "lock_selection", PROP_BOOLEAN, PROP_NONE); | |
2813 RNA_def_property_ui_text(prop, "Lock to Selection", "Lock viewport to se lected markers during playback"); | |
2814 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_LOCK_SELECTION); | |
2815 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, "rna_SpaceClipEdit or_lock_selection_update"); | |
2816 | |
2817 /* show markers pathes */ | |
2818 prop= RNA_def_property(srna, "show_track_path", PROP_BOOLEAN, PROP_NONE) ; | |
2819 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_TRACK_PATH); | |
2820 RNA_def_property_ui_text(prop, "Show Track Path", "Show path of how trac k moves"); | |
2821 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2822 | |
2823 /* path length */ | |
2824 prop= RNA_def_property(srna, "path_length", PROP_INT, PROP_NONE); | |
2825 RNA_def_property_int_sdna(prop, NULL, "path_length"); | |
2826 RNA_def_property_range(prop, 0, 50); | |
2827 RNA_def_property_ui_text(prop, "Path Length", "Length of displaying path , in frames"); | |
2828 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2829 | |
2830 /* show tiny markers */ | |
2831 prop= RNA_def_property(srna, "show_tiny_markers", PROP_BOOLEAN, PROP_NON E); | |
2832 RNA_def_property_ui_text(prop, "Show Tiny Markers", "Show markers tiny") ; | |
2833 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_TINY_MARKER); | |
2834 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2835 | |
2836 /* show bundles */ | |
2837 prop= RNA_def_property(srna, "show_bundles", PROP_BOOLEAN, PROP_NONE); | |
2838 RNA_def_property_ui_text(prop, "Show Bundles", "Show projection of bundl es into footage"); | |
2839 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_BUNDLES); | |
2840 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2841 | |
2842 /* mute footage */ | |
2843 prop= RNA_def_property(srna, "use_mute_footage", PROP_BOOLEAN, PROP_NONE ); | |
2844 RNA_def_property_ui_text(prop, "Mute Footage", "Mute footage and show bl ack background instead"); | |
2845 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_MUTE_FOOTAGE); | |
2846 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2847 | |
2848 /* hide disabled */ | |
2849 prop= RNA_def_property(srna, "show_disabled", PROP_BOOLEAN, PROP_NONE); | |
2850 RNA_def_property_ui_text(prop, "Show Disabled", "Show disabled tracks fr om the footage"); | |
2851 RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SC_HIDE_DISAB LED); | |
2852 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2853 | |
2854 /* scopes */ | |
2855 prop= RNA_def_property(srna, "scopes", PROP_POINTER, PROP_NONE); | |
2856 RNA_def_property_pointer_sdna(prop, NULL, "scopes"); | |
2857 RNA_def_property_struct_type(prop, "MovieClipScopes"); | |
2858 RNA_def_property_ui_text(prop, "Scopes", "Scopes to visualize movie clip statistics"); | |
2859 | |
2860 /* show names */ | |
2861 prop= RNA_def_property(srna, "show_names", PROP_BOOLEAN, PROP_NONE); | |
2862 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_NAMES); | |
2863 RNA_def_property_ui_text(prop, "Show Names", "Show track names and statu s"); | |
2864 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2865 | |
2866 /* show grid */ | |
2867 prop= RNA_def_property(srna, "show_grid", PROP_BOOLEAN, PROP_NONE); | |
2868 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_GRID); | |
2869 RNA_def_property_ui_text(prop, "Show Grid", "Show grid showing lens dist ortion"); | |
2870 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2871 | |
2872 /* show stable */ | |
2873 prop= RNA_def_property(srna, "show_stable", PROP_BOOLEAN, PROP_NONE); | |
2874 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_STABLE); | |
2875 RNA_def_property_ui_text(prop, "Show Stable", "Show stable footage in ed itor (if stabilization is enabled)"); | |
2876 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2877 | |
2878 /* manual calibration */ | |
2879 prop= RNA_def_property(srna, "use_manual_calibration", PROP_BOOLEAN, PRO P_NONE); | |
2880 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_MANUAL_CALIBRATION) ; | |
2881 RNA_def_property_ui_text(prop, "Manual Calibration", "Use manual calibra tion helpers"); | |
2882 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2883 | |
2884 /* show stable */ | |
2885 prop= RNA_def_property(srna, "show_grease_pencil", PROP_BOOLEAN, PROP_NO NE); | |
2886 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_GPENCIL); | |
2887 RNA_def_property_ui_text(prop, "Show Grease Pencil", "Show grease pencil strokes over the footage"); | |
2888 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2889 | |
2890 /* show filters */ | |
2891 prop= RNA_def_property(srna, "show_filters", PROP_BOOLEAN, PROP_NONE); | |
2892 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_FILTERS); | |
2893 RNA_def_property_ui_text(prop, "Show Filters", "Show filters for graph e ditor"); | |
2894 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2895 | |
2896 /* show graph_frames */ | |
2897 prop= RNA_def_property(srna, "show_graph_frames", PROP_BOOLEAN, PROP_NON E); | |
2898 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_GRAPH_FRAMES); | |
2899 RNA_def_property_ui_text(prop, "Show Frames", "Show curves for frames in graph editor"); | |
2900 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2901 | |
2902 /* show graph_tracks */ | |
2903 prop= RNA_def_property(srna, "show_graph_tracks", PROP_BOOLEAN, PROP_NON E); | |
2904 RNA_def_property_boolean_sdna(prop, NULL, "flag", SC_SHOW_GRAPH_TRACKS); | |
2905 RNA_def_property_ui_text(prop, "Show Tracks", "Show curves for tracks in graph editor"); | |
2906 RNA_def_property_update(prop, NC_SPACE|ND_SPACE_CLIP, NULL); | |
2907 } | |
2908 | |
2909 | |
2616 void RNA_def_space(BlenderRNA *brna) | 2910 void RNA_def_space(BlenderRNA *brna) |
2617 { | 2911 { |
2618 rna_def_space(brna); | 2912 rna_def_space(brna); |
2619 rna_def_space_image(brna); | 2913 rna_def_space_image(brna); |
2620 rna_def_space_sequencer(brna); | 2914 rna_def_space_sequencer(brna); |
2621 rna_def_space_text(brna); | 2915 rna_def_space_text(brna); |
2622 rna_def_fileselect_params(brna); | 2916 rna_def_fileselect_params(brna); |
2623 rna_def_space_filebrowser(brna); | 2917 rna_def_space_filebrowser(brna); |
2624 rna_def_space_outliner(brna); | 2918 rna_def_space_outliner(brna); |
2625 rna_def_background_image(brna); | 2919 rna_def_background_image(brna); |
2626 rna_def_space_view3d(brna); | 2920 rna_def_space_view3d(brna); |
2627 rna_def_space_buttons(brna); | 2921 rna_def_space_buttons(brna); |
2628 rna_def_space_dopesheet(brna); | 2922 rna_def_space_dopesheet(brna); |
2629 rna_def_space_graph(brna); | 2923 rna_def_space_graph(brna); |
2630 rna_def_space_nla(brna); | 2924 rna_def_space_nla(brna); |
2631 rna_def_space_time(brna); | 2925 rna_def_space_time(brna); |
2632 rna_def_space_console(brna); | 2926 rna_def_space_console(brna); |
2633 rna_def_console_line(brna); | 2927 rna_def_console_line(brna); |
2634 rna_def_space_info(brna); | 2928 rna_def_space_info(brna); |
2635 rna_def_space_userpref(brna); | 2929 rna_def_space_userpref(brna); |
2636 rna_def_space_node(brna); | 2930 rna_def_space_node(brna); |
2637 rna_def_space_logic(brna); | 2931 rna_def_space_logic(brna); |
2932 rna_def_space_clip(brna); | |
2638 } | 2933 } |
2639 | 2934 |
2640 #endif | 2935 #endif |
2641 | 2936 |
OLD | NEW |