Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations | Functions | Variables

text_ops.c File Reference

#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <errno.h>
#include "MEM_guardedalloc.h"
#include "DNA_text_types.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "PIL_time.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_text.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_text.h"
#include "ED_curve.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "text_intern.h"

Go to the source code of this file.

Classes

struct  TextScroll
struct  SetSelection

Defines

#define TEXT_FIND   0
#define TEXT_REPLACE   1
#define TEXT_MARK_ALL   2

Typedefs

typedef struct TextScroll TextScroll
typedef struct SetSelection SetSelection

Enumerations

enum  { TO_SPACES, TO_TABS }
enum  { SCROLLHANDLE_BAR, SCROLLHANDLE_MIN_OUTSIDE, SCROLLHANDLE_MAX_OUTSIDE }
enum  { RESOLVE_IGNORE, RESOLVE_RELOAD, RESOLVE_SAVE, RESOLVE_MAKE_INTERNAL }

Functions

static int text_new_poll (bContext *UNUSED(C))
static int text_edit_poll (bContext *C)
static int text_space_edit_poll (bContext *C)
static int text_region_edit_poll (bContext *C)
void text_update_line_edited (TextLine *line)
void text_update_edited (Text *text)
static int text_new_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_new (wmOperatorType *ot)
static void text_open_init (bContext *C, wmOperator *op)
static int text_open_cancel (bContext *UNUSED(C), wmOperator *op)
static int text_open_exec (bContext *C, wmOperator *op)
static int text_open_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_open (wmOperatorType *ot)
static int text_reload_exec (bContext *C, wmOperator *op)
void TEXT_OT_reload (wmOperatorType *ot)
static int text_unlink_poll (bContext *C)
static int text_unlink_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unlink (wmOperatorType *ot)
static int text_make_internal_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_make_internal (wmOperatorType *ot)
static int text_save_poll (bContext *C)
static void txt_write_file (Text *text, ReportList *reports)
static int text_save_exec (bContext *C, wmOperator *op)
void TEXT_OT_save (wmOperatorType *ot)
static int text_save_as_exec (bContext *C, wmOperator *op)
static int text_save_as_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_save_as (wmOperatorType *ot)
static int text_run_script_poll (bContext *C)
static int text_run_script (bContext *C, ReportList *reports)
static int text_run_script_exec (bContext *C, wmOperator *op)
void TEXT_OT_run_script (wmOperatorType *ot)
static int text_refresh_pyconstraints_exec (bContext *UNUSED(C), wmOperator *UNUSED(op))
void TEXT_OT_refresh_pyconstraints (wmOperatorType *ot)
static char * txt_copy_selected (Text *text)
static int text_paste_exec (bContext *C, wmOperator *op)
void TEXT_OT_paste (wmOperatorType *ot)
static void txt_copy_clipboard (Text *text)
static int text_copy_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_copy (wmOperatorType *ot)
static int text_cut_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_cut (wmOperatorType *ot)
static int text_indent_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_indent (wmOperatorType *ot)
static int text_unindent_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_unindent (wmOperatorType *ot)
static int text_line_break_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_line_break (wmOperatorType *ot)
static int text_comment_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_comment (wmOperatorType *ot)
static int text_uncomment_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_uncomment (wmOperatorType *ot)
static int text_convert_whitespace_exec (bContext *C, wmOperator *op)
void TEXT_OT_convert_whitespace (wmOperatorType *ot)
static int text_select_all_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_all (wmOperatorType *ot)
static int text_select_line_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_line (wmOperatorType *ot)
static int text_select_word_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_select_word (wmOperatorType *ot)
static int text_previous_marker_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_previous_marker (wmOperatorType *ot)
static int text_next_marker_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_next_marker (wmOperatorType *ot)
static int text_clear_all_markers_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_markers_clear (wmOperatorType *ot)
static int text_get_cursor_rel (SpaceText *st, ARegion *ar, TextLine *linein, int rell, int relc)
static int cursor_skip_find_line (SpaceText *st, ARegion *ar, int lines, TextLine **linep, int *charp, int *rell, int *relc)
static void txt_wrap_move_bol (SpaceText *st, ARegion *ar, short sel)
static void txt_wrap_move_eol (SpaceText *st, ARegion *ar, short sel)
static void txt_wrap_move_up (SpaceText *st, ARegion *ar, short sel)
static void txt_wrap_move_down (SpaceText *st, ARegion *ar, short sel)
static void cursor_skip (SpaceText *st, ARegion *ar, Text *text, int lines, int sel)
static int text_move_cursor (bContext *C, int type, int select)
static int text_move_exec (bContext *C, wmOperator *op)
void TEXT_OT_move (wmOperatorType *ot)
static int text_move_select_exec (bContext *C, wmOperator *op)
void TEXT_OT_move_select (wmOperatorType *ot)
static int text_jump_exec (bContext *C, wmOperator *op)
static int text_jump_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_jump (wmOperatorType *ot)
static int text_delete_exec (bContext *C, wmOperator *op)
void TEXT_OT_delete (wmOperatorType *ot)
static int text_toggle_overwrite_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_overwrite_toggle (wmOperatorType *ot)
static void txt_screen_skip (SpaceText *st, ARegion *ar, int lines)
static int text_scroll_poll (bContext *C)
static int text_scroll_exec (bContext *C, wmOperator *op)
static void text_scroll_apply (bContext *C, wmOperator *op, wmEvent *event)
static void scroll_exit (bContext *C, wmOperator *op)
static int text_scroll_modal (bContext *C, wmOperator *op, wmEvent *event)
static int text_scroll_cancel (bContext *C, wmOperator *op)
static int text_scroll_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll (wmOperatorType *ot)
static int text_region_scroll_poll (bContext *C)
static int text_scroll_bar_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_scroll_bar (wmOperatorType *ot)
static int flatten_len (SpaceText *st, const char *str)
static int flatten_index_to_offset (SpaceText *st, const char *str, int index)
static TextLineget_first_visible_line (SpaceText *st, ARegion *ar, int *y)
static void text_cursor_set_to_pos_wrapped (SpaceText *st, ARegion *ar, int x, int y, int sel)
static void text_cursor_set_to_pos (SpaceText *st, ARegion *ar, int x, int y, int sel)
static void text_cursor_set_apply (bContext *C, wmOperator *op, wmEvent *event)
static void text_cursor_set_exit (bContext *C, wmOperator *op)
static int text_set_selection_invoke (bContext *C, wmOperator *op, wmEvent *event)
static int text_set_selection_modal (bContext *C, wmOperator *op, wmEvent *event)
static int text_set_selection_cancel (bContext *C, wmOperator *op)
void TEXT_OT_selection_set (wmOperatorType *ot)
static int text_cursor_set_exec (bContext *C, wmOperator *op)
static int text_cursor_set_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_cursor_set (wmOperatorType *ot)
static int text_line_number_invoke (bContext *C, wmOperator *UNUSED(op), wmEvent *event)
void TEXT_OT_line_number (wmOperatorType *ot)
static int text_insert_exec (bContext *C, wmOperator *op)
static int text_insert_invoke (bContext *C, wmOperator *op, wmEvent *event)
void TEXT_OT_insert (wmOperatorType *ot)
static int text_find_and_replace (bContext *C, wmOperator *op, short mode)
static int text_find_exec (bContext *C, wmOperator *op)
void TEXT_OT_find (wmOperatorType *ot)
static int text_replace_exec (bContext *C, wmOperator *op)
void TEXT_OT_replace (wmOperatorType *ot)
static int text_mark_all_exec (bContext *C, wmOperator *op)
void TEXT_OT_mark_all (wmOperatorType *ot)
static int text_find_set_selected_exec (bContext *C, wmOperator *op)
void TEXT_OT_find_set_selected (wmOperatorType *ot)
static int text_replace_set_selected_exec (bContext *C, wmOperator *UNUSED(op))
void TEXT_OT_replace_set_selected (wmOperatorType *ot)
int text_file_modified (Text *text)
static void text_ignore_modified (Text *text)
static int text_resolve_conflict_exec (bContext *C, wmOperator *op)
static int text_resolve_conflict_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event))
void TEXT_OT_resolve_conflict (wmOperatorType *ot)
static int text_to_3d_object_exec (bContext *C, wmOperator *op)
void TEXT_OT_to_3d_object (wmOperatorType *ot)
void ED_text_undo_step (bContext *C, int step)

