Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 4,756 Lines • ▼ Show 20 Lines | static void rna_def_userdef_view(BlenderRNA *brna) | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| 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_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, "gizmo_size_navigate_v3d", PROP_INT, PROP_PIXEL); | |||||
| RNA_def_property_range(prop, 30, 200); | |||||
| RNA_def_property_ui_text(prop, "Navigate Gizmo Size", "The Navigate Gizmo size"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_gizmo_update"); | |||||
| /* Lookdev */ | /* Lookdev */ | ||||
| prop = RNA_def_property(srna, "lookdev_sphere_size", PROP_INT, PROP_PIXEL); | prop = RNA_def_property(srna, "lookdev_sphere_size", PROP_INT, PROP_PIXEL); | ||||
| RNA_def_property_int_sdna(prop, NULL, "lookdev_sphere_size"); | RNA_def_property_int_sdna(prop, NULL, "lookdev_sphere_size"); | ||||
| RNA_def_property_range(prop, 50, 400); | RNA_def_property_range(prop, 50, 400); | ||||
| RNA_def_property_ui_text(prop, "HDRI Preview Size", "Diameter of the HDRI preview spheres"); | RNA_def_property_ui_text(prop, "HDRI Preview Size", "Diameter of the HDRI preview spheres"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_update"); | RNA_def_property_update(prop, 0, "rna_userdef_update"); | ||||
| /* View2D Grid Displays */ | /* View2D Grid Displays */ | ||||
| ▲ Show 20 Lines • Show All 956 Lines • ▼ Show 20 Lines | # endif /* WITH_INPUT_NDOF */ | ||||
| prop = RNA_def_property(srna, "view_rotate_method", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "view_rotate_method", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flag"); | ||||
| RNA_def_property_enum_items(prop, view_rotation_items); | RNA_def_property_enum_items(prop, view_rotation_items); | ||||
| RNA_def_property_ui_text(prop, "Orbit Method", "Orbit method in the viewport"); | RNA_def_property_ui_text(prop, "Orbit Method", "Orbit method in the viewport"); | ||||
| prop = RNA_def_property(srna, "use_mouse_continuous", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mouse_continuous", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_CONTINUOUS_MOUSE); | RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_CONTINUOUS_MOUSE); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text( | ||||
| prop, | |||||
| "Continuous Grab", | "Continuous Grab", | ||||
| "Allow moving the mouse outside the view on some manipulations " | "Let the mouse wrap around the view boundaries so mouse movements are not limited by the " | ||||
| "(transform, ui control drag)"); | "screen size (used by transform, dragging of UI controls, etc.)"); | ||||
| prop = RNA_def_property(srna, "use_drag_immediately", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_drag_immediately", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_RELEASECONFIRM); | RNA_def_property_boolean_sdna(prop, NULL, "flag", USER_RELEASECONFIRM); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Release Confirms", | "Release Confirms", | ||||
| "Moving things with a mouse drag confirms when releasing the button"); | "Moving things with a mouse drag confirms when releasing the button"); | ||||
| prop = RNA_def_property(srna, "use_numeric_input_advanced", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_numeric_input_advanced", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 701 Lines • Show Last 20 Lines | |||||