|
Blender V4.3
|
#include <cstring>#include "DNA_text_types.h"#include "MEM_guardedalloc.h"#include "BLI_blenlib.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 421 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_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, SPACE_TEXT, STRNCPY, 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 226 of file space_text.cc.
References 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, SpaceText::text, and text_context_dir.
Referenced by ED_spacetype_text().
Definition at line 42 of file space_text.cc.
References BLI_addtail(), SpaceText::flags, SpaceText::lheight, SpaceText::margin_column, MEM_callocN, SpaceText::regionbase, 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, and USER_HEADER_BOTTOM.
Referenced by ED_spacetype_text().
Definition at line 288 of file space_text.cc.
References BLI_rcti_isect_pt(), wmWindow::eventstate, SpaceText::runtime, SpaceText::text, WM_CURSOR_DEFAULT, WM_cursor_set(), WM_CURSOR_TEXT_EDIT, and wmEvent::xy.
Referenced by ED_spacetype_text().
Definition at line 327 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 322 of file space_text.cc.
References wmDrag::type, and WM_DRAG_ID.
Referenced by text_dropboxes().
Definition at line 316 of file space_text.cc.
References wmDropBox::ptr, RNA_string_set(), and WM_drag_get_single_path().
Referenced by text_dropboxes().
Definition at line 305 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 341 of file space_text.cc.
References wmDropBox::ptr, RNA_string_set(), str, and WM_drag_get_string().
Referenced by text_dropboxes().
Definition at line 336 of file space_text.cc.
References wmDrag::type, and WM_DRAG_STRING.
Referenced by text_dropboxes().
|
static |
Definition at line 348 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 101 of file space_text.cc.
References MEM_dupallocN, and SpaceText::runtime.
Referenced by ED_spacetype_text().
|
static |
Definition at line 401 of file space_text.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, IDWALK_CB_DIRECT_WEAK_LINK, IDWALK_CB_USER_ONE, and SpaceText::text.
Referenced by ED_spacetype_text().
|
static |
Definition at line 90 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 368 of file space_text.cc.
References ED_region_header().
Referenced by ED_spacetype_text().
|
static |
Definition at line 363 of file space_text.cc.
References ED_region_header_init().
Referenced by ED_spacetype_text().
|
static |
Definition at line 393 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 99 of file space_text.cc.
Referenced by ED_spacetype_text().
|
static |
Definition at line 218 of file space_text.cc.
References RGN_TYPE_WINDOW, SPACE_TEXT, and WM_keymap_ensure().
Referenced by ED_spacetype_text().
|
static |
Definition at line 111 of file space_text.cc.
References wmNotifier::action, ATTR_FALLTHROUGH, wmNotifier::category, wmNotifier::data, ED_area_tag_redraw(), 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(), SpaceText::text, and text_update_edited().
Referenced by ED_spacetype_text().
Definition at line 268 of file space_text.cc.
References CTX_wm_space_text(), draw_text_main(), TH_BACK, and UI_ThemeClearColor().
Referenced by ED_spacetype_text().
|
static |
Definition at line 249 of file space_text.cc.
References wmWindowManager::defaultconf, RGN_TYPE_WINDOW, SPACE_TEXT, UI_view2d_region_reinit(), V2D_COMMONVIEW_STANDARD, 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 159 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_refresh_pyconstraints(), 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(), and WM_operatortype_append().
Referenced by ED_spacetype_text().
Definition at line 388 of file space_text.cc.
References ED_region_panels().
Referenced by ED_spacetype_text().
|
static |
Definition at line 376 of file space_text.cc.
References wmWindowManager::defaultconf, ED_region_panels_init(), RGN_TYPE_WINDOW, SPACE_TEXT, 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 408 of file space_text.cc.
References SpaceText::runtime.
Referenced by ED_spacetype_text().
|
static |
Definition at line 414 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 224 of file space_text.cc.
Referenced by text_context().