|
Blender V4.3
|
#include <cmath>#include <cstring>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "BLI_build_config.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_curve_types.h"#include "DNA_lattice_types.h"#include "DNA_meta_types.h"#include "DNA_node_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_userdef_types.h"#include "DNA_workspace_types.h"#include "BKE_callbacks.hh"#include "BKE_context.hh"#include "BKE_editmesh.hh"#include "BKE_fcurve.hh"#include "BKE_global.hh"#include "BKE_icons.h"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_mask.h"#include "BKE_object.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_sound.h"#include "BKE_workspace.hh"#include "WM_api.hh"#include "WM_types.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "ED_anim_api.hh"#include "ED_armature.hh"#include "ED_fileselect.hh"#include "ED_image.hh"#include "ED_keyframes_keylist.hh"#include "ED_mesh.hh"#include "ED_object.hh"#include "ED_scene.hh"#include "ED_screen.hh"#include "ED_screen_types.hh"#include "ED_sequencer.hh"#include "ED_view3d.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "GPU_capabilities.hh"#include "wm_window.hh"#include "screen_intern.hh"Go to the source code of this file.
Classes | |
| struct | sActionzoneData |
| struct | sAreaSwapData |
| struct | sAreaMoveData |
| struct | sAreaSplitData |
| struct | RegionMoveData |
| struct | sAreaJoinData |
| struct | RegionAlphaInfo |
Macros | |
| #define | KM_MODAL_CANCEL 1 |
| #define | KM_MODAL_APPLY 2 |
| #define | KM_MODAL_SNAP_ON 3 |
| #define | KM_MODAL_SNAP_OFF 4 |
Region Alpha Blending Operator | |
Implementation NOTE: a disappearing region needs at least 1 last draw with 100% back-buffer texture over it - then triple buffer will clear it entirely. This because flag RGN_FLAG_HIDDEN is set in end - region doesn't draw at all then. | |
| #define | TIMEOUT 0.1f |
| #define | TIMESTEP (1.0f / 60.0f) |
| float | ED_region_blend_alpha (ARegion *region) |
| static void | region_blend_end (bContext *C, ARegion *region, const bool is_running) |
| void | ED_region_visibility_change_update_animated (bContext *C, ScrArea *area, ARegion *region) |
| static int | region_blend_invoke (bContext *C, wmOperator *, const wmEvent *event) |
| static void | SCREEN_OT_region_blend (wmOperatorType *ot) |
Move Area Edge Operator | |
| enum | AreaMoveSnapType { SNAP_NONE = 0 , SNAP_AREAGRID , SNAP_FRACTION_AND_ADJACENT , SNAP_BIGGER_SMALLER_ONLY } |
| static void | area_move_set_limits (wmWindow *win, bScreen *screen, const eScreenAxis dir_axis, int *bigger, int *smaller, bool *use_bigger_smaller_snap) |
| static void | area_move_draw_cb (const wmWindow *, void *userdata) |
| static bool | area_move_init (bContext *C, wmOperator *op) |
| static int | area_snap_calc_location (const bScreen *screen, const enum AreaMoveSnapType snap_type, const int delta, const int origval, const eScreenAxis dir_axis, const int bigger, const int smaller) |
| static void | area_move_apply_do (bContext *C, int delta, const int origval, const eScreenAxis dir_axis, const int bigger, const int smaller, const enum AreaMoveSnapType snap_type) |
| static void | area_move_apply (bContext *C, wmOperator *op) |
| static void | area_move_exit (bContext *C, wmOperator *op) |
| static int | area_move_exec (bContext *C, wmOperator *op) |
| static int | area_move_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | area_move_cancel (bContext *C, wmOperator *op) |
| static int | area_move_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | SCREEN_OT_area_move (wmOperatorType *ot) |
Split Area Operator | |
| static const EnumPropertyItem | prop_direction_items [] |
| static bool | area_split_allowed (const ScrArea *area, const eScreenAxis dir_axis) |
| static void | area_split_draw_cb (const wmWindow *, void *userdata) |
| static bool | area_split_menu_init (bContext *C, wmOperator *op) |
| static bool | area_split_init (bContext *C, wmOperator *op) |
| static ScrEdge * | area_findsharededge (bScreen *screen, ScrArea *area, ScrArea *sb) |
| static bool | area_split_apply (bContext *C, wmOperator *op) |
| static void | area_split_exit (bContext *C, wmOperator *op) |
| static void | area_split_preview_update_cursor (bContext *C, wmOperator *op) |
| static int | area_split_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static int | area_split_exec (bContext *C, wmOperator *op) |
| static void | area_split_cancel (bContext *C, wmOperator *op) |
| static int | area_split_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | SCREEN_OT_area_split (wmOperatorType *ot) |
Space Context Cycle Operator | |
| static const EnumPropertyItem | space_context_cycle_direction [] |
| static bool | space_context_cycle_poll (bContext *C) |
| static void | context_cycle_prop_get (bScreen *screen, const ScrArea *area, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static int | space_context_cycle_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static void | SCREEN_OT_space_context_cycle (wmOperatorType *ot) |
| #define KM_MODAL_APPLY 2 |
Definition at line 86 of file screen_ops.cc.
Referenced by area_move_modal(), and keymap_modal_set().
| #define KM_MODAL_CANCEL 1 |
Definition at line 85 of file screen_ops.cc.
Referenced by area_move_modal(), and keymap_modal_set().
| #define KM_MODAL_SNAP_OFF 4 |
Definition at line 88 of file screen_ops.cc.
Referenced by area_move_modal(), and keymap_modal_set().
| #define KM_MODAL_SNAP_ON 3 |
Definition at line 87 of file screen_ops.cc.
Referenced by area_move_modal(), and keymap_modal_set().
| #define TIMEOUT 0.1f |
Definition at line 6134 of file screen_ops.cc.
Referenced by ED_region_blend_alpha(), and region_blend_invoke().
| #define TIMESTEP (1.0f / 60.0f) |
Definition at line 6135 of file screen_ops.cc.
Referenced by ED_region_blend_alpha(), and ED_region_visibility_change_update_animated().
| enum AreaMoveSnapType |
| Enumerator | |
|---|---|
| SNAP_NONE | |
| SNAP_AREAGRID | |
| SNAP_FRACTION_AND_ADJACENT | |
| SNAP_BIGGER_SMALLER_ONLY | |
Definition at line 1645 of file screen_ops.cc.
|
static |
Definition at line 1056 of file screen_ops.cc.
References AZONE_AREA, AZONE_FULLSCREEN, CTX_wm_window(), wmOperator::customdata, EVT_ACTIONZONE_AREA, EVT_ACTIONZONE_FULLSCREEN, EVT_ACTIONZONE_REGION, KM_NOTHING, wm_event_add(), and wm_event_init_from_window().
Referenced by actionzone_invoke(), and actionzone_modal().
|
static |
Definition at line 755 of file screen_ops.cc.
References BLI_rcti_isect_pt_v(), CTX_wm_window(), wmWindow::eventstate, LISTBASE_FOREACH, WM_window_get_active_screen(), wmEvent::xy, and xy.
Referenced by SCREEN_OT_actionzone().
|
static |
Definition at line 1247 of file screen_ops.cc.
References actionzone_exit().
Referenced by SCREEN_OT_actionzone().
|
static |
Definition at line 1048 of file screen_ops.cc.
References wmOperator::customdata, G, and MEM_SAFE_FREE.
Referenced by actionzone_cancel(), actionzone_invoke(), actionzone_modal(), and area_dupli_invoke().
|
static |
Definition at line 1082 of file screen_ops.cc.
References actionzone_apply(), actionzone_exit(), sActionzoneData::az, AZONE_AREA, AZONE_FULLSCREEN, AZONE_REGION, AZONE_REGION_SCROLL, CTX_wm_screen(), wmOperator::customdata, ELEM, G, G_TRANSFORM_WM, MEM_callocN, sActionzoneData::modifier, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_int_get(), sActionzoneData::sa1, screen_actionzone_area(), screen_actionzone_find_xy(), AZone::type, WM_event_add_modal_handler(), sActionzoneData::x, wmEvent::xy, and sActionzoneData::y.
Referenced by SCREEN_OT_actionzone().
|
static |
Definition at line 1121 of file screen_ops.cc.
References abs(), actionzone_apply(), actionzone_exit(), AREAMAP_FROM_SCREEN, sActionzoneData::az, AZONE_AREA, BKE_screen_find_area_xy(), BLI_assert, CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, ED_area_actionzone_find_xy(), EVT_ESCKEY, sActionzoneData::gesture_dir, LEFTMOUSE, max_ii(), sActionzoneData::modifier, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, sActionzoneData::sa1, sActionzoneData::sa2, SCREEN_DIR_E, SCREEN_DIR_IS_VERTICAL, SCREEN_DIR_N, SCREEN_DIR_S, SCREEN_DIR_W, screen_geom_area_map_find_active_scredge(), SPACE_TYPE_ANY, AZone::type, wmEvent::type, WM_CURSOR_E_ARROW, WM_CURSOR_EDIT, WM_CURSOR_H_SPLIT, WM_CURSOR_HAND_CLOSED, WM_CURSOR_MOVE, WM_CURSOR_N_ARROW, WM_CURSOR_S_ARROW, WM_cursor_set(), WM_CURSOR_STOP, WM_CURSOR_SWAP_AREA, WM_CURSOR_V_SPLIT, WM_CURSOR_W_ARROW, WM_window_screen_rect_calc(), sActionzoneData::x, wmEvent::xy, and sActionzoneData::y.
Referenced by SCREEN_OT_actionzone().
Definition at line 828 of file screen_ops.cc.
References AZ_SCROLL_HOR, AZ_SCROLL_VERT, azone_clipped_rect_calc(), AZONE_REGION_SCROLL, BLI_rcti_translate(), AZone::direction, View2D::hor, is_left(), AZone::region, View2D::scroll, AZone::type, ARegion::v2d, V2D_SCROLL_BOTTOM, V2D_SCROLL_HIDE_HEIGHT, V2D_SCROLL_HIDE_WIDTH, V2D_SCROLL_LEFT, V2D_SCROLL_RIGHT, V2D_SCROLL_TOP, View2D::vert, ARegion::winrct, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by area_actionzone_refresh_xy().
|
static |
Definition at line 850 of file screen_ops.cc.
References AZone::alpha, View2D::alpha_hor, View2D::alpha_vert, area_actionzone_get_rect(), AZ_SCROLL_HOR, AZ_SCROLL_VERT, AZONE_AREA, AZONE_FULLSCREEN, AZONE_REGION, AZONE_REGION_SCROLL, AZONEFADEIN, AZONEFADEOUT, AZONESPOTW, BLI_assert, BLI_rcti_isect_pt_v(), BLI_rcti_length_x(), BLI_rcti_length_y(), CLAMP, AZone::direction, ED_area_tag_redraw(), ED_area_tag_redraw_no_rebuild(), ED_region_tag_redraw_no_rebuild(), float, fullscreen_click_rcti_init(), View2D::hor, IS_EQF, AZone::next, AZone::region, RGN_FLAG_RESIZE_RESPECT_BUTTON_SECTIONS, square_i(), AZone::type, UI_region_button_sections_is_inside_x(), UI_view2d_mouse_in_scrollers_ex(), ARegion::v2d, V2D_SCROLL_HIDE_HEIGHT, V2D_SCROLL_HIDE_WIDTH, V2D_SCROLL_HORIZONTAL, V2D_SCROLL_VERTICAL, View2D::vert, ARegion::visible, ARegion::winrct, AZone::x1, AZone::x2, rcti::xmin, xy, AZone::y1, and AZone::y2.
Referenced by ED_area_actionzone_find_xy(), ED_area_azones_update(), and screen_actionzone_find_xy().
|
static |
Definition at line 1550 of file screen_ops.cc.
References BKE_report(), BLI_findindex(), CTX_wm_area(), CTX_wm_screen(), CTX_wm_window_set(), NA_EDITED, NC_SCREEN, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, screen_area_close(), and WM_event_add_notifier().
Referenced by SCREEN_OT_area_close().
|
static |
Definition at line 1578 of file screen_ops.cc.
References area_getorientation(), CTX_wm_area(), CTX_wm_screen(), ED_area_is_global(), ED_operator_areaactive(), and LISTBASE_FOREACH.
Referenced by SCREEN_OT_area_close().
|
static |
Definition at line 3808 of file screen_ops.cc.
References area_getoffsets(), area_getorientation(), area_split(), bScreen::areabase, ScrAreaMap::areabase, BLI_listbase_is_empty(), BLI_listbase_is_single(), Center, sAreaJoinData::close_win, CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), wmOperator::customdata, sAreaJoinData::dock_target, ED_area_swapspace(), ELEM, sAreaJoinData::factor, wmWindow::global_areas, Left, NA_EDITED, NC_SCREEN, Right, sAreaJoinData::sa1, sAreaJoinData::sa2, screen_area_close(), screen_area_join(), SCREEN_AXIS_H, SCREEN_AXIS_V, Top, sAreaJoinData::win1, sAreaJoinData::win2, WM_event_add_notifier(), and WM_window_get_active_screen().
Referenced by area_join_modal().
Definition at line 3899 of file screen_ops.cc.
References KM_ALT, KM_CTRL, and pos.
Referenced by area_docking_target().
|
static |
Definition at line 3940 of file screen_ops.cc.
References area_docking_snap(), AREAMINX, BKE_workspace_active_screen_get(), Bottom, Center, sAreaJoinData::current_x, sAreaJoinData::current_y, sAreaJoinData::dir, ELEM, sAreaJoinData::factor, float, HEADERY, Left, None, wmWindow::posx, wmWindow::posy, Right, sAreaJoinData::sa1, sAreaJoinData::sa2, SCREEN_DIR_E, SCREEN_DIR_N, SCREEN_DIR_NONE, SCREEN_DIR_S, SCREEN_DIR_W, Top, ScrArea::totrct, UI_SCALE_FAC, sAreaJoinData::win1, sAreaJoinData::win2, ScrArea::winx, ScrArea::winy, WM_window_native_pixel_coords(), wmWindow::workspace_hook, rcti::xmax, rcti::xmin, wmEvent::xy, rcti::ymax, and rcti::ymin.
Referenced by area_join_update_data().
Callback for WM_window_open to setup the area's data.
Definition at line 1469 of file screen_ops.cc.
References ED_area_data_copy(), and ED_area_tag_redraw().
Referenced by area_dupli_open().
|
static |
Definition at line 1497 of file screen_ops.cc.
References actionzone_exit(), area_dupli_open(), BKE_report(), CTX_wm_area(), wmEvent::customdata, NA_EDITED, NC_SCREEN, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::reports, RPT_ERROR, sActionzoneData::sa1, and WM_event_add_notifier().
Referenced by SCREEN_OT_area_dupli().
|
static |
Definition at line 1477 of file screen_ops.cc.
References area_dupli_fn(), SPACE_EMPTY, WIN_ALIGN_ABSOLUTE, and WM_window_open().
Referenced by area_dupli_invoke(), and area_join_modal().
Definition at line 2267 of file screen_ops.cc.
References BKE_screen_find_edge(), ScrArea::v1, ScrArea::v2, ScrArea::v3, and ScrArea::v4.
Referenced by area_split_apply().
|
static |
Definition at line 3686 of file screen_ops.cc.
References BLI_listbase_is_single(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_manager(), CTX_wm_region_set(), CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, sAreaJoinData::dir, sAreaJoinData::sa1, sAreaJoinData::sa2, screen_area_join(), SCREEN_DIR_NONE, and WM_window_title().
Referenced by area_join_exec(), and area_join_modal().
|
static |
Definition at line 4157 of file screen_ops.cc.
References area_join_exit(), CTX_wm_window(), NC_WINDOW, WM_CURSOR_DEFAULT, WM_cursor_set(), and WM_event_add_notifier().
Referenced by area_join_modal(), and SCREEN_OT_area_join().
|
static |
Definition at line 3861 of file screen_ops.cc.
References BKE_workspace_active_screen_get(), sAreaJoinData::dir, sAreaJoinData::dock_target, None, sAreaJoinData::sa1, sAreaJoinData::sa2, SCREEN_AXIS_V, SCREEN_DIR_NONE, wmWindow::sizex, wmWindow::sizey, sAreaJoinData::split_dir, sAreaJoinData::split_fac, sAreaJoinData::win1, sAreaJoinData::win2, WM_CURSOR_EDIT, WM_CURSOR_H_SPLIT, WM_CURSOR_HAND_CLOSED, WM_CURSOR_MOVE, WM_CURSOR_PICK_AREA, WM_CURSOR_STOP, WM_CURSOR_V_SPLIT, wmWindow::workspace_hook, and wmEvent::xy.
Referenced by area_join_invoke(), and area_join_modal().
|
static |
Definition at line 3617 of file screen_ops.cc.
References sAreaJoinData::current_x, sAreaJoinData::current_y, wmOperator::customdata, sAreaJoinData::dir, sAreaJoinData::dock_target, sAreaJoinData::factor, sAreaJoinData::sa1, sAreaJoinData::sa2, SCREEN_DIR_NONE, and screen_draw_dock_preview().
Referenced by area_join_dock_cb_window().
|
static |
Definition at line 3628 of file screen_ops.cc.
References area_join_dock_cb(), sAreaJoinData::draw_dock_callback, sAreaJoinData::draw_dock_win, ED_area_tag_redraw(), ED_screen_areas_iter, sAreaJoinData::sa2, sAreaJoinData::win2, WM_draw_cb_activate(), WM_draw_cb_exit(), and WM_window_get_active_screen().
Referenced by area_join_invoke(), and area_join_modal().
|
static |
Definition at line 3601 of file screen_ops.cc.
References wmOperator::customdata, sAreaJoinData::dir, sAreaJoinData::sa1, sAreaJoinData::sa2, screen_draw_join_highlight(), screen_draw_split_preview(), sAreaJoinData::split_dir, and sAreaJoinData::split_fac.
Referenced by area_join_invoke().
|
static |
Definition at line 3738 of file screen_ops.cc.
References area_getorientation(), area_join_apply(), area_join_exit(), area_join_init(), wmOperator::customdata, ED_area_tag_redraw(), NA_EDITED, NC_SCREEN, OPERATOR_CANCELLED, OPERATOR_FINISHED, sAreaJoinData::sa1, sAreaJoinData::sa2, SCREEN_DIR_NONE, and WM_event_add_notifier().
Referenced by SCREEN_OT_area_join().
|
static |
Definition at line 3712 of file screen_ops.cc.
References BKE_screen_remove_double_scredges(), BKE_screen_remove_unused_scredges(), BKE_screen_remove_unused_scrverts(), CTX_wm_screen(), wmOperator::customdata, sAreaJoinData::draw_callback, sAreaJoinData::draw_dock_callback, sAreaJoinData::draw_dock_win, ED_workspace_status_text(), G, MEM_freeN(), sAreaJoinData::win1, and WM_draw_cb_exit().
Referenced by area_join_cancel(), area_join_exec(), and area_join_modal().
|
static |
Definition at line 3650 of file screen_ops.cc.
References area_getorientation(), BKE_screen_find_area_xy(), CTX_wm_manager(), CTX_wm_screen(), wmOperator::customdata, sAreaJoinData::dir, MEM_callocN, wmOperator::ptr, RNA_property_int_get_array(), RNA_property_is_set(), RNA_struct_find_property(), sAreaJoinData::sa1, sAreaJoinData::sa2, SPACE_TYPE_ANY, sAreaJoinData::win1, sAreaJoinData::win2, and WM_window_find_by_area().
Referenced by area_join_exec(), area_join_invoke(), and area_join_modal().
|
static |
Definition at line 3763 of file screen_ops.cc.
References area_join_cursor(), area_join_dock_cb_window(), area_join_draw_cb(), area_join_init(), area_join_update_data(), CTX_wm_area(), CTX_wm_window(), sAreaJoinData::current_x, sAreaJoinData::current_y, wmOperator::customdata, sAreaJoinData::draw_callback, ED_area_is_global(), EVT_ACTIONZONE_AREA, sActionzoneData::modifier, NC_WINDOW, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, sActionzoneData::sa1, sAreaJoinData::sa1, sActionzoneData::sa2, sAreaJoinData::sa2, sAreaJoinData::start_x, sAreaJoinData::start_y, ScrArea::totrct, wmEvent::type, sAreaJoinData::win1, WM_cursor_set(), WM_draw_cb_activate(), WM_event_add_modal_handler(), WM_event_add_notifier(), sActionzoneData::x, rcti::xmin, sActionzoneData::y, and rcti::ymax.
Referenced by SCREEN_OT_area_join().
|
static |
Definition at line 4165 of file screen_ops.cc.
References area_docking_apply(), area_dupli_open(), area_join_apply(), area_join_cancel(), area_join_cursor(), area_join_dock_cb_window(), area_join_exit(), area_join_init(), area_join_update_data(), area_split(), area_split_allowed(), bScreen::areabase, ScrAreaMap::areabase, BLI_listbase_is_empty(), BLI_listbase_is_single(), sAreaJoinData::close_win, CTX_wm_manager(), CTX_wm_region(), wmOperator::customdata, sAreaJoinData::dir, sAreaJoinData::dock_target, ED_area_tag_redraw(), EVT_ESCKEY, wmWindow::global_areas, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), KM_ALT, KM_CTRL, KM_RELEASE, LEFTMOUSE, wmEvent::modifier, MOUSEMOVE, NA_EDITED, NC_SCREEN, NC_WINDOW, None, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, sAreaJoinData::sa1, sAreaJoinData::sa2, screen_area_close(), SCREEN_AXIS_H, SCREEN_AXIS_V, SCREEN_DIR_NONE, wmWindow::sizex, wmWindow::sizey, sAreaJoinData::split_dir, sAreaJoinData::split_fac, sAreaJoinData::start_x, sAreaJoinData::start_y, ScrArea::totrct, wmEvent::type, ScrArea::v1, ScrArea::v2, ScrArea::v3, ScrArea::v4, wmEvent::val, sAreaJoinData::win1, sAreaJoinData::win2, WINDEACTIVATE, ScrArea::winx, ScrArea::winy, WM_cursor_set(), WM_event_add_notifier(), WM_event_modal_handler_region_replace(), wm_window_close(), WM_window_get_active_screen(), WM_window_title(), and wmEvent::xy.
Referenced by SCREEN_OT_area_join().
|
static |
Definition at line 4097 of file screen_ops.cc.
References abs(), area_docking_target(), area_getorientation(), area_split_factor(), BKE_screen_find_area_xy(), BLI_rcti_isect_pt_v(), CTX_wm_manager(), CTX_wm_screen(), sAreaJoinData::dir, sAreaJoinData::dock_target, ED_area_find_under_cursor(), LISTBASE_FOREACH, None, sAreaJoinData::sa1, sAreaJoinData::sa2, SCREEN_AXIS_H, SCREEN_AXIS_V, SCREEN_DIR_NONE, SPACE_TYPE_ANY, sAreaJoinData::split_dir, sAreaJoinData::split_fac, sAreaJoinData::start_x, sAreaJoinData::start_y, sAreaJoinData::win2, wm_cursor_position_get(), WM_window_find_by_area(), WM_window_rect_calc(), and wmEvent::xy.
Referenced by area_join_invoke(), and area_join_modal().
Definition at line 2739 of file screen_ops.cc.
References AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, ARegion::alignment, BLI_rcti_size_x(), BLI_rcti_size_y(), ELEM, LISTBASE_FOREACH, ARegion::prev, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_SPLIT_PREV, RGN_TYPE_ASSET_SHELF_HEADER, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, UI_SCALE_FAC, ARegion::winx, and ARegion::winy.
Referenced by region_scale_invoke().
|
static |
Definition at line 1994 of file screen_ops.cc.
References area_move_apply_do(), sAreaMoveData::bigger, wmOperator::customdata, sAreaMoveData::dir_axis, sAreaMoveData::origval, wmOperator::ptr, RNA_int_get(), sAreaMoveData::smaller, and sAreaMoveData::snap_type.
Referenced by area_move_cancel(), area_move_exec(), and area_move_modal().
|
static |
Definition at line 1912 of file screen_ops.cc.
References abs(), area_snap_calc_location(), BKE_icon_changed(), BLI_assert, CLAMP, CTX_wm_screen(), CTX_wm_window(), ED_area_is_global(), ED_area_tag_redraw(), ED_area_tag_redraw_no_rebuild(), ED_screen_areas_iter, ED_screen_global_areas_sync(), ED_screen_verts_iter, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), NA_EDITED, NC_SCREEN, round_fl_to_int(), SCREEN_AXIS_V, screen_geom_area_height(), SNAP_BIGGER_SMALLER_ONLY, SNAP_FRACTION_AND_ADJACENT, SNAP_NONE, UI_SCALE_FAC, and WM_event_add_notifier().
Referenced by area_move_apply(), and area_split_modal().
|
static |
Definition at line 2054 of file screen_ops.cc.
References area_move_apply(), area_move_exit(), wmOperator::ptr, and RNA_int_set().
Referenced by area_move_modal(), and SCREEN_OT_area_move().
|
static |
Definition at line 1763 of file screen_ops.cc.
References wmOperator::customdata, sAreaMoveData::dir_axis, sAreaMoveData::screen, and screen_draw_move_highlight().
Referenced by area_move_init().
|
static |
Definition at line 2018 of file screen_ops.cc.
References area_move_apply(), area_move_exit(), area_move_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by SCREEN_OT_area_move().
|
static |
Definition at line 2002 of file screen_ops.cc.
References BKE_screen_remove_double_scredges(), BKE_screen_remove_double_scrverts(), CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, sAreaMoveData::draw_callback, ED_workspace_status_text(), G, MEM_SAFE_FREE, and WM_draw_cb_exit().
Referenced by area_move_cancel(), area_move_exec(), and area_move_modal().
|
static |
Definition at line 1772 of file screen_ops.cc.
References area_move_draw_cb(), area_move_set_limits(), sAreaMoveData::bigger, CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, sAreaMoveData::dir_axis, sAreaMoveData::draw_callback, ED_screen_verts_iter, MEM_callocN, sAreaMoveData::origval, wmOperator::ptr, RNA_int_get(), sAreaMoveData::screen, SCREEN_AXIS_H, SCREEN_AXIS_V, screen_geom_edge_is_horizontal(), screen_geom_find_active_scredge(), screen_geom_select_connected_edge(), sAreaMoveData::smaller, SNAP_AREAGRID, SNAP_BIGGER_SMALLER_ONLY, sAreaMoveData::snap_type, ScrEdge::v1, ScrVert::vec, WM_draw_cb_activate(), vec2s::x, and vec2s::y.
Referenced by area_move_exec(), and area_move_invoke().
|
static |
Definition at line 2031 of file screen_ops.cc.
References area_move_init(), wmOperator::customdata, G, G_TRANSFORM_WM, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_int_set(), SNAP_FRACTION_AND_ADJACENT, sAreaMoveData::snap_type, WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by SCREEN_OT_area_move().
|
static |
Definition at line 2063 of file screen_ops.cc.
References area_move_apply(), area_move_cancel(), area_move_exit(), wmOperator::customdata, sAreaMoveData::dir_axis, EVT_MODAL_MAP, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::item_bool(), KM_MODAL_APPLY, KM_MODAL_CANCEL, KM_MODAL_SNAP_OFF, KM_MODAL_SNAP_ON, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RIGHTMOUSE, RNA_int_get(), RNA_int_set(), SCREEN_AXIS_V, SNAP_AREAGRID, SNAP_BIGGER_SMALLER_ONLY, SNAP_FRACTION_AND_ADJACENT, sAreaMoveData::snap_type, wmEvent::type, wmEvent::val, wmEvent::xy, and y.
Referenced by SCREEN_OT_area_move().
|
static |
Definition at line 1665 of file screen_ops.cc.
References ScrAreaMap::areabase, AREAMINX, BLI_assert, ED_area_global_max_size_y(), ED_area_global_min_size_y(), ED_area_headersize(), wmWindow::global_areas, int, LISTBASE_FOREACH, max_ii(), min_ii(), SCREEN_AXIS_H, screen_geom_area_height(), screen_geom_area_width(), UI_SCALE_FAC, WM_window_rect_calc(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by area_move_init(), and area_split_invoke().
|
static |
Definition at line 1818 of file screen_ops.cc.
References abs(), AREAGRID, ARRAY_SIZE, BLI_assert, CLAMP, ELEM, float, IN_RANGE_INCL, LISTBASE_FOREACH, round_fl_to_int(), SCREEN_AXIS_V, SNAP_AREAGRID, SNAP_BIGGER_SMALLER_ONLY, SNAP_FRACTION_AND_ADJACENT, SNAP_NONE, and v2.
Referenced by area_move_apply_do(), and area_split_modal().
|
static |
Definition at line 2193 of file screen_ops.cc.
References AREAMINX, ED_area_headersize(), SCREEN_AXIS_H, SCREEN_AXIS_V, and UI_SCALE_FAC.
Referenced by area_join_modal(), area_split_apply(), area_split_draw_cb(), and area_split_preview_update_cursor().
|
static |
Definition at line 2295 of file screen_ops.cc.
References area_findsharededge(), area_split(), area_split_allowed(), BKE_icon_changed(), CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, ED_area_tag_redraw(), ED_screen_verts_iter, ScrVert::editflag, NA_EDITED, sAreaSplitData::narea, NC_SCREEN, sAreaSplitData::nedge, sAreaSplitData::origval, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), sAreaSplitData::sarea, SCREEN_AXIS_H, ScrEdge::v1, ScrEdge::v2, ScrVert::vec, WM_event_add_notifier(), WM_window_title(), vec2s::x, and vec2s::y.
Referenced by area_split_exec(), area_split_invoke(), and area_split_modal().
|
static |
Definition at line 2540 of file screen_ops.cc.
References area_split_exit(), CTX_wm_area(), CTX_wm_area_set(), CTX_wm_region_set(), CTX_wm_screen(), wmOperator::customdata, sAreaSplitData::narea, sAreaSplitData::previewmode, sAreaSplitData::sarea, and screen_area_join().
Referenced by area_split_modal(), and SCREEN_OT_area_split().
|
static |
Definition at line 2210 of file screen_ops.cc.
References area_split_allowed(), wmOperator::customdata, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), sAreaSplitData::sarea, and screen_draw_split_preview().
Referenced by area_split_invoke().
|
static |
Definition at line 2528 of file screen_ops.cc.
References area_split_apply(), area_split_exit(), area_split_init(), OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by SCREEN_OT_area_split().
|
static |
Definition at line 2345 of file screen_ops.cc.
References BKE_screen_remove_double_scredges(), BKE_screen_remove_double_scrverts(), CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, sAreaSplitData::draw_callback, ED_area_tag_redraw(), ED_workspace_status_text(), G, MEM_freeN(), NA_EDITED, sAreaSplitData::narea, NC_SCREEN, sAreaSplitData::sarea, WM_cursor_modal_restore(), WM_draw_cb_exit(), and WM_event_add_notifier().
Referenced by area_split_cancel(), area_split_exec(), and area_split_modal().
|
static |
Definition at line 4063 of file screen_ops.cc.
References abs(), CTX_wm_screen(), fabs(), float, KM_CTRL, LISTBASE_FOREACH, wmEvent::modifier, sAreaJoinData::sa1, SCREEN_AXIS_V, sAreaJoinData::split_dir, ScrArea::totrct, ScrArea::winx, ScrArea::winy, rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by area_join_update_data().
|
static |
Definition at line 2236 of file screen_ops.cc.
References CTX_wm_area(), wmOperator::customdata, MEM_callocN, sAreaSplitData::origmin, sAreaSplitData::origsize, wmOperator::ptr, RNA_enum_get(), sAreaSplitData::sarea, and SCREEN_AXIS_V.
Referenced by area_split_exec(), and area_split_invoke().
|
static |
Definition at line 2389 of file screen_ops.cc.
References area_move_set_limits(), area_split_apply(), area_split_draw_cb(), area_split_init(), area_split_menu_init(), area_split_preview_update_cursor(), AREAMAP_FROM_SCREEN, sActionzoneData::az, sAreaSplitData::bigger, BLI_assert, copy_v2_v2_int(), CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), wmOperator::customdata, sAreaSplitData::draw_callback, EVT_ACTIONZONE_AREA, float, G, G_TRANSFORM_WM, sActionzoneData::gesture_dir, is_left(), sActionzoneData::modifier, OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, sAreaSplitData::previewmode, wmOperator::ptr, RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_float_set(), RNA_property_int_get_array(), RNA_property_is_set(), RNA_struct_find_property(), sActionzoneData::sa1, sActionzoneData::sa2, SCREEN_AXIS_H, SCREEN_AXIS_V, SCREEN_DIR_IS_VERTICAL, screen_geom_area_map_find_active_scredge(), screen_geom_edge_is_horizontal(), SCREENNORMAL, sAreaSplitData::smaller, wmEvent::type, ScrArea::v1, ScrVert::vec, ScrArea::winx, ScrArea::winy, WM_draw_cb_activate(), WM_event_add_modal_handler(), WM_window_rect_calc(), vec2s::x, wmEvent::xy, and vec2s::y.
Referenced by SCREEN_OT_area_split().
|
static |
Definition at line 2224 of file screen_ops.cc.
References CTX_wm_area(), wmOperator::customdata, MEM_callocN, and sAreaSplitData::sarea.
Referenced by area_split_invoke().
|
static |
Definition at line 2559 of file screen_ops.cc.
References area_move_apply_do(), area_snap_calc_location(), area_split_apply(), area_split_cancel(), area_split_exit(), area_split_preview_update_cursor(), sAreaSplitData::bigger, BKE_screen_find_area_xy(), CTX_wm_screen(), wmOperator::customdata, sAreaSplitData::delta, bScreen::do_draw, sAreaSplitData::do_snap, ED_area_tag_redraw(), EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_RIGHTCTRLKEY, EVT_TABKEY, float, KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, sAreaSplitData::origmin, sAreaSplitData::origsize, sAreaSplitData::origval, sAreaSplitData::previewmode, wmOperator::ptr, RIGHTMOUSE, RNA_float_set(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_struct_find_property(), sAreaSplitData::sarea, SCREEN_AXIS_H, SCREEN_AXIS_V, sAreaSplitData::smaller, SNAP_FRACTION_AND_ADJACENT, SNAP_NONE, SPACE_TYPE_ANY, wmEvent::type, wmEvent::val, and wmEvent::xy.
Referenced by SCREEN_OT_area_split().
|
static |
Definition at line 2375 of file screen_ops.cc.
References area_split_allowed(), CTX_wm_window(), wmOperator::customdata, wmOperator::ptr, RNA_enum_get(), sAreaSplitData::sarea, SCREEN_AXIS_H, WM_CURSOR_H_SPLIT, WM_cursor_set(), WM_CURSOR_STOP, and WM_CURSOR_V_SPLIT.
Referenced by area_split_invoke(), and area_split_modal().
|
static |
Definition at line 1369 of file screen_ops.cc.
References area_swap_exit().
Referenced by area_swap_modal(), and SCREEN_OT_area_swap().
|
static |
Definition at line 1428 of file screen_ops.cc.
References ED_area_swapspace(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get_array(), and screen_area_edge_from_cursor().
Referenced by SCREEN_OT_area_swap().
|
static |
Definition at line 1362 of file screen_ops.cc.
References CTX_wm_window(), wmOperator::customdata, ED_workspace_status_text(), MEM_SAFE_FREE, and WM_cursor_modal_restore().
Referenced by area_swap_cancel(), and area_swap_modal().
|
static |
Definition at line 1345 of file screen_ops.cc.
References wmOperator::customdata, MEM_callocN, sActionzoneData::sa1, sAreaSwapData::sa1, sActionzoneData::sa2, and sAreaSwapData::sa2.
Referenced by area_swap_invoke().
|
static |
Definition at line 1374 of file screen_ops.cc.
References area_swap_init(), CTX_wm_window(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, WM_cursor_modal_set(), WM_CURSOR_SWAP_AREA, and WM_event_add_modal_handler().
Referenced by SCREEN_OT_area_swap().
|
static |
Definition at line 1387 of file screen_ops.cc.
References area_swap_cancel(), area_swap_exit(), CTX_wm_window(), wmOperator::customdata, ED_area_find_under_cursor(), ED_area_swapspace(), ED_area_tag_redraw(), EVT_ESCKEY, IFACE_, KM_RELEASE, LEFTMOUSE, MOUSEMOVE, NA_EDITED, NC_SCREEN, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, sActionzoneData::sa1, sActionzoneData::sa2, SPACE_TYPE_ANY, wmEvent::type, wmEvent::val, WM_cursor_set(), WM_CURSOR_STOP, WM_CURSOR_SWAP_AREA, WM_event_add_notifier(), and wmEvent::xy.
Referenced by SCREEN_OT_area_swap().
|
static |
Definition at line 3108 of file screen_ops.cc.
References BLI_rctf_size_x(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_screen(), LISTBASE_FOREACH, bScreen::redraws_flag, screen_animation_region_supports_time_follow(), TIME_FOLLOW, w(), wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by frame_jump_exec(), frame_offset_exec(), keyframe_jump_exec(), and marker_jump_exec().
Definition at line 782 of file screen_ops.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, AZONE_REGION, AZone::edge, max_ii(), min_ii(), AZone::rect, AZone::region, AZone::type, UI_REGION_OVERLAP_MARGIN, UI_view2d_view_to_region_x(), UI_view2d_view_to_region_y(), V2D_KEEPTOT_STRICT, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by area_actionzone_get_rect().
Definition at line 6574 of file screen_ops.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_single_path().
Referenced by ED_keymap_screen().
Definition at line 6563 of file screen_ops.cc.
References ELEM, FILE_TYPE_BLENDER, FILE_TYPE_BLENDER_BACKUP, wmDrag::type, WM_drag_get_path_file_type(), and WM_DRAG_PATH.
Referenced by ED_keymap_screen().
|
static |
Helper to get the correct RNA pointer/property pair for changing the display context of active space type in area.
Definition at line 6359 of file screen_ops.cc.
References BLI_assert, RNA_pointer_create(), RNA_struct_find_property(), SPACE_PROPERTIES, and SPACE_USERPREF.
Referenced by space_context_cycle_invoke().
|
static |
Definition at line 5919 of file screen_ops.cc.
References ACHANNEL_SETFLAG_CLEAR, ANIM_anim_channels_select_set(), ANIM_animdata_get_context(), ANIM_set_active_channel(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, BKE_fcurve_find_by_rna_context_ui(), BKE_report(), CTX_wm_area(), CTX_wm_window(), bAnimContext::data, bAnimContext::datatype, ED_drivers_editor_init(), wmWindow::eventstate, FCURVE_ACTIVE, FCURVE_SELECTED, FCurve::flag, IFACE_, OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::reports, RPT_ERROR, SPACE_GRAPH, UI_context_active_but_prop_get(), UI_SCALE_FAC, WIN_ALIGN_LOCATION_CENTER, and WM_window_open().
Referenced by SCREEN_OT_drivers_editor_show().
Definition at line 1038 of file screen_ops.cc.
References area_actionzone_refresh_xy(), and xy.
Referenced by actionzone_modal(), ED_screen_area_active(), ED_screen_draw_edges(), and screen_cursor_set().
Definition at line 1043 of file screen_ops.cc.
References area_actionzone_refresh_xy(), and xy.
Referenced by ED_area_update_region_sizes(), ED_screen_set_active_region(), and wm_event_do_handlers().
| void ED_keymap_screen | ( | wmKeyConfig * | keyconf | ) |
Definition at line 6580 of file screen_ops.cc.
References blend_file_drop_copy(), blend_file_drop_poll(), keymap_modal_set(), RGN_TYPE_WINDOW, SPACE_EMPTY, UI_drop_color_copy(), UI_drop_color_poll(), WM_dropbox_add(), WM_dropboxmap_find(), and WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
|
static |
Definition at line 405 of file screen_ops.cc.
References Object::mode, OB_HIDE_VIEWPORT, OB_MODE_EDIT, and Object::visibility_flag.
Referenced by ED_operator_object_active(), ED_operator_object_active_editable_ex(), ED_operator_object_active_editable_font(), and ED_operator_object_active_editable_mesh().
| bool ED_operator_action_active | ( | bContext * | C | ) |
Definition at line 338 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_ACTION.
Referenced by action_layer_next_poll(), action_layer_prev_poll(), action_new_poll(), ACTION_OT_bake_keys(), ACTION_OT_clean(), ACTION_OT_clickselect(), ACTION_OT_copy(), ACTION_OT_delete(), ACTION_OT_duplicate(), ACTION_OT_easing_type(), ACTION_OT_extrapolation_type(), ACTION_OT_handle_type(), ACTION_OT_interpolation_type(), ACTION_OT_keyframe_insert(), ACTION_OT_keyframe_type(), ACTION_OT_mirror(), ACTION_OT_paste(), ACTION_OT_previewrange_set(), ACTION_OT_select_all(), ACTION_OT_select_box(), ACTION_OT_select_circle(), ACTION_OT_select_column(), ACTION_OT_select_lasso(), ACTION_OT_select_leftright(), ACTION_OT_select_less(), ACTION_OT_select_linked(), ACTION_OT_select_more(), ACTION_OT_snap(), ACTION_OT_view_all(), ACTION_OT_view_frame(), ACTION_OT_view_selected(), action_pushdown_poll(), action_stash_create_poll(), action_unlink_poll(), actkeys_framejump_poll(), and channel_view_poll().
| bool ED_operator_animview_active | ( | bContext * | C | ) |
Generic for any view2d which uses anim_ops.
Definition at line 267 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), CTX_wm_space_data(), ED_operator_areaactive(), ELEM, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, and SpaceLink::spacetype.
Referenced by ANIM_OT_previewrange_clear(), ANIM_OT_previewrange_set(), and ANIM_OT_scene_range_frame().
| bool ED_operator_areaactive | ( | bContext * | C | ) |
Definition at line 108 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_screen(), and CTX_wm_window().
Referenced by ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete_v3d(), ANIM_OT_keyframe_insert_menu(), ANIM_OT_keying_set_active_set(), area_close_poll(), delete_orientation_poll(), ED_operator_animview_active(), ed_spacetype_test(), region_flip_poll(), region_toggle_poll(), screen_maximize_area_poll(), SCREEN_OT_area_dupli(), SCREEN_OT_header_toggle_menus(), SCREEN_OT_region_scale(), and TRANSFORM_OT_create_orientation().
| bool ED_operator_asset_browsing_active | ( | bContext * | C | ) |
Definition at line 325 of file screen_ops.cc.
References CTX_wm_space_file(), ED_fileselect_is_asset_browser(), ed_spacetype_test(), and SPACE_FILE.
Referenced by blender::ed::asset::asset_library_refresh_exec(), and blender::ed::asset::asset_library_refresh_poll().
| bool ED_operator_buttons_active | ( | bContext * | C | ) |
Definition at line 343 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_PROPERTIES.
Referenced by BUTTONS_OT_clear_filter(), BUTTONS_OT_context_menu(), BUTTONS_OT_start_filter(), and BUTTONS_OT_toggle_pin().
| bool ED_operator_camera_poll | ( | bContext * | C | ) |
Definition at line 694 of file screen_ops.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, and ID_IS_EDITABLE.
Referenced by VIEW3D_OT_camera_background_image_remove().
| bool ED_operator_console_active | ( | bContext * | C | ) |
Definition at line 400 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_CONSOLE.
Referenced by console_copy_poll(), CONSOLE_OT_clear(), CONSOLE_OT_clear_line(), CONSOLE_OT_delete(), CONSOLE_OT_history_append(), CONSOLE_OT_history_cycle(), CONSOLE_OT_indent(), CONSOLE_OT_indent_or_autocomplete(), CONSOLE_OT_insert(), CONSOLE_OT_move(), CONSOLE_OT_paste(), CONSOLE_OT_scrollback_append(), CONSOLE_OT_select_all(), CONSOLE_OT_select_set(), CONSOLE_OT_select_word(), and CONSOLE_OT_unindent().
| bool ED_operator_editable_mesh | ( | bContext * | C | ) |
Definition at line 468 of file screen_ops.cc.
References ED_mesh_context(), ID_IS_EDITABLE, and ID_IS_OVERRIDE_LIBRARY.
Referenced by MESH_OT_customdata_custom_splitnormals_add(), and MESH_OT_customdata_custom_splitnormals_clear().
| bool ED_operator_editarmature | ( | bContext * | C | ) |
Definition at line 498 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_ARMATURE, and Object::type.
Referenced by ARMATURE_OT_align(), ARMATURE_OT_autoside_names(), ARMATURE_OT_bone_primitive_add(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_click_extrude(), ARMATURE_OT_delete(), ARMATURE_OT_dissolve(), ARMATURE_OT_duplicate(), ARMATURE_OT_extrude(), ARMATURE_OT_fill(), ARMATURE_OT_flip_names(), ARMATURE_OT_hide(), ARMATURE_OT_parent_clear(), ARMATURE_OT_parent_set(), ARMATURE_OT_reveal(), ARMATURE_OT_roll_clear(), ARMATURE_OT_select_all(), ARMATURE_OT_select_hierarchy(), ARMATURE_OT_select_less(), ARMATURE_OT_select_linked(), ARMATURE_OT_select_mirror(), ARMATURE_OT_select_more(), ARMATURE_OT_select_similar(), ARMATURE_OT_separate(), ARMATURE_OT_shortest_path_pick(), ARMATURE_OT_split(), ARMATURE_OT_subdivide(), ARMATURE_OT_switch_direction(), ARMATURE_OT_symmetrize(), armature_select_linked_pick_poll(), and ED_keymap_armature().
| bool ED_operator_editcurve | ( | bContext * | C | ) |
Definition at line 638 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_CURVES_LEGACY, and Object::type.
Referenced by CURVE_OT_de_select_first(), CURVE_OT_de_select_last(), CURVE_OT_decimate(), CURVE_OT_dissolve_verts(), CURVE_OT_draw(), CURVE_OT_handle_type_set(), CURVE_OT_normals_make_consistent(), CURVE_OT_pen(), CURVE_OT_select_next(), CURVE_OT_select_previous(), CURVE_OT_spline_type_set(), CURVE_OT_tilt_clear(), and CURVE_OT_vertex_add().
| bool ED_operator_editcurve_3d | ( | bContext * | C | ) |
Definition at line 647 of file screen_ops.cc.
References CTX_data_edit_object(), CU_3D, Object::data, Curve::editnurb, Curve::flag, OB_CURVES_LEGACY, and Object::type.
| bool ED_operator_editfont | ( | bContext * | C | ) |
Definition at line 667 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_FONT, and Object::type.
Referenced by ED_keymap_curve(), FONT_OT_case_set(), FONT_OT_case_toggle(), FONT_OT_change_character(), FONT_OT_change_spacing(), FONT_OT_delete(), FONT_OT_line_break(), FONT_OT_move(), FONT_OT_move_select(), FONT_OT_select_all(), FONT_OT_select_word(), FONT_OT_selection_set(), FONT_OT_style_set(), FONT_OT_style_toggle(), FONT_OT_text_copy(), FONT_OT_text_cut(), FONT_OT_text_insert(), FONT_OT_text_insert_unicode(), FONT_OT_text_paste(), and FONT_OT_text_paste_from_file().
| bool ED_operator_editlattice | ( | bContext * | C | ) |
Definition at line 676 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_LATTICE, and Object::type.
Referenced by ED_keymap_lattice(), blender::ed::object::hook_op_edit_poll(), LATTICE_OT_flip(), LATTICE_OT_select_all(), LATTICE_OT_select_less(), LATTICE_OT_select_mirror(), LATTICE_OT_select_more(), LATTICE_OT_select_random(), LATTICE_OT_select_ungrouped(), make_regular_poll(), and blender::ed::object::vertex_parent_set_poll().
| bool ED_operator_editmball | ( | bContext * | C | ) |
Definition at line 685 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_MBALL, and Object::type.
Referenced by ED_keymap_metaball(), MBALL_OT_delete_metaelems(), MBALL_OT_duplicate_metaelems(), MBALL_OT_hide_metaelems(), MBALL_OT_reveal_metaelems(), MBALL_OT_select_all(), MBALL_OT_select_random_metaelems(), and MBALL_OT_select_similar().
| bool ED_operator_editmesh | ( | bContext * | C | ) |
Definition at line 474 of file screen_ops.cc.
References BKE_editmesh_from_object(), CTX_data_edit_object(), OB_MESH, and Object::type.
Referenced by ED_keymap_mesh(), ED_operator_editmesh_region_view3d(), ED_operator_editmesh_view3d(), edbm_select_by_attribute_poll(), edbm_select_ungrouped_poll(), edbm_separate_exec(), EDBM_view3d_poll(), blender::ed::object::hook_op_edit_poll(), blender::ed::mesh::mesh_active_attribute_poll(), MESH_OT_average_normals(), MESH_OT_beautify_fill(), MESH_OT_bevel(), MESH_OT_bisect(), MESH_OT_blend_from_shape(), MESH_OT_bridge_edge_loops(), MESH_OT_colors_reverse(), MESH_OT_colors_rotate(), MESH_OT_decimate(), MESH_OT_delete(), MESH_OT_delete_edgeloop(), MESH_OT_delete_loose(), MESH_OT_dissolve_degenerate(), MESH_OT_dissolve_edges(), MESH_OT_dissolve_faces(), MESH_OT_dissolve_limited(), MESH_OT_dissolve_mode(), MESH_OT_dissolve_verts(), MESH_OT_duplicate(), MESH_OT_edge_collapse(), MESH_OT_edge_face_add(), MESH_OT_edge_rotate(), MESH_OT_edge_split(), MESH_OT_edges_select_sharp(), MESH_OT_extrude_context(), MESH_OT_extrude_edges_indiv(), MESH_OT_extrude_faces_indiv(), MESH_OT_extrude_region(), MESH_OT_extrude_repeat(), MESH_OT_extrude_verts_indiv(), MESH_OT_face_make_planar(), MESH_OT_face_split_by_edges(), MESH_OT_faces_select_linked_flat(), MESH_OT_faces_shade_flat(), MESH_OT_faces_shade_smooth(), MESH_OT_fill(), MESH_OT_fill_grid(), MESH_OT_fill_holes(), MESH_OT_flip_normals(), MESH_OT_flip_quad_tessellation(), MESH_OT_hide(), MESH_OT_inset(), MESH_OT_intersect(), MESH_OT_intersect_boolean(), MESH_OT_loop_multi_select(), MESH_OT_loop_to_region(), MESH_OT_loopcut(), MESH_OT_mark_seam(), MESH_OT_mark_sharp(), MESH_OT_merge(), MESH_OT_merge_normals(), MESH_OT_mod_weighted_strength(), MESH_OT_normals_make_consistent(), MESH_OT_normals_tools(), MESH_OT_offset_edge_loops(), MESH_OT_point_normals(), MESH_OT_poke(), MESH_OT_quads_convert_to_tris(), MESH_OT_region_to_loop(), MESH_OT_remove_doubles(), MESH_OT_reveal(), MESH_OT_screw(), MESH_OT_select_all(), MESH_OT_select_axis(), MESH_OT_select_face_by_sides(), MESH_OT_select_interior_faces(), MESH_OT_select_less(), MESH_OT_select_linked(), MESH_OT_select_linked_pick(), MESH_OT_select_loose(), MESH_OT_select_mirror(), MESH_OT_select_mode(), MESH_OT_select_more(), MESH_OT_select_nth(), MESH_OT_select_random(), MESH_OT_select_similar(), MESH_OT_select_similar_region(), MESH_OT_set_normals_from_faces(), blender::ed::mesh::MESH_OT_set_sharpness_by_angle(), MESH_OT_shape_propagate_to_all(), MESH_OT_shortest_path_select(), MESH_OT_smooth_normals(), MESH_OT_solidify(), MESH_OT_sort_elements(), MESH_OT_spin(), MESH_OT_split(), MESH_OT_split_normals(), MESH_OT_subdivide(), MESH_OT_subdivide_edgering(), MESH_OT_symmetrize(), MESH_OT_symmetry_snap(), MESH_OT_tris_convert_to_quads(), MESH_OT_unsubdivide(), MESH_OT_uvs_reverse(), MESH_OT_uvs_rotate(), MESH_OT_vert_connect(), MESH_OT_vert_connect_concave(), MESH_OT_vert_connect_nonplanar(), MESH_OT_vert_connect_path(), MESH_OT_vertices_smooth(), MESH_OT_vertices_smooth_laplacian(), MESH_OT_wireframe(), TRANSFORM_OT_edge_bevelweight(), TRANSFORM_OT_edge_crease(), TRANSFORM_OT_edge_slide(), TRANSFORM_OT_rotate_normal(), TRANSFORM_OT_shrink_fatten(), TRANSFORM_OT_skin_resize(), TRANSFORM_OT_vert_crease(), TRANSFORM_OT_vert_slide(), and blender::ed::object::vertex_parent_set_poll().
| bool ED_operator_editmesh_region_view3d | ( | bContext * | C | ) |
Definition at line 488 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), CTX_wm_region_view3d(), and ED_operator_editmesh().
Referenced by MESH_OT_dupli_extrude_cursor(), MESH_OT_edgering_select(), MESH_OT_knife_project(), MESH_OT_loop_select(), and MESH_OT_shortest_path_pick().
| bool ED_operator_editmesh_view3d | ( | bContext * | C | ) |
Definition at line 483 of file screen_ops.cc.
References ED_operator_editmesh(), and ED_operator_view3d_active().
Referenced by MESH_OT_knife_tool(), and MESH_OT_primitive_cube_add_gizmo().
| bool ED_operator_editsurf | ( | bContext * | C | ) |
Definition at line 658 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, OB_SURF, and Object::type.
Referenced by CURVE_OT_select_row(), and CURVE_OT_spin().
| bool ED_operator_editsurfcurve | ( | bContext * | C | ) |
Definition at line 619 of file screen_ops.cc.
References CTX_data_edit_object(), Object::data, ELEM, OB_CURVES_LEGACY, OB_SURF, and Object::type.
Referenced by CURVE_OT_cyclic_toggle(), CURVE_OT_delete(), CURVE_OT_duplicate(), CURVE_OT_extrude(), CURVE_OT_hide(), CURVE_OT_make_segment(), CURVE_OT_radius_set(), CURVE_OT_reveal(), CURVE_OT_select_all(), CURVE_OT_select_less(), CURVE_OT_select_linked(), CURVE_OT_select_more(), CURVE_OT_select_nth(), CURVE_OT_select_random(), CURVE_OT_select_similar(), CURVE_OT_separate(), CURVE_OT_shade_flat(), CURVE_OT_shade_smooth(), CURVE_OT_smooth(), CURVE_OT_smooth_radius(), CURVE_OT_smooth_tilt(), CURVE_OT_smooth_weight(), CURVE_OT_spline_weight_set(), CURVE_OT_split(), CURVE_OT_subdivide(), CURVE_OT_switch_direction(), ED_keymap_curve(), ED_operator_editsurfcurve_region_view3d(), blender::ed::object::hook_op_edit_poll(), and blender::ed::object::vertex_parent_set_poll().
| bool ED_operator_editsurfcurve_region_view3d | ( | bContext * | C | ) |
Definition at line 628 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), CTX_wm_region_view3d(), and ED_operator_editsurfcurve().
Referenced by CURVE_OT_select_linked_pick(), and CURVE_OT_shortest_path_pick().
| bool ED_operator_file_active | ( | bContext * | C | ) |
Definition at line 312 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_FILE.
Referenced by FILE_OT_edit_directory_path(), FILE_OT_highlight(), FILE_OT_select(), FILE_OT_select_all(), FILE_OT_select_box(), FILE_OT_select_walk(), FILE_OT_smoothscroll(), FILE_OT_sort_column_ui_context(), FILE_OT_start_filter(), and FILE_OT_view_selected().
| bool ED_operator_file_browsing_active | ( | bContext * | C | ) |
Definition at line 317 of file screen_ops.cc.
References CTX_wm_space_file(), ED_fileselect_is_file_browser(), ed_spacetype_test(), and SPACE_FILE.
Referenced by file_bookmark_move_poll(), file_delete_poll(), file_filenum_poll(), file_operator_poll(), file_os_operations_menu_draw(), file_os_operations_menu_poll(), FILE_OT_bookmark_add(), FILE_OT_bookmark_cleanup(), FILE_OT_bookmark_delete(), FILE_OT_directory_new(), FILE_OT_execute(), FILE_OT_filepath_drop(), FILE_OT_hidedot(), FILE_OT_mouse_execute(), FILE_OT_next(), FILE_OT_parent(), FILE_OT_previous(), FILE_OT_refresh(), FILE_OT_rename(), FILE_OT_reset_recent(), and FILE_OT_select_bookmark().
| bool ED_operator_graphedit_active | ( | bContext * | C | ) |
Definition at line 370 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_GRAPH.
Referenced by channel_view_poll(), GRAPH_OT_ghost_curves_clear(), GRAPH_OT_hide(), GRAPH_OT_previewrange_set(), GRAPH_OT_reveal(), GRAPH_OT_view_all(), GRAPH_OT_view_frame(), GRAPH_OT_view_selected(), graph_panel_drivers_popover_poll(), graphview_cursor_poll(), and keyframe_jump_poll().
| bool ED_operator_image_active | ( | bContext * | C | ) |
Definition at line 385 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_IMAGE.
Referenced by RENDER_OT_view_cancel().
| bool ED_operator_info_active | ( | bContext * | C | ) |
Definition at line 395 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_INFO.
Referenced by INFO_OT_report_copy(), INFO_OT_report_delete(), INFO_OT_report_replay(), INFO_OT_select_all(), INFO_OT_select_box(), and INFO_OT_select_pick().
| bool ED_operator_nla_active | ( | bContext * | C | ) |
Definition at line 390 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_NLA.
Referenced by action_new_poll(), nla_action_unlink_poll(), NLA_OT_channels_click(), NLA_OT_click_select(), NLA_OT_previewrange_set(), NLA_OT_select_leftright(), NLA_OT_view_all(), NLA_OT_view_frame(), NLA_OT_view_selected(), nlaop_poll_tweakmode_off(), and nlaop_poll_tweakmode_on().
| bool ED_operator_node_active | ( | bContext * | C | ) |
Definition at line 348 of file screen_ops.cc.
References CTX_wm_space_node(), and SpaceNode::edittree.
Referenced by blender::ed::space_node::composite_node_active(), blender::ed::space_node::node_group_operator_active_poll(), blender::ed::space_node::NODE_OT_clipboard_copy(), blender::ed::space_node::NODE_OT_deactivate_viewer(), blender::ed::space_node::NODE_OT_find_node(), blender::ed::space_node::NODE_OT_hide_socket_toggle(), blender::ed::space_node::NODE_OT_hide_toggle(), blender::ed::space_node::NODE_OT_options_toggle(), blender::ed::space_node::NODE_OT_resize(), blender::ed::space_node::NODE_OT_select(), blender::ed::space_node::NODE_OT_select_all(), blender::ed::space_node::NODE_OT_select_box(), blender::ed::space_node::NODE_OT_select_circle(), blender::ed::space_node::NODE_OT_select_grouped(), blender::ed::space_node::NODE_OT_select_lasso(), blender::ed::space_node::NODE_OT_select_linked_from(), blender::ed::space_node::NODE_OT_select_linked_to(), blender::ed::space_node::NODE_OT_select_same_type_step(), blender::ed::space_node::node_previewable(), and blender::ed::space_node::space_node_active_view_poll().
| bool ED_operator_node_editable | ( | bContext * | C | ) |
Definition at line 359 of file screen_ops.cc.
References BKE_id_is_editable(), CTX_data_main(), CTX_wm_space_node(), SpaceNode::edittree, and bNodeTree::id.
Referenced by blender::ed::space_node::composite_node_editable(), blender::ed::space_node::node_active_link_viewer_poll(), blender::ed::space_node::node_add_collection_poll(), blender::ed::space_node::node_add_file_poll(), blender::ed::space_node::node_add_group_poll(), blender::ed::space_node::node_add_mask_poll(), blender::ed::space_node::node_add_material_poll(), blender::ed::space_node::node_add_object_poll(), blender::ed::space_node::node_group_operator_editable(), blender::ed::space_node::NODE_OT_add_reroute(), blender::ed::space_node::NODE_OT_attach(), blender::ed::space_node::NODE_OT_clipboard_paste(), blender::ed::space_node::NODE_OT_delete(), blender::ed::space_node::NODE_OT_delete_reconnect(), blender::ed::space_node::NODE_OT_detach(), blender::ed::space_node::NODE_OT_duplicate(), blender::ed::space_node::NODE_OT_insert_offset(), blender::ed::space_node::NODE_OT_join(), blender::ed::space_node::NODE_OT_link(), blender::ed::space_node::NODE_OT_link_make(), blender::ed::space_node::NODE_OT_links_cut(), blender::ed::space_node::NODE_OT_links_detach(), blender::ed::space_node::NODE_OT_links_mute(), blender::ed::space_node::NODE_OT_mute_toggle(), blender::ed::space_node::NODE_OT_node_copy_color(), blender::ed::space_node::NODE_OT_parent_set(), and blender::ed::space_node::node_shader_script_update_poll().
| bool ED_operator_object_active | ( | bContext * | C | ) |
Definition at line 411 of file screen_ops.cc.
References blender::ed::object::context_active_object(), and ed_object_hidden().
Referenced by blender::ed::object::bake_simulation::bake_simulation_poll(), blender::ed::object::OBJECT_OT_bake_image(), blender::ed::object::OBJECT_OT_geometry_node_tree_copy_assign(), blender::ed::object::OBJECT_OT_geometry_nodes_input_attribute_toggle(), blender::ed::object::OBJECT_OT_light_linking_blockers_select(), blender::ed::object::OBJECT_OT_light_linking_receivers_select(), blender::ed::object::OBJECT_OT_make_links_data(), blender::ed::object::OBJECT_OT_parent_set(), blender::ed::object::bake_simulation::OBJECT_OT_simulation_nodes_cache_delete(), blender::ed::object::bake_simulation::simulate_to_frame_poll(), and TRANSFORM_OT_bbone_resize().
| bool ED_operator_object_active_editable | ( | bContext * | C | ) |
Definition at line 437 of file screen_ops.cc.
References blender::ed::object::context_active_object(), and ED_operator_object_active_editable_ex().
Referenced by ED_operator_rigidbody_active_poll(), ED_operator_rigidbody_add_poll(), ED_operator_rigidbody_con_active_poll(), ED_operator_rigidbody_con_add_poll(), FLUID_OT_bake_all(), FLUID_OT_bake_data(), FLUID_OT_bake_guides(), FLUID_OT_bake_mesh(), FLUID_OT_bake_noise(), FLUID_OT_bake_particles(), FLUID_OT_free_all(), FLUID_OT_free_data(), FLUID_OT_free_guides(), FLUID_OT_free_mesh(), FLUID_OT_free_noise(), FLUID_OT_free_particles(), FLUID_OT_pause_bake(), blender::ed::object::modifiers_copy_to_selected_poll(), blender::ed::object::OBJECT_OT_constraint_add(), blender::ed::object::OBJECT_OT_constraint_add_with_targets(), blender::ed::object::OBJECT_OT_constraints_copy(), blender::ed::object::OBJECT_OT_forcefield_toggle(), blender::ed::object::OBJECT_OT_light_linking_blocker_collection_new(), blender::ed::object::OBJECT_OT_light_linking_blockers_link(), blender::ed::object::OBJECT_OT_light_linking_receiver_collection_new(), blender::ed::object::OBJECT_OT_light_linking_receivers_link(), blender::ed::object::OBJECT_OT_light_linking_unlink_from_collection(), blender::ed::object::OBJECT_OT_modifier_add(), blender::ed::object::OBJECT_OT_modifier_add_node_group(), blender::ed::object::OBJECT_OT_parent_no_inverse_set(), blender::ed::object::OBJECT_OT_paths_calculate(), blender::ed::object::OBJECT_OT_paths_clear(), blender::ed::object::OBJECT_OT_posemode_toggle(), and blender::ed::object::object_update_paths_poll().
Definition at line 417 of file screen_ops.cc.
References BKE_id_is_editable(), CTX_data_main(), CTX_wm_operator_poll_msg_set(), and ed_object_hidden().
Referenced by blender::ed::curves::curves_poll_impl(), ED_operator_object_active_editable(), ED_operator_object_active_local_editable(), ED_operator_object_active_local_editable_ex(), blender::ed::object::edit_constraint_poll_generic(), blender::ed::object::edit_shaderfx_poll_generic(), blender::ed::greasepencil::editable_grease_pencil_poll(), and blender::ed::object::object_mode_set_poll().
| bool ED_operator_object_active_editable_font | ( | bContext * | C | ) |
Definition at line 461 of file screen_ops.cc.
References blender::ed::object::context_active_object(), Object::data, ed_object_hidden(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, OB_FONT, and Object::type.
Referenced by FONT_OT_textbox_add(), and FONT_OT_textbox_remove().
| bool ED_operator_object_active_editable_mesh | ( | bContext * | C | ) |
Definition at line 454 of file screen_ops.cc.
References blender::ed::object::context_active_object(), Object::data, ed_object_hidden(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, OB_MESH, and Object::type.
Referenced by geometry_extract_poll(), blender::ed::object::OBJECT_OT_bake(), blender::ed::object::object_remesh_poll(), PAINT_OT_add_texture_paint_slot(), and blender::ed::sculpt_paint::SCULPT_OT_sculptmode_toggle().
| bool ED_operator_object_active_local_editable | ( | bContext * | C | ) |
Definition at line 448 of file screen_ops.cc.
References blender::ed::object::context_active_object(), ED_operator_object_active_editable_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by copy_particle_systems_poll(), DPAINT_OT_bake(), DPAINT_OT_output_toggle(), DPAINT_OT_surface_slot_add(), DPAINT_OT_surface_slot_remove(), DPAINT_OT_type_toggle(), duplicate_particle_systems_poll(), blender::ed::object::modifiers_clear_poll(), blender::ed::object::OBJECT_OT_constraints_clear(), OBJECT_OT_particle_system_add(), and OBJECT_OT_particle_system_remove().
Object must be editable and fully local (i.e. not an override).
Definition at line 443 of file screen_ops.cc.
References ED_operator_object_active_editable_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by object_materials_supported_poll_ex(), and blender::ed::object::vertex_group_supported_poll_ex().
| bool ED_operator_object_active_local_editable_posemode_exclusive | ( | bContext * | C | ) |
Object must be editable, fully local (i.e. not an override), and exclusively in Pose mode.
Definition at line 533 of file screen_ops.cc.
References blender::ed::object::context_active_object(), CTX_wm_operator_poll_msg_set(), ed_operator_posemode_exclusive_ex(), and ID_IS_OVERRIDE_LIBRARY.
Referenced by blender::ed::object::POSE_OT_constraints_clear(), and blender::ed::object::POSE_OT_ik_clear().
| bool ED_operator_objectmode | ( | bContext * | C | ) |
Definition at line 189 of file screen_ops.cc.
References CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), ID_IS_EDITABLE, Object::mode, and OB_MODE_OBJECT.
Referenced by blender::ed::object::COLLECTION_OT_create(), blender::ed::object::COLLECTION_OT_objects_add_active(), blender::ed::object::COLLECTION_OT_objects_remove(), blender::ed::object::COLLECTION_OT_objects_remove_active(), blender::ed::object::COLLECTION_OT_objects_remove_all(), blender::ed::object::collection_unlink_poll(), ED_operator_objectmode_poll_msg(), blender::ed::object::make_override_library_poll(), blender::ed::object::move_to_collection_poll(), blender::ed::object::object_curves_empty_hair_add_poll(), blender::ed::object::object_image_add_poll(), blender::ed::object::OBJECT_OT_add(), blender::ed::object::OBJECT_OT_armature_add(), blender::ed::object::OBJECT_OT_camera_add(), blender::ed::object::OBJECT_OT_collection_add(), blender::ed::object::OBJECT_OT_collection_external_asset_drop(), blender::ed::object::OBJECT_OT_collection_instance_add(), blender::ed::object::OBJECT_OT_collection_link(), blender::ed::object::OBJECT_OT_collection_objects_select(), blender::ed::object::OBJECT_OT_collection_remove(), blender::ed::object::OBJECT_OT_curves_random_add(), blender::ed::object::OBJECT_OT_data_instance_add(), blender::ed::object::OBJECT_OT_delete(), blender::ed::object::OBJECT_OT_duplicate(), blender::ed::object::OBJECT_OT_duplicates_make_real(), blender::ed::object::OBJECT_OT_effector_add(), blender::ed::object::OBJECT_OT_empty_add(), blender::ed::object::OBJECT_OT_grease_pencil_add(), blender::ed::object::OBJECT_OT_light_add(), blender::ed::object::OBJECT_OT_lightprobe_add(), blender::ed::object::OBJECT_OT_make_local(), blender::ed::object::OBJECT_OT_make_single_user(), blender::ed::object::OBJECT_OT_parent_inverse_apply(), blender::ed::object::OBJECT_OT_select_less(), blender::ed::object::OBJECT_OT_select_more(), blender::ed::object::OBJECT_OT_speaker_add(), blender::ed::object::OBJECT_OT_text_add(), blender::ed::object::OBJECT_OT_track_clear(), blender::ed::object::OBJECT_OT_track_set(), blender::ed::object::OBJECT_OT_transform_apply(), blender::ed::object::OBJECT_OT_volume_add(), blender::ed::object::object_pointcloud_add_poll(), and blender::ed::object::reset_clear_override_library_poll().
| bool ED_operator_objectmode_poll_msg | ( | bContext * | C | ) |
Same as ED_operator_objectmode() but additionally sets a "disabled hint". That is, a message to be displayed to the user explaining why the operator can't be used in current context.
Definition at line 209 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), and ED_operator_objectmode().
Referenced by ED_operator_objectmode_with_view3d_poll_msg(), blender::ed::object::OBJECT_OT_add_named(), and blender::ed::object::OBJECT_OT_transform_to_mouse().
| bool ED_operator_objectmode_with_view3d_poll_msg | ( | bContext * | C | ) |
Definition at line 219 of file screen_ops.cc.
References ED_operator_objectmode_poll_msg(), and ED_operator_region_view3d_active().
Referenced by blender::ed::object::OBJECT_OT_drop_named_material().
| bool ED_operator_outliner_active | ( | bContext * | C | ) |
Definition at line 280 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_OUTLINER.
Referenced by ED_operator_region_outliner_active(), blender::ed::outliner::outliner_data_operation_poll(), blender::ed::outliner::outliner_id_operation_itemf(), blender::ed::outliner::outliner_operation_tree_element_poll(), blender::ed::outliner::OUTLINER_OT_animdata_operation(), blender::ed::outliner::OUTLINER_OT_clear_filter(), blender::ed::outliner::OUTLINER_OT_collection_drop(), blender::ed::outliner::OUTLINER_OT_constraint_operation(), blender::ed::outliner::OUTLINER_OT_datastack_drop(), blender::ed::outliner::OUTLINER_OT_delete(), blender::ed::outliner::OUTLINER_OT_highlight_update(), blender::ed::outliner::OUTLINER_OT_id_copy(), blender::ed::outliner::OUTLINER_OT_id_paste(), blender::ed::outliner::OUTLINER_OT_item_drag_drop(), blender::ed::outliner::OUTLINER_OT_modifier_operation(), blender::ed::outliner::OUTLINER_OT_object_operation(), blender::ed::outliner::OUTLINER_OT_parent_clear(), blender::ed::outliner::OUTLINER_OT_scene_operation(), blender::ed::outliner::OUTLINER_OT_select_all(), blender::ed::outliner::OUTLINER_OT_select_walk(), and blender::ed::outliner::OUTLINER_OT_start_filter().
| bool ED_operator_outliner_active_no_editobject | ( | bContext * | C | ) |
Definition at line 299 of file screen_ops.cc.
References blender::ed::object::context_active_object(), CTX_data_edit_object(), ed_spacetype_test(), and SPACE_OUTLINER.
| bool ED_operator_posemode | ( | bContext * | C | ) |
Definition at line 562 of file screen_ops.cc.
References BKE_object_pose_armature_get(), CTX_data_active_object(), Object::mode, OB_MODE_ALL_WEIGHT_PAINT, and OB_MODE_EDIT.
Referenced by ED_keymap_armature(), ED_operator_posemode_local(), POSE_OT_armature_apply(), POSE_OT_autoside_names(), POSE_OT_blend_to_neighbors(), POSE_OT_blend_with_rest(), POSE_OT_breakdown(), POSE_OT_copy(), POSE_OT_hide(), POSE_OT_loc_clear(), POSE_OT_paste(), POSE_OT_propagate(), POSE_OT_push(), POSE_OT_quaternions_flip(), POSE_OT_relax(), POSE_OT_reveal(), POSE_OT_rot_clear(), POSE_OT_rotation_mode_set(), POSE_OT_scale_clear(), POSE_OT_select_all(), POSE_OT_select_constraint_target(), POSE_OT_select_grouped(), POSE_OT_select_hierarchy(), POSE_OT_select_linked(), POSE_OT_select_mirror(), POSE_OT_select_parent(), POSE_OT_transforms_clear(), POSE_OT_user_transforms_clear(), POSE_OT_visual_transform_apply(), and pose_select_linked_pick_poll().
| bool ED_operator_posemode_context | ( | bContext * | C | ) |
Allows for pinned pose objects to be used in the object buttons and the non-active pose object to be used in the 3D view.
Definition at line 549 of file screen_ops.cc.
References BKE_object_pose_context_check(), ED_pose_object_from_context(), Object::mode, and OB_MODE_EDIT.
| bool ED_operator_posemode_exclusive | ( | bContext * | C | ) |
Definition at line 526 of file screen_ops.cc.
References blender::ed::object::context_active_object(), and ed_operator_posemode_exclusive_ex().
Referenced by blender::ed::object::POSE_OT_constraint_add(), blender::ed::object::POSE_OT_constraint_add_with_targets(), blender::ed::object::POSE_OT_constraints_copy(), blender::ed::object::POSE_OT_ik_add(), POSE_OT_paths_calculate(), POSE_OT_paths_clear(), POSE_OT_paths_range_update(), and pose_update_paths_poll().
Check for pose mode (no mixed modes).
We want to enable most pose operations in weight paint mode, when it comes to transforming bones, but managing bones layers/groups and their constraints can be left for pose mode only (not weight paint mode).
Definition at line 514 of file screen_ops.cc.
References BKE_object_pose_armature_get(), CTX_wm_operator_poll_msg_set(), Object::mode, and OB_MODE_EDIT.
Referenced by ED_operator_object_active_local_editable_posemode_exclusive(), and ED_operator_posemode_exclusive().
| bool ED_operator_posemode_local | ( | bContext * | C | ) |
Definition at line 578 of file screen_ops.cc.
References BKE_id_is_editable(), BKE_object_pose_armature_get(), CTX_data_active_object(), CTX_data_main(), Object::data, ED_operator_posemode(), bArmature::id, and Object::id.
Referenced by POSE_OT_flip_names().
| bool ED_operator_region_gizmo_active | ( | bContext * | C | ) |
Definition at line 254 of file screen_ops.cc.
References CTX_wm_region().
Referenced by GIZMOGROUP_OT_gizmo_select(), and GIZMOGROUP_OT_gizmo_tweak().
| bool ED_operator_region_outliner_active | ( | bContext * | C | ) |
Definition at line 285 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), CTX_wm_region(), ED_operator_outliner_active(), and RGN_TYPE_WINDOW.
Referenced by blender::ed::outliner::collection_new_poll(), blender::ed::outliner::OUTLINER_OT_expanded_toggle(), blender::ed::outliner::OUTLINER_OT_id_delete(), blender::ed::outliner::OUTLINER_OT_id_remap(), blender::ed::outliner::OUTLINER_OT_item_activate(), blender::ed::outliner::OUTLINER_OT_item_openclose(), blender::ed::outliner::OUTLINER_OT_item_rename(), blender::ed::outliner::OUTLINER_OT_lib_reload(), blender::ed::outliner::OUTLINER_OT_lib_relocate(), blender::ed::outliner::OUTLINER_OT_material_drop(), blender::ed::outliner::OUTLINER_OT_operation(), blender::ed::outliner::OUTLINER_OT_parent_drop(), blender::ed::outliner::OUTLINER_OT_scene_drop(), blender::ed::outliner::OUTLINER_OT_scroll_page(), blender::ed::outliner::OUTLINER_OT_select_box(), blender::ed::outliner::OUTLINER_OT_show_active(), blender::ed::outliner::OUTLINER_OT_show_hierarchy(), and blender::ed::outliner::OUTLINER_OT_show_one_level().
| bool ED_operator_region_view3d_active | ( | bContext * | C | ) |
Definition at line 244 of file screen_ops.cc.
References CTX_wm_operator_poll_msg_set(), and CTX_wm_region_view3d().
Referenced by ED_operator_objectmode_with_view3d_poll_msg(), blender::ed::object::OBJECT_OT_transform_axis_target(), SCREEN_OT_region_quadview(), TRANSFORM_OT_bend(), view3d_navigation_poll_impl(), VIEW3D_OT_clip_border(), VIEW3D_OT_cursor3d(), VIEW3D_OT_fly(), VIEW3D_OT_render_border(), VIEW3D_OT_snap_cursor_to_grid(), VIEW3D_OT_snap_selected_to_grid(), VIEW3D_OT_view_all(), VIEW3D_OT_view_lock_clear(), VIEW3D_OT_view_lock_to_active(), VIEW3D_OT_walk(), view3d_selectable_data(), and weight_paint_mode_region_view3d_poll().
| bool ED_operator_regionactive | ( | bContext * | C | ) |
Definition at line 94 of file screen_ops.cc.
References CTX_wm_region(), CTX_wm_screen(), and CTX_wm_window().
Referenced by annotation_draw_poll(), drop_name_poll(), UI_OT_button_string_clear(), UI_OT_drop_color(), UI_OT_unset_property_button(), and WM_OT_doc_view_manual_ui_context().
| bool ED_operator_scene | ( | bContext * | C | ) |
Definition at line 171 of file screen_ops.cc.
References CTX_data_scene().
Referenced by VIEW3D_OT_copybuffer().
| bool ED_operator_scene_editable | ( | bContext * | C | ) |
Definition at line 180 of file screen_ops.cc.
References BKE_id_is_editable(), CTX_data_main(), and CTX_data_scene().
Referenced by CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), drop_world_poll(), ED_operator_sequencer_active_editable(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), MESH_OT_separate(), blender::ed::object::OBJECT_OT_location_clear(), blender::ed::object::OBJECT_OT_metaball_add(), blender::ed::object::OBJECT_OT_origin_clear(), blender::ed::object::OBJECT_OT_origin_set(), blender::ed::object::OBJECT_OT_rotation_clear(), blender::ed::object::OBJECT_OT_scale_clear(), blender::ed::object::OBJECT_OT_visual_transform_apply(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), SURFACE_OT_primitive_nurbs_surface_torus_add(), VIEW3D_OT_camera_to_view_selected(), and VIEW3D_OT_pastebuffer().
| bool ED_operator_screen_mainwinactive | ( | bContext * | C | ) |
When mouse is over area-edge.
Definition at line 156 of file screen_ops.cc.
References CTX_wm_screen(), and CTX_wm_window().
Referenced by SCREEN_OT_area_move(), and SCREEN_OT_area_options().
| bool ED_operator_screenactive | ( | bContext * | C | ) |
Definition at line 122 of file screen_ops.cc.
References CTX_wm_screen(), and CTX_wm_window().
Referenced by ED_operator_screenactive_nobackground(), ED_OT_undo_push(), ed_undo_is_init_and_screenactive_poll(), blender::ed::object::join_shapes_poll(), RENDER_OT_opengl(), RENDER_OT_render(), RENDER_OT_view_show(), repeat_history_poll(), screen_active_editable(), SCREEN_OT_animation_cancel(), SCREEN_OT_back_to_previous(), SCREEN_OT_screen_set(), SCREEN_OT_workspace_cycle(), TRANSFORM_OT_mirror(), TRANSFORM_OT_push_pull(), TRANSFORM_OT_resize(), TRANSFORM_OT_rotate(), TRANSFORM_OT_tosphere(), TRANSFORM_OT_trackball(), TRANSFORM_OT_transform(), TRANSFORM_OT_translate(), and transform_shear_poll().
| bool ED_operator_screenactive_nobackground | ( | bContext * | C | ) |
Definition at line 133 of file screen_ops.cc.
References ED_operator_screenactive(), and G.
Referenced by SCREEN_OT_drivers_editor_show(), SCREEN_OT_info_log_show(), and SCREEN_OT_userpref_show().
|
static |
Definition at line 142 of file screen_ops.cc.
References CTX_wm_screen(), CTX_wm_window(), and G.
Referenced by keyframe_jump_poll(), SCREEN_OT_animation_play(), SCREEN_OT_animation_step(), SCREEN_OT_frame_jump(), SCREEN_OT_frame_offset(), and SCREEN_OT_marker_jump().
| bool ED_operator_sequencer_active | ( | bContext * | C | ) |
Definition at line 375 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_SEQ.
Referenced by sequencer_editing_initialized_and_active(), SEQUENCER_OT_duplicate(), SEQUENCER_OT_paste(), SEQUENCER_OT_select(), SEQUENCER_OT_select_box(), SEQUENCER_OT_select_handle(), SEQUENCER_OT_select_linked_pick(), SEQUENCER_OT_select_side_of_frame(), SEQUENCER_OT_swap_data(), SEQUENCER_OT_view_all(), SEQUENCER_OT_view_all_preview(), SEQUENCER_OT_view_frame(), SEQUENCER_OT_view_zoom_ratio(), sequencer_split_invoke(), and TRANSFORM_OT_seq_slide().
| bool ED_operator_sequencer_active_editable | ( | bContext * | C | ) |
Definition at line 380 of file screen_ops.cc.
References ED_operator_scene_editable(), ed_spacetype_test(), and SPACE_SEQ.
Referenced by SEQUENCER_OT_effect_strip_add(), SEQUENCER_OT_image_strip_add(), SEQUENCER_OT_mask_strip_add(), SEQUENCER_OT_movie_strip_add(), SEQUENCER_OT_movieclip_strip_add(), SEQUENCER_OT_scene_strip_add(), SEQUENCER_OT_scene_strip_add_new(), and SEQUENCER_OT_sound_strip_add().
| bool ED_operator_spreadsheet_active | ( | bContext * | C | ) |
Definition at line 333 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_SPREADSHEET.
Referenced by blender::ed::spreadsheet::SPREADSHEET_OT_add_row_filter_rule(), blender::ed::spreadsheet::SPREADSHEET_OT_change_spreadsheet_data_source(), and blender::ed::spreadsheet::SPREADSHEET_OT_remove_row_filter_rule().
| bool ED_operator_uvedit | ( | bContext * | C | ) |
Wrapper for ED_space_image_show_uvedit.
Definition at line 589 of file screen_ops.cc.
References CTX_data_edit_object(), CTX_wm_space_image(), and ED_space_image_show_uvedit().
Referenced by ED_keymap_uvedit(), image_view_selected_poll(), UV_OT_align(), UV_OT_average_islands_scale(), UV_OT_copy(), UV_OT_hide(), UV_OT_mark_seam(), UV_OT_minimize_stretch(), UV_OT_pack_islands(), UV_OT_paste(), UV_OT_pin(), UV_OT_remove_doubles(), UV_OT_reveal(), UV_OT_rip(), UV_OT_seams_from_islands(), UV_OT_select(), UV_OT_select_all(), UV_OT_select_edge_ring(), UV_OT_select_linked(), UV_OT_select_linked_pick(), UV_OT_select_loop(), UV_OT_select_overlap(), UV_OT_select_pinned(), UV_OT_select_split(), UV_OT_stitch(), and UV_OT_weld().
| bool ED_operator_uvedit_space_image | ( | bContext * | C | ) |
Definition at line 596 of file screen_ops.cc.
References CTX_data_edit_object(), CTX_wm_space_image(), and ED_space_image_show_uvedit().
Referenced by ED_space_image_cursor_poll(), SCULPT_OT_uv_sculpt_grab(), SCULPT_OT_uv_sculpt_pinch(), SCULPT_OT_uv_sculpt_relax(), UV_OT_select_box(), UV_OT_select_circle(), UV_OT_select_lasso(), UV_OT_select_less(), UV_OT_select_mode(), UV_OT_select_more(), UV_OT_select_similar(), UV_OT_shortest_path_pick(), UV_OT_shortest_path_select(), UV_OT_snap_cursor(), and UV_OT_snap_selected().
| bool ED_operator_uvmap | ( | bContext * | C | ) |
Definition at line 603 of file screen_ops.cc.
References BKE_editmesh_from_object(), BMEditMesh::bm, CTX_data_edit_object(), OB_MESH, BMesh::totface, and Object::type.
Referenced by uv_from_view_poll(), UV_OT_cube_project(), UV_OT_cylinder_project(), UV_OT_reset(), UV_OT_smart_project(), UV_OT_sphere_project(), and UV_OT_unwrap().
| bool ED_operator_view3d_active | ( | bContext * | C | ) |
Definition at line 239 of file screen_ops.cc.
References ed_spacetype_test(), and SPACE_VIEW3D.
Referenced by armature_select_linked_pick_poll(), ED_operator_editmesh_view3d(), EDBM_view3d_poll(), blender::ed::object::object_hide_poll(), blender::ed::object::OBJECT_OT_drop_geometry_nodes(), blender::ed::object::OBJECT_OT_hide_collection(), pose_select_linked_pick_poll(), TRANSFORM_OT_select_orientation(), VIEW3D_OT_clear_render_border(), VIEW3D_OT_localview(), VIEW3D_OT_navigate(), VIEW3D_OT_object_mode_pie_or_toggle(), VIEW3D_OT_select(), VIEW3D_OT_smoothview(), VIEW3D_OT_snap_cursor_to_active(), VIEW3D_OT_snap_cursor_to_center(), VIEW3D_OT_snap_cursor_to_selected(), VIEW3D_OT_snap_selected_to_active(), VIEW3D_OT_snap_selected_to_cursor(), VIEW3D_OT_toggle_shading(), VIEW3D_OT_toggle_xray(), and WM_OT_xr_session_toggle().
| void ED_operatortypes_screen | ( | ) |
Definition at line 6490 of file screen_ops.cc.
References SCREEN_OT_actionzone(), SCREEN_OT_animation_cancel(), SCREEN_OT_animation_play(), SCREEN_OT_animation_step(), SCREEN_OT_area_close(), SCREEN_OT_area_dupli(), SCREEN_OT_area_join(), SCREEN_OT_area_move(), SCREEN_OT_area_options(), SCREEN_OT_area_split(), SCREEN_OT_area_swap(), SCREEN_OT_back_to_previous(), SCREEN_OT_delete(), SCREEN_OT_drivers_editor_show(), SCREEN_OT_frame_jump(), SCREEN_OT_frame_offset(), SCREEN_OT_header_toggle_menus(), SCREEN_OT_info_log_show(), SCREEN_OT_keyframe_jump(), SCREEN_OT_marker_jump(), SCREEN_OT_new(), SCREEN_OT_redo_last(), SCREEN_OT_region_blend(), SCREEN_OT_region_context_menu(), SCREEN_OT_region_flip(), SCREEN_OT_region_quadview(), SCREEN_OT_region_scale(), SCREEN_OT_region_toggle(), SCREEN_OT_repeat_history(), SCREEN_OT_repeat_last(), SCREEN_OT_screen_full_area(), SCREEN_OT_screen_set(), SCREEN_OT_screenshot(), SCREEN_OT_screenshot_area(), SCREEN_OT_space_context_cycle(), SCREEN_OT_space_type_set_or_cycle(), SCREEN_OT_spacedata_cleanup(), SCREEN_OT_userpref_show(), SCREEN_OT_workspace_cycle(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 6137 of file screen_ops.cc.
References CLAMP, float, RegionAlphaInfo::hidden, RGN_ALIGN_HIDE_WITH_PREV, RGN_SPLIT_PREV, TIMEOUT, and TIMESTEP.
Referenced by wm_draw_region_blend().
Definition at line 6190 of file screen_ops.cc.
References RegionAlphaInfo::area, RegionAlphaInfo::child_region, CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_region_visibility_change_update_ex(), ARegion::flag, RegionAlphaInfo::hidden, MEM_callocN, ARegion::next, RegionAlphaInfo::region, region_blend_end(), ARegion::regiontimer, RGN_ALIGN_HIDE_WITH_PREV, RGN_FLAG_HIDDEN, RGN_SPLIT_PREV, TIMERREGION, TIMESTEP, and WM_event_timer_add().
Referenced by region_toggle_hidden().
| bScreen * ED_screen_animation_no_scrub | ( | const wmWindowManager * | wm | ) |
Definition at line 5571 of file screen_ops.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by seq_draw_image_origin_and_outline(), sequencer_preview_region_draw(), uiTemplateRunningJobs(), and view3d_draw_region_info().
Toggle operator.
Definition at line 5584 of file screen_ops.cc.
References BKE_callback_exec_id_depsgraph(), BKE_CB_EVT_ANIMATION_PLAYBACK_POST, BKE_CB_EVT_ANIMATION_PLAYBACK_PRE, BKE_sound_play_scene(), BKE_sound_stop_scene(), CTX_data_ensure_evaluated_depsgraph(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_screen(), wmTimer::customdata, DEG_get_bmain(), DEG_get_evaluated_scene(), depsgraph, ED_scene_fps_average_clear(), ED_screen_animation_playing(), ED_screen_animation_timer(), NC_SCENE, NC_SPACE, ND_SPACE_SEQUENCER, ND_SPACE_SPREADSHEET, ND_TRANSFORM, OPERATOR_FINISHED, ScreenAnimData::region, and WM_event_add_notifier().
Referenced by screen_animation_cancel_exec(), screen_animation_play_exec(), screen_render_invoke(), and wm_event_do_handlers().
| bScreen * ED_screen_animation_playing | ( | const wmWindowManager * | wm | ) |
Find window that owns the animation timer.
Definition at line 5558 of file screen_ops.cc.
References LISTBASE_FOREACH, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by blender::ed::space_node::attribute_search_exec_fn(), blender::ed::space_node::attribute_search_update_fn(), DRW_state_is_playback(), ED_annotation_draw_2dimage(), ED_annotation_draw_view2d(), ED_screen_animation_play(), ED_screen_animation_timer(), blender::get_modifier_data(), GPENCIL_cache_init(), initFlyInfo(), initTransInfo(), initWalkInfo(), screen_animation_cancel_exec(), screen_render_invoke(), sequencer_preview_region_draw(), view3d_smoothview_apply_from_timer(), viewdolly_modal(), viewmove_modal_impl(), viewroll_modal(), viewrotate_modal_impl(), viewzoom_modal_impl(), wm_event_do_handlers(), and WM_gizmo_context_check_drawstep().
Definition at line 5059 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_screen(), ED_screens_region_flip_menu_create(), IFACE_, ptr, RNA_pointer_create(), screen_area_menu_items(), UI_ITEM_NONE, uiItemR(), and uiItemS().
Referenced by screen_context_menu_invoke(), and ui_popup_context_menu_for_button().
Definition at line 5023 of file screen_ops.cc.
References BKE_area_find_region_type(), col, CTX_wm_area(), CTX_wm_screen(), ED_screens_region_flip_menu_create(), ELEM, ARegion::flag, HEADER_NO_PULLDOWN, IFACE_, ptr, RGN_FLAG_HIDDEN, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, RNA_pointer_create(), screen_area_menu_items(), SPACE_TOPBAR, UI_ITEM_NONE, uiItemO(), uiItemR(), uiItemS(), uiLayoutColumn(), and uiLayoutSetActive().
Referenced by screen_context_menu_invoke(), and ui_popup_context_menu_for_button().
Definition at line 5073 of file screen_ops.cc.
References CTX_wm_region(), IFACE_, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, uiItemO(), uiLayoutSetOperatorContext(), and WM_OP_INVOKE_DEFAULT.
Referenced by ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), screen_context_menu_invoke(), and ui_popup_context_menu_for_button().
|
static |
Definition at line 5088 of file screen_ops.cc.
References GPU_mem_stats_supported(), IFACE_, ptr, RNA_pointer_create(), UI_ITEM_NONE, and uiItemR().
Referenced by screen_context_menu_invoke().
Definition at line 230 of file screen_ops.cc.
References CTX_wm_space_data(), ED_operator_areaactive(), and SpaceLink::spacetype.
Referenced by ED_operator_action_active(), ED_operator_asset_browsing_active(), ED_operator_buttons_active(), ED_operator_console_active(), ED_operator_file_active(), ED_operator_file_browsing_active(), ED_operator_graphedit_active(), ED_operator_image_active(), ED_operator_info_active(), ED_operator_nla_active(), ED_operator_outliner_active(), ED_operator_outliner_active_no_editobject(), ED_operator_sequencer_active(), ED_operator_sequencer_active_editable(), ED_operator_spreadsheet_active(), and ED_operator_view3d_active().
|
static |
Definition at line 3195 of file screen_ops.cc.
References ANIMPLAY_FLAG_USE_NEXT_FRAME, bScreen::animtimer, areas_do_frame_follow(), CTX_data_scene(), CTX_wm_screen(), wmTimer::customdata, DEG_id_tag_update(), ScreenAnimData::flag, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, ScreenAnimData::nextfra, OPERATOR_FINISHED, PEFRA, PSFRA, wmOperator::ptr, RNA_boolean_get(), and WM_event_add_notifier().
Referenced by SCREEN_OT_frame_jump().
|
static |
Definition at line 3148 of file screen_ops.cc.
References areas_do_frame_follow(), CTX_data_scene(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by SCREEN_OT_frame_offset().
|
static |
Definition at line 5782 of file screen_ops.cc.
References BKE_report(), CTX_wm_screen(), ED_screen_full_prevspace(), LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by SCREEN_OT_back_to_previous().
|
static |
Definition at line 776 of file screen_ops.cc.
References BLI_rcti_init().
Referenced by area_actionzone_refresh_xy().
|
static |
Definition at line 4951 of file screen_ops.cc.
References CTX_wm_area(), ED_area_tag_redraw(), HEADER_NO_PULLDOWN, NA_EDITED, NC_SCREEN, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCREEN_OT_header_toggle_menus().
|
static |
Definition at line 6009 of file screen_ops.cc.
References BKE_report(), CTX_wm_window(), wmWindow::eventstate, IFACE_, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, SPACE_INFO, UI_SCALE_FAC, WIN_ALIGN_LOCATION_CENTER, WM_window_open(), and wmEvent::xy.
Referenced by SCREEN_OT_info_log_show().
Definition at line 2802 of file screen_ops.cc.
References AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, AE_TOP_TO_BOTTOMRIGHT, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, and RGN_ALIGN_TOP.
Referenced by region_scale_invoke().
|
static |
Definition at line 3258 of file screen_ops.cc.
References ADS_FILTER_ONLYSEL, areas_do_frame_follow(), BKE_mask_layer_active(), BKE_report(), BKE_scene_frame_get(), BKE_scene_frame_set(), ActKeyColumn::cfra, CTX_data_active_object(), CTX_data_edit_mask(), CTX_data_scene(), Object::data, DEG_id_tag_update(), ED_keylist_create(), ED_keylist_find_next(), ED_keylist_find_prev(), ED_keylist_free(), ED_keylist_prepare_for_direct_access(), bDopeSheet::filterflag, FLT_MAX, gpencil_to_keylist(), grease_pencil_data_block_to_keylist(), ID_RECALC_FRAME_CHANGE, mask_to_keylist(), NC_SCENE, ND_FRAME, ActKeyColumn::next, next, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL, ob_to_keylist(), OPERATOR_CANCELLED, OPERATOR_FINISHED, ActKeyColumn::prev, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, SCE_KEYS_NO_SELONLY, scene_to_keylist(), Object::type, and WM_event_add_notifier().
Referenced by SCREEN_OT_keyframe_jump().
|
static |
Definition at line 3357 of file screen_ops.cc.
References ED_operator_graphedit_active(), and ED_operator_screenactive_norender().
Referenced by SCREEN_OT_keyframe_jump().
|
static |
Definition at line 6547 of file screen_ops.cc.
References KM_MODAL_APPLY, KM_MODAL_CANCEL, KM_MODAL_SNAP_OFF, KM_MODAL_SNAP_ON, WM_modalkeymap_assign(), and WM_modalkeymap_ensure().
Referenced by ED_keymap_screen().
|
static |
Definition at line 3386 of file screen_ops.cc.
References areas_do_frame_follow(), BKE_report(), closest(), CTX_data_scene(), DEG_id_tag_update(), ID_RECALC_FRAME_CHANGE, LISTBASE_FOREACH, NC_SCENE, ND_FRAME, next, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_INFO, and WM_event_add_notifier().
Referenced by SCREEN_OT_marker_jump().
|
static |
Definition at line 5167 of file screen_ops.cc.
References SpaceAction::mode, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_UI, RGN_TYPE_WINDOW, SACTCONT_TIMELINE, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_PROPERTIES, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_VIEW3D, TIME_ALL_3D_WIN, TIME_ALL_ANIM_WIN, TIME_ALL_BUTS_WIN, TIME_ALL_IMAGE_WIN, TIME_CLIPS, TIME_NODES, TIME_REGION, TIME_SEQ, and TIME_SPREADSHEETS.
Referenced by screen_animation_step_invoke().
|
static |
Definition at line 4633 of file screen_ops.cc.
References OPERATOR_CANCELLED, WM_operator_last_redo(), and WM_operator_redo_popup().
Referenced by SCREEN_OT_redo_last().
Definition at line 6163 of file screen_ops.cc.
References RegionAlphaInfo::area, RegionAlphaInfo::child_region, CTX_wm_manager(), CTX_wm_window(), ED_area_init(), ED_area_tag_redraw(), ED_region_tag_redraw(), ARegion::flag, RegionAlphaInfo::hidden, RegionAlphaInfo::region, and WM_event_timer_remove().
Referenced by ED_region_visibility_change_update_animated(), and region_blend_invoke().
|
static |
Definition at line 6228 of file screen_ops.cc.
References RegionAlphaInfo::child_region, wmTimer::customdata, ED_region_tag_redraw(), OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, RegionAlphaInfo::region, region_blend_end(), ARegion::regiontimer, wmTimer::time_duration, TIMEOUT, timer, TIMERREGION, and wmEvent::type.
Referenced by SCREEN_OT_region_blend().
|
static |
Definition at line 4890 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_window(), ED_area_tag_redraw(), NA_EDITED, NC_SCREEN, OPERATOR_CANCELLED, OPERATOR_FINISHED, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, WM_event_add_mousemove(), and WM_event_add_notifier().
Referenced by SCREEN_OT_region_flip().
|
static |
Definition at line 4918 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_operator_poll_msg_set(), ED_operator_areaactive(), and SPACE_TOPBAR.
Referenced by SCREEN_OT_region_flip().
|
static |
Definition at line 4695 of file screen_ops.cc.
References BKE_area_region_copy(), BKE_report(), BLI_addtail(), View3D::camera, count, CTX_wm_area(), CTX_wm_region(), ED_area_tag_redraw(), ED_region_remove(), ED_view3d_context_user_region(), ED_view3d_lock_view_from_index(), LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, NA_EDITED, NC_SCREEN, OPERATOR_FINISHED, region_quadview_init_rv3d(), ARegion::regiondata, wmOperator::reports, RegionView3D::rflag, RGN_ALIGN_QSPLIT, RGN_TYPE_WINDOW, RPT_ERROR, RV3D_CAMOB, RV3D_GPULIGHT_UPDATE, RV3D_LOCK_ROTATION, RV3D_ORTHO, RV3D_PERSP, RV3D_VIEW_CAMERA, RV3D_VIEW_USER, RV3D_VIEWLOCK_INIT, SPACE_VIEW3D, RegionView3D::viewlock, RegionView3D::viewlock_quad, and WM_event_add_notifier().
Referenced by SCREEN_OT_region_quadview().
|
static |
Definition at line 4672 of file screen_ops.cc.
References ED_view3d_lastview_store(), ED_view3d_lock(), ED_view3d_quadview_update(), RegionView3D::persp, RegionView3D::runtime_viewlock, RV3D_BOXCLIP, RV3D_CAMOB, RV3D_ORTHO, RV3D_VIEW_AXIS_ROLL_0, RegionView3D::view, view, view3d_localview_update_rv3d(), RegionView3D::view_axis_roll, and RegionView3D::viewlock.
Referenced by region_quadview_exec().
|
static |
Definition at line 3072 of file screen_ops.cc.
References region_scale_exit().
Referenced by SCREEN_OT_region_scale().
|
static |
Definition at line 2810 of file screen_ops.cc.
References wmOperator::customdata, G, and MEM_freeN().
Referenced by region_scale_cancel(), and region_scale_modal().
|
static |
Definition at line 2818 of file screen_ops.cc.
References AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, ARegion::alignment, RegionMoveData::area, area_max_regionsize(), RegionMoveData::az, sActionzoneData::az, BKE_report(), CLAMP, copy_v2_v2_int(), wmOperator::customdata, AZone::edge, RegionMoveData::edge, ELEM, EVT_ACTIONZONE_REGION, G, G_TRANSFORM_WM, is_split_edge(), RegionMoveData::maxsize, MEM_callocN, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RegionMoveData::orig_xy, RegionMoveData::origval, ARegion::prev, AZone::region, RegionMoveData::region, wmOperator::reports, RGN_ALIGN_ENUM_FROM_MASK, RGN_SPLIT_PREV, RGN_SPLIT_SCALE_PREV, RPT_ERROR, sActionzoneData::sa1, ARegion::sizex, ARegion::sizey, wmEvent::type, ARegion::winx, ARegion::winy, WM_event_add_modal_handler(), and wmEvent::xy.
Referenced by SCREEN_OT_region_scale().
|
static |
Definition at line 2929 of file screen_ops.cc.
References abs(), AE_BOTTOM_TO_TOPLEFT, AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, RegionMoveData::area, BLI_assert, BLI_rctf_size_x(), BLI_rcti_size_x(), CLAMP, View2D::cur, wmOperator::customdata, ED_area_tag_redraw(), RegionMoveData::edge, ELEM, EVT_ESCKEY, ARegion::flag, View2D::flag, KM_RELEASE, LEFTMOUSE, len_manhattan_v2v2_int(), View2D::mask, RegionMoveData::maxsize, MOUSEMOVE, NA_EDITED, NC_SCREEN, ARegionType::on_user_resize, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RegionMoveData::orig_xy, RegionMoveData::origval, RegionMoveData::region, region_scale_exit(), region_scale_toggle_hidden(), region_scale_validate_size(), RGN_FLAG_HIDDEN, RGN_FLAG_NO_USER_RESIZE, RGN_FLAG_TOO_SMALL, ARegion::sizex, ARegion::sizey, ARegionType::snap_size, ARegion::type, wmEvent::type, UI_SCALE_FAC, UI_UNIT_X, UI_UNIT_Y, ARegion::v2d, V2D_IS_INIT, wmEvent::val, WM_event_add_notifier(), WM_EVENT_CURSOR_MOTION_THRESHOLD, and wmEvent::xy.
Referenced by SCREEN_OT_region_scale().
|
static |
Definition at line 2904 of file screen_ops.cc.
References RegionMoveData::area, BKE_area_find_region_type(), ARegion::flag, RegionMoveData::region, region_scale_validate_size(), region_toggle_hidden(), ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_TYPE_HEADER, RGN_TYPE_TOOL_HEADER, UI_view2d_curRect_validate(), and ARegion::v2d.
Referenced by region_scale_modal().
|
static |
Definition at line 2884 of file screen_ops.cc.
References AE_LEFT_TO_TOPRIGHT, AE_RIGHT_TO_TOPLEFT, RegionMoveData::edge, ELEM, ARegion::flag, RegionMoveData::maxsize, RegionMoveData::region, RGN_FLAG_HIDDEN, size(), ARegion::sizex, ARegion::sizey, UI_SCALE_FAC, and UI_UNIT_Y.
Referenced by region_scale_modal(), and region_scale_toggle_hidden().
|
static |
Definition at line 4830 of file screen_ops.cc.
References BKE_area_find_region_type(), CTX_wm_area(), CTX_wm_region(), ED_region_tag_redraw(), ED_region_toggle_hidden(), OPERATOR_FINISHED, wmOperator::ptr, RGN_ALIGN_NONE, RNA_property_enum_get(), RNA_property_is_set(), and RNA_struct_find_property().
Referenced by SCREEN_OT_region_toggle().
|
static |
Definition at line 4850 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_operator_poll_msg_set(), ED_operator_areaactive(), and SPACE_TOPBAR.
Referenced by SCREEN_OT_region_toggle().
|
static |
Definition at line 4596 of file screen_ops.cc.
References BLI_addtail(), BLI_findlink(), BLI_remlink(), CTX_wm_manager(), OPERATOR_FINISHED, wmWindowManager::operators, wmOperator::ptr, RNA_int_get(), and WM_operator_repeat().
Referenced by SCREEN_OT_repeat_history().
|
static |
Definition at line 4563 of file screen_ops.cc.
References BLI_listbase_count(), CTX_wm_manager(), wmOperatorType::flag, wmOperatorType::idname, ListBase::last, OPERATOR_CANCELLED, OPERATOR_INTERFACE, wmWindowManager::operators, OPTYPE_REGISTER, wmOperator::prev, wmOperator::ptr, wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemIntO(), WM_operator_repeat_check(), and WM_operatortype_name().
Referenced by SCREEN_OT_repeat_history().
|
static |
Definition at line 4514 of file screen_ops.cc.
References BLI_listbase_is_empty(), CTX_wm_manager(), ED_operator_screenactive(), and wmWindowManager::operators.
Referenced by SCREEN_OT_redo_last(), SCREEN_OT_repeat_history(), and SCREEN_OT_repeat_last().
|
static |
Definition at line 4523 of file screen_ops.cc.
References CTX_wm_manager(), wmOperatorType::flag, ListBase::last, OPERATOR_CANCELLED, wmWindowManager::operators, OPTYPE_REGISTER, wmOperator::prev, wmOperator::type, WM_operator_free_all_after(), and WM_operator_repeat_last().
Referenced by SCREEN_OT_repeat_last().
Definition at line 1026 of file screen_ops.cc.
References LISTBASE_FOREACH.
Referenced by actionzone_invoke().
Definition at line 1014 of file screen_ops.cc.
References area_actionzone_refresh_xy(), LISTBASE_FOREACH, and xy.
Referenced by actionzone_invoke().
|
static |
Definition at line 706 of file screen_ops.cc.
References CTX_wm_screen(), ED_operator_screenactive(), SCREENNORMAL, and state.
Referenced by SCREEN_OT_area_join(), SCREEN_OT_area_split(), and SCREEN_OT_area_swap().
|
static |
Definition at line 5669 of file screen_ops.cc.
References CTX_data_scene(), CTX_wm_manager(), ED_screen_animation_play(), ED_screen_animation_playing(), NC_SCENE, ND_FRAME, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_boolean_get(), ScreenAnimData::sfra, and WM_event_add_notifier().
Referenced by SCREEN_OT_animation_cancel().
|
static |
Definition at line 5630 of file screen_ops.cc.
References ED_screen_animation_play(), wmOperator::ptr, RNA_boolean_get(), and RNA_struct_property_is_set().
Referenced by SCREEN_OT_animation_play().
|
static |
Definition at line 3100 of file screen_ops.cc.
References ELEM, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, and SPACE_SEQ.
Referenced by areas_do_frame_follow(), and screen_animation_region_tag_redraw().
|
static |
Definition at line 5266 of file screen_ops.cc.
References ANIM_animdata_get_context(), ANIMCONT_DRIVERS, BLI_rctf_size_x(), bAnimContext::datatype, ED_region_tag_redraw(), ED_space_sequencer_has_playback_animation(), ELEM, SpaceGraph::mode, RGN_TYPE_WINDOW, screen_animation_region_supports_time_follow(), SIPO_MODE_DRIVERS, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, TIME_FOLLOW, and w().
Referenced by screen_animation_step_invoke().
|
static |
Definition at line 5328 of file screen_ops.cc.
References ANIMPLAY_FLAG_JUMPED, ANIMPLAY_FLAG_NO_SYNC, ANIMPLAY_FLAG_REVERSE, ANIMPLAY_FLAG_SYNC, ANIMPLAY_FLAG_USE_NEXT_FRAME, bScreen::areabase, AUDIO_SYNC, BKE_scene_get_depsgraph(), BKE_sound_sync_scene(), CTX_data_main(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), wmEvent::customdata, wmTimer::customdata, DEG_get_evaluated_scene(), DEG_id_tag_update(), depsgraph, ED_scene_fps_average_accumulate(), ED_update_for_newframe(), ScreenAnimData::flag, FPS, ScreenAnimData::from_anim_edit, Scene::id, ID_RECALC_FRAME_CHANGE, int, ScreenAnimData::lagging_frame_count, LISTBASE_FOREACH, match_region_with_redraws(), max_ii(), ScreenAnimData::nextfra, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, printf, PRVRANGEON, ID::recalc, ScreenAnimData::redraws, ScreenAnimData::region, SCE_FRAME_DROP, screen_animation_region_tag_redraw(), time, wmTimer::time_delta, wmTimer::time_last, wmTimer::time_step, USER_SHOW_FPS, wmWindowManager::windows, WM_window_get_active_screen(), and WM_window_get_active_view_layer().
Referenced by SCREEN_OT_animation_step().
|
static |
Definition at line 1276 of file screen_ops.cc.
References AREAMAP_FROM_SCREEN, BKE_screen_find_area_xy(), CTX_wm_screen(), CTX_wm_window(), ED_area_is_global(), screen_geom_area_map_find_active_scredge(), screen_geom_edge_is_horizontal(), SPACE_TYPE_ANY, UI_SCALE_FAC, and WM_window_rect_calc().
Referenced by area_swap_exec(), and screen_area_options_invoke().
Definition at line 4982 of file screen_ops.cc.
References ED_area_is_global(), IFACE_, ptr, RNA_boolean_set(), SPACE_FILE, UI_ITEM_NONE, uiItemFullO(), uiItemO(), uiItemS(), and WM_OP_INVOKE_DEFAULT.
Referenced by ED_screens_footer_tools_menu_create(), and ED_screens_header_tools_menu_create().
|
static |
Definition at line 4361 of file screen_ops.cc.
References area_getorientation(), ELEM, IFACE_, OPERATOR_CANCELLED, OPERATOR_INTERFACE, ptr, wmOperator::ptr, RNA_enum_set(), RNA_int_set_array(), screen_area_edge_from_cursor(), SCREEN_AXIS_H, SCREEN_AXIS_V, SCREEN_DIR_N, SCREEN_DIR_NONE, SCREEN_DIR_S, ScrArea::totrct, wmOperator::type, UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemFullO(), uiItemS(), WM_OP_EXEC_DEFAULT, WM_OP_INVOKE_DEFAULT, WM_operatortype_name(), rcti::xmin, wmEvent::xy, and rcti::ymin.
Referenced by SCREEN_OT_area_options().
|
static |
Definition at line 5113 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_region(), ED_screens_footer_tools_menu_create(), ED_screens_header_tools_menu_create(), ED_screens_region_flip_menu_create(), ed_screens_statusbar_menu_create(), ELEM, IFACE_, OPERATOR_INTERFACE, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_TOOL_HEADER, SPACE_STATUSBAR, UI_popup_menu_begin(), UI_popup_menu_end(), and UI_popup_menu_layout().
Referenced by SCREEN_OT_region_context_menu().
|
static |
Definition at line 6095 of file screen_ops.cc.
References BKE_workspace_layout_find(), CTX_wm_screen(), CTX_wm_workspace(), NC_SCREEN, ND_LAYOUTDELETE, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCREEN_OT_delete().
|
static |
Definition at line 3482 of file screen_ops.cc.
References BLI_assert, CTX_wm_area(), CTX_wm_screen(), CTX_wm_window(), ED_screen_state_toggle(), ELEM, LISTBASE_FOREACH, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), SCREENFULL, SCREENMAXIMIZED, and SCREENNORMAL.
Referenced by SCREEN_OT_screen_full_area().
|
static |
Definition at line 3519 of file screen_ops.cc.
References BLI_listbase_is_empty(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_screen(), CTX_wm_window(), wmWindowManager::drags, ED_area_is_global(), ED_operator_areaactive(), SCREENNORMAL, and WM_window_is_temp_screen().
Referenced by SCREEN_OT_screen_full_area().
|
static |
Definition at line 6063 of file screen_ops.cc.
References BKE_workspace_active_get(), BKE_workspace_active_layout_get(), CTX_data_main(), CTX_wm_window(), ED_workspace_layout_duplicate(), NC_SCREEN, ND_LAYOUTBROWSE, OPERATOR_FINISHED, WM_event_add_notifier(), and wmWindow::workspace_hook.
Referenced by SCREEN_OT_new().
|
static |
Definition at line 1252 of file screen_ops.cc.
References actionzone_area_poll(), actionzone_cancel(), actionzone_invoke(), actionzone_modal(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5693 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), screen_animation_cancel_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5642 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_norender(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), screen_animation_play_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5537 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_norender(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, and screen_animation_step_invoke().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 1602 of file screen_ops.cc.
References area_close_exec(), area_close_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 1525 of file screen_ops.cc.
References area_dupli_invoke(), wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4315 of file screen_ops.cc.
References area_join_cancel(), area_join_exec(), area_join_invoke(), area_join_modal(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, wmOperatorType::poll, RNA_def_int_vector(), screen_active_editable(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 2117 of file screen_ops.cc.
References area_move_cancel(), area_move_exec(), area_move_invoke(), area_move_modal(), wmOperatorType::cancel, wmOperatorType::description, ED_operator_screen_mainwinactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4452 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screen_mainwinactive(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, wmOperatorType::poll, and screen_area_options_invoke().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 2700 of file screen_ops.cc.
References area_split_cancel(), area_split_exec(), area_split_invoke(), area_split_modal(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, wmOperatorType::poll, prop_direction_items, RNA_def_enum(), RNA_def_float(), RNA_def_int_vector(), screen_active_editable(), SCREEN_AXIS_H, and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 1441 of file screen_ops.cc.
References area_swap_cancel(), area_swap_exec(), area_swap_invoke(), area_swap_modal(), wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, ot, wmOperatorType::poll, RNA_def_int_vector(), screen_active_editable(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5804 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive(), wmOperatorType::exec, fullscreen_back_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6106 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and screen_delete_exec().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5991 of file screen_ops.cc.
References wmOperatorType::description, drivers_editor_show_exec(), ED_operator_screenactive_nobackground(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3234 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_norender(), wmOperatorType::exec, wmOperatorType::flag, frame_jump_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO_GROUPED, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and wmOperatorType::undo_group.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3172 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_norender(), wmOperatorType::exec, wmOperatorType::flag, frame_offset_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO_GROUPED, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and wmOperatorType::undo_group.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4963 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, header_toggle_menus_exec(), wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6045 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_nobackground(), wmOperatorType::exec, wmOperatorType::idname, info_log_show_exec(), wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3363 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, keyframe_jump_exec(), keyframe_jump_poll(), wmOperatorType::name, OPTYPE_UNDO_GROUPED, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and wmOperatorType::undo_group.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3427 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_norender(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, marker_jump_exec(), wmOperatorType::name, OPTYPE_UNDO_GROUPED, ot, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and wmOperatorType::undo_group.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6077 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, screen_new_exec(), and WM_operator_winactive().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4644 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, redo_last_invoke(), and repeat_history_poll().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6254 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, ot, and region_blend_invoke().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5148 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and screen_context_menu_invoke().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4931 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, region_flip_exec(), and region_flip_poll().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4811 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_region_view3d_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and region_quadview_exec().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3077 of file screen_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, ot, wmOperatorType::poll, region_scale_cancel(), region_scale_invoke(), and region_scale_modal().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4863 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, region_toggle_exec(), region_toggle_poll(), RNA_def_enum(), rna_enum_region_type_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4612 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, repeat_history_exec(), repeat_history_invoke(), repeat_history_poll(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4544 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, repeat_history_poll(), and repeat_last_exec().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3534 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), screen_maximize_area_exec(), screen_maximize_area_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3462 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_int(), screen_set_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6399 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), space_context_cycle_direction, space_context_cycle_invoke(), SPACE_CONTEXT_CYCLE_NEXT, space_context_cycle_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6320 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), rna_enum_space_type_items, SPACE_EMPTY, space_type_set_or_cycle_exec(), space_type_set_or_cycle_poll(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 4496 of file screen_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, spacedata_cleanup_exec(), and WM_operator_winactive().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 5890 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive_nobackground(), wmOperatorType::exec, wmOperatorType::get_description, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_enum(), RNA_def_property_flag(), rna_enum_preference_section_items, wmOperatorType::srna, userpref_show_exec(), and userpref_show_get_description().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 6463 of file screen_ops.cc.
References wmOperatorType::description, ED_operator_screenactive(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), space_context_cycle_direction, SPACE_CONTEXT_CYCLE_NEXT, space_workspace_cycle_invoke(), and wmOperatorType::srna.
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 3450 of file screen_ops.cc.
References CTX_wm_workspace(), ED_workspace_layout_cycle(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_int_get().
Referenced by SCREEN_OT_screen_set().
|
static |
Definition at line 6383 of file screen_ops.cc.
References context_cycle_prop_get(), CTX_wm_area(), CTX_wm_screen(), OPERATOR_FINISHED, ptr, wmOperator::ptr, RNA_enum_get(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_enum_step(), RNA_property_update(), and SPACE_CONTEXT_CYCLE_PREV.
Referenced by SCREEN_OT_space_context_cycle().
|
static |
Definition at line 6348 of file screen_ops.cc.
References CTX_wm_area(), ELEM, SPACE_PROPERTIES, and SPACE_USERPREF.
Referenced by SCREEN_OT_space_context_cycle().
|
static |
Definition at line 6282 of file screen_ops.cc.
References CTX_wm_area(), CTX_wm_screen(), free(), MEM_freeN(), OPERATOR_FINISHED, ptr, wmOperator::ptr, RNA_enum_from_value(), RNA_enum_get(), RNA_pointer_create(), RNA_property_enum_get(), RNA_property_enum_items(), RNA_property_enum_set(), RNA_property_update(), RNA_struct_find_property(), and EnumPropertyItem::value.
Referenced by SCREEN_OT_space_type_set_or_cycle().
|
static |
Definition at line 6276 of file screen_ops.cc.
References CTX_wm_area(), ELEM, SPACE_STATUSBAR, and SPACE_TOPBAR.
Referenced by SCREEN_OT_space_type_set_or_cycle().
|
static |
Definition at line 6426 of file screen_ops.cc.
References BKE_id_ordered_list(), CTX_data_main(), CTX_wm_window(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::Vector< T, InlineBufferCapacity, Allocator >::first_index_of(), WorkSpace::id, blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::IndexRange::last(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), NC_SCREEN, ND_WORKSPACE_SET, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), SPACE_CONTEXT_CYCLE_NEXT, SPACE_CONTEXT_CYCLE_PREV, WorkSpaceInstanceHook::temp_workspace_store, WM_event_add_notifier(), WM_window_get_active_workspace(), WM_window_is_temp_screen(), wmWindow::workspace_hook, and Main::workspaces.
Referenced by SCREEN_OT_workspace_cycle().
|
static |
Definition at line 4474 of file screen_ops.cc.
References BKE_reportf(), BKE_spacedata_freelist(), BLI_addtail(), BLI_listbase_count(), BLI_remlink(), CTX_data_main(), LISTBASE_FOREACH, OPERATOR_FINISHED, wmOperator::reports, RPT_INFO, and Main::screens.
Referenced by SCREEN_OT_spacedata_cleanup().
|
static |
Definition at line 5822 of file screen_ops.cc.
References BKE_area_find_region_type(), BKE_report(), CTX_wm_area(), CTX_wm_window(), ED_region_visibility_change_update(), wmWindow::eventstate, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RGN_FLAG_HIDDEN, RGN_TYPE_HEADER, RNA_pointer_create(), RNA_property_enum_get(), RNA_property_enum_set(), RNA_property_is_set(), RNA_property_update(), RNA_struct_find_property(), RPT_ERROR, SPACE_USERPREF, UI_NAVIGATION_REGION_WIDTH, UI_SCALE_FAC, WIN_ALIGN_LOCATION_CENTER, and WM_window_open().
Referenced by SCREEN_OT_userpref_show().
|
static |
Definition at line 5874 of file screen_ops.cc.
References ptr, RNA_property_enum_get(), RNA_property_enum_name_gettexted(), RNA_property_is_set(), RNA_struct_find_property(), and TIP_.
Referenced by SCREEN_OT_userpref_show().
|
static |
Definition at line 4662 of file screen_ops.cc.
References copy_qt_qt(), RegionView3D::localvd, RegionView3D::persp, RegionView3D::view, RegionView3D::view_axis_roll, and RegionView3D::viewquat.
Referenced by region_quadview_init_rv3d().
|
static |
Definition at line 2694 of file screen_ops.cc.
Referenced by rna_def_modifier_displace(), and SCREEN_OT_area_split().
|
static |
Definition at line 6342 of file screen_ops.cc.
Referenced by SCREEN_OT_space_context_cycle(), and SCREEN_OT_workspace_cycle().