Variables

static EnumPropertyItem whitespace_type_items []
static EnumPropertyItem move_type_items []
static EnumPropertyItem delete_type_items []
static EnumPropertyItem resolution_items []

Detailed Description

Definition in file text_ops.c.


Define Documentation

#define TEXT_FIND   0

Definition at line 2886 of file text_ops.c.

Referenced by text_find_and_replace(), text_find_exec(), and text_find_set_selected_exec().

#define TEXT_MARK_ALL   2

Definition at line 2888 of file text_ops.c.

Referenced by text_find_and_replace(), and text_mark_all_exec().

#define TEXT_REPLACE   1

Definition at line 2887 of file text_ops.c.

Referenced by text_find_and_replace(), and text_replace_exec().


Typedef Documentation

typedef struct SetSelection SetSelection
typedef struct TextScroll TextScroll

Enumeration Type Documentation

anonymous enum
Enumerator:
TO_SPACES 
TO_TABS 

Definition at line 1076 of file text_ops.c.

anonymous enum
Enumerator:
SCROLLHANDLE_BAR 
SCROLLHANDLE_MIN_OUTSIDE 
SCROLLHANDLE_MAX_OUTSIDE 

Definition at line 2071 of file text_ops.c.

anonymous enum
Enumerator:
RESOLVE_IGNORE 
RESOLVE_RELOAD 
RESOLVE_SAVE 
RESOLVE_MAKE_INTERNAL 

