|
Blender V4.5
|
#include "DNA_vec_types.h"Go to the source code of this file.
Classes | |
| struct | blender::ed::text::SpaceText_Runtime |
Namespaces | |
| namespace | blender |
| namespace | blender::ed |
| namespace | blender::ed::text |
Macros | |
| #define | TXT_NUMCOL_PAD 1.0f |
| #define | TXT_NUMCOL_WIDTH(st) |
| #define | TXT_BODY_LPAD 1.0f |
| #define | TXT_BODY_LEFT(st) |
| #define | TXT_SCROLL_WIDTH U.widget_unit |
| #define | TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
| #define | TXT_LINE_VPAD 0.3f |
| #define | TXT_LINE_SPACING(st) |
| #define | TXT_LINE_HEIGHT(st) |
| #define | SUGG_LIST_SIZE 7 |
| #define | SUGG_LIST_WIDTH 20 |
| #define | TOOL_SUGG_LIST 0x01 |
Enumerations | |
| enum | { LINE_BEGIN , LINE_END , FILE_TOP , FILE_BOTTOM , PREV_CHAR , NEXT_CHAR , PREV_WORD , NEXT_WORD , PREV_LINE , NEXT_LINE , PREV_PAGE , NEXT_PAGE } |
| enum | { DEL_NEXT_CHAR , DEL_PREV_CHAR , DEL_NEXT_WORD , DEL_PREV_WORD } |
Variables | |
| const char * | text_context_dir [] |
| #define SUGG_LIST_SIZE 7 |
Definition at line 59 of file text_intern.hh.
Referenced by draw_suggestion_list(), space_text_do_suggest_select(), text_autocomplete_modal(), and text_pop_suggest_list().
| #define SUGG_LIST_WIDTH 20 |
Definition at line 60 of file text_intern.hh.
Referenced by draw_suggestion_list(), and space_text_do_suggest_select().
| #define TOOL_SUGG_LIST 0x01 |
Definition at line 62 of file text_intern.hh.
Referenced by text_autocomplete_modal().
| #define TXT_BODY_LEFT | ( | st | ) |
Definition at line 46 of file text_intern.hh.
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_text_main(), ED_space_text_region_location_from_cursor(), ED_space_text_scroll_to_cursor(), space_text_do_suggest_select(), and text_cursor_set_to_pos().
| #define TXT_BODY_LPAD 1.0f |
Definition at line 44 of file text_intern.hh.
Referenced by text_line_number_invoke().
| #define TXT_LINE_HEIGHT | ( | st | ) |
Definition at line 57 of file text_intern.hh.
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_text_main(), ED_space_text_region_location_from_cursor(), space_text_do_suggest_select(), space_text_draw_wrapped(), text_cursor_set_to_pos(), and text_scroll_state_init().
| #define TXT_LINE_SPACING | ( | st | ) |
Definition at line 55 of file text_intern.hh.
Referenced by draw_text_decoration().
| #define TXT_LINE_VPAD 0.3f |
Definition at line 53 of file text_intern.hh.
| #define TXT_NUMCOL_PAD 1.0f |
Definition at line 38 of file text_intern.hh.
Referenced by draw_text_main().
| #define TXT_NUMCOL_WIDTH | ( | st | ) |
Definition at line 40 of file text_intern.hh.
Referenced by draw_text_main(), and text_line_number_invoke().
| #define TXT_SCROLL_SPACE ((int)(0.1f * U.widget_unit)) |
Definition at line 50 of file text_intern.hh.
Referenced by text_scroll_bar_invoke().
| #define TXT_SCROLL_WIDTH U.widget_unit |
Definition at line 49 of file text_intern.hh.
Referenced by draw_text_main(), and ED_space_text_scroll_to_cursor().
| anonymous enum |
| Enumerator | |
|---|---|
| DEL_NEXT_CHAR | |
| DEL_PREV_CHAR | |
| DEL_NEXT_WORD | |
| DEL_PREV_WORD | |
Definition at line 114 of file text_intern.hh.
| anonymous enum |
| Enumerator | |
|---|---|
| LINE_BEGIN | |
| LINE_END | |
| FILE_TOP | |
| FILE_BOTTOM | |
| PREV_CHAR | |
| NEXT_CHAR | |
| PREV_WORD | |
| NEXT_WORD | |
| PREV_LINE | |
| NEXT_LINE | |
| PREV_PAGE | |
| NEXT_PAGE | |
Definition at line 100 of file text_intern.hh.
Definition at line 1498 of file text_draw.cc.
References BLF_fixed_width(), calc_text_rcts(), Text::curl, TextDrawContext::cwidth_px, draw_brackets(), draw_suggestion_list(), draw_text_decoration(), draw_text_main(), draw_textscroll(), ED_text_format_get(), ListBase::first, SpaceText::flags, TextDrawContext::font_id, TextLine::format, TextFormatType::format_line, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), i, immBindBuiltinProgram(), immRectf(), immUnbindProgram(), immUniformColor4fv(), immUniformThemeColor(), immVertexFormat(), ListBase::last, SpaceText::left, SpaceText::lheight, TextLine::line, Text::lines, SpaceText::margin_column, max_ii(), TextLine::next, SpaceText::runtime, Text::sell, SpaceText::showlinenrs, SNPRINTF, space_text_draw(), space_text_draw_context_init(), space_text_draw_wrapped(), space_text_get_visible_lines_no(), space_text_update_drawcache(), ST_SCROLL_SELECT, ST_SHOW_MARGIN, TextDrawContext::syntax_highlight, SpaceText::text, text_font_begin(), text_font_draw(), text_font_end(), TH_GRID, TH_HILITE, TH_LINENUMBERS, TH_TEXT, SpaceText::top, TXT_BODY_LEFT, txt_clean_text(), TXT_LINE_HEIGHT, TXT_NUMCOL_PAD, TXT_NUMCOL_WIDTH, TXT_SCROLL_WIDTH, U, UI_FontThemeColor(), UI_GetThemeColor4fv(), ARegion::winx, ARegion::winy, SpaceText::wordwrap, x, and y.
Referenced by draw_text_main(), and text_main_region_draw().
Definition at line 40 of file text_autocomplete.cc.
References Text::curc, Text::curl, i, l, SpaceText::left, SuggItem::next, TextLine::prev, SpaceText::runtime, space_text_do_suggest_select(), space_text_update_character_width(), SUGG_LIST_SIZE, SUGG_LIST_WIDTH, SpaceText::text, texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_top(), texttool_text_is_active(), SpaceText::top, TXT_BODY_LEFT, TXT_LINE_HEIGHT, U, w(), ARegion::winy, x, and y.
Referenced by space_text_do_suggest_select(), space_text_wrap_offset(), and text_autocomplete_modal().
| void space_text_drawcache_tag_update | ( | SpaceText * | st, |
| bool | full ) |
Definition at line 734 of file text_draw.cc.
References BLI_findindex(), Text::curl, Text::lines, DrawCache::nlines, SpaceText::runtime, Text::sell, space_text_drawcache_tag_update(), SpaceText::text, DrawCache::update, DrawCache::valid_head, and DrawCache::valid_tail.
Referenced by space_text_drawcache_tag_update(), space_text_wrap_offset(), text_comment_exec(), text_convert_whitespace_exec(), text_cut_exec(), text_delete_exec(), text_find_and_replace(), text_indent_exec(), text_insert_exec(), text_line_break_exec(), text_listener(), text_new_exec(), text_open_exec(), text_paste_exec(), text_reload_exec(), text_replace_all(), text_undosys_step_decode(), text_unindent_exec(), and text_unlink_exec().
| void space_text_free_caches | ( | SpaceText * | st | ) |
Definition at line 783 of file text_draw.cc.
References DrawCache::line_height, MEM_freeN(), SpaceText::runtime, and space_text_free_caches().
Referenced by space_text_free_caches(), space_text_wrap_offset(), and text_free().
| int space_text_get_char_pos | ( | const SpaceText * | st, |
| const char * | line, | ||
| int | cur ) |
Definition at line 385 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), i, space_text_get_char_pos(), and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_brackets(), draw_suggestion_list(), draw_text_decoration(), ED_space_text_region_location_from_cursor(), ED_space_text_scroll_to_cursor(), space_text_get_char_pos(), space_text_wrap_offset(), txt_wrap_move_down(), and txt_wrap_move_up().
| int space_text_get_span_wrap | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| const TextLine * | from, | ||
| const TextLine * | to ) |
Definition at line 849 of file text_draw.cc.
References TextLine::line, TextLine::next, ret, space_text_get_span_wrap(), space_text_get_visible_lines(), txt_get_span(), and SpaceText::wordwrap.
Referenced by calc_text_rcts(), space_text_get_span_wrap(), and space_text_wrap_offset().
Definition at line 872 of file text_draw.cc.
References SpaceText::runtime, space_text_get_total_lines(), space_text_update_drawcache(), and DrawCache::total_lines.
Referenced by calc_text_rcts(), space_text_get_total_lines(), space_text_screen_clamp(), space_text_wrap_offset(), and text_scroll_state_init().
Definition at line 810 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_size_safe(), ELEM, i, max, space_text_get_visible_lines(), space_text_wrap_width(), str, and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_text_decoration(), space_text_get_line_pos_wrapped(), space_text_get_span_wrap(), space_text_get_visible_lines(), space_text_update_drawcache(), space_text_wrap_offset(), txt_wrap_move_down(), txt_wrap_move_up(), and while().
Takes an area instead of a region, use for listeners.
Definition at line 1754 of file text_draw.cc.
References BKE_area_find_region_type(), Text::curl, ED_space_text_scroll_to_cursor(), ELEM, RGN_TYPE_WINDOW, space_text_scroll_to_cursor_with_area(), and SpaceText::text.
Referenced by space_text_scroll_to_cursor_with_area(), and space_text_update_cursor_moved().
| void space_text_update_character_width | ( | SpaceText * | st | ) |
Definition at line 1661 of file text_draw.cc.
References BLF_fixed_width(), TextDrawContext::font_id, SpaceText::runtime, space_text_draw_context_init(), space_text_update_character_width(), text_font_begin(), and text_font_end().
Referenced by ED_space_text_scroll_to_cursor(), space_text_do_suggest_select(), space_text_update_character_width(), space_text_update_drawcache(), text_cursor_set_to_pos(), text_line_number_invoke(), text_scroll_apply(), text_scroll_invoke(), txt_wrap_move_bol(), txt_wrap_move_down(), txt_wrap_move_eol(), and txt_wrap_move_up().
| void space_text_update_cursor_moved | ( | bContext * | C | ) |
Definition at line 1769 of file text_draw.cc.
References C, CTX_wm_area(), CTX_wm_space_text(), space_text_scroll_to_cursor_with_area(), and space_text_update_cursor_moved().
Referenced by move_lines_exec(), space_text_update_cursor_moved(), text_comment_exec(), text_convert_whitespace_exec(), text_cursor_set_exec(), text_cursor_set_exit(), text_cut_exec(), text_delete_exec(), text_find_and_replace(), text_indent_exec(), text_insert_exec(), text_jump_exec(), text_line_break_exec(), text_line_number_invoke(), text_make_internal_exec(), text_move_cursor(), text_paste_exec(), text_reload_exec(), text_run_script(), text_save_as_exec(), text_save_exec(), text_select_all_exec(), text_select_line_exec(), text_select_word_exec(), text_undosys_step_decode(), text_unindent_exec(), and text_unlink_exec().
| void space_text_wrap_offset | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc ) |
Sets (offl, offc) for transforming (line, curs) to its wrapped position.
References cursin, space_text_do_suggest_select(), space_text_drawcache_tag_update(), space_text_free_caches(), space_text_get_char_pos(), space_text_get_span_wrap(), space_text_get_total_lines(), space_text_get_visible_lines(), space_text_wrap_offset(), space_text_wrap_offset_in_line(), str, and text_pop_suggest_list().
Referenced by draw_brackets(), draw_suggestion_list(), draw_text_decoration(), ED_space_text_region_location_from_cursor(), ED_space_text_scroll_to_cursor(), and space_text_wrap_offset().
| void space_text_wrap_offset_in_line | ( | const SpaceText * | st, |
| const ARegion * | region, | ||
| TextLine * | linein, | ||
| int | cursin, | ||
| int * | offl, | ||
| int * | offc ) |
cursin - mem, offc - view.
Definition at line 313 of file text_draw.cc.
References BLI_str_utf8_char_width_safe(), BLI_str_utf8_offset_to_column(), BLI_str_utf8_size_safe(), cursin, ELEM, i, TextLine::len, TextLine::line, max, space_text_wrap_offset_in_line(), space_text_wrap_width(), SpaceText::tabnumber, SpaceText::text, and SpaceText::wordwrap.
Referenced by cursor_skip_find_line(), draw_text_decoration(), space_text_wrap_offset(), space_text_wrap_offset_in_line(), txt_wrap_move_down(), and txt_wrap_move_up().
| void TEXT_OT_autocomplete | ( | wmOperatorType * | ot | ) |
Definition at line 565 of file text_autocomplete.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, text_autocomplete_cancel(), text_autocomplete_invoke(), text_autocomplete_modal(), TEXT_OT_autocomplete(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_autocomplete().
| void TEXT_OT_comment_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1354 of file text_ops.cc.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, text_comment_exec(), text_edit_poll(), and TEXT_OT_comment_toggle().
Referenced by text_operatortypes(), and TEXT_OT_comment_toggle().
| void TEXT_OT_convert_whitespace | ( | wmOperatorType * | ot | ) |
Definition at line 1527 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_convert_whitespace_exec(), text_edit_poll(), TEXT_OT_convert_whitespace(), TO_SPACES, and whitespace_type_items.
Referenced by text_operatortypes(), and TEXT_OT_convert_whitespace().
| void TEXT_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1076 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_copy_exec(), text_edit_poll(), and TEXT_OT_copy().
Referenced by text_operatortypes(), and TEXT_OT_copy().
| void TEXT_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 3442 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_cursor_set_exec(), text_cursor_set_invoke(), TEXT_OT_cursor_set(), and text_region_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_cursor_set().
| void TEXT_OT_cut | ( | wmOperatorType * | ot | ) |
Definition at line 1117 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_cut_exec(), text_edit_poll(), and TEXT_OT_cut().
Referenced by text_operatortypes(), and TEXT_OT_cut().
| void TEXT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2547 of file text_ops.cc.
References DEL_NEXT_CHAR, delete_type_items, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), wmOperatorType::srna, text_delete_exec(), text_edit_poll(), and TEXT_OT_delete().
Referenced by text_operatortypes(), and TEXT_OT_delete().
| void TEXT_OT_duplicate_line | ( | wmOperatorType * | ot | ) |
Definition at line 1030 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_duplicate_line_exec(), text_edit_poll(), and TEXT_OT_duplicate_line().
Referenced by text_operatortypes(), and TEXT_OT_duplicate_line().
| void TEXT_OT_find | ( | wmOperatorType * | ot | ) |
Definition at line 3807 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_find_exec(), TEXT_OT_find(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_find().
| void TEXT_OT_find_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3919 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_find_set_selected_exec(), TEXT_OT_find_set_selected(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_find_set_selected().
| void TEXT_OT_indent | ( | wmOperatorType * | ot | ) |
Definition at line 1198 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_edit_poll(), text_indent_exec(), and TEXT_OT_indent().
Referenced by text_operatortypes(), and TEXT_OT_indent().
| void TEXT_OT_indent_or_autocomplete | ( | wmOperatorType * | ot | ) |
Definition at line 1152 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), text_indent_or_autocomplete_exec(), and TEXT_OT_indent_or_autocomplete().
Referenced by text_operatortypes(), and TEXT_OT_indent_or_autocomplete().
| void TEXT_OT_insert | ( | wmOperatorType * | ot | ) |
Definition at line 3696 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), wmOperatorType::srna, text_edit_poll(), text_insert_exec(), text_insert_invoke(), and TEXT_OT_insert().
Referenced by text_operatortypes(), and TEXT_OT_insert().
| void TEXT_OT_jump | ( | wmOperatorType * | ot | ) |
Definition at line 2425 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, wmOperatorType::prop, RNA_def_int(), RNA_def_property_translation_context(), wmOperatorType::srna, text_edit_poll(), text_jump_exec(), text_jump_invoke(), and TEXT_OT_jump().
Referenced by text_operatortypes(), and TEXT_OT_jump().
| void TEXT_OT_jump_to_file_at_point | ( | wmOperatorType * | ot | ) |
Definition at line 4098 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, wmOperatorType::description, wmOperatorType::exec, FILE_MAX, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, PROP_FILEPATH, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_int(), RNA_def_property_flag(), RNA_def_property_subtype(), RNA_def_property_translation_context(), RNA_def_string(), wmOperatorType::srna, text_jump_to_file_at_point_exec(), and TEXT_OT_jump_to_file_at_point().
Referenced by text_operatortypes(), and TEXT_OT_jump_to_file_at_point().
| void TEXT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 1296 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_edit_poll(), text_line_break_exec(), and TEXT_OT_line_break().
Referenced by text_operatortypes(), and TEXT_OT_line_break().
| void TEXT_OT_line_number | ( | wmOperatorType * | ot | ) |
Definition at line 3512 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_line_number_invoke(), TEXT_OT_line_number(), and text_region_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_line_number().
| void TEXT_OT_make_internal | ( | wmOperatorType * | ot | ) |
Definition at line 662 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_edit_poll(), text_make_internal_exec(), and TEXT_OT_make_internal().
Referenced by text_operatortypes(), and TEXT_OT_make_internal().
| void TEXT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 2342 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_type_items, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), text_move_exec(), and TEXT_OT_move().
Referenced by text_operatortypes(), and TEXT_OT_move().
| void TEXT_OT_move_lines | ( | wmOperatorType * | ot | ) |
Definition at line 1673 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, move_lines_exec(), wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), TEXT_OT_move_lines(), TXT_MOVE_LINE_DOWN, and TXT_MOVE_LINE_UP.
Referenced by text_operatortypes(), and TEXT_OT_move_lines().
| void TEXT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 2370 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_type_items, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_move_select_exec(), TEXT_OT_move_select(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_move_select().
| void TEXT_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 377 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_new_exec(), text_new_poll(), and TEXT_OT_new().
Referenced by text_operatortypes(), and TEXT_OT_new().
| void TEXT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 474 of file text_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_new_poll(), text_open_cancel(), text_open_exec(), text_open_invoke(), TEXT_OT_open(), WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes(), and TEXT_OT_open().
| void TEXT_OT_overwrite_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2589 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, TEXT_OT_overwrite_toggle(), text_space_edit_poll(), and text_toggle_overwrite_exec().
Referenced by text_operatortypes(), and TEXT_OT_overwrite_toggle().
| void TEXT_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 982 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, text_edit_poll(), TEXT_OT_paste(), and text_paste_exec().
Referenced by text_operatortypes(), and TEXT_OT_paste().
| void TEXT_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 564 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_reload(), text_reload_exec(), and text_reload_invoke().
Referenced by text_operatortypes(), and TEXT_OT_reload().
| void TEXT_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 3876 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), wmOperatorType::srna, TEXT_OT_replace(), text_replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_replace().
| void TEXT_OT_replace_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3950 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, TEXT_OT_replace_set_selected(), text_replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes(), and TEXT_OT_replace_set_selected().
| void TEXT_OT_resolve_conflict | ( | wmOperatorType * | ot | ) |
Definition at line 4238 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, resolution_items, RESOLVE_IGNORE, RNA_def_enum(), wmOperatorType::srna, TEXT_OT_resolve_conflict(), text_resolve_conflict_exec(), text_resolve_conflict_invoke(), and text_resolve_conflict_poll().
Referenced by text_operatortypes(), and TEXT_OT_resolve_conflict().
| void TEXT_OT_run_script | ( | wmOperatorType * | ot | ) |
Definition at line 917 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, text_data_poll(), TEXT_OT_run_script(), and text_run_script_exec().
Referenced by text_operatortypes(), and TEXT_OT_run_script().
| void TEXT_OT_save | ( | wmOperatorType * | ot | ) |
Definition at line 766 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_save(), text_save_exec(), and text_save_invoke().
Referenced by text_operatortypes(), and TEXT_OT_save().
| void TEXT_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 837 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_PYSCRIPT, FILE_TYPE_TEXT, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_save_as(), text_save_as_exec(), text_save_as_invoke(), WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes(), and TEXT_OT_save_as().
| void TEXT_OT_scroll | ( | wmOperatorType * | ot | ) |
Definition at line 2882 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, wmOperatorType::cancel, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_XY, OPTYPE_INTERNAL, wmOperatorType::poll, RNA_def_int(), RNA_def_property_translation_context(), wmOperatorType::srna, TEXT_OT_scroll(), text_scroll_cancel(), text_scroll_exec(), text_scroll_invoke(), text_scroll_modal(), and text_scroll_poll().
Referenced by text_operatortypes(), and TEXT_OT_scroll().
| void TEXT_OT_scroll_bar | ( | wmOperatorType * | ot | ) |
Definition at line 2992 of file text_ops.cc.
References BLT_I18NCONTEXT_ID_TEXT, wmOperatorType::cancel, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_INTERNAL, wmOperatorType::poll, RNA_def_int(), RNA_def_property_translation_context(), wmOperatorType::srna, TEXT_OT_scroll_bar(), text_region_scroll_poll(), text_scroll_bar_invoke(), text_scroll_cancel(), and text_scroll_modal().
Referenced by text_operatortypes(), and TEXT_OT_scroll_bar().
| void TEXT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1570 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_select_all(), and text_select_all_exec().
Referenced by text_operatortypes(), and TEXT_OT_select_all().
| void TEXT_OT_select_line | ( | wmOperatorType * | ot | ) |
Definition at line 1602 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_select_line(), and text_select_line_exec().
Referenced by text_operatortypes(), and TEXT_OT_select_line().
| void TEXT_OT_select_word | ( | wmOperatorType * | ot | ) |
Definition at line 1635 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), TEXT_OT_select_word(), and text_select_word_exec().
Referenced by text_operatortypes(), and TEXT_OT_select_word().
| void TEXT_OT_selection_set | ( | wmOperatorType * | ot | ) |
Definition at line 3393 of file text_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, TEXT_OT_selection_set(), text_region_edit_poll(), text_selection_set_cancel(), text_selection_set_invoke(), and text_selection_set_modal().
Referenced by text_operatortypes(), and TEXT_OT_selection_set().
| void TEXT_OT_start_find | ( | wmOperatorType * | ot | ) |
Definition at line 109 of file text_header.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, TEXT_OT_start_find(), text_properties_poll(), and text_text_search_exec().
Referenced by text_operatortypes(), and TEXT_OT_start_find().
| void TEXT_OT_to_3d_object | ( | wmOperatorType * | ot | ) |
Definition at line 4275 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_data_poll(), TEXT_OT_to_3d_object(), and text_to_3d_object_exec().
Referenced by text_operatortypes(), and TEXT_OT_to_3d_object().
| void TEXT_OT_unindent | ( | wmOperatorType * | ot | ) |
Definition at line 1239 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_edit_poll(), TEXT_OT_unindent(), and text_unindent_exec().
Referenced by text_operatortypes(), and TEXT_OT_unindent().
| void TEXT_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 626 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, TEXT_OT_unlink(), text_unlink_exec(), text_unlink_invoke(), and text_unlink_poll().
Referenced by text_operatortypes(), and TEXT_OT_unlink().
| void TEXT_OT_update_shader | ( | wmOperatorType * | ot | ) |
Definition at line 4390 of file text_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, TEXT_OT_update_shader(), text_update_shader_exec(), and text_update_shader_poll().
Referenced by text_operatortypes(), and TEXT_OT_update_shader().
| void text_pop_suggest_list | ( | ) |
Definition at line 104 of file text_autocomplete.cc.
References i, SuggItem::next, SUGG_LIST_SIZE, text_pop_suggest_list(), texttool_suggest_first(), texttool_suggest_selected(), and texttool_suggest_top().
Referenced by draw_suggestion_list(), space_text_wrap_offset(), text_autocomplete_modal(), and text_pop_suggest_list().
| bool text_space_edit_poll | ( | bContext * | C | ) |
Definition at line 277 of file text_ops.cc.
References BKE_id_is_editable(), C, CTX_data_edit_text(), CTX_data_main(), CTX_wm_space_text(), Text::id, and text_space_edit_poll().
Referenced by TEXT_OT_autocomplete(), TEXT_OT_find(), TEXT_OT_find_set_selected(), TEXT_OT_move_select(), TEXT_OT_overwrite_toggle(), TEXT_OT_replace(), TEXT_OT_replace_set_selected(), and text_space_edit_poll().
| void text_update_edited | ( | Text * | text | ) |
Definition at line 332 of file text_ops.cc.
References Text::lines, LISTBASE_FOREACH, text_update_edited(), and text_update_line_edited().
Referenced by text_comment_exec(), text_convert_whitespace_exec(), text_indent_exec(), text_listener(), text_paste_exec(), text_reload_exec(), text_unindent_exec(), and text_update_edited().
| void text_update_line_edited | ( | TextLine * | line | ) |
Definition at line 322 of file text_ops.cc.
References TextLine::format, MEM_SAFE_FREE, and text_update_line_edited().
Referenced by text_autocomplete_invoke(), text_autocomplete_modal(), text_delete_exec(), text_insert_exec(), text_insert_invoke(), text_line_break_exec(), text_update_edited(), and text_update_line_edited().
| const char* text_context_dir[] |
Definition at line 181 of file text_intern.hh.