|
Blender V4.5
|
#include <algorithm>#include <cerrno>#include <cstdlib>#include <cstring>#include <cwchar>#include <fcntl.h>#include "MEM_guardedalloc.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_math_geom.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_cursor_utf8.h"#include "BLI_utildefines.h"#include "DNA_curve_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_text_types.h"#include "DNA_vfont_types.h"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_global.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_library.hh"#include "BKE_main.hh"#include "BKE_object.hh"#include "BKE_report.hh"#include "BKE_vfont.hh"#include "BLI_string_utf8.h"#include "BLT_translation.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_curve.hh"#include "ED_object.hh"#include "ED_outliner.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "UI_interface.hh"#include "curve_intern.hh"Go to the source code of this file.
Macros | |
| #define | MAXTEXT 32766 |
Set Style Operator | |
| static const EnumPropertyItem | style_items [] |
| static wmOperatorStatus | set_style (bContext *C, const int style, const bool clear) |
| static wmOperatorStatus | set_style_exec (bContext *C, wmOperator *op) |
| void | FONT_OT_style_set (wmOperatorType *ot) |
Move Operator | |
| static const EnumPropertyItem | move_type_items [] |
| static bool | move_cursor_drop_select (Object *obedit, int dir) |
| static wmOperatorStatus | move_cursor (bContext *C, int type, const bool select) |
| static wmOperatorStatus | move_exec (bContext *C, wmOperator *op) |
| void | FONT_OT_move (wmOperatorType *ot) |
Delete Operator | |
| static const EnumPropertyItem | delete_type_items [] |
| static wmOperatorStatus | delete_exec (bContext *C, wmOperator *op) |
| void | FONT_OT_delete (wmOperatorType *ot) |
| static wmOperatorStatus | font_unlink_exec (bContext *C, wmOperator *op) |
| void | FONT_OT_unlink (wmOperatorType *ot) |
| bool | ED_curve_editfont_select_pick (bContext *C, const int mval[2], const SelectPick_Params ¶ms) |
Set Case Operator | |
| static const EnumPropertyItem | case_items [] |
| static wmOperatorStatus | set_case (bContext *C, int ccase) |
| static wmOperatorStatus | set_case_exec (bContext *C, wmOperator *op) |
| void | FONT_OT_case_set (wmOperatorType *ot) |
| #define MAXTEXT 32766 |
Definition at line 68 of file editfont.cc.
Referenced by ED_curve_editfont_make(), font_paste_wchar(), insert_into_textbuf(), insert_text_exec(), move_cursor(), paste_text_exec(), and txt_add_object().
|
static |
Definition at line 1636 of file editfont.cc.
References C, change_character_exec(), CLAMP, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, wmOperator::ptr, RNA_int_get(), text_update_edited(), and EditFont::textbuf.
Referenced by change_character_exec(), and FONT_OT_change_character().
|
static |
Definition at line 1569 of file editfont.cc.
References BKE_vfont_select_get(), C, change_spacing_exec(), CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, i, CharInfo::kern, max_ii(), OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, wmOperator::ptr, RNA_float_get(), text_update_edited(), and EditFont::textbufinfo.
Referenced by change_spacing_exec(), and FONT_OT_change_spacing().
|
static |
Definition at line 1118 of file editfont.cc.
References BKE_vfont_clipboard_get(), BKE_vfont_clipboard_set(), BKE_vfont_select_get(), BLI_str_utf32_as_utf8(), copy_selection(), Object::data, Curve::editfont, MEM_freeN(), MEM_malloc_arrayN(), EditFont::textbuf, EditFont::textbufinfo, and WM_clipboard_text_set().
Referenced by copy_selection(), copy_text_exec(), and cut_text_exec().
|
static |
Definition at line 1144 of file editfont.cc.
References C, copy_selection(), copy_text_exec(), CTX_data_edit_object(), and OPERATOR_FINISHED.
Referenced by copy_text_exec(), and FONT_OT_text_copy().
|
static |
Definition at line 1171 of file editfont.cc.
References BKE_vfont_select_get(), C, copy_selection(), CTX_data_edit_object(), cut_text_exec(), Object::data, FO_EDIT, kill_selection(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and text_update_edited().
Referenced by cut_text_exec(), and FONT_OT_text_cut().
|
static |
Definition at line 1741 of file editfont.cc.
References BKE_vfont_select_clamp(), BKE_vfont_select_get(), BLI_assert, BLI_str_cursor_step_next_utf32(), BLI_str_cursor_step_prev_utf32(), BLI_str_cursor_step_utf32(), C, CTX_data_edit_object(), Object::data, DEL_NEXT_CHAR, DEL_NEXT_SEL, DEL_NEXT_WORD, DEL_PREV_CHAR, DEL_PREV_SEL, DEL_PREV_WORD, DEL_SELECTION, delete_exec(), Curve::editfont, FO_EDIT, i, kill_selection(), EditFont::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, wmOperator::ptr, RNA_enum_get(), EditFont::selend, EditFont::selstart, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_DELIM, text_update_edited(), EditFont::textbuf, and EditFont::textbufinfo.
Referenced by delete_exec(), delete_exec(), delete_exec(), delete_invoke(), FONT_OT_delete(), MASK_OT_delete(), and PARTICLE_OT_delete().
| void ED_curve_editfont_free | ( | Object * | obedit | ) |
Definition at line 2333 of file editfont.cc.
References BKE_curve_editfont_free(), Object::data, and ED_curve_editfont_free().
Referenced by ED_curve_editfont_free(), and blender::ed::object::editmode_load_free_ex().
| void ED_curve_editfont_load | ( | Object * | obedit | ) |
Definition at line 2301 of file editfont.cc.
References BLI_str_utf32_as_utf8(), BLI_str_utf32_as_utf8_len(), Object::data, ED_curve_editfont_load(), Curve::editfont, Curve::len, EditFont::len, Curve::len_char32, MEM_calloc_arrayN(), MEM_freeN(), MEM_malloc_arrayN(), Curve::pos, EditFont::pos, Curve::selend, EditFont::selend, Curve::selstart, EditFont::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_curve_editfont_load(), and blender::ed::object::editmode_load_free_ex().
| void ED_curve_editfont_make | ( | Object * | obedit | ) |
Definition at line 2262 of file editfont.cc.
References BKE_vfont_select_clamp(), BLI_assert, BLI_str_utf8_as_utf32(), Curve::curinfo, Object::data, ED_curve_editfont_make(), Curve::editfont, EditFont::len, Curve::len_char32, MAXTEXT, MEM_calloc_arrayN(), MEM_callocN(), Curve::pos, EditFont::pos, Curve::selend, EditFont::selend, Curve::selstart, EditFont::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_curve_editfont_make(), and blender::ed::object::editmode_enter_ex().
| bool ED_curve_editfont_select_pick | ( | bContext * | C, |
| const int | mval[2], | ||
| const SelectPick_Params & | params ) |
Text box selection.
Definition at line 2596 of file editfont.cc.
References Curve::actbox, BKE_curve_rect_from_textbox(), C, copy_v3_fl3(), CTX_data_edit_object(), CTX_data_ensure_evaluated_depsgraph(), Object::data, DEG_id_tag_update(), dist_squared_to_line_segment_v2(), ED_curve_editfont_select_pick(), ED_view3d_init_mats_rv3d(), ED_view3d_project_float_object(), ED_view3d_select_dist_px(), ED_view3d_viewcontext_init(), i, ID_RECALC_SYNC_TO_EVAL, max_ii(), NC_GEOM, ND_DATA, ViewContext::obedit, ViewContext::region, ViewContext::rv3d, Curve::tb, Curve::totbox, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, WM_event_add_notifier(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by ED_curve_editfont_select_pick(), and view3d_select_exec().
Definition at line 916 of file editfont.cc.
References BLI_listbase_count(), C, CTX_data_main(), CTX_wm_region_view3d(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), ED_text_to_object(), ListBase::first, Text::lines, LISTBASE_FOREACH, mul_mat3_m4_v3(), txt_add_object(), and RegionView3D::viewinv.
Referenced by ED_text_to_object(), and text_to_3d_object_exec().
|
static |
Definition at line 77 of file editfont.cc.
References findaccent().
Referenced by findaccent(), and insert_text_invoke().
Definition at line 2047 of file editfont.cc.
References BLI_assert, C, CTX_data_active_object(), CTX_data_ensure_evaluated_depsgraph(), Curve::curinfo, Object::data, DEG_get_evaluated(), DEG_id_tag_update(), Curve::editfont, font_cursor_set_apply(), font_cursor_text_index_from_event(), ID_RECALC_SELECT, EditFont::len, CharInfo::mat_nr, blender::ed::object::material_active_index_set(), NC_GEOM, ND_DATA, EditFont::pos, EditFont::selboxes, EditFont::selend, EditFont::selstart, EditFont::textbufinfo, and WM_event_add_notifier().
Referenced by font_cursor_set_apply(), font_selection_set_invoke(), and font_selection_set_modal().
|
static |
Definition at line 2028 of file editfont.cc.
References BKE_vfont_cursor_to_text_index(), C, CTX_wm_region(), ED_view3d_win_to_3d_on_plane(), font_cursor_text_index_from_event(), mul_m4_v3(), wmEvent::mval, and plane_from_point_normal_v3().
Referenced by font_cursor_set_apply(), and font_cursor_text_index_from_event().
|
static |
Definition at line 2448 of file editfont.cc.
References wmOperator::customdata, and font_open_cancel().
Referenced by font_open_cancel(), and FONT_OT_open().
|
static |
Definition at line 2454 of file editfont.cc.
References BKE_vfont_load(), C, CTX_data_main(), wmOperator::customdata, FILE_MAX, font_open_exec(), font_ui_template_init(), VFont::id, id_us_min(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), and RNA_string_get().
Referenced by font_open_exec(), FONT_OT_open(), and open_invoke().
| void FONT_OT_case_set | ( | wmOperatorType * | ot | ) |
Definition at line 2376 of file editfont.cc.
References BLT_I18NCONTEXT_ID_TEXT, case_items, CASE_LOWER, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_case_set(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), RNA_def_property_translation_context(), set_case_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_case_set().
| void FONT_OT_case_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2423 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_case_toggle(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and toggle_case_exec().
Referenced by ED_operatortypes_curve(), and FONT_OT_case_toggle().
| void FONT_OT_change_character | ( | wmOperatorType * | ot | ) |
Definition at line 1662 of file editfont.cc.
References change_character_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_change_character(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_change_character().
| void FONT_OT_change_spacing | ( | wmOperatorType * | ot | ) |
Definition at line 1604 of file editfont.cc.
References change_spacing_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_change_spacing(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_change_spacing().
| void FONT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1855 of file editfont.cc.
References DEL_PREV_CHAR, delete_exec(), delete_type_items, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_delete(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_delete().
| void FONT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 1709 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_line_break(), wmOperatorType::idname, line_break_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_line_break().
| void FONT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 1509 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_move(), wmOperatorType::idname, LINE_BEGIN, move_exec(), move_type_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_move().
| void FONT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 1540 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_move_select(), wmOperatorType::idname, LINE_BEGIN, move_select_exec(), move_type_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_move_select().
| void FONT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 2532 of file editfont.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, FILE_IMGDISPLAY, FILE_OPENFILE, FILE_SORT_ALPHA, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_FTFONT, wmOperatorType::flag, font_open_cancel(), font_open_exec(), FONT_OT_open(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve(), and FONT_OT_open().
| void FONT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 1097 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_select_all(), font_select_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_select_all().
| void FONT_OT_select_word | ( | wmOperatorType * | ot | ) |
Definition at line 2157 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, FONT_OT_select_word(), font_select_word_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_select_word().
| void FONT_OT_selection_set | ( | wmOperatorType * | ot | ) |
Definition at line 2120 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), FONT_OT_selection_set(), font_selection_set_invoke(), font_selection_set_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_selection_set().
| void FONT_OT_style_set | ( | wmOperatorType * | ot | ) |
Definition at line 1012 of file editfont.cc.
References CU_CHINFO_BOLD, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_style_set(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), set_style_exec(), wmOperatorType::srna, and style_items.
Referenced by ED_operatortypes_curve(), and FONT_OT_style_set().
| void FONT_OT_style_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 1053 of file editfont.cc.
References CU_CHINFO_BOLD, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_style_toggle(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, style_items, and toggle_style_exec().
Referenced by ED_operatortypes_curve(), and FONT_OT_style_toggle().
| void FONT_OT_text_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1153 of file editfont.cc.
References copy_text_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, FONT_OT_text_copy(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_text_copy().
| void FONT_OT_text_cut | ( | wmOperatorType * | ot | ) |
Definition at line 1189 of file editfont.cc.
References cut_text_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_text_cut(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve(), and FONT_OT_text_cut().
| void FONT_OT_text_insert | ( | wmOperatorType * | ot | ) |
Definition at line 1997 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_text_insert(), wmOperatorType::idname, insert_text_exec(), insert_text_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_text_insert().
| void FONT_OT_text_insert_unicode | ( | wmOperatorType * | ot | ) |
Definition at line 817 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::flag, FONT_OT_text_insert_unicode(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and text_insert_unicode_invoke().
Referenced by ED_operatortypes_curve(), and FONT_OT_text_insert_unicode().
| void FONT_OT_text_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1295 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_text_paste(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_text_exec(), wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve(), and FONT_OT_text_paste().
| void FONT_OT_text_paste_from_file | ( | wmOperatorType * | ot | ) |
Definition at line 635 of file editfont.cc.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_TEXT, wmOperatorType::flag, FONT_OT_text_paste_from_file(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_from_file_exec(), paste_from_file_invoke(), wmOperatorType::poll, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve(), and FONT_OT_text_paste_from_file().
| void FONT_OT_textbox_add | ( | wmOperatorType * | ot | ) |
Definition at line 2195 of file editfont.cc.
References wmOperatorType::description, ED_operator_object_active_editable_font(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_textbox_add(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and textbox_add_exec().
Referenced by ED_operatortypes_curve(), and FONT_OT_textbox_add().
| void FONT_OT_textbox_remove | ( | wmOperatorType * | ot | ) |
Definition at line 2239 of file editfont.cc.
References wmOperatorType::description, ED_operator_object_active_editable_font(), wmOperatorType::exec, wmOperatorType::flag, FONT_OT_textbox_remove(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and textbox_remove_exec().
Referenced by ED_operatortypes_curve(), and FONT_OT_textbox_remove().
| void FONT_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 2585 of file editfont.cc.
References wmOperatorType::description, wmOperatorType::exec, FONT_OT_unlink(), font_unlink_exec(), wmOperatorType::idname, and wmOperatorType::name.
Referenced by ED_operatortypes_curve(), and FONT_OT_unlink().
|
static |
Definition at line 535 of file editfont.cc.
References BLI_str_utf8_as_utf32(), C, CTX_data_edit_object(), font_paste_utf8(), font_paste_wchar(), MEM_freeN(), MEM_malloc_arrayN(), and str.
Referenced by font_paste_utf8(), paste_from_file(), and paste_text_exec().
|
static |
Definition at line 483 of file editfont.cc.
References BKE_vfont_select_get(), CLAMP_MAX, Object::data, Curve::editfont, font_paste_wchar(), i, kill_selection(), EditFont::len, CharInfo::mat_nr, MAXTEXT, EditFont::pos, size(), str, EditFont::textbuf, EditFont::textbufinfo, and Object::totcol.
Referenced by font_paste_utf8(), font_paste_wchar(), paste_selection(), and text_insert_unicode_confirm().
|
static |
Definition at line 1078 of file editfont.cc.
References C, CTX_data_edit_object(), Object::data, Curve::editfont, FO_SELCHANGE, font_select_all_exec(), font_select_update_primary_clipboard(), EditFont::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, EditFont::selend, EditFont::selstart, and text_update_edited().
Referenced by FONT_OT_select_all(), and font_select_all_exec().
|
static |
Definition at line 559 of file editfont.cc.
References BKE_vfont_select_get(), BLI_str_utf32_as_utf8(), BLI_str_utf32_as_utf8_len_ex(), Object::data, Curve::editfont, font_select_to_buffer(), MEM_malloc_arrayN(), and EditFont::textbuf.
Referenced by font_select_to_buffer(), and font_select_update_primary_clipboard().
|
static |
Definition at line 460 of file editfont.cc.
References font_select_to_buffer(), font_select_update_primary_clipboard(), G, MEM_freeN(), WM_capabilities_flag(), WM_CAPABILITY_PRIMARY_CLIPBOARD, and WM_clipboard_text_set().
Referenced by font_select_all_exec(), font_select_update_primary_clipboard(), font_select_word_exec(), and move_cursor().
|
static |
Definition at line 2139 of file editfont.cc.
References BLI_str_cursor_step_bounds_utf32(), C, CTX_data_edit_object(), Object::data, Curve::editfont, FO_CURS, font_select_update_primary_clipboard(), font_select_word_exec(), EditFont::len, OPERATOR_FINISHED, EditFont::pos, EditFont::selend, EditFont::selstart, text_update_edited(), and EditFont::textbuf.
Referenced by FONT_OT_select_word(), and font_select_word_exec().
|
static |
Definition at line 2080 of file editfont.cc.
References C, CTX_data_active_object(), Object::data, Curve::editfont, font_cursor_set_apply(), font_selection_set_invoke(), OPERATOR_RUNNING_MODAL, EditFont::selend, EditFont::selstart, and WM_event_add_modal_handler().
Referenced by FONT_OT_selection_set(), and font_selection_set_invoke().
|
static |
Definition at line 2096 of file editfont.cc.
References C, font_cursor_set_apply(), font_selection_set_modal(), KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, wmEvent::type, and wmEvent::val.
Referenced by FONT_OT_selection_set(), and font_selection_set_modal().
|
static |
Definition at line 2440 of file editfont.cc.
References C, wmOperator::customdata, font_ui_template_init(), PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by font_open_exec(), font_ui_template_init(), and open_invoke().
|
static |
Definition at line 2563 of file editfont.cc.
References BKE_report(), BKE_vfont_builtin_ensure(), C, font_unlink_exec(), VFont::id, OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::reports, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RPT_ERROR, and UI_context_active_but_prop_get_templateID().
Referenced by FONT_OT_unlink(), and font_unlink_exec().
|
static |
Definition at line 377 of file editfont.cc.
References Object::actcol, Curve::curinfo, Object::data, Curve::editfont, insert_into_textbuf(), CharInfo::kern, EditFont::len, CharInfo::mat_nr, MAXTEXT, EditFont::pos, EditFont::textbuf, EditFont::textbufinfo, and x.
Referenced by insert_into_textbuf(), insert_text_exec(), insert_text_invoke(), and line_break_exec().
|
static |
Definition at line 1884 of file editfont.cc.
References BLI_str_utf8_as_utf32(), BLI_strlen_utf8(), C, CTX_data_edit_object(), FO_EDIT, insert_into_textbuf(), insert_text_exec(), kill_selection(), len(), MAXTEXT, MEM_calloc_arrayN(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get_alloc(), RNA_struct_property_is_set(), and text_update_edited().
Referenced by FONT_OT_text_insert(), insert_text_exec(), and insert_text_invoke().
|
static |
Definition at line 1914 of file editfont.cc.
References BLI_assert, BLI_str_utf32_as_utf8(), BLI_str_utf8_as_unicode_or_error(), C, CTX_data_edit_object(), Object::data, Curve::editfont, EVT_BACKSPACEKEY, EVT_TABKEY, findaccent(), FO_EDIT, insert_into_textbuf(), insert_text_exec(), insert_text_invoke(), kill_selection(), KM_ALT, KM_CTRL, KM_SHIFT, EditFont::len, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, EditFont::pos, wmOperator::ptr, RNA_string_set(), RNA_struct_property_is_set(), text_update_edited(), EditFont::textbuf, wmEvent::type, and wmEvent::utf8_buf.
Referenced by FONT_OT_text_insert(), and insert_text_invoke().
|
static |
Definition at line 432 of file editfont.cc.
References BKE_vfont_select_get(), Object::data, Curve::editfont, kill_selection(), EditFont::len, EditFont::pos, EditFont::selend, EditFont::selstart, size(), EditFont::textbuf, and EditFont::textbufinfo.
Referenced by cut_text_exec(), delete_exec(), font_paste_wchar(), insert_text_exec(), insert_text_invoke(), and kill_selection().
|
static |
Definition at line 1694 of file editfont.cc.
References C, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, insert_into_textbuf(), line_break_exec(), OPERATOR_FINISHED, EditFont::selend, EditFont::selstart, and text_update_edited().
Referenced by FONT_OT_line_break(), and line_break_exec().
|
static |
Definition at line 1369 of file editfont.cc.
References BKE_vfont_to_curve(), BLI_str_cursor_step_next_utf32(), BLI_str_cursor_step_prev_utf32(), BLI_str_cursor_step_utf32(), C, CTX_data_edit_object(), CTX_data_ensure_evaluated_depsgraph(), Object::data, DEG_get_evaluated(), Curve::editfont, FO_CURS, FO_CURS_IS_MOTION, FO_CURSDOWN, FO_CURSUP, FO_LINE_BEGIN, FO_LINE_END, FO_PAGEDOWN, FO_PAGEUP, FO_SELCHANGE, font_select_update_primary_clipboard(), EditFont::len, LINE_BEGIN, LINE_END, MAXTEXT, move_cursor(), move_cursor_drop_select(), NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, select, EditFont::selend, EditFont::selstart, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_DELIM, TEXT_BEGIN, TEXT_END, text_update_edited(), and EditFont::textbuf.
Referenced by move_cursor(), move_exec(), and move_select_exec().
|
static |
Implement standard behavior from GUI text editing fields (including Blender's UI) where horizontal motion drops the selection and places the cursor at the selection bounds (based on the motion direction) instead of moving the cursor.
Definition at line 1346 of file editfont.cc.
References BKE_vfont_select_get(), BLI_assert_unreachable, Object::data, Curve::editfont, move_cursor_drop_select(), and EditFont::pos.
Referenced by move_cursor(), and move_cursor_drop_select().
|
static |
Definition at line 1502 of file editfont.cc.
References C, move_cursor(), move_exec(), wmOperator::ptr, and RNA_enum_get().
Referenced by FONT_OT_move(), and move_exec().
|
static |
Definition at line 1533 of file editfont.cc.
References C, move_cursor(), move_select_exec(), wmOperator::ptr, and RNA_enum_get().
Referenced by FONT_OT_move_select(), and move_select_exec().
|
static |
Definition at line 2493 of file editfont.cc.
References BKE_vfont_is_builtin(), BLI_path_abs(), BLI_path_slash_ensure(), C, wmOperator::customdata, FILE_MAX, VFont::filepath, font_open_exec(), font_ui_template_init(), VFont::id, ID_BLEND_PATH_FROM_GLOBAL, open_invoke(), OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, PropertyPointerRNA::prop, wmOperator::ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_string_set(), RNA_struct_find_property(), STRNCPY(), U, and WM_event_add_fileselect().
Referenced by CLIP_OT_open(), FONT_OT_open(), open_invoke(), and open_invoke().
|
static |
Definition at line 582 of file editfont.cc.
References BKE_reportf(), BLI_file_read_text_as_mem(), C, CTX_data_edit_object(), FO_EDIT, font_paste_utf8(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_from_file(), reports, RPT_ERROR, and text_update_edited().
Referenced by paste_from_file(), and paste_from_file_exec().
|
static |
Definition at line 610 of file editfont.cc.
References C, MEM_freeN(), paste_from_file(), paste_from_file_exec(), wmOperator::ptr, wmOperator::reports, and RNA_string_get_alloc().
Referenced by FONT_OT_text_paste_from_file(), paste_from_file_exec(), and paste_from_file_invoke().
|
static |
Definition at line 622 of file editfont.cc.
References C, OPERATOR_RUNNING_MODAL, paste_from_file_exec(), paste_from_file_invoke(), wmOperator::ptr, RNA_struct_property_is_set(), and WM_event_add_fileselect().
Referenced by FONT_OT_text_paste_from_file(), and paste_from_file_invoke().
|
static |
Definition at line 1210 of file editfont.cc.
References BKE_report(), BKE_vfont_clipboard_get(), font_paste_wchar(), len(), paste_selection(), reports, and RPT_WARNING.
Referenced by paste_selection(), and paste_text_exec().
|
static |
Definition at line 1226 of file editfont.cc.
References BKE_report(), BKE_vfont_clipboard_free(), BKE_vfont_clipboard_get(), BLI_str_utf32_as_utf8(), C, CTX_data_edit_object(), FO_EDIT, font_paste_utf8(), len(), MAXTEXT, MEM_freeN(), MEM_malloc_arrayN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_selection(), paste_text_exec(), wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RPT_ERROR, STREQ, text_update_edited(), and WM_clipboard_text_get().
Referenced by FONT_OT_text_paste(), and paste_text_exec().
|
static |
Definition at line 2350 of file editfont.cc.
References BKE_vfont_select_get(), BLI_str_utf32_char_to_lower(), BLI_str_utf32_char_to_upper(), C, CASE_LOWER, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, len(), OPERATOR_FINISHED, set_case(), str, text_update_edited(), and EditFont::textbuf.
Referenced by set_case(), set_case_exec(), and toggle_case_exec().
|
static |
Definition at line 2371 of file editfont.cc.
References C, wmOperator::ptr, RNA_enum_get(), set_case(), and set_case_exec().
Referenced by FONT_OT_case_set(), and set_case_exec().
|
static |
Definition at line 978 of file editfont.cc.
References BKE_vfont_select_get(), C, clear(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), Curve::editfont, CharInfo::flag, i, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, set_style(), EditFont::textbufinfo, and WM_event_add_notifier().
Referenced by set_style(), set_style_exec(), and toggle_style_exec().
|
static |
Definition at line 1004 of file editfont.cc.
References C, clear(), wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), set_style(), and set_style_exec().
Referenced by FONT_OT_style_set(), and set_style_exec().
|
static |
Definition at line 666 of file editfont.cc.
References C, CTX_wm_window(), text_insert_unicode_cancel(), and UI_popup_block_close().
Referenced by text_insert_unicode_cancel(), and wm_block_insert_unicode_create().
|
static |
Definition at line 672 of file editfont.cc.
References C, CTX_data_edit_object(), CTX_wm_window(), FO_EDIT, font_paste_wchar(), text_insert_unicode_confirm(), text_update_edited(), and UI_popup_block_close().
Referenced by text_insert_unicode_confirm(), and wm_block_insert_unicode_create().
|
static |
Definition at line 807 of file editfont.cc.
References C, MEM_freeN(), MEM_malloc_arrayN(), OPERATOR_FINISHED, text_insert_unicode_invoke(), UI_popup_block_invoke_ex(), and wm_block_insert_unicode_create().
Referenced by FONT_OT_text_insert_unicode(), and text_insert_unicode_invoke().
|
static |
Definition at line 405 of file editfont.cc.
References BKE_vfont_to_curve(), BLI_assert, C, CTX_data_ensure_evaluated_depsgraph(), Curve::curinfo, Object::data, DEG_get_evaluated(), DEG_id_tag_update(), Curve::editfont, FO_EDIT, ID_RECALC_SELECT, EditFont::len, CharInfo::mat_nr, blender::ed::object::material_active_index_set(), NC_GEOM, ND_DATA, EditFont::pos, text_update_edited(), EditFont::textbufinfo, and WM_event_add_notifier().
Referenced by change_character_exec(), change_spacing_exec(), cut_text_exec(), delete_exec(), font_select_all_exec(), font_select_word_exec(), insert_text_exec(), insert_text_invoke(), line_break_exec(), move_cursor(), paste_from_file(), paste_text_exec(), set_case(), text_insert_unicode_confirm(), and text_update_edited().
|
static |
Definition at line 2175 of file editfont.cc.
References Curve::actbox, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), i, NC_GEOM, ND_DATA, OPERATOR_FINISHED, Curve::tb, textbox_add_exec(), Curve::totbox, and WM_event_add_notifier().
Referenced by FONT_OT_textbox_add(), and textbox_add_exec().
|
static |
Definition at line 2216 of file editfont.cc.
References Curve::actbox, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), i, NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), Curve::tb, textbox_remove_exec(), Curve::totbox, and WM_event_add_notifier().
Referenced by FONT_OT_textbox_remove(), and textbox_remove_exec().
|
static |
Definition at line 2403 of file editfont.cc.
References C, CASE_LOWER, CASE_UPPER, CTX_data_edit_object(), Object::data, Curve::editfont, set_case(), str, EditFont::textbuf, and toggle_case_exec().
Referenced by FONT_OT_case_toggle(), and toggle_case_exec().
|
static |
Definition at line 1038 of file editfont.cc.
References BKE_vfont_select_get(), C, clear(), CTX_data_edit_object(), Curve::curinfo, Object::data, CharInfo::flag, OPERATOR_CANCELLED, wmOperator::ptr, RNA_enum_get(), set_style(), and toggle_style_exec().
Referenced by FONT_OT_style_toggle(), and toggle_style_exec().
|
static |
Definition at line 838 of file editfont.cc.
References add_v3_v3(), BKE_object_add(), BKE_object_where_is_calc(), BKE_vfont_builtin_ensure(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), BLI_strlen_utf8_ex(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, VFont::id, id_us_plus(), blender::ed::object::init_transform_on_add(), Curve::len, Curve::len_char32, TextLine::line, Object::loc, MAXTEXT, MEM_calloc_arrayN(), MEM_freeN(), MEM_malloc_arrayN(), NA_ADDED, NC_OBJECT, TextLine::next, OB_FONT, Curve::pos, rot, Curve::str, Curve::strinfo, txt_add_object(), Curve::vfont, and WM_event_add_notifier().
Referenced by ED_text_to_object(), and txt_add_object().
|
static |
Definition at line 699 of file editfont.cc.
References C, blender::ui::Emboss, IFACE_, uiLayout::label(), RPT_, uiLayout::separator(), split(), uiLayout::split(), text_insert_unicode_cancel(), text_insert_unicode_confirm(), TIP_, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_block_func_set(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_BLOCK_NO_WIN_CLIP, UI_BLOCK_NUMSELECT, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_BUT, UI_BTYPE_TEXT, UI_BUT_ACTIVATE_ON_INIT, UI_BUT_ACTIVE_DEFAULT, UI_but_drawflag_disable(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_TEXT_LEFT, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_Y, uiDefBut(), uiDefIconTextBut(), uiItemL_ex(), uiLayoutGetWidth(), and wm_block_insert_unicode_create().
Referenced by text_insert_unicode_invoke(), and wm_block_insert_unicode_create().
|
static |
Definition at line 2344 of file editfont.cc.
Referenced by FONT_OT_case_set().
|
static |
Definition at line 1730 of file editfont.cc.
Referenced by FONT_OT_delete(), and PARTICLE_OT_delete().
|
static |
Definition at line 1325 of file editfont.cc.
Referenced by FONT_OT_move(), and FONT_OT_move_select().
|
static |
Definition at line 970 of file editfont.cc.
Referenced by FONT_OT_style_set(), and FONT_OT_style_toggle().