139 Commits

Author SHA1 Message Date
Jinhao
0d99cb26dc fix bug that render incorrent when text_editor selection isn't focused 2017-07-19 08:01:19 +08:00
Jinhao
87698de126 fix a compiler error in text_editor.cpp 2017-07-16 23:30:05 +08:00
Jinhao
822a762804 fix bug that textbox::caret_pos() doesn't move the caret 2017-07-16 21:42:24 +08:00
Jinhao
a7bfc61007 fix bug that text_editor wouldn't reset scrollbar when paste 2017-07-16 11:26:28 +08:00
Jinhao
887554b1b9 fix bug that _m_paste_children wouldn't work well in refresh_tree
added contributor information
2017-07-15 11:53:06 +08:00
Oleg Smolsky
e8755e6283 Added Windows-style mouse double-click to the textbox
- the word under cursor is selected with double-click now
 - tested in both editable and read-only modes

This addresses #226.
2017-07-12 10:46:45 -07:00
Jinhao
40c35d87a0 fix compiler warnings 2017-06-22 00:11:36 +08:00
Jinhao
cbb42259bd Merge branch 'hotfix-1.5.1' into develop 2017-06-21 22:52:47 +08:00
Jinhao
b5db21567f add new methods to textbox for line count 2017-06-18 05:08:51 +08:00
Jinhao
0b4dc1904b fix compiler errors/warnings for clang 5.0 2017-06-11 11:33:52 +08:00
Jinhao
4d93c97c44 small improvement 2017-06-02 05:19:38 +08:00
Jinhao
a6c6a84147 fix crash that text_editor undo enter with selected text 2017-06-02 04:26:19 +08:00
Jinhao
a87703d418 refactor functions 2017-05-31 22:36:56 +08:00
Jinhao
5746fc33f6 fix bug of text_editor scrollbar 2017-05-30 10:43:10 +08:00
Jinhao
2f21c33392 remove deprecated code 2017-05-30 04:50:10 +08:00
Jinhao
56e7f5ea4d remove deprecated code 2017-05-27 00:40:17 +08:00
Jinhao
b3f1b259ab fix compiler error 2017-05-25 06:14:38 +08:00
Jinhao
a4f15f7bb0 refactor text_editor
fix issues that caret works incorrectly in line-wrapped mode.
2017-05-23 04:22:08 +08:00
Jinhao
138babf43c refactor text_editor 2017-05-11 01:45:34 +08:00
Jinhao
d936cc4dc6 fix issue that backspace of text_editor in line-wrapped
backspace of text_eidtor in line-wrapped may not work correctly
2017-05-11 00:55:07 +08:00
Jinhao
8d4a734272 small changes 2017-05-09 04:49:11 +08:00
Jinhao
f0e1c26502 fix issue that textbox scrollbar may not appear 2017-05-09 03:55:10 +08:00
Jinhao
f56358a397 fix text_editor content calculation 2017-04-30 16:14:01 +08:00
Jinhao
855694e8c7 fix text_editor line color issue 2017-04-30 04:32:23 +08:00
Jinhao
970412a3db coe refine 2017-04-19 04:58:20 +08:00
Jinhao
f261fa296e highlight certain lines in a textbox(#194) 2017-04-15 11:13:32 +08:00
Jinhao
6cbf721f9d improve all widgets for bground effects 2017-04-11 07:06:43 +08:00
Jinhao
a853ec4d1c fix compiler error for GCC 2017-03-30 06:32:47 +08:00
Jinhao
17153b991f improve text_editor
improve user experience
2017-03-30 03:08:36 +08:00
Jinhao
afc556dff3 Merge branch 'hotfix-1.4.1' into develop 2017-03-26 06:32:15 +08:00
Jinhao
54cb64b991 another fix for text_editor content offset(#193) 2017-03-26 06:25:59 +08:00
Jinhao
ef38c45895 Merge branch 'hotfix-1.4.1' into develop 2017-03-26 05:04:08 +08:00
Jinhao
d0f217fbac fix bug that didn't reset text_editor content offset(#193) 2017-03-26 04:56:43 +08:00
Jinhao
f983e4a610 Merge branch 'hotfix-1.4.1' into develop 2017-03-21 04:15:51 +08:00
Jinhao
c8d0b2a621 fix issue that text_editor may drop pasted text 2017-03-21 04:14:03 +08:00
Jinhao
431f0af893 fix syntax errors and warnings 2017-03-17 07:29:34 +08:00
Jinhao
33424f0c75 Merge branch 'hotfix-1.4.1' into develop 2017-03-16 02:07:37 +08:00
Jinhao
1d31809051 improve text_editor set_accept 2017-02-17 07:17:47 +08:00
Jinhao
fdf3753961 fix issues in single line mode of new text_editor
wrong caret and text position in single line mode
2017-01-25 20:24:04 +08:00
Jinhao
d34806353e add support of text align to text_editor/textbox 2017-01-25 19:18:54 +08:00
Jinhao
b7491a86e7 Merge branch 'hotfix-1.4.1' into develop 2017-01-13 07:17:55 +08:00
Jinhao
c1cfd283e2 new parameter of dataexch 2016-12-06 02:21:12 +08:00
Jinhao
db2cb5e8d7 change text_editor for reducing binary size 2016-11-19 04:24:03 +08:00
Jinhao
edc8304c22 Merge branch 'hotfix-1.4' of https://github.com/PeterAddy960/nana into PeterAddy960-hotfix-1.4 2016-10-31 06:13:41 +08:00
PeterAddy960
8e84383a7b Added an overload to getline to allow an offset from the beginning of the line.
Added a clear undo method.
Added an overload to selected to get the selected bounds.
2016-10-28 00:17:59 -05:00
PeterAddy960
78c3527f10 Modified the implementation so that nana:⌨️:os_del is sent throght the set_accept function, so that os_del can be blocked.
Added overload to selected to get the selection bounds.
2016-10-28 00:10:11 -05:00
Jinhao
4b58704161 fix issue when textbox::reset with no parameter 2016-10-01 10:07:13 +08:00
Jinhao
db663a0fae fix a compiler warning 2016-09-25 09:33:54 +08:00
Jinhao
340c350fcb Merge branch 'hotfix-1.4' into develop 2016-09-24 09:58:44 +08:00
Jinhao
c916d0ace3 add textbox::set_undo_queue_length
a new method for setting the undo queue length
2016-09-22 08:03:30 +08:00