|
Blender
V2.93
|
#include <math.h>#include <stdio.h>#include <string.h>#include "DNA_gpencil_types.h"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_lib_id.h"#include "BKE_screen.h"#include "BKE_sequencer_offscreen.h"#include "ED_screen.h"#include "ED_space_api.h"#include "ED_view3d.h"#include "ED_view3d_offscreen.h"#include "WM_api.h"#include "WM_message.h"#include "WM_types.h"#include "RNA_access.h"#include "SEQ_utils.h"#include "UI_interface.h"#include "UI_resources.h"#include "UI_view2d.h"#include "IMB_imbuf.h"#include "sequencer_intern.h"Go to the source code of this file.
Variables | |
| const char * | sequencer_context_dir [] = {"edit_mask", NULL} |
| void ED_spacetype_sequencer | ( | void | ) |
Definition at line 865 of file space_sequencer.c.
References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), SpaceType::context, SpaceType::create, ARegionType::draw, ARegionType::draw_overlay, SpaceType::dropboxes, SpaceType::duplicate, ED_area_do_mgs_subscribe_for_tool_header(), ED_area_do_mgs_subscribe_for_tool_ui(), ED_area_type_hud(), ED_KEYMAP_ANIMATION, ED_KEYMAP_FRAMES, ED_KEYMAP_GIZMO, ED_KEYMAP_GPENCIL, ED_KEYMAP_HEADER, ED_KEYMAP_TOOL, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_generic_tools_region_message_subscribe(), ED_region_generic_tools_region_snap_size(), ED_view3d_draw_offscreen_imbuf_simple(), SpaceType::free, G, SpaceType::gizmos, HEADERY, SpaceType::id_remap, ARegionType::init, SpaceType::init, SpaceType::keymap, ARegionType::keymapflag, ARegionType::layout, ARegionType::listener, SpaceType::listener, MEM_callocN, ARegionType::message_subscribe, SpaceType::name, ARegionType::on_view2d_changed, SpaceType::operatortypes, ARegionType::prefsizex, ARegionType::prefsizey, SpaceType::refresh, ARegionType::regionid, SpaceType::regiontypes, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, sequencer_buttons_region_draw(), sequencer_buttons_region_init(), sequencer_buttons_region_listener(), sequencer_buttons_register(), sequencer_context(), sequencer_create(), sequencer_dropboxes(), sequencer_duplicate(), sequencer_free(), sequencer_gizmos(), sequencer_header_region_draw(), sequencer_header_region_init(), sequencer_id_remap(), sequencer_init(), sequencer_keymap(), sequencer_listener(), sequencer_main_region_draw(), sequencer_main_region_draw_overlay(), sequencer_main_region_init(), sequencer_main_region_listener(), sequencer_main_region_message_subscribe(), sequencer_operatortypes(), sequencer_preview_region_draw(), sequencer_preview_region_init(), sequencer_preview_region_layout(), sequencer_preview_region_listener(), sequencer_preview_region_view2d_changed(), sequencer_refresh(), sequencer_tools_region_draw(), sequencer_tools_region_init(), sequencer_view3d_fn, ARegionType::snap_size, SPACE_SEQ, SpaceType::spaceid, and UI_SIDEBAR_PANEL_WIDTH.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 367 of file space_sequencer.c.
References C, CTX_data_scene(), CTX_wm_region(), ELEM, find_nearest_seq(), wmDrag::icon, wmEvent::mval, NULL, scene, wmDrag::type, ARegion::v2d, and WM_DRAG_PATH.
Referenced by sequencer_dropboxes().
|
static |
Definition at line 387 of file space_sequencer.c.
References C, CTX_data_scene(), CTX_wm_region(), ELEM, find_nearest_seq(), wmDrag::icon, wmEvent::mval, NULL, scene, wmDrag::type, ARegion::v2d, and WM_DRAG_PATH.
Referenced by sequencer_dropboxes().
Definition at line 809 of file space_sequencer.c.
References C, and ED_region_panels().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 798 of file space_sequencer.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, SPACE_SEQ, UI_panel_category_active_set_default(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 814 of file space_sequencer.c.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_EDITED, NA_RENAME, NA_SELECTED, NC_GPENCIL, NC_ID, NC_SCENE, NC_SPACE, ND_FRAME, ND_SEQUENCER, ND_SPACE_SEQUENCER, and params.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 462 of file space_sequencer.c.
References C, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_pointer_set(), CTX_data_scene(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_OK, mask(), result, scene, SEQ_active_mask_get(), and sequencer_context_dir.
Referenced by ED_spacetype_sequencer().
Definition at line 91 of file space_sequencer.c.
References View2D::align, ARegion::alignment, BLI_addtail(), SpaceSeq::chanshown, View2D::cur, RenderData::efra, ARegion::flag, SpaceSeq::flag, View2D::keeptot, View2D::keepzoom, SpaceSeq::mainb, View2D::max, MAXFRAMEF, MAXSEQ, View2D::maxzoom, MEM_callocN, View2D::min, View2D::minzoom, Scene::r, SpaceSeq::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_LEFT, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_FLAG_HIDDEN_BY_USER, RGN_TYPE_HEADER, RGN_TYPE_PREVIEW, RGN_TYPE_TOOL_HEADER, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_WINDOW, scene, View2D::scroll, SEQ_DRAW_IMG_IMBUF, SEQ_SHOW_FCURVES, SEQ_SHOW_GPENCIL, SEQ_SHOW_MARKERS, SEQ_SHOW_STRIP_DURATION, SEQ_SHOW_STRIP_NAME, SEQ_SHOW_STRIP_OVERLAY, SEQ_SHOW_STRIP_SOURCE, SEQ_USE_ALPHA, SEQ_VIEW_SEQUENCE, SEQ_ZOOM_TO_FIT, SPACE_SEQ, SpaceSeq::spacetype, View2D::tot, USER_HEADER_BOTTOM, ARegion::v2d, V2D_ALIGN_FREE, V2D_ALIGN_NO_NEG_Y, V2D_KEEPASPECT, V2D_KEEPTOT_FREE, V2D_KEEPZOOM, V2D_LIMITZOOM, V2D_SCROLL_BOTTOM, V2D_SCROLL_HORIZONTAL_HANDLES, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HANDLES, SpaceSeq::view, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_spacetype_sequencer().
Definition at line 425 of file space_sequencer.c.
References BLI_split_dirfile(), file, FILE_MAX, wmDrag::path, wmDropBox::ptr, RNA_collection_add(), RNA_collection_clear(), RNA_string_set(), and RNA_struct_find_property().
Referenced by sequencer_dropboxes().
|
static |
Definition at line 447 of file space_sequencer.c.
References image_drop_poll(), movie_drop_poll(), NULL, RGN_TYPE_WINDOW, sequencer_drop_copy(), sound_drop_poll(), SPACE_SEQ, WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_sequencer().
Definition at line 324 of file space_sequencer.c.
References MEM_dupallocN, and SpaceSeq::scopes.
Referenced by ED_spacetype_sequencer().
Definition at line 76 of file space_sequencer.c.
References blender::compositor::area(), ARegion::next, NULL, ARegion::regiontype, and type.
Referenced by sequencer_refresh().
|
static |
Definition at line 192 of file space_sequencer.c.
References SequencerScopes::histogram_ibuf, IMB_freeImBuf(), SpaceSeq::scopes, SequencerScopes::sep_waveform_ibuf, SequencerScopes::vector_ibuf, SequencerScopes::waveform_ibuf, and SequencerScopes::zebra_ibuf.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 484 of file space_sequencer.c.
References VIEW2D_GGT_navigate_impl().
Referenced by sequencer_gizmos().
|
static |
Definition at line 489 of file space_sequencer.c.
References RGN_TYPE_PREVIEW, SEQUENCER_GGT_navigate(), SPACE_SEQ, WM_gizmogrouptype_append_and_link(), and WM_gizmomaptype_ensure().
Referenced by ED_spacetype_sequencer().
Definition at line 643 of file space_sequencer.c.
References C, and ED_region_header().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 638 of file space_sequencer.c.
References ED_region_header_init().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 847 of file space_sequencer.c.
References ELEM, SpaceSeq::gpd, GS, ID_GD, id_us_min(), id_us_plus(), and ID::name.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 221 of file space_sequencer.c.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 336 of file space_sequencer.c.
References blender::compositor::area(), wmNotifier::category, wmNotifier::data, ED_area_tag_redraw(), NC_GPENCIL, NC_SCENE, NC_SPACE, NC_WINDOW, ND_FRAME, ND_GPENCIL_EDITMODE, ND_SEQUENCER, ND_SPACE_SEQUENCER, params, and sequencer_scopes_tag_refresh().
Referenced by ED_spacetype_sequencer().
Definition at line 525 of file space_sequencer.c.
References C, and draw_timeline_seq().
Referenced by ED_spacetype_sequencer().
Definition at line 531 of file space_sequencer.c.
References C, and draw_timeline_seq_display().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 499 of file space_sequencer.c.
References wmWindowManager::defaultconf, ARegion::handlers, RGN_TYPE_WINDOW, SPACE_SEQ, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_CUSTOM, ARegion::winx, ARegion::winy, WM_dropboxmap_find(), WM_event_add_dropbox_handler(), WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 536 of file space_sequencer.c.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_RENAME, NC_ANIMATION, NC_ID, NC_SCENE, NC_SCREEN, NC_SPACE, ND_ANIMPLAY, ND_FRAME, ND_FRAME_RANGE, ND_KEYFRAME, ND_MARKERS, ND_RENDER_OPTIONS, ND_RENDER_RESULT, ND_SEQUENCER, ND_SPACE_SEQUENCER, and params.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 580 of file space_sequencer.c.
References ARRAY_SIZE, ED_region_do_msg_notify_tag_redraw(), RenderData::flag, Scene::id, wmMsgSubscribeValue::owner, params, wmMsgParams_RNA::ptr, Scene::r, RNA_id_pointer_create(), RNA_Sequence, RNA_SequenceColorBalanceData, RNA_SequenceCrop, RNA_SequenceEditor, RNA_SequenceModifier, RNA_SequenceTransform, scene, SCER_PRV_RANGE, PointerRNA::type, WM_msg_subscribe_rna(), and WM_msg_subscribe_rna_params().
Referenced by ED_spacetype_sequencer().
Definition at line 701 of file space_sequencer.c.
References blender::compositor::area(), C, RenderData::cfra, CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), Scene::ed, ED_region_visible_rect(), ED_scene_draw_fps(), ED_screen_animation_no_scrub(), SpaceSeq::flag, ARegion::gizmo_map, SpaceSeq::mainb, Editing::over_cfra, Editing::over_flag, Editing::over_ofs, SpaceSeq::overlay_type, Scene::r, scene, SEQ_DRAW_IMG_IMBUF, SEQ_DRAW_OVERLAY_CURRENT, SEQ_DRAW_OVERLAY_RECT, SEQ_DRAW_OVERLAY_REFERENCE, SEQ_DRAW_SEQUENCE, SEQ_EDIT_OVERLAY_ABS, SEQ_EDIT_OVERLAY_SHOW, SEQ_SHOW_STRIP_OVERLAY, sequencer_draw_preview(), USER_SHOW_FPS, WM_gizmomap_draw(), WM_GIZMOMAP_DRAWSTEP_2D, rcti::xmin, and rcti::ymax.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 666 of file space_sequencer.c.
References wmWindowManager::defaultconf, ARegion::handlers, SPACE_SEQ, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_CUSTOM, ARegion::winx, ARegion::winy, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_sequencer().
Definition at line 685 of file space_sequencer.c.
References C, CTX_wm_space_seq(), View2D::cur, SpaceSeq::flag, SEQ_ZOOM_TO_FIT, View2D::tot, and ARegion::v2d.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 745 of file space_sequencer.c.
References wmNotifier::action, wmNotifier::category, wmNotifier::data, ED_region_tag_redraw(), ELEM, NA_EDITED, NA_RENAME, NA_SELECTED, NC_ANIMATION, NC_GPENCIL, NC_ID, NC_MASK, NC_SCENE, NC_SPACE, ND_DRAW_RENDER_VIEWPORT, ND_FRAME, ND_KEYFRAME, ND_MARKERS, ND_RENDER_OPTIONS, ND_SEQUENCER, ND_SPACE_SEQUENCER, and params.
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 695 of file space_sequencer.c.
References C, CTX_wm_space_seq(), SpaceSeq::flag, and SEQ_ZOOM_TO_FIT.
Referenced by ED_spacetype_sequencer().
Definition at line 225 of file space_sequencer.c.
References ARegion::alignment, blender::compositor::area(), C, CTX_wm_manager(), CTX_wm_window(), View2D::cur, ED_area_headersize(), ED_area_init(), ED_area_tag_redraw(), ARegion::flag, View2D::flag, ARegion::handlers, height, RGN_ALIGN_NONE, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, SEQ_VIEW_PREVIEW, SEQ_VIEW_SEQUENCE, SEQ_VIEW_SEQUENCE_PREVIEW, sequencer_find_region(), ARegion::sizey, View2D::tot, UI_DPI_FAC, ARegion::v2d, V2D_IS_INIT, SpaceSeq::view, and WM_event_remove_handlers().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 67 of file space_sequencer.c.
References blender::compositor::area(), NULL, SequencerScopes::reference_ibuf, and SpaceSeq::scopes.
Referenced by sequencer_listener().
Definition at line 661 of file space_sequencer.c.
References C, and ED_region_panels().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 650 of file space_sequencer.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, View2D::scroll, SPACE_SEQ, ARegion::v2d, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HIDE, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_sequencer().
|
static |
Definition at line 406 of file space_sequencer.c.
References C, CTX_data_scene(), CTX_wm_region(), ELEM, find_nearest_seq(), wmDrag::icon, wmEvent::mval, NULL, scene, wmDrag::type, ARegion::v2d, and WM_DRAG_PATH.
Referenced by sequencer_dropboxes().
| const char * sequencer_context_dir = {"edit_mask", NULL} |
Definition at line 460 of file space_sequencer.c.
Referenced by sequencer_context().