Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
| Show First 20 Lines • Show All 2,025 Lines • ▼ Show 20 Lines | static void rna_def_userdef_theme_space_view3d(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | ||||
| rna_def_userdef_theme_spaces_paint_curves(srna); | rna_def_userdef_theme_spaces_paint_curves(srna); | ||||
| prop = RNA_def_property(srna, "outline_width", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "outline_width", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 1, 5); | RNA_def_property_range(prop, 1, 5); | ||||
| RNA_def_property_ui_text(prop, "Outline Width", ""); | RNA_def_property_ui_text(prop, "Outline Width", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | ||||
| prop = RNA_def_property(srna, "object_origin_size", PROP_INT, PROP_PIXEL); | |||||
| RNA_def_property_int_sdna(prop, NULL, "obcenter_dia"); | |||||
| RNA_def_property_range(prop, 4, 10); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Object Origin Size", "Diameter in Pixels for Object/Light origin display"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | |||||
| } | } | ||||
| static void rna_def_userdef_theme_space_graph(BlenderRNA *brna) | static void rna_def_userdef_theme_space_graph(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* space_graph */ | /* space_graph */ | ||||
| ▲ Show 20 Lines • Show All 2,054 Lines • ▼ Show 20 Lines | static void rna_def_userdef_view(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "gizmo_size", PROP_INT, PROP_PIXEL); | prop = RNA_def_property(srna, "gizmo_size", PROP_INT, PROP_PIXEL); | ||||
| RNA_def_property_int_sdna(prop, NULL, "gizmo_size"); | RNA_def_property_int_sdna(prop, NULL, "gizmo_size"); | ||||
| RNA_def_property_range(prop, 10, 200); | RNA_def_property_range(prop, 10, 200); | ||||
| RNA_def_property_int_default(prop, 75); | RNA_def_property_int_default(prop, 75); | ||||
| RNA_def_property_ui_text(prop, "Gizmo Size", "Diameter of the gizmo"); | RNA_def_property_ui_text(prop, "Gizmo Size", "Diameter of the gizmo"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| prop = RNA_def_property(srna, "object_origin_size", PROP_INT, PROP_PIXEL); | |||||
| RNA_def_property_int_sdna(prop, NULL, "obcenter_dia"); | |||||
| RNA_def_property_range(prop, 4, 10); | |||||
| RNA_def_property_ui_text( | |||||
| prop, "Object Origin Size", "Diameter in Pixels for Object/Light origin display"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | |||||
| /* View2D Grid Displays */ | /* View2D Grid Displays */ | ||||
| prop = RNA_def_property(srna, "view2d_grid_spacing_min", PROP_INT, PROP_PIXEL); | prop = RNA_def_property(srna, "view2d_grid_spacing_min", PROP_INT, PROP_PIXEL); | ||||
| RNA_def_property_int_sdna(prop, NULL, "v2d_min_gridsize"); | RNA_def_property_int_sdna(prop, NULL, "v2d_min_gridsize"); | ||||
| RNA_def_property_range( | RNA_def_property_range( | ||||
| prop, 1, 500); /* XXX: perhaps the lower range should only go down to 5? */ | prop, 1, 500); /* XXX: perhaps the lower range should only go down to 5? */ | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "2D View Minimum Grid Spacing", | "2D View Minimum Grid Spacing", | ||||
| "Minimum number of pixels between each gridline in 2D Viewports"); | "Minimum number of pixels between each gridline in 2D Viewports"); | ||||
| ▲ Show 20 Lines • Show All 1,484 Lines • Show Last 20 Lines | |||||