Blender V2.61 - r43446
|
Go to the source code of this file.
Definition in file text_intern.h.
#define DOC_HEIGHT 10 |
Definition at line 66 of file text_intern.h.
Referenced by draw_documentation().
#define DOC_WIDTH 40 |
Definition at line 65 of file text_intern.h.
Referenced by draw_documentation().
#define SUGG_LIST_SIZE 7 |
Definition at line 63 of file text_intern.h.
Referenced by do_texttools(), draw_suggestion_list(), text_do_suggest_select(), and text_pop_suggest_list().
#define SUGG_LIST_WIDTH 20 |
Definition at line 64 of file text_intern.h.
Referenced by draw_documentation(), draw_suggestion_list(), and text_do_suggest_select().
#define TEXTXLOC (st->cwidth * st->linenrs_tot) |
Definition at line 61 of file text_intern.h.
Referenced by draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_text_main(), text_cursor_set_to_pos(), text_do_suggest_select(), text_draw(), text_line_number_invoke(), and wrap_width().
#define TMARK_GRP_CUSTOM 0x00010000 |
Definition at line 71 of file text_intern.h.
#define TMARK_GRP_FINDALL 0x00020000 |
Definition at line 72 of file text_intern.h.
Referenced by text_find_and_replace().
#define TOOL_DOCUMENT 0x02 |
Definition at line 69 of file text_intern.h.
Referenced by do_texttools().
#define TOOL_SUGG_LIST 0x01 |
Definition at line 68 of file text_intern.h.
Referenced by do_texttools().
#define TXT_OFFSET 15 |
Definition at line 57 of file text_intern.h.
Referenced by draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_text_main(), text_cursor_set_to_pos(), text_do_suggest_select(), text_draw(), text_line_number_invoke(), and wrap_width().
#define TXT_SCROLL_SPACE 2 |
Definition at line 59 of file text_intern.h.
Referenced by text_scroll_bar_invoke().
#define TXT_SCROLL_WIDTH 20 |
Definition at line 58 of file text_intern.h.
Referenced by draw_text_main(), text_scroll_to_cursor(), and wrap_width().
typedef struct FlattenString FlattenString |
anonymous 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 |
Definition at line 104 of file text_intern.h.
anonymous enum |
Definition at line 106 of file text_intern.h.
Definition at line 1721 of file text_draw.c.
References BLF_fixed_width(), BLI_snprintf(), calc_text_rcts(), Text::curl, SpaceText::cwidth, draw_brackets(), draw_cursor(), draw_documentation(), draw_markers(), draw_suggestion_list(), draw_textscroll(), ListBase::first, SpaceText::flags, TextLine::format, i, ListBase::last, SpaceText::left, SpaceText::lheight, SpaceText::linenrs_tot, Text::lines, SpaceText::margin_column, MAX2, mono, TextLine::next, Text::sell, SpaceText::showlinenrs, SpaceText::showsyntax, ST_SHOW_MARGIN, SpaceText::text, text_draw(), text_draw_wrapped(), text_font_begin(), text_font_draw(), text_font_end(), text_get_visible_lines_no(), text_update_drawcache(), TEXTXLOC, TH_GRID, TH_HILITE, TH_TEXT, SpaceText::top, txt_clean_text(), txt_format_line(), TXT_OFFSET, TXT_SCROLL_WIDTH, UI_ThemeColor(), SpaceText::viewlines, ARegion::winx, ARegion::winy, and SpaceText::wordwrap.
Referenced by text_main_area_draw().
int flatten_string | ( | struct SpaceText * | st, |
FlattenString * | fs, | ||
const char * | in | ||
) |
Definition at line 142 of file text_draw.c.
References FlattenString::accum, BLI_str_utf8_size(), FlattenString::buf, FlattenString::fixedaccum, FlattenString::fixedbuf, flatten_string_append(), i, len(), FlattenString::len, and SpaceText::tabnumber.
Referenced by text_convert_whitespace_exec(), text_draw(), text_draw_wrapped(), and txt_format_line().
void flatten_string_free | ( | FlattenString * | fs | ) |
Definition at line 174 of file text_draw.c.
References FlattenString::accum, FlattenString::buf, FlattenString::fixedaccum, FlattenString::fixedbuf, and MEM_freeN().
Referenced by text_convert_whitespace_exec(), text_draw(), text_draw_wrapped(), and txt_format_line().
Definition at line 50 of file text_python.c.
References Text::curc, Text::curl, SpaceText::cwidth, i, SpaceText::left, SpaceText::lheight, SuggItem::next, TextLine::prev, SpaceText::showlinenrs, SUGG_LIST_SIZE, SUGG_LIST_WIDTH, SpaceText::text, text_update_character_width(), texttool_suggest_first(), texttool_suggest_last(), texttool_suggest_select(), texttool_suggest_top(), texttool_text_is_active(), TEXTXLOC, SpaceText::top, TXT_OFFSET, simple_enum_gen::w, and ARegion::winy.
Referenced by do_texttools().
void text_drawcache_tag_update | ( | struct SpaceText * | st, |
int | full | ||
) |
Definition at line 935 of file text_draw.c.
References BLI_findindex(), SpaceText::drawcache, DrawCache::nlines, NULL, SpaceText::text, DrawCache::update_flag, DrawCache::valid_head, and DrawCache::valid_tail.
Referenced by ED_text_undo_step(), 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_uncomment_exec(), text_unindent_exec(), and text_unlink_exec().
int text_file_modified | ( | struct Text * | text | ) |
Definition at line 3108 of file text_ops.c.
References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, G, Text::mtime, and Text::name.
Referenced by text_resolve_conflict_invoke().
void text_free_caches | ( | struct SpaceText * | st | ) |
Definition at line 977 of file text_draw.c.
References SpaceText::drawcache, DrawCache::line_height, and MEM_freeN().
Referenced by text_free().
int text_get_char_pos | ( | struct SpaceText * | st, |
const char * | line, | ||
int | cur | ||
) |
Definition at line 678 of file text_draw.c.
References BLI_str_utf8_size(), i, and SpaceText::tabnumber.
Referenced by cursor_skip_find_line(), draw_brackets(), draw_cursor(), draw_markers(), txt_wrap_move_down(), and txt_wrap_move_up().
int text_get_span_wrap | ( | struct SpaceText * | st, |
struct ARegion * | ar, | ||
struct TextLine * | from, | ||
struct TextLine * | to | ||
) |
Definition at line 1034 of file text_draw.c.
References TextLine::line, TextLine::next, text_get_visible_lines(), txt_get_span(), and SpaceText::wordwrap.
Referenced by calc_text_rcts().
Definition at line 1051 of file text_draw.c.
References SpaceText::drawcache, text_update_drawcache(), and DrawCache::total_lines.
Referenced by calc_text_rcts(), text_scroll_modal(), and txt_screen_skip().
Definition at line 999 of file text_draw.c.
References BLI_str_utf8_size(), i, max, SpaceText::tabnumber, and wrap_width().
Referenced by cursor_skip_find_line(), draw_cursor(), get_first_visible_line(), text_get_span_wrap(), text_update_drawcache(), txt_wrap_move_down(), txt_wrap_move_up(), and wrap_offset().
void TEXT_OT_comment | ( | struct wmOperatorType * | ot | ) |
Definition at line 1028 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_comment_exec(), and text_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_convert_whitespace | ( | struct wmOperatorType * | ot | ) |
Definition at line 1202 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_convert_whitespace_exec(), text_edit_poll(), and TO_SPACES.
Referenced by text_operatortypes().
void TEXT_OT_copy | ( | struct wmOperatorType * | ot | ) |
Definition at line 845 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_copy_exec(), and text_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_cursor_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 2724 of file text_ops.c.
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(), and text_region_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_cut | ( | struct wmOperatorType * | ot | ) |
Definition at line 878 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_cut_exec(), and text_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 2014 of file text_ops.c.
References DEL_NEXT_CHAR, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_delete_exec(), and text_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_find | ( | struct wmOperatorType * | ot | ) |
Definition at line 2986 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_find_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_find_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 3054 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_find_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_indent | ( | struct wmOperatorType * | ot | ) |
Definition at line 913 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_indent_exec().
Referenced by text_operatortypes().
void TEXT_OT_insert | ( | struct wmOperatorType * | ot | ) |
Definition at line 2867 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_string(), wmOperatorType::srna, text_edit_poll(), text_insert_exec(), and text_insert_invoke().
Referenced by text_operatortypes().
void TEXT_OT_jump | ( | struct wmOperatorType * | ot | ) |
Definition at line 1961 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_edit_poll(), text_jump_exec(), and text_jump_invoke().
Referenced by text_operatortypes().
void TEXT_OT_line_break | ( | struct wmOperatorType * | ot | ) |
Definition at line 995 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_line_break_exec().
Referenced by text_operatortypes().
void TEXT_OT_line_number | ( | struct wmOperatorType * | ot | ) |
Definition at line 2780 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_line_number_invoke(), and text_region_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_make_internal | ( | struct wmOperatorType * | ot | ) |
Definition at line 419 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_edit_poll(), and text_make_internal_exec().
Referenced by text_operatortypes().
void TEXT_OT_mark_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 3024 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_mark_all_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_markers_clear | ( | struct wmOperatorType * | ot | ) |
Definition at line 1382 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_clear_all_markers_exec(), and text_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_move | ( | struct wmOperatorType * | ot | ) |
Definition at line 1895 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), and text_move_exec().
Referenced by text_operatortypes().
void TEXT_OT_move_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 1919 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_move_select_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_new | ( | struct wmOperatorType * | ot | ) |
Definition at line 190 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_new_exec(), and text_new_poll().
Referenced by text_operatortypes().
void TEXT_OT_next_marker | ( | struct wmOperatorType * | ot | ) |
Definition at line 1356 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_next_marker_exec().
Referenced by text_operatortypes().
void TEXT_OT_open | ( | struct wmOperatorType * | ot | ) |
Definition at line 289 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, PYSCRIPTFILE, RNA_def_boolean(), wmOperatorType::srna, text_new_poll(), text_open_cancel(), text_open_exec(), text_open_invoke(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
void TEXT_OT_overwrite_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 2042 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_space_edit_poll(), and text_toggle_overwrite_exec().
Referenced by text_operatortypes().
void TEXT_OT_paste | ( | struct wmOperatorType * | ot | ) |
Definition at line 807 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_edit_poll(), and text_paste_exec().
Referenced by text_operatortypes().
void TEXT_OT_previous_marker | ( | struct wmOperatorType * | ot | ) |
Definition at line 1320 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_previous_marker_exec().
Referenced by text_operatortypes().
void TEXT_OT_properties | ( | struct wmOperatorType * | ot | ) |
Definition at line 117 of file text_header.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_properties_exec(), and text_properties_poll().
Referenced by text_operatortypes().
void TEXT_OT_refresh_pyconstraints | ( | struct wmOperatorType * | ot | ) |
Definition at line 683 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_refresh_pyconstraints_exec().
Referenced by text_operatortypes().
void TEXT_OT_reload | ( | struct wmOperatorType * | ot | ) |
Definition at line 334 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), text_reload_exec(), and WM_operator_confirm().
Referenced by text_operatortypes().
void TEXT_OT_replace | ( | struct wmOperatorType * | ot | ) |
Definition at line 3005 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_replace_set_selected | ( | struct wmOperatorType * | ot | ) |
Definition at line 3081 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
void TEXT_OT_resolve_conflict | ( | struct wmOperatorType * | ot | ) |
Definition at line 3216 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RESOLVE_IGNORE, RNA_def_enum(), wmOperatorType::srna, text_resolve_conflict_exec(), text_resolve_conflict_invoke(), and text_save_poll().
Referenced by text_operatortypes().
void TEXT_OT_run_script | ( | struct wmOperatorType * | ot | ) |
Definition at line 623 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, text_run_script_exec(), and text_run_script_poll().
Referenced by text_operatortypes().
void TEXT_OT_save | ( | struct wmOperatorType * | ot | ) |
Definition at line 496 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_save_exec(), and text_save_poll().
Referenced by text_operatortypes().
void TEXT_OT_save_as | ( | struct wmOperatorType * | ot | ) |
Definition at line 553 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_SAVE, FILE_SPECIAL, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, PYSCRIPTFILE, text_edit_poll(), text_save_as_exec(), text_save_as_invoke(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
void TEXT_OT_scroll | ( | struct wmOperatorType * | ot | ) |
Definition at line 2242 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_POINTER, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_scroll_cancel(), text_scroll_exec(), text_scroll_invoke(), text_scroll_modal(), and text_scroll_poll().
Referenced by text_operatortypes().
void TEXT_OT_scroll_bar | ( | struct wmOperatorType * | ot | ) |
Definition at line 2336 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, text_region_scroll_poll(), text_scroll_bar_invoke(), text_scroll_cancel(), and text_scroll_modal().
Referenced by text_operatortypes().
void TEXT_OT_select_all | ( | struct wmOperatorType * | ot | ) |
Definition at line 1231 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_select_all_exec().
Referenced by text_operatortypes().
void TEXT_OT_select_line | ( | struct wmOperatorType * | ot | ) |
Definition at line 1257 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_select_line_exec().
Referenced by text_operatortypes().
void TEXT_OT_select_word | ( | struct wmOperatorType * | ot | ) |
Definition at line 1284 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_select_word_exec().
Referenced by text_operatortypes().
void TEXT_OT_selection_set | ( | struct wmOperatorType * | ot | ) |
Definition at line 2670 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_region_edit_poll(), text_set_selection_cancel(), text_set_selection_invoke(), and text_set_selection_modal().
Referenced by text_operatortypes().
void TEXT_OT_to_3d_object | ( | struct wmOperatorType * | ot | ) |
Definition at line 3244 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, text_edit_poll(), and text_to_3d_object_exec().
Referenced by text_operatortypes().
void TEXT_OT_uncomment | ( | struct wmOperatorType * | ot | ) |
Definition at line 1062 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_uncomment_exec().
Referenced by text_operatortypes().
void TEXT_OT_unindent | ( | struct wmOperatorType * | ot | ) |
Definition at line 948 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and text_unindent_exec().
Referenced by text_operatortypes().
void TEXT_OT_unlink | ( | struct wmOperatorType * | ot | ) |
Definition at line 384 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_unlink_exec(), text_unlink_poll(), and WM_operator_confirm().
Referenced by text_operatortypes().
void text_pop_suggest_list | ( | void | ) |
Definition at line 105 of file text_python.c.
References i, SuggItem::next, SUGG_LIST_SIZE, texttool_suggest_first(), texttool_suggest_selected(), and texttool_suggest_top().
Referenced by do_texttools(), and draw_suggestion_list().
Definition at line 1860 of file text_draw.c.
References Text::curc, Text::curl, SpaceText::cwidth, ELEM3, ListBase::first, i, SpaceText::left, TextLine::line, Text::lines, ARegion::next, NULL, ScrArea::regionbase, ARegion::regiontype, RGN_TYPE_WINDOW, Text::selc, Text::sell, SpaceText::text, text_draw(), text_update_character_width(), SpaceText::top, txt_get_span(), TXT_SCROLL_WIDTH, SpaceText::viewlines, ARegion::winx, SpaceText::wordwrap, and wrap_offset().
Referenced by text_listener(), and text_update_cursor_moved().
void text_update_character_width | ( | struct SpaceText * | st | ) |
Definition at line 1850 of file text_draw.c.
References BLF_fixed_width(), SpaceText::cwidth, MAX2, mono, text_font_begin(), and text_font_end().
Referenced by text_cursor_set_to_pos(), text_do_suggest_select(), text_line_number_invoke(), text_scroll_apply(), text_scroll_invoke(), text_scroll_to_cursor(), text_update_drawcache(), txt_wrap_move_bol(), txt_wrap_move_down(), txt_wrap_move_eol(), and txt_wrap_move_up().
void text_update_cursor_moved | ( | struct bContext * | C | ) |
Definition at line 1904 of file text_draw.c.
References CTX_wm_area(), CTX_wm_space_text(), and text_scroll_to_cursor().
Referenced by ED_text_undo_step(), text_clear_all_markers_exec(), text_comment_exec(), text_convert_whitespace_exec(), text_cursor_set_apply(), 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_next_marker_exec(), text_paste_exec(), text_previous_marker_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_uncomment_exec(), text_unindent_exec(), and text_unlink_exec().
void text_update_edited | ( | struct Text * | text | ) |
Definition at line 146 of file text_ops.c.
References ListBase::first, Text::lines, TextLine::next, and text_update_line_edited().
void text_update_line_edited | ( | struct TextLine * | line | ) |
Definition at line 134 of file text_ops.c.
References TextLine::format, MEM_freeN(), and NULL.
Referenced by do_textmarkers(), do_texttools(), text_delete_exec(), text_insert_exec(), text_line_break_exec(), and text_update_edited().
void wrap_offset | ( | struct SpaceText * | st, |
struct ARegion * | ar, | ||
struct TextLine * | linein, | ||
int | cursin, | ||
int * | offl, | ||
int * | offc | ||
) |
Definition at line 528 of file text_draw.c.
References BLI_str_utf8_size(), ListBase::first, i, TextLine::line, Text::lines, max, TextLine::next, SpaceText::tabnumber, SpaceText::text, text_get_visible_lines(), SpaceText::top, txt_utf8_offset_to_index(), SpaceText::wordwrap, and wrap_width().
Referenced by draw_brackets(), draw_cursor(), draw_markers(), and text_scroll_to_cursor().
void wrap_offset_in_line | ( | struct SpaceText * | st, |
struct ARegion * | ar, | ||
struct TextLine * | linep, | ||
int | cursin, | ||
int * | offl, | ||
int * | offc | ||
) |
Definition at line 619 of file text_draw.c.
References BLI_str_utf8_size(), i, TextLine::line, max, SpaceText::tabnumber, SpaceText::text, txt_utf8_offset_to_index(), SpaceText::wordwrap, and wrap_width().
Referenced by cursor_skip_find_line(), draw_cursor(), txt_wrap_move_down(), and txt_wrap_move_up().
Definition at line 517 of file text_draw.c.
References SpaceText::cwidth, max, SpaceText::showlinenrs, TEXTXLOC, TXT_OFFSET, TXT_SCROLL_WIDTH, and ARegion::winx.
Referenced by text_cursor_set_to_pos_wrapped(), text_get_cursor_rel(), text_get_visible_lines(), txt_wrap_move_bol(), txt_wrap_move_eol(), wrap_offset(), and wrap_offset_in_line().
const char* text_context_dir[] |
Definition at line 385 of file space_text.c.