Definition at line 3095 of file text_ops.c.


Function Documentation

static void cursor_skip ( SpaceText st,
ARegion ar,
Text text,
int  lines,
int  sel 
) [static]
static int cursor_skip_find_line ( SpaceText st,
ARegion ar,
int  lines,
TextLine **  linep,
int *  charp,
int *  rell,
int *  relc 
) [static]
void ED_text_undo_step ( bContext C,
int  step 
)
static int flatten_index_to_offset ( SpaceText st,
const char *  str,
int  index 
) [static]

Definition at line 2381 of file text_ops.c.

References BLI_str_utf8_size(), i, and SpaceText::tabnumber.

Referenced by text_cursor_set_to_pos().

static int flatten_len ( SpaceText st,
const char *  str 
) [static]

Definition at line 2367 of file text_ops.c.

References BLI_str_utf8_size(), i, and SpaceText::tabnumber.

Referenced by text_cursor_set_to_pos().

static TextLine* get_first_visible_line ( SpaceText st,
ARegion ar,
int *  y 
) [static]
static void scroll_exit ( bContext C,
wmOperator op 
) [static]
static int text_clear_all_markers_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_comment_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_convert_whitespace_exec ( bContext C,
wmOperator op 
) [static]
static int text_copy_exec ( bContext C,
wmOperator UNUSEDop 
) [static]

Definition at line 836 of file text_ops.c.

References CTX_data_edit_text(), OPERATOR_FINISHED, and txt_copy_clipboard().

Referenced by TEXT_OT_copy().

static void text_cursor_set_apply ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_cursor_set_exec ( bContext C,
wmOperator op 
) [static]
static void text_cursor_set_exit ( bContext C,
wmOperator op 
) [static]
static int text_cursor_set_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static void text_cursor_set_to_pos ( SpaceText st,
ARegion ar,
int  x,
int  y,
int  sel 
) [static]
static void text_cursor_set_to_pos_wrapped ( SpaceText st,
ARegion ar,
int  x,
int  y,
int  sel 
) [static]
static int text_cut_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_delete_exec ( bContext C,
wmOperator op 
) [static]
static int text_edit_poll ( bContext C) [static]
int text_file_modified ( Text text)

Definition at line 3108 of file text_ops.c.

References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, G, Text::mtime, and Text::name.

Referenced by text_resolve_conflict_invoke().

static int text_find_and_replace ( bContext C,
wmOperator op,
short  mode 
) [static]
static int text_find_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 2981 of file text_ops.c.

References TEXT_FIND, and text_find_and_replace().

Referenced by TEXT_OT_find().

static int text_find_set_selected_exec ( bContext C,
wmOperator op 
) [static]
static int text_get_cursor_rel ( SpaceText st,
ARegion ar,
TextLine linein,
int  rell,
int  relc 
) [static]
static void text_ignore_modified ( Text text) [static]

Definition at line 3137 of file text_ops.c.

References BLI_exists(), BLI_path_abs(), BLI_strncpy(), FILE_MAX, G, Text::mtime, and Text::name.

Referenced by text_resolve_conflict_exec().

static int text_indent_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_insert_exec ( bContext C,
wmOperator op 
) [static]
static int text_insert_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_jump_exec ( bContext C,
wmOperator op 
) [static]
static int text_jump_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]

Definition at line 1955 of file text_ops.c.

References WM_operator_props_dialog_popup().

Referenced by TEXT_OT_jump().

static int text_line_break_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_line_number_invoke ( bContext C,
wmOperator UNUSEDop,
wmEvent event 
) [static]
static int text_make_internal_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_mark_all_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 3019 of file text_ops.c.

References text_find_and_replace(), and TEXT_MARK_ALL.

Referenced by TEXT_OT_mark_all().

static int text_move_cursor ( bContext C,
int  type,
int  select 
) [static]
static int text_move_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 1888 of file text_ops.c.

