|
Blender
V2.59
|
#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <wchar.h>#include <unistd.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "DNA_curve_types.h"#include "DNA_object_types.h"#include "DNA_vfont_types.h"#include "DNA_scene_types.h"#include "DNA_text_types.h"#include "BKE_context.h"#include "BKE_curve.h"#include "BKE_depsgraph.h"#include "BKE_font.h"#include "BKE_library.h"#include "BKE_object.h"#include "BKE_report.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_screen.h"#include "ED_util.h"#include "UI_interface.h"#include "curve_intern.h"Go to the source code of this file.
Definition in file editfont.c.
| #define MAXTEXT 32766 |
Definition at line 79 of file editfont.c.
Referenced by editFont_to_undoFont(), insert_into_textbuf(), insert_text_invoke(), make_editText(), move_cursor(), paste_file(), paste_selection(), and txt_add_object().
| static int change_character_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1045 of file editfont.c.
References CLAMP(), CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, FO_EDIT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Curve::pos, wmOperator::ptr, RNA_int_get(), text_update_edited(), and EditFont::textbuf.
Referenced by FONT_OT_change_character().
| static int change_spacing_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1003 of file editfont.c.
References CLAMP(), CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, FO_EDIT, CharInfo::kern, OPERATOR_CANCELLED, OPERATOR_FINISHED, Curve::pos, wmOperator::ptr, RNA_int_get(), text_update_edited(), and EditFont::textbufinfo.
Referenced by FONT_OT_change_spacing().
| static void copy_selection | ( | Object * | obedit | ) | [static] |
Definition at line 708 of file editfont.c.
References BKE_font_getselection(), EditFont::copybuf, EditFont::copybufinfo, Object::data, Curve::editfont, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by copy_text_exec(), and cut_text_exec().
| static int copy_text_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 722 of file editfont.c.
References copy_selection(), CTX_data_edit_object(), and OPERATOR_FINISHED.
Referenced by FONT_OT_text_copy().
| static int cut_text_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 745 of file editfont.c.
References BKE_font_getselection(), copy_selection(), CTX_data_edit_object(), CTX_data_scene(), FO_EDIT, kill_selection(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and text_update_edited().
Referenced by FONT_OT_text_cut().
| static int delete_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1142 of file editfont.c.
References BKE_font_getselection(), CTX_data_edit_object(), CTX_data_scene(), Object::data, DEL_ALL, DEL_NEXT_CHAR, DEL_NEXT_SEL, DEL_PREV_CHAR, DEL_PREV_SEL, DEL_SELECTION, Curve::editfont, FO_EDIT, kill_selection(), TextLine::len, Curve::len, OPERATOR_CANCELLED, OPERATOR_FINISHED, Curve::pos, wmOperator::ptr, RNA_enum_get(), text_update_edited(), EditFont::textbuf, and EditFont::textbufinfo.
Referenced by FONT_OT_delete().
Definition at line 522 of file editfont.c.
References BLI_countlist(), CTX_wm_region_view3d(), ListBase::first, TextLine::line, Text::lines, mul_mat3_m4_v3(), TextLine::next, txt_add_object(), and RegionView3D::viewinv.
Referenced by to_3d_object_exec().
| static void* editFont_to_undoFont | ( | void * | ecu | ) | [static] |
Definition at line 1789 of file editfont.c.
References Curve::editfont, Curve::len, MAXTEXT, MEM_callocN(), Curve::pos, str, EditFont::textbuf, and EditFont::textbufinfo.
Referenced by undo_push_font().
| static char findaccent | ( | char | char1, |
| unsigned int | code | ||
| ) | [static] |
Definition at line 83 of file editfont.c.
Referenced by insert_text_invoke().
| void FONT_OT_buffer_paste | ( | wmOperatorType * | ot | ) |
Definition at line 452 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_buffer_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void FONT_OT_case_set | ( | wmOperatorType * | ot | ) |
Definition at line 1572 of file editfont.c.
References CASE_LOWER, wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, 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 1615 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and toggle_case_exec().
Referenced by ED_operatortypes_curve().
| void FONT_OT_change_character | ( | wmOperatorType * | ot | ) |
Definition at line 1070 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, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_change_spacing | ( | wmOperatorType * | ot | ) |
Definition at line 1025 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, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1203 of file editfont.c.
References DEL_ALL, delete_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_file_paste | ( | wmOperatorType * | ot | ) |
Definition at line 403 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_file_exec(), paste_file_invoke(), wmOperatorType::poll, TEXTFILE, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve().
| void FONT_OT_insert_lorem | ( | wmOperatorType * | ot | ) |
Definition at line 315 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_lorem_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void FONT_OT_line_break | ( | wmOperatorType * | ot | ) |
Definition at line 1113 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, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_move | ( | wmOperatorType * | ot | ) |
Definition at line 956 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, LINE_BEGIN, move_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_move_select | ( | wmOperatorType * | ot | ) |
Definition at line 983 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, LINE_BEGIN, move_select_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 1715 of file editfont.c.
References wmOperatorType::cancel, wmOperatorType::exec, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, FTFONTFILE, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, open_cancel(), open_exec(), open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_curve().
| void FONT_OT_style_set | ( | wmOperatorType * | ot | ) |
Definition at line 650 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, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), set_style_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curve().
| void FONT_OT_style_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 688 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, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, and toggle_style_exec().
Referenced by ED_operatortypes_curve().
| void FONT_OT_text_copy | ( | wmOperatorType * | ot | ) |
Definition at line 731 of file editfont.c.
References copy_text_exec(), wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void FONT_OT_text_cut | ( | wmOperatorType * | ot | ) |
Definition at line 762 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, and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void FONT_OT_text_insert | ( | wmOperatorType * | ot | ) |
Definition at line 1352 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, OPTYPE_REGISTER, OPTYPE_UNDO, 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 820 of file editfont.c.
References wmOperatorType::description, ED_operator_editfont(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, paste_text_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_curve().
| void FONT_OT_textbox_add | ( | wmOperatorType * | ot | ) |
Definition at line 1391 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, wmOperatorType::poll, and textbox_add_exec().
Referenced by ED_operatortypes_curve().
| void FONT_OT_textbox_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1434 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, 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 1758 of file editfont.c.
References wmOperatorType::description, wmOperatorType::exec, font_unlink_exec(), wmOperatorType::idname, and wmOperatorType::name.
Referenced by ED_operatortypes_curve().
| static void font_ui_template_init | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1632 of file editfont.c.
References wmOperator::customdata, MEM_callocN(), PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and uiIDContextProperty().
Referenced by open_exec(), and open_invoke().
| static int font_unlink_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1735 of file editfont.c.
References BKE_report(), get_builtin_font(), 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 uiIDContextProperty().
Referenced by FONT_OT_unlink().
| void free_editText | ( | Object * | obedit | ) |
Definition at line 1520 of file editfont.c.
References BKE_free_editfont(), and Object::data.
Referenced by ED_object_exit_editmode().
| static void free_undoFont | ( | void * | strv | ) | [static] |
| static void* get_undoFont | ( | bContext * | C | ) | [static] |
Definition at line 1813 of file editfont.c.
References CTX_data_edit_object(), Object::data, NULL, OB_FONT, and Object::type.
Referenced by undo_push_font().
| static int insert_into_textbuf | ( | Object * | obedit, |
| uintptr_t | c | ||
| ) | [static] |
Definition at line 233 of file editfont.c.
References Object::actcol, Curve::curinfo, Object::data, Curve::editfont, CharInfo::kern, Curve::len, CharInfo::mat_nr, MAXTEXT, Curve::pos, EditFont::textbuf, EditFont::textbufinfo, update_string(), and ImBuf::x.
Referenced by insert_lorem_exec(), insert_text_exec(), insert_text_invoke(), and line_break_exec().
| static int insert_lorem_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 281 of file editfont.c.
References CTX_data_edit_object(), DAG_id_tag_update(), Object::data, ED_lorem, i, insert_into_textbuf(), NC_GEOM, ND_DATA, OPERATOR_FINISHED, p, and WM_event_add_notifier().
Referenced by FONT_OT_insert_lorem().
| static int insert_text_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1223 of file editfont.c.
References CTX_data_edit_object(), CTX_data_scene(), FO_EDIT, insert_into_textbuf(), kill_selection(), TextLine::len, MEM_callocN(), MEM_freeN(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_property_is_set(), RNA_string_get_alloc(), text_update_edited(), and utf8towchar().
Referenced by FONT_OT_text_insert(), and insert_text_invoke().
| static int insert_text_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | evt | ||
| ) | [static] |
Definition at line 1252 of file editfont.c.
References wmEvent::alt, wmEvent::ascii, BACKSPACEKEY, wmEvent::ctrl, CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, findaccent(), FO_EDIT, insert_into_textbuf(), insert_text_exec(), kill_selection(), Curve::len, MAXTEXT, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, Curve::pos, wmOperator::ptr, RNA_property_is_set(), RNA_string_set(), wmEvent::shift, TABKEY, text_update_edited(), EditFont::textbuf, wmEvent::type, simple_enum_gen::val, wmEvent::val, and wcs2utf8s().
Referenced by FONT_OT_text_insert().
| static int kill_selection | ( | Object * | obedit, |
| int | ins | ||
| ) | [static] |
Definition at line 581 of file editfont.c.
References BKE_font_getselection(), Object::data, Curve::editfont, Curve::len, Curve::pos, Curve::selend, Curve::selstart, size(), EditFont::textbuf, and EditFont::textbufinfo.
Referenced by cut_text_exec(), delete_exec(), insert_text_exec(), and insert_text_invoke().
| static int line_break_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1090 of file editfont.c.
References CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, FO_EDIT, insert_into_textbuf(), OPERATOR_FINISHED, Curve::pos, wmOperator::ptr, RNA_boolean_get(), Curve::selend, Curve::selstart, text_update_edited(), and EditFont::textbuf.
Referenced by FONT_OT_line_break().
| void load_editText | ( | Object * | obedit | ) |
Definition at line 1493 of file editfont.c.
References Object::data, Curve::editfont, Curve::len, MEM_callocN(), MEM_freeN(), NULL, EditFont::oldstr, EditFont::oldstrinfo, Curve::selboxes, Curve::str, Curve::strinfo, EditFont::textbufinfo, and update_string().
Referenced by ED_object_exit_editmode().
| void make_editText | ( | Object * | obedit | ) |
Definition at line 1457 of file editfont.c.
References EditFont::copybuf, EditFont::copybufinfo, Curve::curinfo, Object::data, Curve::editfont, Curve::len, MAXTEXT, MEM_callocN(), NULL, EditFont::oldstr, EditFont::oldstrinfo, Curve::pos, Curve::str, Curve::strinfo, EditFont::textbuf, EditFont::textbufinfo, update_string(), and utf8towchar().
Referenced by ED_object_enter_editmode().
| static int move_cursor | ( | bContext * | C, |
| int | type, | ||
| int | select | ||
| ) | [static] |
Definition at line 850 of file editfont.c.
References BKE_text_to_curve(), CTX_data_edit_object(), CTX_data_scene(), CU_CHINFO_WRAP, Object::data, Curve::editfont, CharInfo::flag, FO_CURS, FO_CURSDOWN, FO_CURSUP, FO_PAGEDOWN, FO_PAGEUP, FO_SELCHANGE, Curve::len, LINE_BEGIN, LINE_END, MAXTEXT, NEXT_CHAR, NEXT_LINE, NEXT_PAGE, NEXT_WORD, next_word(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Curve::pos, PREV_CHAR, PREV_LINE, PREV_PAGE, PREV_WORD, prev_word(), Curve::selend, Curve::selstart, text_update_edited(), EditFont::textbuf, EditFont::textbufinfo, and update_string().
Referenced by move_exec(), and move_select_exec().
| static int move_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 949 of file editfont.c.
References move_cursor(), wmOperator::ptr, and RNA_enum_get().
Referenced by FONT_OT_move().
| static int move_select_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 976 of file editfont.c.
References move_cursor(), wmOperator::ptr, and RNA_enum_get().
Referenced by FONT_OT_move_select().
| static short next_word | ( | Curve * | cu | ) | [static] |
Definition at line 563 of file editfont.c.
References Curve::pos, and Curve::str.
Referenced by move_cursor().
| static int open_cancel | ( | bContext * | UNUSEDC, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1640 of file editfont.c.
References wmOperator::customdata, MEM_freeN(), NULL, and OPERATOR_CANCELLED.
Referenced by FONT_OT_open().
| static int open_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1647 of file editfont.c.
References wmOperator::customdata, FILE_MAX, font_ui_template_init(), VFont::id, load_vfont(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, PropertyPointerRNA::prop, PropertyPointerRNA::ptr, wmOperator::ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_string_get(), and ID::us.
Referenced by FONT_OT_open(), and open_invoke().
| static int open_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1683 of file editfont.c.
References wmOperator::customdata, PointerRNA::data, FO_BUILTIN_NAME, font_ui_template_init(), PointerRNA::id, VFont::name, NULL, open_exec(), OPERATOR_RUNNING_MODAL, PropertyPointerRNA::prop, wmOperator::ptr, RNA_boolean_set(), RNA_property_is_set(), RNA_property_pointer_get(), RNA_string_set(), USER_RELPATHS, and WM_event_add_fileselect().
Referenced by FONT_OT_open().
| static int paste_buffer_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 424 of file editfont.c.
References NULL, and paste_file().
Referenced by FONT_OT_buffer_paste().
| static int paste_file | ( | bContext * | C, |
| ReportList * | reports, | ||
| const char * | filename | ||
| ) | [static] |
Definition at line 335 of file editfont.c.
References BKE_reportf(), CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, FO_EDIT, L, Curve::len, MAXTEXT, MEM_callocN(), MEM_freeN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Curve::pos, RPT_ERROR, text_update_edited(), EditFont::textbuf, and utf8towchar().
Referenced by paste_buffer_exec(), and paste_file_exec().
| static int paste_file_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 381 of file editfont.c.
References MEM_freeN(), NULL, paste_file(), wmOperator::ptr, wmOperator::reports, and RNA_string_get_alloc().
Referenced by FONT_OT_file_paste(), and paste_file_invoke().
| static int paste_file_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 393 of file editfont.c.
References OPERATOR_RUNNING_MODAL, paste_file_exec(), wmOperator::ptr, RNA_property_is_set(), and WM_event_add_fileselect().
Referenced by FONT_OT_file_paste().
| static int paste_selection | ( | Object * | obedit, |
| ReportList * | reports | ||
| ) | [static] |
Definition at line 779 of file editfont.c.
References BKE_report(), EditFont::copybuf, EditFont::copybufinfo, Object::data, Curve::editfont, TextLine::len, Curve::len, MAXTEXT, Curve::pos, RPT_WARNING, size(), EditFont::textbuf, and EditFont::textbufinfo.
Referenced by paste_text_exec().
| static int paste_text_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 807 of file editfont.c.
References CTX_data_edit_object(), CTX_data_scene(), FO_EDIT, OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_selection(), wmOperator::reports, and text_update_edited().
Referenced by FONT_OT_text_paste().
| static short prev_word | ( | Curve * | cu | ) | [static] |
Definition at line 571 of file editfont.c.
References Curve::pos, and Curve::str.
Referenced by move_cursor().
| static int set_case | ( | bContext * | C, |
| int | ccase | ||
| ) | [static] |
Definition at line 1532 of file editfont.c.
References CASE_LOWER, CTX_data_edit_object(), CTX_data_scene(), Object::data, Curve::editfont, FO_EDIT, TextLine::len, OPERATOR_FINISHED, str, text_update_edited(), and EditFont::textbuf.
Referenced by set_case_exec(), and toggle_case_exec().
| static int set_case_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1567 of file editfont.c.
References wmOperator::ptr, RNA_enum_get(), and set_case().
Referenced by FONT_OT_case_set().
| static int set_style | ( | bContext * | C, |
| const int | style, | ||
| const int | clear | ||
| ) | [static] |
Definition at line 619 of file editfont.c.
References BKE_font_getselection(), CTX_data_edit_object(), DAG_id_tag_update(), Object::data, Curve::editfont, CharInfo::flag, i, 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 int set_style_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 642 of file editfont.c.
References clear(), wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), and set_style().
Referenced by FONT_OT_style_set().
| static void text_update_edited | ( | bContext * | C, |
| Scene * | scene, | ||
| Object * | obedit, | ||
| int | recalc, | ||
| int | mode | ||
| ) | [static] |
Definition at line 260 of file editfont.c.
References Object::actcol, BKE_text_to_curve(), Curve::curinfo, DAG_id_tag_update(), Object::data, Curve::editfont, FO_EDIT, CharInfo::mat_nr, NC_GEOM, ND_DATA, Curve::pos, EditFont::textbufinfo, Object::totcol, update_string(), and WM_event_add_notifier().
Referenced by change_character_exec(), change_spacing_exec(), comment_exec(), convert_whitespace_exec(), cut_text_exec(), delete_exec(), ED_text_undo_step(), indent_exec(), insert_text_exec(), insert_text_invoke(), line_break_exec(), move_cursor(), paste_exec(), paste_file(), paste_text_exec(), reload_exec(), set_case(), text_listener(), uncomment_exec(), and unindent_exec().
| static int textbox_add_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1374 of file editfont.c.
References Curve::actbox, CTX_data_active_object(), Object::data, i, NC_GEOM, ND_DATA, OPERATOR_FINISHED, Curve::tb, Curve::totbox, and WM_event_add_notifier().
Referenced by FONT_OT_textbox_add().
| static int textbox_remove_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1414 of file editfont.c.
References Curve::actbox, CTX_data_active_object(), Object::data, i, if(), 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 int toggle_case_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1592 of file editfont.c.
References CASE_LOWER, CASE_UPPER, CTX_data_edit_object(), Object::data, Curve::editfont, TextLine::len, set_case(), str, and EditFont::textbuf.
Referenced by FONT_OT_case_toggle().
| static int toggle_style_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 671 of file editfont.c.
References BKE_font_getselection(), 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 void txt_add_object | ( | bContext * | C, |
| TextLine * | firstline, | ||
| int | totline, | ||
| float | offset[3] | ||
| ) | [static] |
Definition at line 469 of file editfont.c.
References add_object(), Scene::basact, CTX_data_scene(), Object::data, ED_object_base_init_transform(), get_builtin_font(), VFont::id, Curve::len, TextLine::line, Object::loc, MAXTEXT, MEM_callocN(), MEM_freeN(), NA_ADDED, NC_OBJECT, TextLine::next, NULL, OB_FONT, Curve::pos, Curve::str, Curve::strinfo, ID::us, Curve::vfont, where_is_object(), and WM_event_add_notifier().
Referenced by ED_text_to_object().
| void undo_push_font | ( | bContext * | C, |
| const char * | name | ||
| ) |
Definition at line 1823 of file editfont.c.
References editFont_to_undoFont(), free_undoFont(), get_undoFont(), NULL, undo_editmode_push(), and undoFont_to_editFont().
Referenced by ED_undo_push().
| static void undoFont_to_editFont | ( | void * | strv, |
| void * | ecu | ||
| ) | [static] |
Definition at line 1772 of file editfont.c.
References Curve::editfont, Curve::len, Curve::pos, Curve::selend, Curve::selstart, str, EditFont::textbuf, EditFont::textbufinfo, and update_string().
Referenced by undo_push_font().
| static void update_string | ( | Curve * | cu | ) | [static] |
Definition at line 215 of file editfont.c.
References Curve::editfont, MEM_callocN(), MEM_freeN(), Curve::str, EditFont::textbuf, wcs2utf8s(), and wcsleninu8().
Referenced by insert_into_textbuf(), load_editText(), make_editText(), move_cursor(), text_update_edited(), and undoFont_to_editFont().
EnumPropertyItem case_items[] [static] |
{
{CASE_LOWER, "LOWER", 0, "Lower", ""},
{CASE_UPPER, "UPPER", 0, "Upper", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 1527 of file editfont.c.
EnumPropertyItem delete_type_items[] [static] |
{
{DEL_ALL, "ALL", 0, "All", ""},
{DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
{DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
{DEL_SELECTION, "SELECTION", 0, "Selection", ""},
{DEL_NEXT_SEL, "NEXT_OR_SELECTION", 0, "Next or Selection", ""},
{DEL_PREV_SEL, "PREVIOUS_OR_SELECTION", 0, "Previous or Selection", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 1133 of file editfont.c.
EnumPropertyItem move_type_items[] [static] |
{
{LINE_BEGIN, "LINE_BEGIN", 0, "Line Begin", ""},
{LINE_END, "LINE_END", 0, "Line End", ""},
{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 837 of file editfont.c.
EnumPropertyItem style_items[] [static] |
{
{CU_CHINFO_BOLD, "BOLD", 0, "Bold", ""},
{CU_CHINFO_ITALIC, "ITALIC", 0, "Italic", ""},
{CU_CHINFO_UNDERLINE, "UNDERLINE", 0, "Underline", ""},
{CU_CHINFO_SMALLCAPS, "SMALL_CAPS", 0, "Small Caps", ""},
{0, NULL, 0, NULL, NULL}}
Definition at line 612 of file editfont.c.