Blender
V3.3
|
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.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.h"
#include "BKE_curve.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_vfont.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_curve.h"
#include "ED_object.h"
#include "ED_outliner.h"
#include "ED_screen.h"
#include "ED_view3d.h"
#include "UI_interface.h"
#include "curve_intern.h"
Go to the source code of this file.
Macros | |
#define | MAXTEXT 32766 |
Set Style Operator | |
static const EnumPropertyItem | style_items [] |
static int | set_style (bContext *C, const int style, const bool clear) |
static int | set_style_exec (bContext *C, wmOperator *op) |
void | FONT_OT_style_set (wmOperatorType *ot) |
Move Operator | |
static const EnumPropertyItem | move_type_items [] |
static int | move_cursor (bContext *C, int type, const bool select) |
static int | move_exec (bContext *C, wmOperator *op) |
void | FONT_OT_move (wmOperatorType *ot) |
Delete Operator | |
static const EnumPropertyItem | delete_type_items [] |
static int | delete_exec (bContext *C, wmOperator *op) |
void | FONT_OT_delete (wmOperatorType *ot) |
static int | 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 struct SelectPick_Params *params) |
Set Case Operator | |
static const EnumPropertyItem | case_items [] |
static int | set_case (bContext *C, int ccase) |
static int | set_case_exec (bContext *C, wmOperator *op) |
void | FONT_OT_case_set (wmOperatorType *ot) |
#define MAXTEXT 32766 |
Definition at line 54 of file editfont.c.
|
static |
Definition at line 1358 of file editfont.c.
References C, 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 FONT_OT_change_character().
|
static |
Definition at line 1290 of file editfont.c.
References BKE_vfont_select_get(), C, CLAMP, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, CharInfo::kern, max_ii(), OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, wmOperator::ptr, RNA_int_get(), text_update_edited(), and EditFont::textbufinfo.
Referenced by FONT_OT_change_spacing().
Definition at line 890 of file editfont.c.
References BKE_vfont_clipboard_get(), BKE_vfont_clipboard_set(), BKE_vfont_select_get(), BLI_str_utf32_as_utf8(), Object::data, Curve::editfont, len_utf8, MEM_freeN, MEM_mallocN, NULL, EditFont::textbuf, EditFont::textbufinfo, and WM_clipboard_text_set().
Referenced by copy_text_exec(), and cut_text_exec().
|
static |
Definition at line 916 of file editfont.c.
References C, copy_selection(), CTX_data_edit_object(), and OPERATOR_FINISHED.
Referenced by FONT_OT_text_copy().
|
static |
Definition at line 943 of file editfont.c.
References BKE_vfont_select_get(), C, copy_selection(), CTX_data_edit_object(), FO_EDIT, kill_selection(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and text_update_edited().
Referenced by FONT_OT_text_cut().
|
static |
Definition at line 1463 of file editfont.c.
References BKE_vfont_select_clamp(), BKE_vfont_select_get(), BLI_assert, 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, Curve::editfont, FO_EDIT, kill_selection(), EditFont::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, pos, wmOperator::ptr, RNA_enum_get(), EditFont::selend, EditFont::selstart, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_DELIM, text_update_edited(), EditFont::textbuf, EditFont::textbufinfo, and type.
Referenced by FONT_OT_delete().
Definition at line 1903 of file editfont.c.
References BKE_curve_editfont_free(), and Object::data.
Referenced by ED_object_editmode_load_free_ex().
Definition at line 1873 of file editfont.c.
References BLI_str_utf32_as_utf8(), BLI_str_utf32_as_utf8_len(), Object::data, Curve::editfont, EditFont::len, Curve::len, Curve::len_char32, MEM_callocN, MEM_freeN, MEM_mallocN, EditFont::pos, Curve::pos, EditFont::selend, Curve::selend, EditFont::selstart, Curve::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_object_editmode_load_free_ex().
Definition at line 1837 of file editfont.c.
References BKE_vfont_select_clamp(), BLI_assert, BLI_str_utf8_as_utf32(), Curve::curinfo, Object::data, Curve::editfont, EditFont::len, Curve::len_char32, MAXTEXT, MEM_callocN, NULL, EditFont::pos, Curve::pos, EditFont::selend, Curve::selend, EditFont::selstart, Curve::selstart, Curve::str, Curve::strinfo, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by ED_object_editmode_enter_ex().
bool ED_curve_editfont_select_pick | ( | struct bContext * | C, |
const int | mval[2], | ||
const struct SelectPick_Params * | params | ||
) |
Text box selection.
Definition at line 2174 of file editfont.c.
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(), depsgraph, dist_squared_to_line_segment_v2(), ED_view3d_init_mats_rv3d(), ED_view3d_project_float_object(), ED_view3d_select_dist_px(), ED_view3d_viewcontext_init(), ID_RECALC_COPY_ON_WRITE, max_ii(), NC_GEOM, ND_DATA, ViewContext::obedit, params, ViewContext::region, ViewContext::rv3d, Curve::tb, Curve::totbox, UNPACK2, V3D_PROJ_RET_OK, V3D_PROJ_TEST_CLIP_BB, void, and WM_event_add_notifier().
Referenced by view3d_select_exec().
Definition at line 688 of file editfont.c.
References BLI_listbase_count(), C, CTX_data_main(), CTX_wm_region_view3d(), DEG_relations_tag_update(), ED_outliner_select_sync_from_object_tag(), ListBase::first, TextLine::line, Text::lines, mul_mat3_m4_v3(), offset, txt_add_object(), and RegionView3D::viewinv.
Referenced by text_to_3d_object_exec().
|
static |
Definition at line 62 of file editfont.c.
Referenced by insert_text_invoke().
|
static |
Definition at line 2033 of file editfont.c.
References wmOperator::customdata, MEM_freeN, and NULL.
Referenced by FONT_OT_open().
|
static |
Definition at line 2039 of file editfont.c.
References BKE_vfont_load(), C, CTX_data_main(), wmOperator::customdata, FILE_MAX, Main::filepath, font_ui_template_init(), VFont::id, id_us_min(), MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, wmOperator::ptr, PropertyPointerRNA::ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), and RNA_string_get().
Referenced by FONT_OT_open(), and open_invoke().
void FONT_OT_case_set | ( | wmOperatorType * | ot | ) |
Definition at line 1963 of file editfont.c.
References case_items, CASE_LOWER, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), set_case_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_case_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 2008 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and toggle_case_exec().
Referenced by ED_operatortypes_curve().
void FONT_OT_change_character | ( | wmOperatorType * | ot | ) |
Definition at line 1384 of file editfont.c.
References change_character_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_change_spacing | ( | wmOperatorType * | ot | ) |
Definition at line 1326 of file editfont.c.
References change_spacing_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1577 of file editfont.c.
References DEL_PREV_CHAR, delete_exec(), delete_type_items, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 1431 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, line_break_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void FONT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 1230 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, LINE_BEGIN, move_exec(), move_type_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 1261 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, LINE_BEGIN, move_select_exec(), move_type_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 2109 of file editfont.c.
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(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve().
void FONT_OT_select_all | ( | wmOperatorType * | ot | ) |
Definition at line 869 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, font_select_all_exec(), wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void FONT_OT_style_set | ( | wmOperatorType * | ot | ) |
Definition at line 782 of file editfont.c.
References CU_CHINFO_BOLD, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), set_style_exec(), wmOperatorType::srna, and style_items.
Referenced by ED_operatortypes_curve().
void FONT_OT_style_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 826 of file editfont.c.
References CU_CHINFO_BOLD, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, style_items, and toggle_style_exec().
Referenced by ED_operatortypes_curve().
void FONT_OT_text_copy | ( | wmOperatorType * | ot | ) |
Definition at line 925 of file editfont.c.
References copy_text_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void FONT_OT_text_cut | ( | wmOperatorType * | ot | ) |
Definition at line 960 of file editfont.c.
References cut_text_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void FONT_OT_text_insert | ( | wmOperatorType * | ot | ) |
Definition at line 1719 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_text_exec(), insert_text_invoke(), wmOperatorType::invoke, wmOperatorType::name, NULL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
void FONT_OT_text_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1063 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_text_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
void FONT_OT_text_paste_from_file | ( | wmOperatorType * | ot | ) |
Definition at line 580 of file editfont.c.
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, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_from_file_exec(), paste_from_file_invoke(), wmOperatorType::poll, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve().
void FONT_OT_textbox_add | ( | wmOperatorType * | ot | ) |
Definition at line 1770 of file editfont.c.
References wmOperatorType::description, ED_operator_object_active_editable_font(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and textbox_add_exec().
Referenced by ED_operatortypes_curve().
void FONT_OT_textbox_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1814 of file editfont.c.
References wmOperatorType::description, ED_operator_object_active_editable_font(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_int(), wmOperatorType::srna, and textbox_remove_exec().
Referenced by ED_operatortypes_curve().
void FONT_OT_unlink | ( | wmOperatorType * | ot | ) |
Definition at line 2163 of file editfont.c.
References wmOperatorType::description, wmOperatorType::exec, font_unlink_exec(), wmOperatorType::idname, wmOperatorType::name, and ot.
Referenced by ED_operatortypes_curve().
Definition at line 505 of file editfont.c.
References BLI_str_utf8_as_utf32(), C, CTX_data_edit_object(), font_paste_wchar(), MEM_freeN, MEM_mallocN, NULL, and str.
Referenced by paste_from_file(), and paste_text_exec().
|
static |
Definition at line 460 of file editfont.c.
References BKE_vfont_select_get(), Object::data, Curve::editfont, kill_selection(), EditFont::len, MAXTEXT, EditFont::pos, size(), str, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by font_paste_utf8(), and paste_selection().
|
static |
Definition at line 851 of file editfont.c.
References C, CTX_data_edit_object(), Object::data, Curve::editfont, FO_SELCHANGE, EditFont::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, EditFont::selend, EditFont::selstart, and text_update_edited().
Referenced by FONT_OT_select_all().
|
static |
Definition at line 2025 of file editfont.c.
References C, wmOperator::customdata, MEM_callocN, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and UI_context_active_but_prop_get_templateID().
Referenced by font_open_exec(), and open_invoke().
|
static |
Definition at line 2140 of file editfont.c.
References BKE_report(), BKE_vfont_builtin_get(), C, VFont::id, NULL, 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().
Definition at line 362 of file editfont.c.
References Object::actcol, Freestyle::c, Curve::curinfo, Object::data, Curve::editfont, CharInfo::kern, EditFont::len, CharInfo::mat_nr, MAXTEXT, EditFont::pos, EditFont::textbuf, EditFont::textbufinfo, and x.
Referenced by insert_text_exec(), insert_text_invoke(), and line_break_exec().
|
static |
Definition at line 1606 of file editfont.c.
References Freestyle::a, BLI_str_utf8_as_utf32(), BLI_strlen_utf8(), C, CTX_data_edit_object(), FO_EDIT, insert_into_textbuf(), kill_selection(), len, MAXTEXT, MEM_callocN, MEM_freeN, NULL, 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(), and insert_text_invoke().
|
static |
Definition at line 1636 of file editfont.c.
References BLI_assert, BLI_str_utf32_as_utf8(), BLI_str_utf8_as_unicode(), C, CTX_data_edit_object(), Object::data, Curve::editfont, EVT_BACKSPACEKEY, EVT_TABKEY, findaccent(), FO_EDIT, insert_into_textbuf(), insert_text_exec(), 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().
|
static |
Definition at line 425 of file editfont.c.
References BKE_vfont_select_get(), Object::data, Curve::editfont, 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(), and insert_text_invoke().
|
static |
Definition at line 1416 of file editfont.c.
References C, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, insert_into_textbuf(), OPERATOR_FINISHED, EditFont::selend, EditFont::selstart, and text_update_edited().
Referenced by FONT_OT_line_break().
Definition at line 1098 of file editfont.c.
References BKE_vfont_to_curve(), BLI_str_cursor_step_utf32(), C, CTX_data_edit_object(), CTX_data_ensure_evaluated_depsgraph(), CU_CHINFO_WRAP, Object::data, DEG_get_evaluated_object(), depsgraph, Curve::editfont, CharInfo::flag, FO_CURS, FO_CURS_IS_MOTION, FO_CURSDOWN, FO_CURSUP, FO_PAGEDOWN, FO_PAGEUP, FO_SELCHANGE, EditFont::len, LINE_BEGIN, LINE_END, MAXTEXT, NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::pos, pos, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, select(), EditFont::selend, EditFont::selstart, STRCUR_DIR_NEXT, STRCUR_DIR_PREV, STRCUR_JUMP_DELIM, text_update_edited(), EditFont::textbuf, EditFont::textbufinfo, and type.
Referenced by move_exec(), and move_select_exec().
|
static |
Definition at line 1223 of file editfont.c.
References C, move_cursor(), wmOperator::ptr, RNA_enum_get(), and type.
Referenced by FONT_OT_move().
|
static |
Definition at line 1254 of file editfont.c.
References C, move_cursor(), wmOperator::ptr, RNA_enum_get(), and type.
Referenced by FONT_OT_move_select().
|
static |
Definition at line 2079 of file editfont.c.
References BKE_vfont_is_builtin(), C, wmOperator::customdata, Main::filepath, VFont::filepath, font_open_exec(), font_ui_template_init(), if(), NULL, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, PropertyPointerRNA::prop, wmOperator::ptr, RNA_property_pointer_get(), RNA_string_set(), RNA_struct_property_is_set(), and WM_event_add_fileselect().
Referenced by FONT_OT_open().
|
static |
Definition at line 529 of file editfont.c.
References BKE_reportf(), BLI_file_read_text_as_mem(), C, CTX_data_edit_object(), FO_EDIT, font_paste_utf8(), MEM_freeN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RPT_ERROR, and text_update_edited().
Referenced by paste_from_file_exec().
|
static |
Definition at line 557 of file editfont.c.
References C, MEM_freeN, NULL, paste_from_file(), wmOperator::ptr, wmOperator::reports, and RNA_string_get_alloc().
Referenced by FONT_OT_text_paste_from_file(), and paste_from_file_invoke().
|
static |
Definition at line 569 of file editfont.c.
References C, OPERATOR_RUNNING_MODAL, paste_from_file_exec(), wmOperator::ptr, RNA_struct_property_is_set(), and WM_event_add_fileselect().
Referenced by FONT_OT_text_paste_from_file().
|
static |
Definition at line 981 of file editfont.c.
References BKE_report(), BKE_vfont_clipboard_get(), font_paste_wchar(), len, NULL, and RPT_WARNING.
Referenced by paste_text_exec().
|
static |
Definition at line 997 of file editfont.c.
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(), TextLine::len, len_utf8, MAXTEXT, MEM_freeN, MEM_mallocN, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_selection(), wmOperator::reports, RPT_ERROR, STREQ, text_update_edited(), and WM_clipboard_text_get().
Referenced by FONT_OT_text_paste().
|
static |
Definition at line 1920 of file editfont.c.
References BKE_vfont_select_get(), C, CASE_LOWER, CTX_data_edit_object(), Object::data, Curve::editfont, FO_EDIT, len, OPERATOR_FINISHED, str, text_update_edited(), and EditFont::textbuf.
Referenced by set_case_exec(), and toggle_case_exec().
|
static |
Definition at line 1958 of file editfont.c.
References C, wmOperator::ptr, RNA_enum_get(), and set_case().
Referenced by FONT_OT_case_set().
Definition at line 748 of file editfont.c.
References BKE_vfont_select_get(), C, clear(), CTX_data_edit_object(), Object::data, DEG_id_tag_update(), Curve::editfont, CharInfo::flag, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::textbufinfo, and WM_event_add_notifier().
Referenced by set_style_exec(), and toggle_style_exec().
|
static |
Definition at line 774 of file editfont.c.
References C, clear(), wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and set_style().
Referenced by FONT_OT_style_set().
Definition at line 390 of file editfont.c.
References Object::actcol, BKE_vfont_to_curve(), BLI_assert, C, CTX_data_ensure_evaluated_depsgraph(), Curve::curinfo, Object::data, DEG_get_evaluated_object(), DEG_id_tag_update(), depsgraph, Curve::editfont, FO_EDIT, ID_RECALC_SELECT, EditFont::len, CharInfo::mat_nr, NC_GEOM, ND_DATA, EditFont::pos, EditFont::textbufinfo, Object::totcol, and WM_event_add_notifier().
Referenced by change_character_exec(), change_spacing_exec(), cut_text_exec(), delete_exec(), font_select_all_exec(), insert_text_exec(), insert_text_invoke(), line_break_exec(), move_cursor(), paste_from_file(), paste_text_exec(), set_case(), and text_listener().
|
static |
Definition at line 1750 of file editfont.c.
References Curve::actbox, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, Curve::tb, Curve::totbox, and WM_event_add_notifier().
Referenced by FONT_OT_textbox_add().
|
static |
Definition at line 1791 of file editfont.c.
References Curve::actbox, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), Curve::tb, Curve::totbox, and WM_event_add_notifier().
Referenced by FONT_OT_textbox_remove().
|
static |
Definition at line 1987 of file editfont.c.
References C, CASE_LOWER, CASE_UPPER, CTX_data_edit_object(), Object::data, Curve::editfont, set_case(), str, and EditFont::textbuf.
Referenced by FONT_OT_case_toggle().
|
static |
Definition at line 808 of file editfont.c.
References BKE_vfont_select_get(), C, clear(), CTX_data_edit_object(), Curve::curinfo, Object::data, CharInfo::flag, OPERATOR_CANCELLED, wmOperator::ptr, RNA_enum_get(), and set_style().
Referenced by FONT_OT_style_toggle().
|
static |
Definition at line 611 of file editfont.c.
References Freestyle::a, add_v3_v3(), ViewLayer::basact, BKE_object_add(), BKE_object_where_is_calc(), BKE_vfont_builtin_get(), BLI_strcpy_rlen(), BLI_strlen_utf8_ex(), C, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), Object::data, depsgraph, ED_object_base_init_transform_on_add(), VFont::id, id_us_plus(), Curve::len, Curve::len_char32, TextLine::line, Object::loc, MAXTEXT, MEM_callocN, MEM_freeN, MEM_mallocN, NA_ADDED, NC_OBJECT, TextLine::next, NULL, OB_FONT, Base::object, offset, Curve::pos, rot, scene, Curve::str, Curve::strinfo, Curve::vfont, and WM_event_add_notifier().
Referenced by ED_text_to_object().
|
static |
|
static |
|
static |
Definition at line 1084 of file editfont.c.
Referenced by FONT_OT_move(), and FONT_OT_move_select().
|
static |
Definition at line 740 of file editfont.c.
Referenced by FONT_OT_style_set(), and FONT_OT_style_toggle().