References wmOperator::ptr, RNA_enum_get(), and text_move_cursor().

Referenced by TEXT_OT_move().

static int text_move_select_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 1912 of file text_ops.c.

References wmOperator::ptr, RNA_enum_get(), and text_move_cursor().

Referenced by TEXT_OT_move_select().

static int text_new_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_new_poll ( bContext UNUSEDC) [static]

Definition at line 76 of file text_ops.c.

Referenced by TEXT_OT_new(), and TEXT_OT_open().

static int text_next_marker_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_open_cancel ( bContext UNUSEDC,
wmOperator op 
) [static]

Definition at line 215 of file text_ops.c.

References wmOperator::customdata, MEM_freeN(), and OPERATOR_CANCELLED.

Referenced by TEXT_OT_open().

static int text_open_exec ( bContext C,
wmOperator op 
) [static]
static void text_open_init ( bContext C,
wmOperator op 
) [static]
static int text_open_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
void TEXT_OT_comment ( wmOperatorType ot)
void TEXT_OT_convert_whitespace ( wmOperatorType ot)
void TEXT_OT_copy ( wmOperatorType ot)
void TEXT_OT_cursor_set ( wmOperatorType ot)
void TEXT_OT_cut ( wmOperatorType ot)
void TEXT_OT_delete ( wmOperatorType ot)
void TEXT_OT_find ( wmOperatorType ot)
void TEXT_OT_find_set_selected ( wmOperatorType ot)
void TEXT_OT_indent ( wmOperatorType ot)
void TEXT_OT_insert ( wmOperatorType ot)
void TEXT_OT_jump ( wmOperatorType ot)
void TEXT_OT_line_break ( wmOperatorType ot)
void TEXT_OT_line_number ( wmOperatorType ot)
void TEXT_OT_make_internal ( wmOperatorType ot)
void TEXT_OT_mark_all ( wmOperatorType ot)
void TEXT_OT_markers_clear ( wmOperatorType ot)
void TEXT_OT_move ( wmOperatorType ot)
void TEXT_OT_move_select ( wmOperatorType ot)
void TEXT_OT_new ( wmOperatorType ot)
void TEXT_OT_next_marker ( wmOperatorType ot)
void TEXT_OT_open ( wmOperatorType ot)
void TEXT_OT_overwrite_toggle ( wmOperatorType ot)
void TEXT_OT_paste ( wmOperatorType ot)
void TEXT_OT_previous_marker ( wmOperatorType ot)
void TEXT_OT_refresh_pyconstraints ( wmOperatorType ot)
void TEXT_OT_reload ( wmOperatorType ot)
void TEXT_OT_replace ( wmOperatorType ot)
void TEXT_OT_replace_set_selected ( wmOperatorType ot)
void TEXT_OT_resolve_conflict ( wmOperatorType ot)
void TEXT_OT_run_script ( wmOperatorType ot)
void TEXT_OT_save ( wmOperatorType ot)
void TEXT_OT_save_as ( wmOperatorType ot)
void TEXT_OT_scroll ( wmOperatorType ot)
void TEXT_OT_scroll_bar ( wmOperatorType ot)
void TEXT_OT_select_all ( wmOperatorType ot)
void TEXT_OT_select_line ( wmOperatorType ot)
void TEXT_OT_select_word ( wmOperatorType ot)
void TEXT_OT_selection_set ( wmOperatorType ot)
void TEXT_OT_to_3d_object ( wmOperatorType ot)
void TEXT_OT_uncomment ( wmOperatorType ot)
void TEXT_OT_unindent ( wmOperatorType ot)
void TEXT_OT_unlink ( wmOperatorType ot)
static int text_paste_exec ( bContext C,
wmOperator op 
) [static]
static int text_previous_marker_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_refresh_pyconstraints_exec ( bContext UNUSEDC,
wmOperator UNUSEDop 
) [static]
static int text_region_edit_poll ( bContext C) [static]
static int text_region_scroll_poll ( bContext C) [static]
static int text_reload_exec ( bContext C,
wmOperator op 
) [static]
static int text_replace_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 3000 of file text_ops.c.

References text_find_and_replace(), and TEXT_REPLACE.

Referenced by TEXT_OT_replace().

static int text_replace_set_selected_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_resolve_conflict_exec ( bContext C,
wmOperator op 
) [static]
static int text_resolve_conflict_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int text_run_script ( bContext C,
ReportList reports 
) [static]
static int text_run_script_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 610 of file text_ops.c.

References BKE_report(), OPERATOR_CANCELLED, wmOperator::reports, RPT_ERROR, and text_run_script().

