|
Blender
V2.59
|
#include <stdlib.h>#include <string.h>#include <ctype.h>#include <sys/stat.h>#include <errno.h>#include "MEM_guardedalloc.h"#include "DNA_text_types.h"#include "DNA_userdef_types.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "PIL_time.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_library.h"#include "BKE_main.h"#include "BKE_report.h"#include "BKE_text.h"#include "WM_api.h"#include "WM_types.h"#include "ED_text.h"#include "ED_curve.h"#include "ED_screen.h"#include "UI_interface.h"#include "UI_resources.h"#include "RNA_access.h"#include "RNA_define.h"#include "text_intern.h"Go to the source code of this file.
Definition in file text_ops.c.
| #define TEXT_FIND 0 |
Definition at line 2828 of file text_ops.c.
Referenced by find_and_replace(), find_exec(), and find_set_selected_exec().
| #define TEXT_MARK_ALL 2 |
Definition at line 2830 of file text_ops.c.
Referenced by find_and_replace(), and mark_all_exec().
| #define TEXT_REPLACE 1 |
Definition at line 2829 of file text_ops.c.
Referenced by find_and_replace(), and replace_exec().
| typedef struct SetSelection SetSelection |
| typedef struct TextScroll TextScroll |
| anonymous enum |
Definition at line 1078 of file text_ops.c.
| anonymous enum |
Definition at line 2073 of file text_ops.c.
| anonymous enum |
Definition at line 3037 of file text_ops.c.
| static int clear_all_markers_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1372 of file text_ops.c.
References CTX_data_edit_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, text_update_cursor_moved(), txt_clear_markers(), and WM_event_add_notifier().
Referenced by TEXT_OT_markers_clear().
| static int comment_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1011 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, OPERATOR_CANCELLED, OPERATOR_FINISHED, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_comment(), txt_has_sel(), txt_order_cursors(), and WM_event_add_notifier().
Referenced by TEXT_OT_comment().
| static int convert_whitespace_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1084 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), ListBase::first, flatten_string(), flatten_string_free(), TextLine::format, TextLine::len, TextLine::line, Text::lines, MEM_callocN(), MEM_freeN(), NA_EDITED, NC_TEXT, TextLine::next, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), SpaceText::tabnumber, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), TO_TABS, and WM_event_add_notifier().
Referenced by TEXT_OT_convert_whitespace().
| static int copy_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 838 of file text_ops.c.
References CTX_data_edit_text(), OPERATOR_FINISHED, and txt_copy_clipboard().
Referenced by TEXT_OT_copy().
Definition at line 1785 of file text_ops.c.
References Text::curc, Text::curl, cursor_skip_find_line(), ListBase::first, TextLine::len, Text::lines, TextLine::next, TextLine::prev, Text::selc, Text::sell, text_get_cursor_rel(), txt_get_span(), txt_pop_sel(), txt_undo_add_toop(), UNDO_CTO, UNDO_STO, and SpaceText::wordwrap.
Referenced by move_cursor().
| static int cursor_skip_find_line | ( | SpaceText * | st, |
| ARegion * | ar, | ||
| int | lines, | ||
| TextLine ** | linep, | ||
| int * | charp, | ||
| int * | rell, | ||
| int * | relc | ||
| ) | [static] |
Definition at line 1494 of file text_ops.c.
References TextLine::next, TextLine::prev, text_get_char_pos(), text_get_visible_lines(), and wrap_offset_in_line().
Referenced by cursor_skip().
| static int cut_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 861 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, NULL, OPERATOR_FINISHED, run_script(), text_drawcache_tag_update(), text_update_cursor_moved(), txt_copy_clipboard(), txt_delete_selected(), and WM_event_add_notifier().
Referenced by TEXT_OT_cut().
| static int delete_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1988 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), Text::curl, DEL_NEXT_CHAR, DEL_NEXT_WORD, DEL_PREV_CHAR, DEL_PREV_WORD, NA_EDITED, NC_TEXT, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), run_script(), text_drawcache_tag_update(), text_update_cursor_moved(), text_update_line_edited(), txt_backspace_char(), txt_backspace_word(), txt_delete_char(), txt_delete_word(), and WM_event_add_notifier().
Referenced by TEXT_OT_delete().
| void ED_text_undo_step | ( | bContext * | C, |
| int | step | ||
| ) |
Definition at line 3207 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_do_redo(), txt_do_undo(), and WM_event_add_notifier().
Referenced by ed_undo_step().
| static int find_and_replace | ( | bContext * | C, |
| wmOperator * | op, | ||
| short | mode | ||
| ) | [static] |
Definition at line 2832 of file text_ops.c.
References BKE_reportf(), BLI_strcasecmp(), MakeCursor::color, CTX_data_main(), CTX_wm_space_text(), SpaceText::findstr, ListBase::first, SpaceText::flags, Text::id, MEM_freeN(), NA_EDITED, NC_TEXT, ND_CURSOR, ID::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceText::replacestr, wmOperator::reports, RPT_ERROR, ST_FIND_ALL, ST_FIND_WRAP, ST_MATCH_CASE, Main::text, SpaceText::text, text_drawcache_tag_update(), TEXT_FIND, TEXT_MARK_ALL, TEXT_REPLACE, text_update_cursor_moved(), TH_SHADE2, TMARK_EDITALL, TMARK_GRP_FINDALL, txt_add_marker(), txt_clear_markers(), txt_find_marker(), txt_find_string(), txt_has_sel(), txt_insert_buf(), txt_move_toline(), txt_sel_to_buf(), UI_GetThemeColor4ubv(), and WM_event_add_notifier().
Referenced by find_exec(), find_set_selected_exec(), mark_all_exec(), and replace_exec().
| static int find_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2923 of file text_ops.c.
References find_and_replace(), and TEXT_FIND.
Referenced by TEXT_OT_find().
| static int find_set_selected_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2980 of file text_ops.c.
References BLI_strncpy(), CTX_data_edit_text(), CTX_wm_space_text(), find_and_replace(), SpaceText::findstr, MEM_freeN(), OPERATOR_FINISHED, ST_MAX_FIND_STR, TEXT_FIND, and txt_sel_to_buf().
Referenced by TEXT_OT_find_set_selected().
| static int indent_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 894 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_add_char(), txt_has_sel(), txt_indent(), txt_order_cursors(), and WM_event_add_notifier().
Referenced by TEXT_OT_indent().
| static int insert_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2748 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), Text::curl, i, MEM_freeN(), NA_EDITED, NC_TEXT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceText::overwrite, wmOperator::ptr, RNA_string_get_alloc(), str, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_line_edited(), txt_add_char(), txt_replace_char(), and WM_event_add_notifier().
Referenced by insert_invoke(), and TEXT_OT_insert().
| static int insert_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2782 of file text_ops.c.
References wmEvent::ctrl, CTX_wm_space_text(), insert_exec(), NULL, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmEvent::oskey, wmOperator::ptr, RNA_string_length(), RNA_string_set(), run_script(), and str.
Referenced by TEXT_OT_insert().
| static int jump_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1938 of file text_ops.c.
References CTX_data_edit_text(), ListBase::first, ListBase::last, Text::lines, NC_TEXT, ND_CURSOR, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), text_update_cursor_moved(), txt_get_span(), txt_move_toline(), and WM_event_add_notifier().
Referenced by TEXT_OT_jump().
| static int jump_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1957 of file text_ops.c.
References WM_operator_props_dialog_popup().
Referenced by TEXT_OT_jump().
| static int line_break_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 964 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), Text::curl, Text::flags, NA_EDITED, NC_TEXT, OPERATOR_CANCELLED, TextLine::prev, setcurr_tab_spaces(), SpaceText::tabnumber, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_line_edited(), txt_add_char(), txt_split_curline(), TXT_TABSTOSPACES, and WM_event_add_notifier().
Referenced by TEXT_OT_line_break().
| static int line_number_invoke | ( | bContext * | C, |
| wmOperator * | UNUSEDop, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2697 of file text_ops.c.
References wmEvent::ascii, CTX_data_edit_text(), CTX_wm_region(), CTX_wm_space_text(), NC_TEXT, ND_CURSOR, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, PIL_check_seconds_timer(), SpaceText::showlinenrs, text_update_character_width(), text_update_cursor_moved(), TEXTXLOC, txt_move_toline(), TXT_OFFSET, ARegion::winy, and WM_event_add_notifier().
Referenced by TEXT_OT_line_number().
| static int make_internal_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 404 of file text_ops.c.
References CTX_data_edit_text(), Text::flags, MEM_freeN(), NA_EDITED, Text::name, NC_TEXT, NULL, OPERATOR_FINISHED, text_update_cursor_moved(), TXT_ISDIRTY, TXT_ISMEM, and WM_event_add_notifier().
Referenced by resolve_conflict_exec(), and TEXT_OT_make_internal().
| static int mark_all_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2961 of file text_ops.c.
References find_and_replace(), and TEXT_MARK_ALL.
Referenced by TEXT_OT_mark_all().
| static int move_cursor | ( | bContext * | C, |
| int | type, | ||
| int | select | ||
| ) | [static] |
Definition at line 1818 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_region(), CTX_wm_space_text(), cursor_skip(), FILE_BOTTOM, FILE_TOP, LINE_BEGIN, LINE_END, NC_TEXT, ND_CURSOR, NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, NULL, OPERATOR_FINISHED, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, ARegion::regiontype, RGN_TYPE_WINDOW, SpaceText::text, text_update_cursor_moved(), txt_jump_left(), txt_jump_right(), txt_move_bof(), txt_move_bol(), txt_move_down(), txt_move_eof(), txt_move_eol(), txt_move_left(), txt_move_right(), txt_move_up(), SpaceText::viewlines, WM_event_add_notifier(), SpaceText::wordwrap, wrap_move_bol(), wrap_move_down(), wrap_move_eol(), and wrap_move_up().
Referenced by move_exec(), and move_select_exec().
| static int move_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1890 of file text_ops.c.
References move_cursor(), wmOperator::ptr, and RNA_enum_get().
Referenced by TEXT_OT_move().
| static int move_select_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1914 of file text_ops.c.
References move_cursor(), wmOperator::ptr, and RNA_enum_get().
Referenced by TEXT_OT_move_select().
| static int new_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 158 of file text_ops.c.
References add_empty_text(), CTX_wm_space_text(), Text::id, NA_ADDED, NC_TEXT, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), SpaceText::text, text_drawcache_tag_update(), SpaceText::top, uiIDContextProperty(), ID::us, and WM_event_add_notifier().
Referenced by TEXT_OT_new().
| static int next_marker_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1336 of file text_ops.c.
References CTX_data_edit_text(), Text::curc, Text::curl, TextMarker::end, ListBase::first, TextMarker::lineno, Text::lines, Text::markers, NA_EDITED, NC_TEXT, TextMarker::next, OPERATOR_FINISHED, TextMarker::start, text_update_cursor_moved(), txt_get_span(), txt_move_to(), and WM_event_add_notifier().
Referenced by TEXT_OT_next_marker().
| static int open_cancel | ( | bContext * | UNUSEDC, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 217 of file text_ops.c.
References wmOperator::customdata, MEM_freeN(), and OPERATOR_CANCELLED.
Referenced by TEXT_OT_open().
| static int open_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 223 of file text_ops.c.
References add_text(), CTX_wm_space_text(), wmOperator::customdata, FILE_MAX, G, Text::id, Global::main, MEM_freeN(), NA_ADDED, Main::name, Text::name, NC_TEXT, NULL, open_init(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, RNA_boolean_get(), RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), str, SpaceText::text, text_drawcache_tag_update(), SpaceText::top, ID::us, and WM_event_add_notifier().
Referenced by open_invoke(), and TEXT_OT_open().
| static void open_init | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 209 of file text_ops.c.
References wmOperator::customdata, MEM_callocN(), PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and uiIDContextProperty().
Referenced by open_exec(), and open_invoke().
| static int open_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 276 of file text_ops.c.
References CTX_data_edit_text(), G, Global::main, Main::name, Text::name, open_exec(), open_init(), OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_property_is_set(), RNA_string_set(), and WM_event_add_fileselect().
Referenced by TEXT_OT_open().
| static int paste_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 781 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), MEM_freeN(), NA_EDITED, NC_TEXT, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), run_script(), text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_insert_buf(), WM_clipboard_text_get(), and WM_event_add_notifier().
Referenced by TEXT_OT_paste().
| static int previous_marker_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1300 of file text_ops.c.
References CTX_data_edit_text(), Text::curc, Text::curl, TextMarker::end, ListBase::first, ListBase::last, TextMarker::lineno, Text::lines, Text::markers, NA_EDITED, NC_TEXT, OPERATOR_FINISHED, TextMarker::prev, TextMarker::start, text_update_cursor_moved(), txt_get_span(), txt_move_to(), and WM_event_add_notifier().
Referenced by TEXT_OT_previous_marker().
| static int refresh_pyconstraints_exec | ( | bContext * | UNUSEDC, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 642 of file text_ops.c.
References BPY_pyconstraint_update(), bPose::chanbase, CONSTRAINT_TYPE_PYTHON, bPoseChannel::constraints, Object::constraints, CTX_data_edit_text(), CTX_data_main(), DAG_id_tag_update(), bConstraint::data, ListBase::first, Object::id, bConstraint::next, ID::next, bPoseChannel::next, OB_ARMATURE, OB_RECALC_DATA, OPERATOR_FINISHED, Object::pose, bPythonConstraint::text, bConstraint::type, and Object::type.
Referenced by TEXT_OT_refresh_pyconstraints().
| static int reload_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 314 of file text_ops.c.
References BKE_report(), BPY_text_free_code(), Text::compiled, CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, OPERATOR_CANCELLED, OPERATOR_FINISHED, reopen_text(), wmOperator::reports, RPT_ERROR, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), and WM_event_add_notifier().
Referenced by resolve_conflict_exec(), and TEXT_OT_reload().
| static int replace_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2942 of file text_ops.c.
References find_and_replace(), and TEXT_REPLACE.
Referenced by TEXT_OT_replace().
| static int replace_set_selected_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 3010 of file text_ops.c.
References BLI_strncpy(), CTX_data_edit_text(), CTX_wm_space_text(), MEM_freeN(), OPERATOR_FINISHED, SpaceText::replacestr, ST_MAX_FIND_STR, and txt_sel_to_buf().
Referenced by TEXT_OT_replace_set_selected().
| static int resolve_conflict_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 3100 of file text_ops.c.
References CTX_data_edit_text(), make_internal_exec(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, reload_exec(), RESOLVE_IGNORE, RESOLVE_MAKE_INTERNAL, RESOLVE_RELOAD, RESOLVE_SAVE, RNA_enum_get(), save_exec(), and text_ignore_modified().
Referenced by TEXT_OT_resolve_conflict().
| static int resolve_conflict_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 3120 of file text_ops.c.
References CTX_data_edit_text(), Text::flags, wmOperatorType::idname, OPERATOR_CANCELLED, RESOLVE_IGNORE, RESOLVE_MAKE_INTERNAL, RESOLVE_RELOAD, RESOLVE_SAVE, text_file_modified(), TXT_ISDIRTY, wmOperator::type, uiItemEnumO(), uiPupMenuBegin(), uiPupMenuEnd(), and uiPupMenuLayout().
Referenced by TEXT_OT_resolve_conflict().
| static int run_script | ( | bContext * | C, |
| ReportList * | reports | ||
| ) | [static] |
Definition at line 578 of file text_ops.c.
References BKE_report(), BPY_text_exec(), CTX_data_edit_text(), Text::curc, Text::curl, NA_EDITED, NC_TEXT, NC_WINDOW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RPT_ERROR, text_update_cursor_moved(), and WM_event_add_notifier().
Referenced by cut_exec(), delete_exec(), insert_invoke(), paste_exec(), and run_script_exec().
| static int run_script_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 612 of file text_ops.c.
References BKE_report(), OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, and run_script().
Referenced by TEXT_OT_run_script().
| static int run_script_poll | ( | bContext * | C | ) | [static] |
Definition at line 573 of file text_ops.c.
References CTX_data_edit_text(), and NULL.
Referenced by TEXT_OT_run_script().
| static int save_as_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 512 of file text_ops.c.
References BLI_strdup(), CTX_data_edit_text(), FILE_MAX, Text::flags, MEM_freeN(), NA_EDITED, Text::name, NC_TEXT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_string_get(), str, text_update_cursor_moved(), TXT_ISMEM, txt_write_file(), and WM_event_add_notifier().
Referenced by save_as_invoke(), and TEXT_OT_save_as().
| static int save_as_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 534 of file text_ops.c.
References CTX_data_edit_text(), Text::flags, G, Text::id, Global::main, Main::name, Text::name, ID::name, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_property_is_set(), RNA_string_set(), save_as_exec(), str, TXT_ISMEM, and WM_event_add_fileselect().
Referenced by TEXT_OT_save_as().
| static int save_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 486 of file text_ops.c.
References CTX_data_edit_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, wmOperator::reports, text_update_cursor_moved(), txt_write_file(), and WM_event_add_notifier().
Referenced by resolve_conflict_exec(), and TEXT_OT_save().
| static int save_poll | ( | bContext * | C | ) | [static] |
Definition at line 438 of file text_ops.c.
References CTX_data_edit_text(), Text::flags, Text::name, NULL, text_edit_poll(), and TXT_ISMEM.
Referenced by TEXT_OT_resolve_conflict(), and TEXT_OT_save().
Definition at line 2059 of file text_ops.c.
References text_get_total_lines(), SpaceText::top, and SpaceText::viewlines.
Referenced by scroll_apply(), scroll_exec(), and set_cursor_apply().
| static void scroll_apply | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2112 of file text_ops.c.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_text(), wmOperator::customdata, SpaceText::cwidth, TextScroll::delta, ED_area_tag_redraw(), TextScroll::first, SpaceText::left, SpaceText::lheight, TextScroll::old, SpaceText::pix_per_line, screen_skip(), TextScroll::scrollbar, text_update_character_width(), and SpaceText::wordwrap.
Referenced by scroll_invoke(), and scroll_modal().
| static int scroll_bar_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2286 of file text_ops.c.
References CTX_wm_region(), CTX_wm_space_text(), wmOperator::customdata, TextScroll::first, SpaceText::flags, MEM_callocN(), OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_property_is_set(), scroll_exec(), TextScroll::scrollbar, SCROLLHANDLE_BAR, SCROLLHANDLE_MAX_OUTSIDE, SCROLLHANDLE_MIN_OUTSIDE, ST_SCROLL_SELECT, TXT_SCROLL_SPACE, SpaceText::txtbar, ARegion::winy, WM_event_add_modal_handler(), rcti::xmax, rcti::xmin, rcti::ymax, rcti::ymin, and TextScroll::zone.
Referenced by TEXT_OT_scroll_bar().
| static int scroll_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2202 of file text_ops.c.
References OPERATOR_CANCELLED, and scroll_exit().
Referenced by TEXT_OT_scroll(), and TEXT_OT_scroll_bar().
| static int scroll_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2095 of file text_ops.c.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_text(), ED_area_tag_redraw(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and screen_skip().
Referenced by scroll_bar_invoke(), scroll_invoke(), and TEXT_OT_scroll().
| static void scroll_exit | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2161 of file text_ops.c.
References CTX_wm_space_text(), wmOperator::customdata, SpaceText::flags, MEM_freeN(), and ST_SCROLL_SELECT.
Referenced by scroll_cancel(), scroll_invoke(), and scroll_modal().
| static int scroll_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2209 of file text_ops.c.
References CTX_wm_space_text(), wmOperator::customdata, SpaceText::cwidth, TextScroll::delta, TextScroll::first, SpaceText::flags, SpaceText::lheight, MEM_callocN(), MOUSEPAN, TextScroll::old, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmEvent::prevy, wmOperator::ptr, RNA_property_is_set(), scroll_apply(), scroll_exec(), scroll_exit(), TextScroll::scrollbar, SCROLLHANDLE_BAR, ST_SCROLL_SELECT, text_update_character_width(), wmEvent::type, WM_event_add_modal_handler(), wmEvent::y, and TextScroll::zone.
Referenced by TEXT_OT_scroll().
| static int scroll_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2169 of file text_ops.c.
References CLAMP(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_text(), wmOperator::customdata, ED_area_tag_redraw(), ELEM, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, scroll_apply(), scroll_exit(), SCROLLHANDLE_BAR, SCROLLHANDLE_MAX_OUTSIDE, SCROLLHANDLE_MIN_OUTSIDE, text_get_total_lines(), SpaceText::top, wmEvent::type, SpaceText::viewlines, and TextScroll::zone.
Referenced by TEXT_OT_scroll(), and TEXT_OT_scroll_bar().
| static int select_all_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1221 of file text_ops.c.
References CTX_data_edit_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, text_update_cursor_moved(), txt_sel_all(), and WM_event_add_notifier().
Referenced by TEXT_OT_select_all().
| static int select_line_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1247 of file text_ops.c.
References CTX_data_edit_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, text_update_cursor_moved(), txt_sel_line(), and WM_event_add_notifier().
Referenced by TEXT_OT_select_line().
| static int select_word_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1273 of file text_ops.c.
References CTX_data_edit_text(), NA_EDITED, NC_TEXT, OPERATOR_FINISHED, text_update_cursor_moved(), txt_jump_left(), txt_jump_right(), and WM_event_add_notifier().
Referenced by TEXT_OT_select_word().
| static void set_cursor_apply | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2518 of file text_ops.c.
References CTX_wm_region(), CTX_wm_space_text(), wmOperator::customdata, simple_enum_gen::d, SpaceText::left, wmEvent::mval, NC_TEXT, ND_CURSOR, SetSelection::old, SpaceText::pix_per_line, screen_skip(), set_cursor_to_pos(), SpaceText::text, text_update_cursor_moved(), ARegion::winx, ARegion::winy, WM_event_add_notifier(), and SpaceText::wordwrap.
Referenced by set_selection_invoke(), and set_selection_modal().
| static int set_cursor_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2643 of file text_ops.c.
References CTX_wm_region(), CTX_wm_space_text(), Text::curc, Text::curl, ListBase::first, Text::lines, NC_TEXT, ND_CURSOR, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_int_get(), set_cursor_to_pos(), SpaceText::text, text_update_cursor_moved(), txt_get_span(), txt_undo_add_toop(), UNDO_CTO, and WM_event_add_notifier().
Referenced by set_cursor_invoke(), and TEXT_OT_cursor_set().
| static void set_cursor_exit | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2554 of file text_ops.c.
References CTX_wm_space_text(), wmOperator::customdata, ListBase::first, Text::lines, MEM_freeN(), NC_TEXT, ND_CURSOR, Text::selc, SetSelection::selc, Text::sell, SetSelection::sell, SpaceText::text, text_update_cursor_moved(), txt_get_span(), txt_has_sel(), txt_sel_to_buf(), txt_undo_add_toop(), UNDO_STO, WM_clipboard_text_set(), and WM_event_add_notifier().
Referenced by set_selection_cancel(), and set_selection_modal().
| static int set_cursor_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2665 of file text_ops.c.
References CTX_wm_space_text(), wmEvent::mval, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_int_set(), set_cursor_exec(), SpaceText::txtbar, and rcti::xmin.
Referenced by TEXT_OT_cursor_set().
Definition at line 2358 of file text_ops.c.
References FlattenString::accum, Text::curc, Text::curl, SpaceText::cwidth, ListBase::first, flatten_string(), flatten_string_free(), i, SpaceText::left, SpaceText::lheight, Text::lines, max, TextLine::next, TextLine::prev, Text::selc, Text::sell, SpaceText::showlinenrs, SpaceText::tabnumber, SpaceText::text, text_get_visible_lines(), text_update_character_width(), TEXTXLOC, SpaceText::top, txt_get_span(), TXT_OFFSET, txt_pop_sel(), simple_enum_gen::w, ARegion::winy, SpaceText::wordwrap, and wrap_width().
Referenced by set_cursor_apply(), and set_cursor_exec().
| static int set_selection_cancel | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 2618 of file text_ops.c.
References OPERATOR_FINISHED, and set_cursor_exit().
Referenced by TEXT_OT_selection_set().
| static int set_selection_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2580 of file text_ops.c.
References CTX_wm_space_text(), wmOperator::customdata, ListBase::first, Text::lines, MEM_callocN(), SetSelection::old, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_get(), Text::selc, SetSelection::selc, SetSelection::selecting, Text::sell, SetSelection::sell, set_cursor_apply(), SpaceText::text, txt_get_span(), and WM_event_add_modal_handler().
Referenced by TEXT_OT_selection_set().
| static int set_selection_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 2602 of file text_ops.c.
References LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, set_cursor_apply(), set_cursor_exit(), and wmEvent::type.
Referenced by TEXT_OT_selection_set().
| static int text_edit_poll | ( | bContext * | C | ) | [static] |
Definition at line 83 of file text_ops.c.
References CTX_data_edit_text(), Text::id, and ID::lib.
Referenced by save_poll(), TEXT_OT_comment(), TEXT_OT_convert_whitespace(), TEXT_OT_copy(), TEXT_OT_cut(), TEXT_OT_delete(), TEXT_OT_indent(), TEXT_OT_insert(), TEXT_OT_jump(), TEXT_OT_line_break(), TEXT_OT_make_internal(), TEXT_OT_markers_clear(), TEXT_OT_move(), TEXT_OT_next_marker(), TEXT_OT_paste(), TEXT_OT_previous_marker(), TEXT_OT_refresh_pyconstraints(), TEXT_OT_reload(), TEXT_OT_save_as(), TEXT_OT_select_all(), TEXT_OT_select_line(), TEXT_OT_select_word(), TEXT_OT_to_3d_object(), TEXT_OT_uncomment(), and TEXT_OT_unindent().
| int text_file_modified | ( | Text * | text | ) |
Definition at line 3050 of file text_ops.c.
References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAXDIR, FILE_MAXFILE, G, Global::main, Text::mtime, Main::name, and Text::name.
Referenced by resolve_conflict_invoke().
| static int text_get_cursor_rel | ( | SpaceText * | st, |
| ARegion * | ar, | ||
| TextLine * | linein, | ||
| int | rell, | ||
| int | relc | ||
| ) | [static] |
Definition at line 1414 of file text_ops.c.
References i, TextLine::len, TextLine::line, max, SpaceText::tabnumber, and wrap_width().
Referenced by cursor_skip(), wrap_move_down(), and wrap_move_up().
| static void text_ignore_modified | ( | Text * | text | ) | [static] |
Definition at line 3079 of file text_ops.c.
References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAXDIR, FILE_MAXFILE, G, Global::main, Text::mtime, Main::name, and Text::name.
Referenced by resolve_conflict_exec().
| static int text_new_poll | ( | bContext * | UNUSEDC | ) | [static] |
Definition at line 78 of file text_ops.c.
Referenced by TEXT_OT_new(), and TEXT_OT_open().
| void TEXT_OT_comment | ( | wmOperatorType * | ot | ) |
Definition at line 1030 of file text_ops.c.
References comment_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_convert_whitespace | ( | wmOperatorType * | ot | ) |
Definition at line 1204 of file text_ops.c.
References convert_whitespace_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, text_edit_poll(), and TO_SPACES.
Referenced by text_operatortypes().
| void TEXT_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 847 of file text_ops.c.
References copy_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cursor_set | ( | wmOperatorType * | ot | ) |
Definition at line 2678 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), set_cursor_exec(), set_cursor_invoke(), wmOperatorType::srna, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_cut | ( | wmOperatorType * | ot | ) |
Definition at line 880 of file text_ops.c.
References cut_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 2016 of file text_ops.c.
References DEL_NEXT_CHAR, delete_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find | ( | wmOperatorType * | ot | ) |
Definition at line 2928 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, find_exec(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_find_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 2996 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, find_set_selected_exec(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_indent | ( | wmOperatorType * | ot | ) |
Definition at line 915 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, indent_exec(), wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_insert | ( | wmOperatorType * | ot | ) |
Definition at line 2809 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, insert_exec(), insert_invoke(), wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_string(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_jump | ( | wmOperatorType * | ot | ) |
Definition at line 1963 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, jump_exec(), jump_invoke(), wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 997 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, line_break_exec(), wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_line_number | ( | wmOperatorType * | ot | ) |
Definition at line 2734 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, line_number_invoke(), wmOperatorType::name, wmOperatorType::poll, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_make_internal | ( | wmOperatorType * | ot | ) |
Definition at line 421 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_internal_exec(), wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_mark_all | ( | wmOperatorType * | ot | ) |
Definition at line 2966 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, mark_all_exec(), wmOperatorType::name, wmOperatorType::poll, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_markers_clear | ( | wmOperatorType * | ot | ) |
Definition at line 1384 of file text_ops.c.
References clear_all_markers_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 1897 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_exec(), wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 1921 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, move_select_exec(), wmOperatorType::name, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 192 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_exec(), OPTYPE_UNDO, wmOperatorType::poll, and text_new_poll().
Referenced by text_operatortypes().
| void TEXT_OT_next_marker | ( | wmOperatorType * | ot | ) |
Definition at line 1358 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, next_marker_exec(), wmOperatorType::poll, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 291 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, open_cancel(), open_exec(), open_invoke(), OPTYPE_UNDO, wmOperatorType::poll, PYSCRIPTFILE, RNA_def_boolean(), wmOperatorType::srna, text_new_poll(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_overwrite_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2044 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_space_edit_poll(), and toggle_overwrite_exec().
Referenced by text_operatortypes().
| void TEXT_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 809 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, paste_exec(), wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_previous_marker | ( | wmOperatorType * | ot | ) |
Definition at line 1322 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, previous_marker_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_refresh_pyconstraints | ( | wmOperatorType * | ot | ) |
Definition at line 685 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, refresh_pyconstraints_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_reload | ( | wmOperatorType * | ot | ) |
Definition at line 336 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, reload_exec(), text_edit_poll(), and WM_operator_confirm().
Referenced by text_operatortypes().
| void TEXT_OT_replace | ( | wmOperatorType * | ot | ) |
Definition at line 2947 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, replace_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_replace_set_selected | ( | wmOperatorType * | ot | ) |
Definition at line 3023 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, replace_set_selected_exec(), and text_space_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_resolve_conflict | ( | wmOperatorType * | ot | ) |
Definition at line 3158 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, resolve_conflict_exec(), resolve_conflict_invoke(), RESOLVE_IGNORE, RNA_def_enum(), save_poll(), and wmOperatorType::srna.
Referenced by text_operatortypes().
| void TEXT_OT_run_script | ( | wmOperatorType * | ot | ) |
Definition at line 625 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, run_script_exec(), and run_script_poll().
Referenced by text_operatortypes().
| void TEXT_OT_save | ( | wmOperatorType * | ot | ) |
Definition at line 498 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, save_exec(), and save_poll().
Referenced by text_operatortypes().
| void TEXT_OT_save_as | ( | wmOperatorType * | ot | ) |
Definition at line 555 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FILE_SAVE, FILE_SPECIAL, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, PYSCRIPTFILE, save_as_exec(), save_as_invoke(), text_edit_poll(), TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by text_operatortypes().
| void TEXT_OT_scroll | ( | wmOperatorType * | ot | ) |
Definition at line 2244 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(), scroll_cancel(), scroll_exec(), scroll_invoke(), scroll_modal(), wmOperatorType::srna, and text_scroll_poll().
Referenced by text_operatortypes().
| void TEXT_OT_scroll_bar | ( | wmOperatorType * | ot | ) |
Definition at line 2327 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(), scroll_bar_invoke(), scroll_cancel(), scroll_modal(), wmOperatorType::srna, and text_region_scroll_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1233 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_all_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_line | ( | wmOperatorType * | ot | ) |
Definition at line 1259 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_line_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_select_word | ( | wmOperatorType * | ot | ) |
Definition at line 1286 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, select_word_exec(), and text_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_selection_set | ( | wmOperatorType * | ot | ) |
Definition at line 2624 of file text_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), set_selection_cancel(), set_selection_invoke(), set_selection_modal(), wmOperatorType::srna, and text_region_edit_poll().
Referenced by text_operatortypes().
| void TEXT_OT_to_3d_object | ( | wmOperatorType * | ot | ) |
Definition at line 3186 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 to_3d_object_exec().
Referenced by text_operatortypes().
| void TEXT_OT_uncomment | ( | wmOperatorType * | ot | ) |
Definition at line 1064 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and uncomment_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unindent | ( | wmOperatorType * | ot | ) |
Definition at line 950 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, text_edit_poll(), and unindent_exec().
Referenced by text_operatortypes().
| void TEXT_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 386 of file text_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, text_unlink_poll(), unlink_exec(), and WM_operator_confirm().
Referenced by text_operatortypes().
| static int text_region_edit_poll | ( | bContext * | C | ) | [static] |
Definition at line 114 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_region(), CTX_wm_space_text(), Text::id, ID::lib, ARegion::regiontype, and RGN_TYPE_WINDOW.
Referenced by TEXT_OT_cursor_set(), TEXT_OT_line_number(), and TEXT_OT_selection_set().
| static int text_region_scroll_poll | ( | bContext * | C | ) | [static] |
Definition at line 2270 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_region(), CTX_wm_space_text(), ARegion::regiontype, and RGN_TYPE_WINDOW.
Referenced by TEXT_OT_scroll_bar().
| static int text_scroll_poll | ( | bContext * | C | ) | [static] |
Definition at line 2089 of file text_ops.c.
References CTX_data_edit_text(), and NULL.
Referenced by TEXT_OT_scroll().
| static int text_space_edit_poll | ( | bContext * | C | ) | [static] |
Definition at line 98 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), Text::id, and ID::lib.
Referenced by TEXT_OT_find(), TEXT_OT_find_set_selected(), TEXT_OT_mark_all(), TEXT_OT_move_select(), TEXT_OT_overwrite_toggle(), TEXT_OT_replace(), and TEXT_OT_replace_set_selected().
| static int text_unlink_poll | ( | bContext * | C | ) | [static] |
Definition at line 351 of file text_ops.c.
References CTX_data_edit_text(), and NULL.
Referenced by TEXT_OT_unlink().
| void text_update_edited | ( | Text * | text | ) |
Definition at line 148 of file text_ops.c.
References ListBase::first, Text::lines, TextLine::next, and text_update_line_edited().
| void text_update_line_edited | ( | TextLine * | line | ) |
Definition at line 136 of file text_ops.c.
References TextLine::format, MEM_freeN(), and NULL.
Referenced by delete_exec(), do_textmarkers(), do_texttools(), insert_exec(), line_break_exec(), and text_update_edited().
| static int to_3d_object_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 3176 of file text_ops.c.
References CTX_data_edit_text(), ED_text_to_object(), OPERATOR_FINISHED, wmOperator::ptr, and RNA_boolean_get().
Referenced by TEXT_OT_to_3d_object().
| static int toggle_overwrite_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 2033 of file text_ops.c.
References CTX_wm_space_text(), NC_TEXT, ND_CURSOR, OPERATOR_FINISHED, SpaceText::overwrite, SpaceText::text, and WM_event_add_notifier().
Referenced by TEXT_OT_overwrite_toggle().
| static void txt_copy_clipboard | ( | Text * | text | ) | [static] |
Definition at line 826 of file text_ops.c.
References MEM_freeN(), txt_copy_selected(), and WM_clipboard_text_set().
Referenced by copy_exec(), and cut_exec().
| static char* txt_copy_selected | ( | Text * | text | ) | [static] |
Definition at line 699 of file text_ops.c.
References BLI_strncpy(), Text::curc, Text::curl, TextLine::len, length(), TextLine::line, MEM_callocN(), TextLine::next, NULL, Text::selc, Text::sell, txt_get_span(), and txt_has_sel().
Referenced by txt_copy_clipboard().
| static void txt_write_file | ( | Text * | text, |
| ReportList * | reports | ||
| ) | [static] |
Definition at line 448 of file text_ops.c.
References BKE_reportf(), BLI_path_abs(), BLI_strncpy(), FILE_MAXDIR, FILE_MAXFILE, ListBase::first, Text::flags, G, TextLine::line, Text::lines, Global::main, Text::mtime, Main::name, Text::name, TextLine::next, NULL, RPT_ERROR, RPT_WARNING, and TXT_ISDIRTY.
Referenced by save_as_exec(), and save_exec().
| static int uncomment_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1044 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, OPERATOR_CANCELLED, OPERATOR_FINISHED, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_has_sel(), txt_order_cursors(), txt_uncomment(), and WM_event_add_notifier().
Referenced by TEXT_OT_uncomment().
| static int unindent_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 929 of file text_ops.c.
References CTX_data_edit_text(), CTX_wm_space_text(), NA_EDITED, NC_TEXT, OPERATOR_CANCELLED, OPERATOR_FINISHED, text_drawcache_tag_update(), text_update_cursor_moved(), text_update_edited(), txt_has_sel(), txt_order_cursors(), txt_unindent(), and WM_event_add_notifier().
Referenced by TEXT_OT_unindent().
| static int unlink_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 357 of file text_ops.c.
References CTX_data_edit_text(), CTX_data_main(), CTX_wm_space_text(), free_libblock(), Text::id, NA_REMOVED, NC_TEXT, ND_CURSOR, ID::next, NULL, OPERATOR_FINISHED, ID::prev, Main::text, SpaceText::text, text_drawcache_tag_update(), text_update_cursor_moved(), unlink_text(), and WM_event_add_notifier().
Referenced by TEXT_OT_unlink().
Definition at line 1577 of file text_ops.c.
References Text::curc, Text::curl, ListBase::first, i, Text::lines, max, Text::selc, Text::sell, SpaceText::tabnumber, SpaceText::text, text_update_character_width(), txt_get_span(), txt_pop_sel(), txt_undo_add_toop(), UNDO_CTO, UNDO_STO, and wrap_width().
Referenced by move_cursor().
Definition at line 1745 of file text_ops.c.
References BLI_findindex(), Text::curc, Text::curl, ListBase::first, Text::lines, TextLine::next, Text::selc, Text::sell, SpaceText::text, text_get_char_pos(), text_get_cursor_rel(), text_get_visible_lines(), text_update_character_width(), txt_get_span(), txt_pop_sel(), txt_undo_add_toop(), UNDO_CTO, UNDO_STO, and wrap_offset_in_line().
Referenced by move_cursor().
Definition at line 1645 of file text_ops.c.
References Text::curc, Text::curl, ListBase::first, i, Text::lines, max, Text::selc, Text::sell, SpaceText::tabnumber, SpaceText::text, text_update_character_width(), txt_get_span(), txt_pop_sel(), txt_undo_add_toop(), UNDO_CTO, UNDO_STO, and wrap_width().
Referenced by move_cursor().
Definition at line 1709 of file text_ops.c.
References BLI_findindex(), Text::curc, Text::curl, ListBase::first, Text::lines, TextLine::prev, Text::selc, Text::sell, SpaceText::text, text_get_char_pos(), text_get_cursor_rel(), text_get_visible_lines(), text_update_character_width(), txt_get_span(), txt_pop_sel(), txt_undo_add_toop(), UNDO_CTO, UNDO_STO, and wrap_offset_in_line().
Referenced by move_cursor().
EnumPropertyItem delete_type_items[] [static] |
{
{DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
{DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
{DEL_NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
{DEL_PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 1981 of file text_ops.c.
EnumPropertyItem move_type_items[] [static] |
{
{LINE_BEGIN, "LINE_BEGIN", 0, "Line Begin", ""},
{LINE_END, "LINE_END", 0, "Line End", ""},
{FILE_TOP, "FILE_TOP", 0, "File Top", ""},
{FILE_BOTTOM, "FILE_BOTTOM", 0, "File Bottom", ""},
{PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
{NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
{PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
{NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
{PREV_LINE, "PREVIOUS_LINE", 0, "Previous Line", ""},
{NEXT_LINE, "NEXT_LINE", 0, "Next Line", ""},
{PREV_PAGE, "PREVIOUS_PAGE", 0, "Previous Page", ""},
{NEXT_PAGE, "NEXT_PAGE", 0, "Next Page", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 1398 of file text_ops.c.
EnumPropertyItem resolution_items[] [static] |
{
{RESOLVE_IGNORE, "IGNORE", 0, "Ignore", ""},
{RESOLVE_RELOAD, "RELOAD", 0, "Reload", ""},
{RESOLVE_SAVE, "SAVE", 0, "Save", ""},
{RESOLVE_MAKE_INTERNAL, "MAKE_INTERNAL", 0, "Make Internal", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 3038 of file text_ops.c.
EnumPropertyItem whitespace_type_items[] [static] |