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 397 Lines • ▼ Show 20 Lines | static void rna_userdef_anim_update(Main *UNUSED(bmain), | ||||
| Scene *UNUSED(scene), | Scene *UNUSED(scene), | ||||
| PointerRNA *UNUSED(ptr)) | PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| WM_main_add_notifier(NC_SPACE | ND_SPACE_GRAPH, NULL); | WM_main_add_notifier(NC_SPACE | ND_SPACE_GRAPH, NULL); | ||||
| WM_main_add_notifier(NC_SPACE | ND_SPACE_DOPESHEET, NULL); | WM_main_add_notifier(NC_SPACE | ND_SPACE_DOPESHEET, NULL); | ||||
| USERDEF_TAG_DIRTY; | USERDEF_TAG_DIRTY; | ||||
| } | } | ||||
| static void rna_userdef_tablet_api_update(Main *UNUSED(bmain), | static void rna_userdef_input_devices(Main *UNUSED(bmain), | ||||
| Scene *UNUSED(scene), | Scene *UNUSED(scene), | ||||
| PointerRNA *UNUSED(ptr)) | PointerRNA *UNUSED(ptr)) | ||||
| { | { | ||||
| WM_init_tablet_api(); | WM_init_input_devices(); | ||||
| USERDEF_TAG_DIRTY; | USERDEF_TAG_DIRTY; | ||||
| } | } | ||||
| # ifdef WITH_INPUT_NDOF | # ifdef WITH_INPUT_NDOF | ||||
| static void rna_userdef_ndof_deadzone_update(Main *UNUSED(bmain), | static void rna_userdef_ndof_deadzone_update(Main *UNUSED(bmain), | ||||
| Scene *UNUSED(scene), | Scene *UNUSED(scene), | ||||
| PointerRNA *ptr) | PointerRNA *ptr) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 5,313 Lines • ▼ Show 20 Lines | # endif /* WITH_INPUT_NDOF */ | ||||
| RNA_def_property_enum_items(prop, view_zoom_styles); | RNA_def_property_enum_items(prop, view_zoom_styles); | ||||
| RNA_def_property_ui_text(prop, "Zoom Style", "Which style to use for viewport scaling"); | RNA_def_property_ui_text(prop, "Zoom Style", "Which style to use for viewport scaling"); | ||||
| prop = RNA_def_property(srna, "view_zoom_axis", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "view_zoom_axis", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "uiflag"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "uiflag"); | ||||
| RNA_def_property_enum_items(prop, view_zoom_axes); | RNA_def_property_enum_items(prop, view_zoom_axes); | ||||
| RNA_def_property_ui_text(prop, "Zoom Axis", "Axis of mouse movement to zoom in or out on"); | RNA_def_property_ui_text(prop, "Zoom Axis", "Axis of mouse movement to zoom in or out on"); | ||||
| prop = RNA_def_property(srna, "use_multitouch_gestures", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "uiflag", USER_NO_MULTITOUCH_GESTURES); | |||||
| RNA_def_property_ui_text( | |||||
| prop, | |||||
| "Multitouch Gestures", | |||||
| "Use multitouch gestures for navigation with touchpad, instead of scroll wheel emulation"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_input_devices"); | |||||
| prop = RNA_def_property(srna, "invert_mouse_zoom", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "invert_mouse_zoom", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_ZOOM_INVERT); | RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_ZOOM_INVERT); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "Invert Zoom Direction", "Invert the axis of mouse movement for zooming"); | prop, "Invert Zoom Direction", "Invert the axis of mouse movement for zooming"); | ||||
| prop = RNA_def_property(srna, "use_mouse_depth_navigate", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_mouse_depth_navigate", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_DEPTH_NAVIGATE); | RNA_def_property_boolean_sdna(prop, NULL, "uiflag", USER_DEPTH_NAVIGATE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| ▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | RNA_def_property_ui_text( | ||||
| prop, "Softness", "Adjusts softness of the low pressure response onset using a gamma curve"); | prop, "Softness", "Adjusts softness of the low pressure response onset using a gamma curve"); | ||||
| prop = RNA_def_property(srna, "tablet_api", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "tablet_api", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_items(prop, tablet_api); | RNA_def_property_enum_items(prop, tablet_api); | ||||
| RNA_def_property_ui_text(prop, | RNA_def_property_ui_text(prop, | ||||
| "Tablet API", | "Tablet API", | ||||
| "Select the tablet API to use for pressure sensitivity (may require " | "Select the tablet API to use for pressure sensitivity (may require " | ||||
| "restarting Blender for changes to take effect)"); | "restarting Blender for changes to take effect)"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_tablet_api_update"); | RNA_def_property_update(prop, 0, "rna_userdef_input_devices"); | ||||
| # ifdef WITH_INPUT_NDOF | # ifdef WITH_INPUT_NDOF | ||||
| /* 3D mouse settings */ | /* 3D mouse settings */ | ||||
| /* global options */ | /* global options */ | ||||
| prop = RNA_def_property(srna, "ndof_sensitivity", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "ndof_sensitivity", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_range(prop, 0.01f, 40.0f); | RNA_def_property_range(prop, 0.01f, 40.0f); | ||||
| RNA_def_property_ui_text(prop, "Sensitivity", "Overall sensitivity of the 3D Mouse for panning"); | RNA_def_property_ui_text(prop, "Sensitivity", "Overall sensitivity of the 3D Mouse for panning"); | ||||
| ▲ Show 20 Lines • Show All 703 Lines • Show Last 20 Lines | |||||