Referenced by TEXT_OT_run_script().

static int text_run_script_poll ( bContext C) [static]

Definition at line 571 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_run_script().

static int text_save_as_exec ( bContext C,
wmOperator op 
) [static]
static int text_save_as_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int text_save_exec ( bContext C,
wmOperator op 
) [static]
static int text_save_poll ( bContext C) [static]
static void text_scroll_apply ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_scroll_bar_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_scroll_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 2200 of file text_ops.c.

References OPERATOR_CANCELLED, and scroll_exit().

Referenced by TEXT_OT_scroll(), and TEXT_OT_scroll_bar().

static int text_scroll_exec ( bContext C,
wmOperator op 
) [static]
static int text_scroll_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_scroll_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_scroll_poll ( bContext C) [static]

Definition at line 2087 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_scroll().

static int text_select_all_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_select_line_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_select_word_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_set_selection_cancel ( bContext C,
wmOperator op 
) [static]

Definition at line 2664 of file text_ops.c.

References OPERATOR_FINISHED, and text_cursor_set_exit().

Referenced by TEXT_OT_selection_set().

static int text_set_selection_invoke ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_set_selection_modal ( bContext C,
wmOperator op,
wmEvent event 
) [static]
static int text_space_edit_poll ( bContext C) [static]
static int text_to_3d_object_exec ( bContext C,
wmOperator op 
) [static]
static int text_toggle_overwrite_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_uncomment_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_unindent_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_unlink_exec ( bContext C,
wmOperator UNUSEDop 
) [static]
static int text_unlink_poll ( bContext C) [static]

Definition at line 349 of file text_ops.c.

References CTX_data_edit_text(), and NULL.

Referenced by TEXT_OT_unlink().

void text_update_edited ( Text text)

Definition at line 146 of file text_ops.c.

References ListBase::first, Text::lines, TextLine::next, and text_update_line_edited().

void text_update_line_edited ( TextLine line)
static void txt_copy_clipboard ( Text text) [static]

Definition at line 824 of file text_ops.c.

References MEM_freeN(), txt_copy_selected(), and WM_clipboard_text_set().

Referenced by text_copy_exec(), and text_cut_exec().

static char* txt_copy_selected ( Text text) [static]
static void txt_screen_skip ( SpaceText st,
ARegion ar,
int  lines 
) [static]
static void txt_wrap_move_bol ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void txt_wrap_move_down ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void txt_wrap_move_eol ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void txt_wrap_move_up ( SpaceText st,
ARegion ar,
short  sel 
) [static]
static void txt_write_file ( Text text,
ReportList reports 
) [static]

Variable Documentation

Initial value:
 {
    {DEL_NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
    {DEL_PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
    {DEL_NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
    {DEL_PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 1979 of file text_ops.c.

Initial value:
 {
    {LINE_BEGIN, "LINE_BEGIN", 0, "Line Begin", ""},
    {LINE_END, "LINE_END", 0, "Line End", ""},
    {FILE_TOP, "FILE_TOP", 0, "File Top", ""},
    {FILE_BOTTOM, "FILE_BOTTOM", 0, "File Bottom", ""},
    {PREV_CHAR, "PREVIOUS_CHARACTER", 0, "Previous Character", ""},
    {NEXT_CHAR, "NEXT_CHARACTER", 0, "Next Character", ""},
    {PREV_WORD, "PREVIOUS_WORD", 0, "Previous Word", ""},
    {NEXT_WORD, "NEXT_WORD", 0, "Next Word", ""},
    {PREV_LINE, "PREVIOUS_LINE", 0, "Previous Line", ""},
    {NEXT_LINE, "NEXT_LINE", 0, "Next Line", ""},
    {PREV_PAGE, "PREVIOUS_PAGE", 0, "Previous Page", ""},
    {NEXT_PAGE, "NEXT_PAGE", 0, "Next Page", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 1396 of file text_ops.c.

Initial value:
 {
    {RESOLVE_IGNORE, "IGNORE", 0, "Ignore", ""},
    {RESOLVE_RELOAD, "RELOAD", 0, "Reload", ""},
    {RESOLVE_SAVE, "SAVE", 0, "Save", ""},
    {RESOLVE_MAKE_INTERNAL, "MAKE_INTERNAL", 0, "Make Internal", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 3096 of file text_ops.c.

Initial value:
 {
    {TO_SPACES, "SPACES", 0, "To Spaces", NULL},
    {TO_TABS, "TABS", 0, "To Tabs", NULL},
    {0, NULL, 0, NULL, NULL}}

Definition at line 1077 of file text_ops.c.