|
Blender V4.3
|
#include <cctype>#include <cstdlib>#include <cstring>#include <sys/stat.h>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_dynstr.h"#include "BLI_listbase.h"#include "BLI_string.h"#include "BLI_string_cursor_utf8.h"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "UI_view2d.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "console_intern.hh"Go to the source code of this file.
Classes | |
| struct | SetConsoleCursor |
Macros | |
| #define | TAB_LENGTH 4 |
Variables | |
| static const EnumPropertyItem | console_move_type_items [] |
| static const EnumPropertyItem | console_delete_type_items [] |
| #define TAB_LENGTH 4 |
Definition at line 40 of file console_ops.cc.
Referenced by console_indent_exec(), and console_unindent_exec().
|
static |
Definition at line 864 of file console_ops.cc.
References BKE_area_find_region_type(), console_history_free(), console_history_verify(), console_scrollback_free(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), ListBase::first, SpaceConsole::history, OPERATOR_FINISHED, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), and SpaceConsole::scrollback.
Referenced by CONSOLE_OT_clear().
|
static |
Definition at line 827 of file console_ops.cc.
References BKE_area_find_region_type(), console_history_add(), console_history_verify(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), ConsoleLine::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, and RGN_TYPE_WINDOW.
Referenced by CONSOLE_OT_clear_line().
|
static |
Definition at line 1120 of file console_ops.cc.
References console_delete_editable_selection(), console_select_to_buffer(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), and WM_clipboard_text_set().
Referenced by CONSOLE_OT_copy().
|
static |
Definition at line 1139 of file console_ops.cc.
References CTX_wm_space_console(), ED_operator_console_active(), SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by CONSOLE_OT_copy().
|
static |
Definition at line 1293 of file console_ops.cc.
References console_select_update_primary_clipboard(), CTX_wm_space_console(), wmOperator::customdata, and MEM_freeN().
Referenced by console_modal_select(), and console_modal_select_cancel().
|
static |
Definition at line 1233 of file console_ops.cc.
References console_char_pick(), console_line_cursor_set(), SpaceConsole::history, ListBase::last, ConsoleLine::len, len, MOUSEMOVE, wmEvent::mval, pos, SpaceConsole::sel_end, SetConsoleCursor::sel_init, and SpaceConsole::sel_start.
Referenced by console_modal_select_apply().
|
static |
Definition at line 107 of file console_ops.cc.
References ConsoleLine::cursor, SpaceConsole::history, ListBase::last, ConsoleLine::len, len, ConsoleLine::line, SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by console_copy_exec(), console_delete_exec(), console_insert_exec(), and console_paste_exec().
|
static |
Definition at line 722 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_assert, BLI_str_cursor_step_utf8(), console_delete_editable_selection(), console_history_verify(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ConsoleLine::cursor, DEL_NEXT_CHAR, DEL_NEXT_WORD, DEL_PREV_CHAR, DEL_PREV_WORD, ED_area_tag_redraw(), ConsoleLine::len, ConsoleLine::line, OPERATOR_CANCELLED, OPERATOR_FINISHED, pos, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_enum_get(), SpaceConsole::sel_end, SpaceConsole::sel_start, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_DELIM, and STRCUR_JUMP_NONE.
Referenced by CONSOLE_OT_delete().
|
static |
Definition at line 251 of file console_ops.cc.
References console_lb_add__internal(), and SpaceConsole::history.
Referenced by console_clear_line_exec(), console_history_cycle_exec(), and console_history_verify().
| ConsoleLine * console_history_add_str | ( | SpaceConsole * | sc, |
| char * | str, | ||
| bool | own ) |
Definition at line 282 of file console_ops.cc.
References console_lb_add_str__internal(), SpaceConsole::history, and str.
Referenced by console_history_append_exec(), and report_replay_exec().
|
static |
Definition at line 997 of file console_ops.cc.
References BKE_area_find_region_type(), console_history_add_str(), console_history_free(), console_history_verify(), console_line_cursor_set(), console_scroll_bottom(), console_select_offset(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), SpaceConsole::history_index, ConsoleLine::len, ConsoleLine::line, MEM_freeN(), OPERATOR_FINISHED, ConsoleLine::prev, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), RNA_int_get(), RNA_string_get_alloc(), str, and STREQ.
Referenced by CONSOLE_OT_history_append().
|
static |
Definition at line 911 of file console_ops.cc.
References BKE_area_find_region_type(), console_history_add(), console_history_free(), console_history_verify(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), SpaceConsole::history_index, ConsoleLine::len, OPERATOR_FINISHED, ConsoleLine::prev, wmOperator::ptr, RGN_TYPE_WINDOW, and RNA_boolean_get().
Referenced by CONSOLE_OT_history_cycle().
| void console_history_free | ( | SpaceConsole * | sc, |
| ConsoleLine * | cl ) |
Definition at line 164 of file console_ops.cc.
References BLI_remlink(), SpaceConsole::history, ConsoleLine::line, and MEM_freeN().
Referenced by console_clear_exec(), console_free(), console_history_append_exec(), and console_history_cycle_exec().
| ConsoleLine * console_history_verify | ( | const bContext * | C | ) |
Definition at line 293 of file console_ops.cc.
References console_history_add(), CTX_wm_space_console(), SpaceConsole::history, and ListBase::last.
Referenced by console_clear_exec(), console_clear_line_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_indent_or_autocomplete_exec(), console_insert_exec(), console_main_region_draw(), console_move_exec(), console_paste_exec(), console_scrollback_append_exec(), and console_unindent_exec().
|
static |
Definition at line 611 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_assert, console_history_verify(), console_line_cursor_set(), console_line_verify_length(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ConsoleLine::cursor, ED_area_tag_redraw(), ConsoleLine::len, len, ConsoleLine::line, OPERATOR_FINISHED, RGN_TYPE_WINDOW, and TAB_LENGTH.
Referenced by CONSOLE_OT_indent().
|
static |
Definition at line 566 of file console_ops.cc.
References BLI_str_utf8_size_safe(), console_history_verify(), ConsoleLine::cursor, ELEM, ConsoleLine::line, OPERATOR_FINISHED, WM_OP_EXEC_DEFAULT, WM_OP_INVOKE_DEFAULT, and WM_operator_name_call().
Referenced by CONSOLE_OT_indent_or_autocomplete().
|
static |
Definition at line 478 of file console_ops.cc.
References BKE_area_find_region_type(), BKE_report(), console_delete_editable_selection(), console_history_verify(), console_line_insert(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), len, MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RGN_TYPE_WINDOW, RNA_string_get_alloc(), RPT_ERROR, and str.
Referenced by console_insert_invoke(), and CONSOLE_OT_insert().
|
static |
Definition at line 520 of file console_ops.cc.
References BLI_str_utf8_size_safe(), BLI_UTF8_MAX, console_insert_exec(), KM_CTRL, KM_OSKEY, len, wmEvent::modifier, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_string_length(), RNA_string_set(), str, and wmEvent::utf8_buf.
Referenced by CONSOLE_OT_insert().
|
static |
Definition at line 229 of file console_ops.cc.
References BLI_addtail(), BLI_assert, BLI_strdupn(), ConsoleLine::cursor, ConsoleLine::len, ConsoleLine::len_alloc, ConsoleLine::line, MEM_callocN, and ConsoleLine::type.
Referenced by console_history_add().
|
static |
Definition at line 265 of file console_ops.cc.
References BLI_addtail(), BLI_strdupn(), ConsoleLine::len, ConsoleLine::len_alloc, ConsoleLine::line, MEM_callocN, and str.
Referenced by console_history_add_str(), and console_scrollback_add_str().
|
static |
Take an absolute index and give the line/column info.
Definition at line 343 of file console_ops.cc.
References ListBase::last, ConsoleLine::len, pos, ConsoleLine::prev, and SpaceConsole::scrollback.
Referenced by console_selectword_invoke().
|
static |
Definition at line 187 of file console_ops.cc.
References ConsoleLine::cursor, and ConsoleLine::len.
Referenced by console_cursor_set_to_pos(), console_history_append_exec(), console_indent_exec(), console_modal_select_invoke(), console_move_exec(), console_selectword_invoke(), and console_unindent_exec().
|
static |
Definition at line 319 of file console_ops.cc.
References BLI_assert, console_line_verify_length(), ConsoleLine::cursor, ConsoleLine::len, len, ConsoleLine::line, and str.
Referenced by console_insert_exec(), and console_paste_exec().
|
static |
Definition at line 304 of file console_ops.cc.
References len, ConsoleLine::len_alloc, ConsoleLine::line, and MEM_recallocN_id.
Referenced by console_indent_exec(), console_line_insert(), and console_unindent_exec().
|
static |
Definition at line 1335 of file console_ops.cc.
References console_cursor_set_exit(), console_modal_select_apply(), CTX_wm_area(), ED_area_tag_redraw(), KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, wmEvent::type, and wmEvent::val.
Referenced by CONSOLE_OT_select_set().
|
static |
Definition at line 1380 of file console_ops.cc.
References CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), SpaceConsole::history, ListBase::last, ConsoleLine::len, LISTBASE_FOREACH, OPERATOR_FINISHED, SpaceConsole::prompt, SpaceConsole::scrollback, SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by CONSOLE_OT_select_all().
|
static |
Definition at line 1276 of file console_ops.cc.
References BKE_area_find_region_type(), console_cursor_set_to_pos(), CTX_wm_area(), CTX_wm_space_console(), wmOperator::customdata, ED_area_tag_redraw(), RGN_TYPE_WINDOW, SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by console_modal_select(), and console_modal_select_invoke().
|
static |
Definition at line 1361 of file console_ops.cc.
References console_cursor_set_exit().
Referenced by CONSOLE_OT_select_set().
|
static |
Definition at line 1303 of file console_ops.cc.
References BKE_area_find_region_type(), console_char_pick(), console_line_cursor_set(), console_modal_select_apply(), CTX_wm_area(), CTX_wm_space_console(), wmOperator::customdata, SpaceConsole::history, ListBase::last, ConsoleLine::len, len, MEM_callocN, wmEvent::mval, OPERATOR_RUNNING_MODAL, pos, RGN_TYPE_WINDOW, SpaceConsole::sel_end, SetConsoleCursor::sel_init, SetConsoleCursor::sel_old, SpaceConsole::sel_start, and WM_event_add_modal_handler().
Referenced by CONSOLE_OT_select_set().
|
static |
Definition at line 383 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_str_cursor_step_utf8(), console_history_verify(), console_line_cursor_set(), console_scroll_bottom(), CTX_wm_area(), CTX_wm_space_console(), ConsoleLine::cursor, ED_area_tag_redraw(), ConsoleLine::len, ConsoleLine::line, LINE_BEGIN, LINE_END, NEXT_CHAR, NEXT_WORD, OPERATOR_FINISHED, pos, PREV_CHAR, PREV_WORD, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), RNA_enum_get(), SpaceConsole::sel_end, SpaceConsole::sel_start, select(), STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_ALL, STRCUR_JUMP_DELIM, and STRCUR_JUMP_NONE.
Referenced by CONSOLE_OT_move().
| void CONSOLE_OT_clear | ( | wmOperatorType * | ot | ) |
Definition at line 894 of file console_ops.cc.
References console_clear_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_clear_line | ( | wmOperatorType * | ot | ) |
Definition at line 851 of file console_ops.cc.
References console_clear_line_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1145 of file console_ops.cc.
References console_copy_exec(), console_copy_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 807 of file console_ops.cc.
References console_delete_exec(), console_delete_type_items, DEL_NEXT_CHAR, wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_history_append | ( | wmOperatorType * | ot | ) |
Definition at line 1043 of file console_ops.cc.
References console_history_append_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_int(), RNA_def_string(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_history_cycle | ( | wmOperatorType * | ot | ) |
Definition at line 981 of file console_ops.cc.
References console_history_cycle_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_indent | ( | wmOperatorType * | ot | ) |
Definition at line 646 of file console_ops.cc.
References console_indent_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_indent_or_autocomplete | ( | wmOperatorType * | ot | ) |
Definition at line 590 of file console_ops.cc.
References console_indent_or_autocomplete_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_insert | ( | wmOperatorType * | ot | ) |
Definition at line 542 of file console_ops.cc.
References console_insert_exec(), console_insert_invoke(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 459 of file console_ops.cc.
References console_move_exec(), console_move_type_items, wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, LINE_BEGIN, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1207 of file console_ops.cc.
References console_paste_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_scrollback_append | ( | wmOperatorType * | ot | ) |
Definition at line 1090 of file console_ops.cc.
References CONSOLE_LINE_ERROR, CONSOLE_LINE_INFO, CONSOLE_LINE_INPUT, CONSOLE_LINE_OUTPUT, console_scrollback_append_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, RNA_def_enum(), RNA_def_string(), and wmOperatorType::srna.
Referenced by console_operatortypes().
| void CONSOLE_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1406 of file console_ops.cc.
References console_modal_select_all_invoke(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_select_set | ( | wmOperatorType * | ot | ) |
Definition at line 1366 of file console_ops.cc.
References wmOperatorType::cancel, console_modal_select(), console_modal_select_cancel(), console_modal_select_invoke(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_select_word | ( | wmOperatorType * | ot | ) |
Definition at line 1463 of file console_ops.cc.
References console_selectword_invoke(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
| void CONSOLE_OT_unindent | ( | wmOperatorType * | ot | ) |
Definition at line 702 of file console_ops.cc.
References console_unindent_exec(), wmOperatorType::description, ED_operator_console_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by console_operatortypes().
|
static |
Definition at line 1165 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_strchr_or_end(), console_delete_editable_selection(), console_history_verify(), console_line_insert(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_boolean_get(), WM_clipboard_text_get(), WM_OP_EXEC_DEFAULT, and WM_operator_name_call().
Referenced by CONSOLE_OT_paste().
|
static |
Definition at line 144 of file console_ops.cc.
References View2D::cur, float, View2D::winy, rctf::ymax, and rctf::ymin.
Referenced by console_clear_line_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), console_move_exec(), console_paste_exec(), and console_unindent_exec().
| ConsoleLine * console_scrollback_add_str | ( | SpaceConsole * | sc, |
| char * | str, | ||
| bool | own ) |
Definition at line 286 of file console_ops.cc.
References console_lb_add_str__internal(), console_select_offset(), ConsoleLine::len, SpaceConsole::scrollback, and str.
Referenced by console_scrollback_append_exec().
|
static |
Definition at line 1066 of file console_ops.cc.
References BKE_area_find_region_type(), console_history_verify(), console_scrollback_add_str(), console_scrollback_limit(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), OPERATOR_FINISHED, wmOperator::ptr, RGN_TYPE_WINDOW, RNA_enum_get(), RNA_string_get_alloc(), str, and ConsoleLine::type.
Referenced by CONSOLE_OT_scrollback_append().
| void console_scrollback_free | ( | SpaceConsole * | sc, |
| ConsoleLine * | cl ) |
Definition at line 170 of file console_ops.cc.
References BLI_remlink(), ConsoleLine::line, MEM_freeN(), and SpaceConsole::scrollback.
Referenced by console_clear_exec(), console_free(), and console_scrollback_limit().
|
static |
Definition at line 177 of file console_ops.cc.
References BLI_listbase_count(), console_scrollback_free(), ListBase::first, and SpaceConsole::scrollback.
Referenced by console_scrollback_append_exec().
|
static |
Definition at line 158 of file console_ops.cc.
References SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by console_clear_line_exec(), console_delete_exec(), console_history_append_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), console_paste_exec(), console_scrollback_add_str(), and console_unindent_exec().
|
static |
Definition at line 46 of file console_ops.cc.
References BLI_dynstr_append(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_get_len(), BLI_dynstr_nappend(), BLI_dynstr_new(), console_scrollback_prompt_begin(), console_scrollback_prompt_end(), LISTBASE_FOREACH, max_ii(), min_ii(), SpaceConsole::scrollback, SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by console_copy_exec(), and console_select_update_primary_clipboard().
|
static |
Definition at line 90 of file console_ops.cc.
References console_select_to_buffer(), MEM_freeN(), SpaceConsole::sel_end, SpaceConsole::sel_start, WM_capabilities_flag(), WM_CAPABILITY_PRIMARY_CLIPBOARD, and WM_clipboard_text_set().
Referenced by console_cursor_set_exit(), and console_selectword_invoke().
|
static |
Definition at line 1418 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_str_cursor_step_bounds_utf8(), console_char_pick(), console_line_column_from_index(), console_line_cursor_set(), console_scrollback_prompt_begin(), console_scrollback_prompt_end(), console_select_update_primary_clipboard(), CTX_wm_area(), CTX_wm_space_console(), ED_area_tag_redraw(), SpaceConsole::history, ListBase::last, ConsoleLine::len, ConsoleLine::line, wmEvent::mval, OPERATOR_CANCELLED, OPERATOR_FINISHED, pos, ret, RGN_TYPE_WINDOW, SpaceConsole::sel_end, and SpaceConsole::sel_start.
Referenced by CONSOLE_OT_select_word().
| void console_textview_update_rect | ( | SpaceConsole * | sc, |
| ARegion * | region ) |
Definition at line 151 of file console_ops.cc.
References console_textview_height(), UI_view2d_totRect_set(), and View2D::winx.
Referenced by console_clear_exec(), console_clear_line_exec(), console_delete_exec(), console_history_cycle_exec(), console_indent_exec(), console_insert_exec(), console_main_region_listener(), console_paste_exec(), console_scrollback_append_exec(), and console_unindent_exec().
|
static |
Definition at line 660 of file console_ops.cc.
References BKE_area_find_region_type(), BLI_assert, console_history_verify(), console_line_cursor_set(), console_line_verify_length(), console_scroll_bottom(), console_select_offset(), console_textview_update_rect(), CTX_wm_area(), CTX_wm_space_console(), ConsoleLine::cursor, ED_area_tag_redraw(), ConsoleLine::len, len, ConsoleLine::line, OPERATOR_CANCELLED, OPERATOR_FINISHED, RGN_TYPE_WINDOW, and TAB_LENGTH.
Referenced by CONSOLE_OT_unindent().
|
static |
Definition at line 714 of file console_ops.cc.
Referenced by CONSOLE_OT_delete().
|
static |
Definition at line 373 of file console_ops.cc.
Referenced by CONSOLE_OT_move().