summaryrefslogtreecommitdiff
path: root/scene/gui/text_edit.h
diff options
context:
space:
mode:
authorjonyrock <ilms@live.ru>2014-04-26 16:42:19 +0400
committerjonyrock <ilms@live.ru>2014-04-26 16:42:19 +0400
commita5e331c66f38396faa34e4445981b883e8b59093 (patch)
tree8befaf33b1c142a9e80aadd8078bf6ad03fe78bd /scene/gui/text_edit.h
parent847ad3d519eceb646701f45fe70967eaaea94d8c (diff)
#298 imp
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r--scene/gui/text_edit.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index c3bb5823e7..8e9651668b 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -218,6 +218,8 @@ class TextEdit : public Control {
Object *tooltip_obj;
StringName tooltip_func;
Variant tooltip_ud;
+
+ bool next_operation_is_complex;
int get_visible_rows() const;
@@ -241,11 +243,13 @@ class TextEdit : public Control {
void _update_caches();
void _cursor_changed_emit();
void _text_changed_emit();
-
+
+ void _begin_compex_operation();
+ void _end_compex_operation();
void _push_current_op();
/* super internal api, undo/redo builds on it */
-
+
void _base_insert_text(int p_line, int p_column,const String& p_text,int &r_end_line,int &r_end_column);
String _base_get_text(int p_from_line, int p_from_column,int p_to_line,int p_to_column) const;
void _base_remove_text(int p_from_line, int p_from_column,int p_to_line,int p_to_column);
@@ -262,7 +266,7 @@ class TextEdit : public Control {
protected:
virtual String get_tooltip(const Point2& p_pos) const;
-
+
void _insert_text(int p_line, int p_column,const String& p_text,int *r_end_line=NULL,int *r_end_char=NULL);
void _remove_text(int p_from_line, int p_from_column,int p_to_line,int p_to_column);
void _insert_text_at_cursor(const String& p_text);