|
Blender V5.0
|
#include <cstring>#include "DNA_text_types.h"#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_string_utf8.h"#include "BKE_context.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_screen.hh"#include "ED_screen.hh"#include "ED_space_api.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "UI_view2d.hh"#include "BLO_read_write.hh"#include "RNA_access.hh"#include "RNA_path.hh"#include "text_format.hh"#include "text_intern.hh"Go to the source code of this file.
Variables | |
| const char * | text_context_dir [] = {"edit_text", nullptr} |
| void ED_spacetype_text | ( | ) |
Definition at line 423 of file space_text.cc.
References BKE_spacetype_register(), BLI_addhead(), ARegionType::cursor, ARegionType::draw, ED_KEYMAP_FOOTER, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_region_generic_panel_region_snap_size(), ED_text_format_register_glsl(), ED_text_format_register_osl(), ED_text_format_register_pov(), ED_text_format_register_pov_ini(), ED_text_format_register_py(), ARegionType::event_cursor, HEADERY, ARegionType::init, ARegionType::keymapflag, MEM_callocN(), ARegionType::prefsizex, ARegionType::prefsizey, ARegionType::regionid, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, ARegionType::snap_size, SPACE_TEXT, STRNCPY_UTF8, text_context(), text_create(), text_cursor(), text_dropboxes(), text_duplicate(), text_foreach_id(), text_free(), text_header_region_draw(), text_header_region_init(), text_id_remap(), text_init(), text_keymap(), text_listener(), text_main_region_draw(), text_main_region_init(), text_operatortypes(), text_properties_region_draw(), text_properties_region_init(), text_space_blend_read_data(), text_space_blend_write(), and UI_COMPACT_PANEL_WIDTH.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 228 of file space_text.cc.
References C, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_id_pointer_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_OK, CTX_wm_space_text(), Text::id, result, SpaceText::text, and text_context_dir.
Referenced by ED_spacetype_text().
Definition at line 43 of file space_text.cc.
References ARegion::alignment, BKE_area_region_new(), BLI_addtail(), ARegion::flag, SpaceText::flags, SpaceText::lheight, SpaceText::margin_column, MEM_callocN(), SpaceText::regionbase, ARegion::regiontype, RGN_ALIGN_BOTTOM, RGN_ALIGN_RIGHT, RGN_ALIGN_TOP, RGN_FLAG_HIDDEN, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_UI, RGN_TYPE_WINDOW, SpaceText::runtime, SpaceText::showlinenrs, SpaceText::showsyntax, SPACE_TEXT, SpaceText::spacetype, ST_FIND_WRAP, SpaceText::tabnumber, U, and USER_HEADER_BOTTOM.
Referenced by ED_spacetype_text().
Definition at line 290 of file space_text.cc.
References BLI_rcti_isect_pt(), wmWindow::eventstate, ListBase::first, SpaceText::runtime, ScrArea::spacedata, SpaceText::text, ARegion::winrct, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_CURSOR_TEXT_EDIT, rcti::xmin, and wmEvent::xy.
Referenced by ED_spacetype_text().
Definition at line 329 of file space_text.cc.
References wmDropBox::ptr, RNA_path_full_ID_py(), RNA_string_set(), and WM_drag_get_local_ID().
Referenced by text_dropboxes().
Definition at line 324 of file space_text.cc.
References wmDrag::type, and WM_DRAG_ID.
Referenced by text_dropboxes().
Definition at line 318 of file space_text.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_single_path().
Referenced by text_dropboxes().
Definition at line 307 of file space_text.cc.
References ELEM, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, wmDrag::type, WM_drag_get_path_file_type(), and WM_DRAG_PATH.
Referenced by text_dropboxes().
Definition at line 343 of file space_text.cc.
References wmDropBox::ptr, RNA_string_set(), str, and WM_drag_get_string().
Referenced by text_dropboxes().
Definition at line 338 of file space_text.cc.
References wmDrag::type, and WM_DRAG_STRING.
Referenced by text_dropboxes().
|
static |
Definition at line 350 of file space_text.cc.
References RGN_TYPE_WINDOW, SPACE_TEXT, text_drop_id_copy(), text_drop_id_poll(), text_drop_path_copy(), text_drop_path_poll(), text_drop_string_copy(), text_drop_string_poll(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_text().
Definition at line 102 of file space_text.cc.
References MEM_dupallocN(), and SpaceText::runtime.
Referenced by ED_spacetype_text().
|
static |
Definition at line 403 of file space_text.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, data, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_CB_USER_ONE, and SpaceText::text.
Referenced by ED_spacetype_text().
|
static |
Definition at line 91 of file space_text.cc.
References SpaceText::runtime, space_text_free_caches(), and SpaceText::text.
Referenced by ED_spacetype_text(), blender::nodes::node_geo_string_to_curves_cc::get_text_layout(), and make_duplis_font().
Definition at line 370 of file space_text.cc.
References C, and ED_region_header().
Referenced by ED_spacetype_text().
|
static |
Definition at line 365 of file space_text.cc.
References ED_region_header_init().
Referenced by ED_spacetype_text().
|
static |
Definition at line 395 of file space_text.cc.
References blender::bke::id::IDRemapper::apply(), ID_REMAP_APPLY_ENSURE_REAL, and SpaceText::text.
Referenced by ED_spacetype_text().
|
static |
Definition at line 100 of file space_text.cc.
Referenced by ED_spacetype_text().
|
static |
Definition at line 220 of file space_text.cc.
References RGN_TYPE_WINDOW, SPACE_TEXT, and WM_keymap_ensure().
Referenced by ED_spacetype_text().
|
static |
Definition at line 112 of file space_text.cc.
References wmNotifier::action, ATTR_FALLTHROUGH, wmNotifier::category, wmNotifier::data, ED_area_tag_redraw(), ListBase::first, NA_ADDED, NA_EDITED, NA_REMOVED, NA_SELECTED, NC_SPACE, NC_TEXT, ND_CURSOR, ND_DISPLAY, ND_SPACE_TEXT, params, wmNotifier::reference, space_text_drawcache_tag_update(), ScrArea::spacedata, SpaceText::text, and text_update_edited().
Referenced by ED_spacetype_text().
Definition at line 270 of file space_text.cc.
References C, CTX_wm_space_text(), draw_text_main(), TH_BACK, and UI_ThemeClearColor().
Referenced by ED_spacetype_text().
|
static |
Definition at line 251 of file space_text.cc.
References RGN_TYPE_WINDOW, ARegion::runtime, wmWindowManager::runtime, SPACE_TEXT, UI_view2d_region_reinit(), ARegion::v2d, V2D_COMMONVIEW_STANDARD, 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_text().
|
static |
Definition at line 160 of file space_text.cc.
References TEXT_OT_autocomplete(), TEXT_OT_comment_toggle(), TEXT_OT_convert_whitespace(), TEXT_OT_copy(), TEXT_OT_cursor_set(), TEXT_OT_cut(), TEXT_OT_delete(), TEXT_OT_duplicate_line(), TEXT_OT_find(), TEXT_OT_find_set_selected(), TEXT_OT_indent(), TEXT_OT_indent_or_autocomplete(), TEXT_OT_insert(), TEXT_OT_jump(), TEXT_OT_jump_to_file_at_point(), TEXT_OT_line_break(), TEXT_OT_line_number(), TEXT_OT_make_internal(), TEXT_OT_move(), TEXT_OT_move_lines(), TEXT_OT_move_select(), TEXT_OT_new(), TEXT_OT_open(), TEXT_OT_overwrite_toggle(), TEXT_OT_paste(), TEXT_OT_reload(), TEXT_OT_replace(), TEXT_OT_replace_set_selected(), TEXT_OT_resolve_conflict(), TEXT_OT_run_script(), TEXT_OT_save(), TEXT_OT_save_as(), TEXT_OT_scroll(), TEXT_OT_scroll_bar(), TEXT_OT_select_all(), TEXT_OT_select_line(), TEXT_OT_select_word(), TEXT_OT_selection_set(), TEXT_OT_start_find(), TEXT_OT_to_3d_object(), TEXT_OT_unindent(), TEXT_OT_unlink(), TEXT_OT_update_shader(), and WM_operatortype_append().
Referenced by ED_spacetype_text().
Definition at line 390 of file space_text.cc.
References C, and ED_region_panels().
Referenced by ED_spacetype_text().
|
static |
Definition at line 378 of file space_text.cc.
References ED_region_panels_init(), RGN_TYPE_WINDOW, ARegion::runtime, wmWindowManager::runtime, View2D::scroll, SPACE_TEXT, ARegion::v2d, V2D_SCROLL_RIGHT, V2D_SCROLL_VERTICAL_HIDE, WM_event_add_keymap_handler_v2d_mask(), and WM_keymap_ensure().
Referenced by ED_spacetype_text().
|
static |
Definition at line 410 of file space_text.cc.
References SpaceText::runtime.
Referenced by ED_spacetype_text().
|
static |
Definition at line 416 of file space_text.cc.
References BLO_write_struct.
Referenced by ED_spacetype_text().
| const char* text_context_dir[] = {"edit_text", nullptr} |
Definition at line 226 of file space_text.cc.
Referenced by bpy_context_members(), and text_context().