|
Blender V4.5
|
#include "DNA_ID_enums.h"#include "DNA_space_types.h"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BLI_math_base.h"#include "BLI_rect.h"#include "UI_resources.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "ED_select_utils.hh"#include "WM_api.hh"#include "WM_types.hh"Go to the source code of this file.
Generic re-usable property definitions and accessors for operators to share. (WM_operator_properties_* functions).
Definition in file wm_operator_props.cc.
| void WM_operator_properties_border | ( | wmOperatorType * | ot | ) |
Definition at line 383 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_border().
Referenced by ANIM_OT_previewrange_set(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_erase_box(), IMAGE_OT_render_border(), blender::ed::sculpt_paint::hide::PAINT_OT_hide_show(), blender::ed::sculpt_paint::mask::PAINT_OT_mask_box_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_box_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_box_gesture(), VIEW3D_OT_clip_border(), VIEW3D_OT_render_border(), WM_operator_properties_border(), WM_operator_properties_gesture_box_ex(), and WM_operator_properties_gesture_box_zoom().
| blender::Bounds< blender::int2 > WM_operator_properties_border_to_bounds | ( | wmOperator * | op | ) |
Definition at line 415 of file wm_operator_props.cc.
References Bounds< T >::Bounds(), wmOperator::ptr, RNA_int_get(), and WM_operator_properties_border_to_bounds().
Referenced by blender::ed::sculpt_paint::grease_pencil_erase_box_exec(), and WM_operator_properties_border_to_bounds().
| void WM_operator_properties_border_to_rctf | ( | wmOperator * | op, |
| rctf * | r_rect ) |
Definition at line 408 of file wm_operator_props.cc.
References BLI_rctf_rcti_copy(), WM_operator_properties_border_to_rctf(), and WM_operator_properties_border_to_rcti().
Referenced by box_select_graph_exec(), ed_marker_box_select_exec(), image_view_zoom_border_exec(), blender::ed::space_node::node_box_select_exec(), blender::ed::outliner::outliner_box_select_exec(), render_border_exec(), blender::ed::vse::sequencer_box_select_exec(), blender::ed::vse::sequencer_retiming_box_select_exec(), uv_box_select_exec(), view_borderzoom_exec(), blender::ed::vse::view_ghost_border_exec(), and WM_operator_properties_border_to_rctf().
| void WM_operator_properties_border_to_rcti | ( | wmOperator * | op, |
| rcti * | r_rect ) |
Definition at line 400 of file wm_operator_props.cc.
References wmOperator::ptr, RNA_int_get(), WM_operator_properties_border_to_rcti(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by actkeys_box_select_exec(), animchannels_box_select_exec(), box_select_exec(), box_select_exec(), box_select_exec(), file_box_select_exec(), file_box_select_modal(), graphkeys_box_select_exec(), blender::ed::sculpt_paint::gesture::init_from_box(), nlaedit_box_select_exec(), previewrange_define_exec(), render_border_exec(), view3d_box_select_exec(), view3d_clipping_exec(), view3d_zoom_border_exec(), blender::ed::space_node::viewer_border_exec(), WM_operator_properties_border_to_rctf(), and WM_operator_properties_border_to_rcti().
| void WM_operator_properties_checker_interval | ( | wmOperatorType * | ot, |
| bool | nth_can_disable ) |
| nth_can_disable | Enable if we want to be able to select no interval at all. |
Definition at line 644 of file wm_operator_props.cc.
References min_ii(), RNA_def_int(), wmOperatorType::srna, and WM_operator_properties_checker_interval().
Referenced by CURVE_OT_select_nth(), MESH_OT_select_nth(), path_select_properties(), path_select_properties(), and WM_operator_properties_checker_interval().
| void WM_operator_properties_checker_interval_from_op | ( | wmOperator * | op, |
| CheckerIntervalParams * | op_params ) |
Definition at line 677 of file wm_operator_props.cc.
References mod_i(), CheckerIntervalParams::nth, CheckerIntervalParams::offset, wmOperator::ptr, RNA_int_get(), CheckerIntervalParams::skip, and WM_operator_properties_checker_interval_from_op().
Referenced by edbm_select_nth_exec(), path_select_params_from_op(), path_select_params_from_op(), select_nth_exec(), and WM_operator_properties_checker_interval_from_op().
| bool WM_operator_properties_checker_interval_test | ( | const CheckerIntervalParams * | op_params, |
| int | depth ) |
Definition at line 691 of file wm_operator_props.cc.
References CheckerIntervalParams::nth, CheckerIntervalParams::offset, CheckerIntervalParams::skip, and WM_operator_properties_checker_interval_test().
Referenced by mouse_mesh_shortest_path_edge(), mouse_mesh_shortest_path_face(), mouse_mesh_shortest_path_vert(), mouse_mesh_uv_shortest_path_edge(), mouse_mesh_uv_shortest_path_face(), mouse_mesh_uv_shortest_path_vert(), select_nth_bezt(), select_nth_bp(), walker_deselect_nth(), and WM_operator_properties_checker_interval_test().
| void WM_operator_properties_confirm_or_exec | ( | wmOperatorType * | ot | ) |
Definition at line 33 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_confirm_or_exec().
Referenced by ACTION_OT_delete(), ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete_v3d(), ARMATURE_OT_delete(), CLIP_OT_delete_marker(), CLIP_OT_delete_track(), CLIP_OT_graph_delete_curve(), FILE_OT_directory_new(), GRAPH_OT_delete(), MARKER_OT_delete(), MASK_OT_delete(), MBALL_OT_delete_metaelems(), NLA_OT_make_single_user(), blender::ed::object::OBJECT_OT_delete(), WM_event_add(), and WM_operator_properties_confirm_or_exec().
| void WM_operator_properties_filesel | ( | wmOperatorType * | ot, |
| int | filter, | ||
| short | type, | ||
| eFileSel_Action | action, | ||
| eFileSel_Flag | flag, | ||
| short | display, | ||
| short | sort ) |
Default properties for file-select.
Definition at line 65 of file wm_operator_props.cc.
References FILE_DEFAULTDISPLAY, FILE_HORIZONTALDISPLAY, FILE_IMGDISPLAY, FILE_LOADLIB, FILE_MAX, FILE_SAVE, FILE_SPECIAL, FILE_TYPE_ALEMBIC, FILE_TYPE_ARCHIVE, FILE_TYPE_BLENDER, FILE_TYPE_BLENDER_BACKUP, FILE_TYPE_BLENDERLIB, FILE_TYPE_BTX, FILE_TYPE_COLLADA, FILE_TYPE_FOLDER, FILE_TYPE_FTFONT, FILE_TYPE_IMAGE, FILE_TYPE_MOVIE, FILE_TYPE_OBJECT_IO, FILE_TYPE_PYSCRIPT, FILE_TYPE_SOUND, FILE_TYPE_TEXT, FILE_TYPE_USD, FILE_TYPE_VOLUME, FILE_VERTICALDISPLAY, filter, PROP_HIDDEN, PROP_SKIP_PRESET, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_int(), RNA_def_property_flag(), RNA_def_string_dir_path(), RNA_def_string_file_name(), RNA_def_string_file_path(), rna_enum_dummy_NULL_items, sort(), wmOperatorType::srna, WM_FILESEL_DIRECTORY, WM_FILESEL_FILENAME, WM_FILESEL_FILEPATH, WM_FILESEL_FILES, WM_FILESEL_RELPATH, WM_FILESEL_SHOW_PROPS, WM_operator_properties_filesel(), and wm_operator_properties_filesel_sort_items_itemf().
Referenced by blender::ed::asset::ASSET_OT_bundle_install(), blender::ed::sculpt_paint::BRUSH_OT_asset_load_preview(), BUTTONS_OT_directory_browse(), BUTTONS_OT_file_browse(), CACHEFILE_OT_layer_add(), CACHEFILE_OT_open(), CLIP_OT_open(), ED_OT_lib_id_load_custom_preview(), FILE_OT_find_missing_files(), FONT_OT_open(), FONT_OT_text_paste_from_file(), GRAPH_OT_sound_to_samples(), IMAGE_OT_file_browse(), IMAGE_OT_open(), IMAGE_OT_replace(), IMAGE_OT_save_as(), blender::ed::space_node::NODE_OT_add_image(), blender::ed::object::OBJECT_OT_empty_image_add(), blender::ed::object::OBJECT_OT_multires_external_save(), blender::ed::object::OBJECT_OT_volume_import(), PREFERENCES_OT_asset_library_add(), RIGIDBODY_OT_world_export(), screen_screenshot_impl(), blender::ed::vse::SEQUENCER_OT_change_path(), blender::ed::vse::SEQUENCER_OT_export_subtitles(), blender::ed::vse::SEQUENCER_OT_image_strip_add(), blender::ed::vse::SEQUENCER_OT_movie_strip_add(), blender::ed::vse::SEQUENCER_OT_sound_strip_add(), SOUND_OT_mixdown(), SOUND_OT_open(), SOUND_OT_open_mono(), TEXT_OT_open(), TEXT_OT_save_as(), WM_operator_properties_filesel(), WM_OT_append(), WM_OT_id_linked_relocate(), WM_OT_lib_reload(), WM_OT_lib_relocate(), WM_OT_link(), WM_OT_open_mainfile(), WM_OT_recover_auto_save(), WM_OT_save_as_mainfile(), and WM_OT_save_mainfile().
|
static |
Extends rna_enum_fileselect_params_sort_items with a default item for operators to use.
Definition at line 44 of file wm_operator_props.cc.
References FILE_SORT_DEFAULT, rna_enum_fileselect_params_sort_items, RNA_enum_item_add(), RNA_enum_item_end(), RNA_enum_items_add(), and wm_operator_properties_filesel_sort_items_itemf().
Referenced by WM_operator_properties_filesel(), and wm_operator_properties_filesel_sort_items_itemf().
| void WM_operator_properties_generic_select | ( | wmOperatorType * | ot | ) |
Selecting and tweaking items are overlapping operations. Getting both to work without conflicts requires special care. See https://wiki.blender.org/wiki/Human_Interface_Guidelines/Selection#Select-tweaking for the desired behavior.
For default click selection (with no modifier keys held), the select operators can do the following:
This utility, together with WM_generic_select_invoke() and WM_generic_select_modal() should help getting the wanted behavior to work. Most generic logic should be handled in these, so that the select operators only have to care for the case dependent handling.
Every select operator has slightly different requirements, e.g. sequencer strip selection also needs to account for handle selection. This should be the baseline behavior though.
Definition at line 507 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_generic_select().
Referenced by ACTION_OT_clickselect(), FILE_OT_select(), GRAPH_OT_clickselect(), MARKER_OT_select(), NLA_OT_click_select(), blender::ed::vse::SEQUENCER_OT_select(), blender::ed::vse::SEQUENCER_OT_select_handle(), and WM_operator_properties_generic_select().
| void WM_operator_properties_gesture_box | ( | wmOperatorType * | ot | ) |
Definition at line 457 of file wm_operator_props.cc.
References WM_operator_properties_gesture_box(), and WM_operator_properties_gesture_box_ex().
Referenced by ACTION_OT_select_box(), CLIP_OT_select_box(), FILE_OT_select_box(), GRAPH_OT_select_box(), INFO_OT_select_box(), MARKER_OT_select_box(), MASK_OT_select_box(), NLA_OT_select_box(), blender::ed::space_node::NODE_OT_select_box(), blender::ed::space_node::NODE_OT_viewer_border(), blender::ed::outliner::OUTLINER_OT_select_box(), blender::ed::vse::SEQUENCER_OT_select_box(), blender::ed::vse::SEQUENCER_OT_view_ghost_border(), UV_OT_select_box(), VIEW2D_OT_smoothview(), VIEW3D_OT_select_box(), and WM_operator_properties_gesture_box().
| void WM_operator_properties_gesture_box_ex | ( | wmOperatorType * | ot, |
| bool | deselect, | ||
| bool | extend ) |
Use with WM_gesture_box_invoke
Definition at line 422 of file wm_operator_props.cc.
References PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_operator_properties_border(), and WM_operator_properties_gesture_box_ex().
Referenced by WM_operator_properties_gesture_box(), WM_operator_properties_gesture_box_ex(), and WM_operator_properties_gesture_box_select().
| void WM_operator_properties_gesture_box_select | ( | wmOperatorType * | ot | ) |
Definition at line 453 of file wm_operator_props.cc.
References WM_operator_properties_gesture_box_ex(), and WM_operator_properties_gesture_box_select().
Referenced by ANIM_OT_channels_select_box(), CLIP_OT_graph_select_box(), and WM_operator_properties_gesture_box_select().
| void WM_operator_properties_gesture_box_zoom | ( | wmOperatorType * | ot | ) |
Definition at line 522 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, WM_operator_properties_border(), and WM_operator_properties_gesture_box_zoom().
Referenced by IMAGE_OT_view_zoom_border(), VIEW2D_OT_zoom_border(), VIEW3D_OT_zoom_border(), and WM_operator_properties_gesture_box_zoom().
| void WM_operator_properties_gesture_circle | ( | wmOperatorType * | ot | ) |
Use with WM_gesture_circle_invoke
Definition at line 598 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_gesture_circle().
Referenced by ACTION_OT_select_circle(), CLIP_OT_select_circle(), GRAPH_OT_select_circle(), MASK_OT_select_circle(), blender::ed::space_node::NODE_OT_select_circle(), UV_OT_select_circle(), VIEW3D_OT_select_circle(), and WM_operator_properties_gesture_circle().
| void WM_operator_properties_gesture_lasso | ( | wmOperatorType * | ot | ) |
Use with WM_gesture_lasso_invoke
Definition at line 531 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_PIXEL, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_collection_runtime(), RNA_def_float(), RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), wmOperatorType::srna, and WM_operator_properties_gesture_lasso().
Referenced by ACTION_OT_select_lasso(), CLIP_OT_select_lasso(), GRAPH_OT_select_lasso(), blender::ed::sculpt_paint::GREASE_PENCIL_OT_erase_lasso(), GREASE_PENCIL_OT_stroke_trim(), MASK_OT_select_lasso(), blender::ed::space_node::NODE_OT_select_lasso(), blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_lasso_gesture(), blender::ed::sculpt_paint::mask::PAINT_OT_mask_lasso_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_lasso_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_lasso_gesture(), UV_OT_select_lasso(), VIEW3D_OT_select_lasso(), and WM_operator_properties_gesture_lasso().
| void WM_operator_properties_gesture_polyline | ( | wmOperatorType * | ot | ) |
Use with WM_gesture_polyline_invoke
Definition at line 562 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_collection_runtime(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_gesture_polyline().
Referenced by blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_polyline_gesture(), blender::ed::sculpt_paint::mask::PAINT_OT_mask_polyline_gesture(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_polyline_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_polyline_gesture(), and WM_operator_properties_gesture_polyline().
| void WM_operator_properties_gesture_straightline | ( | wmOperatorType * | ot, |
| int | cursor ) |
Use with WM_gesture_straightline_invoke
Definition at line 569 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_int(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_gesture_straightline().
Referenced by blender::ed::greasepencil::GREASE_PENCIL_OT_texture_gradient(), IMAGE_OT_sample_line(), MESH_OT_bisect(), blender::ed::sculpt_paint::hide::PAINT_OT_hide_show_line_gesture(), blender::ed::sculpt_paint::mask::PAINT_OT_mask_line_gesture(), PAINT_OT_weight_gradient(), blender::ed::sculpt_paint::face_set::SCULPT_OT_face_set_line_gesture(), blender::ed::sculpt_paint::project::SCULPT_OT_project_line_gesture(), blender::ed::sculpt_paint::trim::SCULPT_OT_trim_line_gesture(), and WM_operator_properties_gesture_straightline().
| void WM_operator_properties_id_lookup | ( | wmOperatorType * | ot, |
| const bool | add_name_prop ) |
Adds "name" and "session_uid" properties so the caller can tell the operator which ID to act on. See WM_operator_properties_id_lookup_from_name_or_session_uid(). Both properties will be hidden in the UI and not be saved over consecutive operator calls.
Definition at line 274 of file wm_operator_props.cc.
References INT32_MAX, INT32_MIN, MAX_ID_NAME, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, and WM_operator_properties_id_lookup().
Referenced by blender::ed::geometry::GEOMETRY_OT_execute_node_group(), blender::ed::space_node::NODE_OT_add_collection(), blender::ed::space_node::NODE_OT_add_group(), blender::ed::space_node::NODE_OT_add_image(), blender::ed::space_node::NODE_OT_add_mask(), blender::ed::space_node::NODE_OT_add_material(), blender::ed::space_node::NODE_OT_add_object(), blender::ed::object::OBJECT_OT_add_named(), blender::ed::object::OBJECT_OT_collection_external_asset_drop(), blender::ed::object::OBJECT_OT_collection_instance_add(), blender::ed::object::OBJECT_OT_data_instance_add(), blender::ed::object::OBJECT_OT_drop_named_material(), blender::ed::object::OBJECT_OT_empty_image_add(), blender::ed::object::OBJECT_OT_modifier_add_node_group(), blender::ed::object::bake_simulation::single_bake_operator_props(), UI_OT_drop_material(), VIEW3D_OT_camera_background_image_add(), VIEW3D_OT_drop_world(), and WM_operator_properties_id_lookup().
| ID * WM_operator_properties_id_lookup_from_name_or_session_uid | ( | Main * | bmain, |
| PointerRNA * | ptr, | ||
| enum ID_Type | type ) |
Tries to find an ID in bmain. There needs to be either a "session_uid" int or "name" string property defined and set. The former has priority. See WM_operator_properties_id_lookup() for a helper to add the properties.
Definition at line 249 of file wm_operator_props.cc.
References BKE_libblock_find_name(), BKE_libblock_find_session_uid(), MAX_ID_NAME, RNA_property_int_get(), RNA_property_is_set(), RNA_property_string_get(), RNA_struct_find_property(), and WM_operator_properties_id_lookup_from_name_or_session_uid().
Referenced by blender::ed::object::bake_simulation::bake_single_node_gather_bake_request(), blender::ed::object::collection_add_info_get_from_op(), blender::ed::object::bake_simulation::delete_single_bake_exec(), blender::ed::object::drop_named_material_invoke(), drop_world_exec(), blender::ed::geometry::get_asset_or_local_node_group(), blender::ed::object::get_asset_or_local_node_group(), blender::ed::space_node::node_add_collection_exec(), blender::ed::space_node::node_add_group_exec(), blender::ed::space_node::node_add_mask_exec(), blender::ed::space_node::node_add_material_exec(), blender::ed::space_node::node_add_object_exec(), blender::ed::object::object_add_named_exec(), blender::ed::object::object_data_instance_add_exec(), blender::ed::object::object_transform_to_mouse_exec(), blender::ed::object::bake_simulation::pack_single_bake_exec(), blender::ed::geometry::run_node_group_depends_on_cursor(), ui_drop_material_exec(), blender::ed::object::bake_simulation::unpack_single_bake_exec(), WM_drag_free_imported_drag_ID(), WM_operator_drop_load_path(), and WM_operator_properties_id_lookup_from_name_or_session_uid().
| bool WM_operator_properties_id_lookup_is_set | ( | PointerRNA * | ptr | ) |
Check if either the "session_uid" or "name" property is set inside ptr. If this is the case the ID can be looked up by WM_operator_properties_id_lookup_from_name_or_session_uid().
Definition at line 269 of file wm_operator_props.cc.
References RNA_struct_property_is_set(), and WM_operator_properties_id_lookup_is_set().
Referenced by blender::ed::space_node::node_add_image_invoke(), blender::ed::object::object_image_add_invoke(), blender::ed::object::object_instance_add_invoke(), WM_operator_drop_load_path(), and WM_operator_properties_id_lookup_is_set().
| void WM_operator_properties_id_lookup_set_from_id | ( | PointerRNA * | ptr, |
| const ID * | id ) |
Tries to pass id to an operator via either a "session_uid" or a "name" property defined in the properties of ptr. The former is preferred, since it works properly with linking and library overrides (which may both result in multiple IDs with the same name and type).
Also see WM_operator_properties_id_lookup() and WM_operator_properties_id_lookup_from_name_or_session_uid()
Definition at line 233 of file wm_operator_props.cc.
References BLI_assert_unreachable, ID::name, RNA_int_set(), RNA_string_set(), RNA_struct_find_property(), ID::session_uid, and WM_operator_properties_id_lookup_set_from_id().
Referenced by blender::ed::geometry::catalog_assets_draw_unassigned(), blender::nodes::draw_bake_button_row(), blender::ed::object::unassigned_assets_draw(), view3d_id_drop_copy(), view3d_id_drop_copy_with_type(), view3d_id_path_drop_copy(), and WM_operator_properties_id_lookup_set_from_id().
| void WM_operator_properties_mouse_select | ( | wmOperatorType * | ot | ) |
See ED_select_pick_params_from_operator to initialize parameters defined here.
Definition at line 613 of file wm_operator_props.cc.
References PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_mouse_select().
Referenced by CURVE_OT_pen(), GIZMOGROUP_OT_gizmo_select(), MASK_OT_select(), blender::ed::space_node::NODE_OT_select(), blender::ed::vse::SEQUENCER_OT_select(), UV_OT_select(), VIEW3D_OT_select(), and WM_operator_properties_mouse_select().
| void WM_operator_properties_select_action | ( | wmOperatorType * | ot, |
| int | default_action, | ||
| bool | hide_gui ) |
Definition at line 314 of file wm_operator_props.cc.
References SEL_DESELECT, SEL_INVERT, SEL_SELECT, SEL_TOGGLE, WM_operator_properties_select_action(), and wm_operator_properties_select_action_ex().
Referenced by INFO_OT_select_all(), PARTICLE_OT_select_roots(), PARTICLE_OT_select_tips(), WM_operator_properties_select_action(), and WM_operator_properties_select_all().
|
static |
Definition at line 300 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, and wm_operator_properties_select_action_ex().
Referenced by WM_operator_properties_select_action(), wm_operator_properties_select_action_ex(), and WM_operator_properties_select_action_simple().
| void WM_operator_properties_select_action_simple | ( | wmOperatorType * | ot, |
| int | default_action, | ||
| bool | hide_gui ) |
Only for select/de-select.
Definition at line 327 of file wm_operator_props.cc.
References SEL_DESELECT, SEL_SELECT, wm_operator_properties_select_action_ex(), and WM_operator_properties_select_action_simple().
Referenced by WM_operator_properties_select_action_simple(), and WM_operator_properties_select_random().
| void WM_operator_properties_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 378 of file wm_operator_props.cc.
References SEL_TOGGLE, WM_operator_properties_select_action(), and WM_operator_properties_select_all().
Referenced by ACTION_OT_select_all(), ANIM_OT_channels_select_all(), ARMATURE_OT_select_all(), CLIP_OT_graph_select_all_markers(), CLIP_OT_select_all(), CURVE_OT_select_all(), blender::ed::curves::CURVES_OT_select_all(), FILE_OT_select_all(), GRAPH_OT_select_all(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_all(), LATTICE_OT_select_all(), MARKER_OT_select_all(), MASK_OT_select_all(), MBALL_OT_select_all(), MESH_OT_select_all(), NLA_OT_select_all(), blender::ed::space_node::NODE_OT_select_all(), blender::ed::object::OBJECT_OT_select_all(), blender::ed::outliner::OUTLINER_OT_select_all(), PAINT_OT_face_select_all(), PAINT_OT_vert_select_all(), PARTICLE_OT_select_all(), blender::ed::pointcloud::POINTCLOUD_OT_select_all(), POSE_OT_select_all(), blender::ed::vse::SEQUENCER_OT_select_all(), UV_OT_select_all(), and WM_operator_properties_select_all().
| void WM_operator_properties_select_operation | ( | wmOperatorType * | ot | ) |
Definition at line 462 of file wm_operator_props.cc.
References PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, SEL_OP_XOR, wmOperatorType::srna, and WM_operator_properties_select_operation().
Referenced by VIEW3D_OT_select_box(), VIEW3D_OT_select_lasso(), and WM_operator_properties_select_operation().
| void WM_operator_properties_select_operation_simple | ( | wmOperatorType * | ot | ) |
Definition at line 476 of file wm_operator_props.cc.
References PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), SEL_OP_ADD, SEL_OP_SET, SEL_OP_SUB, wmOperatorType::srna, and WM_operator_properties_select_operation_simple().
Referenced by ACTION_OT_select_box(), ACTION_OT_select_circle(), ACTION_OT_select_lasso(), CLIP_OT_select_box(), CLIP_OT_select_circle(), CLIP_OT_select_lasso(), FILE_OT_select_box(), GRAPH_OT_select_box(), GRAPH_OT_select_circle(), GRAPH_OT_select_lasso(), INFO_OT_select_box(), MARKER_OT_select_box(), MASK_OT_select_box(), MASK_OT_select_circle(), MASK_OT_select_lasso(), NLA_OT_select_box(), blender::ed::space_node::NODE_OT_select_box(), blender::ed::space_node::NODE_OT_select_circle(), blender::ed::space_node::NODE_OT_select_lasso(), blender::ed::outliner::OUTLINER_OT_select_box(), blender::ed::vse::SEQUENCER_OT_select_box(), UV_OT_select_box(), UV_OT_select_circle(), UV_OT_select_lasso(), VIEW3D_OT_select_circle(), and WM_operator_properties_select_operation_simple().
| void WM_operator_properties_select_random | ( | wmOperatorType * | ot | ) |
Use for all select random operators. Adds properties: percent, seed, action.
Definition at line 340 of file wm_operator_props.cc.
References RNA_def_float_factor(), RNA_def_int(), SEL_SELECT, wmOperatorType::srna, WM_operator_properties_select_action_simple(), and WM_operator_properties_select_random().
Referenced by CURVE_OT_select_random(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_random(), LATTICE_OT_select_random(), MBALL_OT_select_random_metaelems(), MESH_OT_select_random(), blender::ed::object::OBJECT_OT_select_random(), PARTICLE_OT_select_random(), and WM_operator_properties_select_random().
| int WM_operator_properties_select_random_seed_increment_get | ( | wmOperator * | op | ) |
Definition at line 364 of file wm_operator_props.cc.
References wmOperator::flag, OP_IS_INVOKE, wmOperator::ptr, RNA_property_int_get(), RNA_property_int_set(), RNA_property_is_set(), RNA_struct_find_property(), and WM_operator_properties_select_random_seed_increment_get().
Referenced by curve_select_random_exec(), edbm_select_random_exec(), lattice_select_random_exec(), blender::ed::object::object_select_random_exec(), blender::ed::greasepencil::select_random_exec(), select_random_exec(), select_random_metaelems_exec(), and WM_operator_properties_select_random_seed_increment_get().
| void WM_operator_properties_select_walk_direction | ( | wmOperatorType * | ot | ) |
Definition at line 488 of file wm_operator_props.cc.
References PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, UI_SELECT_WALK_DOWN, UI_SELECT_WALK_LEFT, UI_SELECT_WALK_RIGHT, UI_SELECT_WALK_UP, and WM_operator_properties_select_walk_direction().
Referenced by FILE_OT_select_walk(), blender::ed::outliner::OUTLINER_OT_select_walk(), and WM_operator_properties_select_walk_direction().
| void WM_operator_properties_use_cursor_init | ( | wmOperatorType * | ot | ) |
Disable using cursor position, use when view operators are initialized from buttons.
Definition at line 443 of file wm_operator_props.cc.
References PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, and WM_operator_properties_use_cursor_init().
Referenced by CLIP_OT_view_zoom(), IMAGE_OT_view_zoom(), VIEW2D_OT_zoom(), view3d_operator_properties_common(), and WM_operator_properties_use_cursor_init().