Blender
V3.3
|
#include <string.h>
#include "DNA_text_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_lib_id.h"
#include "BKE_lib_remap.h"
#include "BKE_screen.h"
#include "ED_screen.h"
#include "ED_space_api.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "RNA_path.h"
#include "text_format.h"
#include "text_intern.h"
Go to the source code of this file.
Variables | |
const char * | text_context_dir [] = {"edit_text", NULL} |
Definition at line 400 of file space_text.c.
References BKE_spacetype_register(), BKE_ST_MAXNAME, BLI_addhead(), ARegionType::cursor, ARegionType::draw, ED_KEYMAP_FOOTER, ED_KEYMAP_HEADER, ED_KEYMAP_UI, ED_KEYMAP_VIEW2D, ED_text_format_register_lua(), 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, usdtokens::st(), text_context(), text_create(), text_cursor(), text_dropboxes(), text_duplicate(), 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(), and UI_COMPACT_PANEL_WIDTH.
Referenced by ED_spacetypes_init().
|
static |
Definition at line 223 of file space_text.c.
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(), NULL, result, usdtokens::st(), and text_context_dir.
Referenced by ED_spacetype_text().
Definition at line 40 of file space_text.c.
References ARegion::alignment, BLI_addtail(), ARegion::flag, 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::showlinenrs, SpaceText::showsyntax, SPACE_TEXT, SpaceText::spacetype, SpaceText::tabnumber, and USER_HEADER_BOTTOM.
Referenced by ED_spacetype_text().
Definition at line 285 of file space_text.c.
References blender::compositor::area(), BLI_rcti_isect_pt(), wmWindow::eventstate, usdtokens::st(), 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 312 of file space_text.c.
References wmDrag::path, wmDropBox::ptr, and RNA_string_set().
Referenced by text_dropboxes().
Definition at line 323 of file space_text.c.
References G_MAIN, MEM_freeN, wmDropBox::ptr, RNA_path_full_ID_py(), RNA_string_set(), and WM_drag_get_local_ID().
Referenced by text_dropboxes().
|
static |
Definition at line 318 of file space_text.c.
References wmDrag::type, and WM_DRAG_ID.
Referenced by text_dropboxes().
|
static |
Definition at line 301 of file space_text.c.
References ELEM, wmDrag::icon, wmDrag::type, and WM_DRAG_PATH.
Referenced by text_dropboxes().
Definition at line 335 of file space_text.c.
References NULL, RGN_TYPE_WINDOW, SPACE_TEXT, text_drop_copy(), text_drop_paste(), text_drop_paste_poll(), text_drop_poll(), WM_dropbox_add(), and WM_dropboxmap_find().
Referenced by ED_spacetype_text().
Definition at line 98 of file space_text.c.
References SpaceText_Runtime::drawcache, MEM_dupallocN, NULL, and SpaceText::runtime.
Referenced by ED_spacetype_text().
Definition at line 85 of file space_text.c.
References NULL, SpaceText::text, and text_free_caches().
Referenced by ED_spacetype_text(), blender::nodes::node_geo_string_to_curves_cc::get_text_layout(), and make_duplis_font().
Definition at line 353 of file space_text.c.
References C, and ED_region_header().
Referenced by ED_spacetype_text().
|
static |
Definition at line 348 of file space_text.c.
References ED_region_header_init().
Referenced by ED_spacetype_text().
|
static |
Definition at line 390 of file space_text.c.
References BKE_id_remapper_apply(), ID_REMAP_APPLY_ENSURE_REAL, and SpaceText::text.
Referenced by ED_spacetype_text().
|
static |
Definition at line 94 of file space_text.c.
Referenced by ED_spacetype_text().
|
static |
Definition at line 215 of file space_text.c.
References SPACE_TEXT, and WM_keymap_ensure().
Referenced by ED_spacetype_text().
|
static |
Definition at line 109 of file space_text.c.
References wmNotifier::action, blender::compositor::area(), 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, usdtokens::st(), text_drawcache_tag_update(), and text_update_edited().
Referenced by ED_spacetype_text().
Definition at line 265 of file space_text.c.
References C, CTX_wm_space_text(), draw_text_main(), usdtokens::st(), TH_BACK, and UI_ThemeClearColor().
Referenced by ED_spacetype_text().
|
static |
Definition at line 246 of file space_text.c.
References wmWindowManager::defaultconf, ARegion::handlers, RGN_TYPE_WINDOW, 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().
Definition at line 157 of file space_text.c.
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_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 373 of file space_text.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_space_text(), ED_region_panels(), NC_SPACE, ND_SPACE_TEXT, usdtokens::st(), ST_FIND_ACTIVATE, UI_textbutton_activate_rna(), and WM_event_add_notifier().
Referenced by ED_spacetype_text().
|
static |
Definition at line 361 of file space_text.c.
References wmWindowManager::defaultconf, ED_region_panels_init(), ARegion::handlers, 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().
const char* text_context_dir[] = {"edit_text", NULL} |
Definition at line 221 of file space_text.c.
Referenced by bpy_context_members(), and text_context().