50 Commits

Author SHA1 Message Date
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
df68cfa3ad a bool param to determines whether the caret move to end of text 2016-05-10 15:52:06 +08:00
Jinhao
116787072f Merge branch 'hotfix-1.3' into develop 2016-04-18 15:16:03 +08:00
Jinhao
42990b8670 move lazy_refresh() from namespace API to API::dev 2016-04-17 17:46:19 +08:00
Jinhao
07b5b19545 improve stability of event 2016-04-10 15:23:44 +08:00
Jinhao
6b1cba1357 enable/disable tab when textbox is switched between single/multi-line 2016-03-29 01:22:34 +08:00
Jinhao
6b6b527007 eliminate -Wextra and -pedantic warnings 2016-03-15 15:46:28 +08:00
Jinhao
569eb49a5c fix and improve the internal handle of focus change
enhanced textbox behavior of focus change
2016-02-27 02:02:29 +08:00
Jinhao
a839cf8deb optimize generated binary size 2016-02-19 00:49:32 +08:00
Jinhao
818136a18a remove useless included headers in textbox.cpp 2016-01-22 00:55:23 +08:00
Jinhao
325961a277 remove utf8_cast functions 2016-01-22 00:46:10 +08:00
Jinhao
a42ebe19b4 use UTF-8 for string representation 2015-12-31 01:09:52 +08:00
Jinhao
2ca11d4e25 fix compile errors under Linux 2015-12-16 01:21:44 +08:00
Jinhao
c260eebbc3 use UTF-8 for string representation 2015-12-15 21:46:24 +08:00
Jinhao
112deadd16 elimiate nana::string for listbox 2015-12-10 00:24:31 +08:00
Jinhao
e8266b5ae8 add native_string_type for internal use 2015-12-03 01:49:44 +08:00
Jinhao
12358a5dc0 change some APIs for accepting utf8 2015-11-27 01:54:26 +08:00
Jinhao
9fd1a594cb add selection of text by using shift+mouse click 2015-11-02 00:33:22 +08:00
Jinhao
8da183cfab add an abstract class scroll_interface 2015-10-30 07:43:42 +08:00
Jinhao
09b314b94c change textbox event text_position_changed in favor of text_exposed 2015-10-23 00:51:58 +08:00
Jinhao
fb3b1d51d4 code review 2015-10-22 00:02:27 +08:00
Jinhao
5590dd293b new features of listbox
text line number and line indent
2015-10-21 01:39:11 +08:00
Jinhao
aef37436b0 add a method to return textbox caret position 2015-08-05 00:33:16 +08:00
Jinhao
f4924ef2f8 add throw() for some functions 2015-08-03 01:37:36 +08:00
Jinhao
e0ee42d184 merge beru's changes 2015-08-02 03:33:43 +08:00
Jinhao
7d868f2377 Merge branch 'develop' of https://github.com/beru/nana into beru-develop
Conflicts:
	source/gui/widgets/skeletons/text_editor.cpp
	source/gui/widgets/textbox.cpp
	source/paint/detail/image_bmp.hpp
	source/paint/detail/image_ico.hpp
2015-08-01 22:08:06 +08:00
Jinhao
396163c1b7 fix mouse left button issues due to breaking changes 2015-07-28 00:00:15 +08:00
beru
21dc2aa48c improve textbox's selection handling refs #19, #1 2015-05-24 23:25:39 +09:00
beru
8899cc870c Deselect textbox contents on mouse_down event.
Add the condition that textbox's content should be selected when it's focused with tabstop.
2015-05-21 04:15:20 +09:00
beru
9fc7d3e403 Textbox should select its contents when focus is set. the caret position is moved to end of a line in that case.
When textbox is not focused, its selection should not be drawn to make it look quiet.
2015-05-21 03:42:17 +09:00
beru
2da65827a0 improve cursor move keys support in text editor refs refs #1 2015-05-05 14:13:16 +09:00
Jinhao
4154c8e132 rename API::is_focus_window to API::is_focus_ready 2015-05-01 16:36:12 +08:00
Jinhao
34e2c6b143 fix issues of textbox and filebox
no refresh when calling textbox line_wrapped
add filebox overwrite prompt for saving file
the first non-* filter to be set default extentsion for filebox
2015-03-31 06:08:43 +08:00
Jinhao
6a0fd78595 fix no response of Delete 2015-03-25 01:56:48 +08:00
Jinhao
9a5dfe7f88 fix no response of Delete key 2015-03-25 01:44:56 +08:00
Jinhao
9fbe14e2de code reviews 2015-02-26 02:35:19 +08:00
Jinhao
0ffa3e54ca some improvements 2015-02-17 04:03:55 +08:00
cnjinhao
fd5ff571a7 get ready for Linux 2015-02-04 10:26:08 +08:00
cnjinhao
46f8182c50 add event stop_propagation 2015-02-01 17:12:19 +08:00
cnjinhao
50f4bd79ce Add text_changed event for combox, spinbox and textbox 2015-01-31 04:17:34 +08:00
cnjinhao
c3d5c4aef4 Fixed the textbox wrong caret position after resizing 2015-01-28 06:47:25 +08:00
cnjinhao
02b77d2a26 Improve spinbox 2015-01-23 03:27:21 +08:00
cnjinhao
0597d895b4 gadget::arrow_16_pixels is replaced with element arrow 2015-01-19 17:44:18 +08:00
cnjinhao
bb49ba651c New border element 2015-01-14 04:30:35 +08:00
cnjinhao
0f24250972 Added highlighted text support for textbox
init commit for highlighted text support
2015-01-07 07:33:09 +08:00
cnjinhao
ecbf71b7e2 Color Schemes
textbox.scheme().selection = color(colors::red);
Set the text selection background color
2014-12-28 17:16:52 +08:00
cnjinhao
ad7c36be3f Renamed expr_color to color 2014-12-24 02:07:39 +08:00
cnjinhao
42788db077 Breaking changes for expr_color
expr_color is a temporary class name for new color type experiment.
2014-12-17 11:20:47 +08:00
cnjinhao
d0a317bd45 first init of 0.9 2014-12-11 03:32:35 +08:00