130 Commits

Author SHA1 Message Date
Jinhao
b5db21567f add new methods to textbox for line count 2017-06-18 05:08:51 +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
Jinhao
422f2c768b add a method to textbox
a method to get bounds of a text selection
2016-09-12 00:01:12 +08:00
Jinhao
d6cb631bc2 add a method to show caret for the uneditable textbox
When an uneditable textbox has a caret, user can select the text and copy
it.
2016-09-03 07:46:43 +08:00
Jinhao
cf99551924 fix bug when an invalid pos for textbox.move_caret 2016-08-27 09:40:49 +08:00
Jinhao
b13f0a4ce5 fix textbox caret_pos issue 2016-08-27 05:23:25 +08:00
Jinhao
eed3ffd5b6 Merge branch 'hotfix-1.4' into develop 2016-08-11 02:27:45 +08:00
Jinhao
ebfa079f3f fix bug that text_editor throws an exception when undo a backspace 2016-08-11 02:15:19 +08:00
Jinhao
6e86b6ae6c refine code
fix bug that listbox may throw std::runtime when the modal is enabled
fix bug that textbox attachs a wrong event angent
2016-08-10 01:46:13 +08:00
Jinhao
7229c76807 fix some compiler errors on x64 2016-07-18 04:21:05 +08:00
Jinhao
98483d3e40 fix crash in linux because of compiler bug(GCC 4.8) 2016-07-18 02:36:18 +08:00