770 Commits

Author SHA1 Message Date
Jinhao
139c884ea9 Merge branch 'fix-tabbar-erase-refresh' of https://github.com/mihaizh/nana into mihaizh-fix-tabbar-erase-refresh 2019-12-04 00:27:17 +08:00
Jinhao
36a17566ca Merge branch 'ErrorFlynn-hotfix-1.7' into hotfix-1.7.2 2019-11-17 01:24:19 +08:00
Jinhao
6353a1909b Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-11-17 01:23:50 +08:00
ErrorFlynn
6c547276ec
bug fix: nana::drawerbase::listbox::essence::where
This method incorrectly calculates the position of checkboxes in the listbox content area. It uses the formula `new_where.second * item_h + header_visible_px()` to calculate the number of pixels between the top of the viewport and a checkbox.

The problem is that when the first visible item is only partially visible, `new_where.second * item_h` produces an excess of pixels equal to the vertical segment of the first visible item that is not in the viewport. This excess value produces a downward displacement of the calculated checkbox position, so it must be accounted for in the aforementioned formula.

This problem occurs because at some point, the library switched from scrolling in item-sized increments to smooth scrolling (in older versions, it used to be that it was impossible for an item to be only partially visible).

Relevant thread: http://nanapro.org/en-us/forum/index.php?u=/topic/1227/ggnana-listbox-with-a-check-box-for-each-list-item#post-3359
2019-10-05 11:19:42 -04:00
ErrorFlynn
59d3a68485
item_proxy bug fix: postfix increment operator
The behavior of the postfix increment operator is not consistent with the increment operator concept (currently just returns the next sibling node).
2019-09-20 23:38:09 -04:00
Zaha Mihai
35dadaeab6
Fix tabbar drawing not updated when tab is erased
When a tab is deleted using `tabbar::erase`, `trigger::erase` is called. This function does not call `API::refresh_window` if the tab was erased successfully (unlike `trigger::tab_color`, `trigger::tab_image`, etc.), thus the tab is still visible until an interaction is made (like mouse click on `tabbar`).
2019-09-15 23:32:58 +03:00
Jinhao
0bd0c1f362 Merge branch 'hotfix-1.7.2' of https://github.com/qPCR4vir/nana into qPCR4vir-hotfix-1.7.2 2019-09-11 00:51:03 +08:00
qPCR4vir
06ba591b66 FIX old bug during resizing of header, when next column spring to second position 2019-09-09 17:23:22 +02:00
besh81
4dd1c0c7ef dock_pane and toolbar bug fix
fixed bug in dock_pane caption drawing function (used a workaround that hide the caption when the dock_pane width become too small)
fixed small bug in toolbar
2019-09-05 17:37:40 +02:00
ErrorFlynn
b7a0874428
fixed bug: listbox::sort_col doesn't update view
Calling listbox::sort_col to change the sort column doesn't update the viewport to reflect the change, forcing the user to call API::refresh_window or otherwise perform stupid tricks to force the listbox to refresh.
2019-08-20 05:32:36 -04:00
ErrorFlynn
69e559f657
fixed a bug in trigger::dbl_click()
impl_->set_expanded() was called unconditionally, even if the node had no children. This caused the node icon to change to the "expanded" icon if the node had an icon scheme, even when the node didn't have children.
2019-08-11 20:27:16 -04:00
Jinhao
2dd9a376bc Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-08-11 02:27:30 +08:00
ErrorFlynn
1b0ac10475
fixes for the listbox bugs described in issue #472 2019-08-05 14:11:02 -04:00
Jinhao
9e653eec0a Merge branch 'patch-2' of https://github.com/qPCR4vir/nana into qPCR4vir-patch-2 2019-08-05 04:02:04 +08:00
이지한
129b83e68f fix the strange behavior of Korean ime composition window.
Because Hangul is a combination character, WM_IME_STARTCOMPOSITION is only called once when the IME input is started, so the position of the composition window is strange.

Therefore, I solved the problem by controlling the state of characters combined using WM_IME_COMPOSITION and WM_IME_CHAR.

We have also improved to support other IME languages such as Chinese and Japanese.
2019-08-01 15:24:46 +09:00
qPCR4vir
96c7a962c9 Merge branch 'develop' into patch-2 2019-07-31 16:59:20 +02:00
qPCR4vir
7a1c299ff7 explicit conversion 2019-07-31 16:56:23 +02:00
Jinhao
de9043e223 fix bug where listbox::item_proxy::empty behaves incorrectly 2019-07-23 04:37:14 +08:00
Jinhao
5acbbf548e refactoring and fix
fix a potential dead-lock caused by timer
2019-07-10 04:25:00 +08:00
Jinhao
50d2c61b9e Merge branch 'hotfix-1.7.1' into develop 2019-07-08 07:12:07 +08:00
Jinhao
1ceb6fd711 Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-07-08 06:34:56 +08:00
ErrorFlynn
d845a82dc4
fixed another listbox selection bug
a display position was searched for in a set of absolute positions
2019-07-06 14:18:24 -04:00
Jinhao
8a0475c98c refactor text_renderer 2019-06-20 04:35:29 +08:00
Jinhao
7d27f152f4 Merge branch 'hotfix-1.7.1' into develop 2019-06-12 23:10:12 +08:00
Jinhao
1f23a78a0a Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-06-11 01:15:52 +08:00
ErrorFlynn
417071e4b5
fix for selection bug described in issue #448 2019-06-03 17:51:21 -04:00
Jinhao
396319ea28 add new method listbox;:set_deselect
set a predicate that decides to deselect selected items in mouse_up event.
2019-05-23 00:49:56 +08:00
Jinhao
a21d58a5fe Merge branch 'hotfix-1.7.1' into develop 2019-05-16 23:23:11 +08:00
Jinhao
44cbb18a50 Merge branch 'develop' of https://github.com/besh81/nana into besh81-develop 2019-05-10 04:33:25 +08:00
besh81
67f5d1743f toolbar: show text inside the button
Added function/method both to toolbar and item_proxy:
void textout(size_type index, bool show); ///< Show/Hide the text inside the button

Before: button without image weren't display
Now: button without image is display as empty square. In case the textout is on the text is show
2019-05-09 09:44:37 +02:00
besh81
5422c43002 toolbar : added toggle button
Following functions/methods have been add both to toolbar and item_proxy:
bool istoggle() const; ///< Returns true if the tool style is toggle.
				bool toggle() const; ///< Gets the tool toggle state (only if tool style is toggle).
				item_proxy& toggle(bool toggle_state); ///< Sets the tool toggle state (only if tool style is toggle).
				std::string toggle_group() const;	///< Returns the toggle group associated with the tool (only if tool style is toggle).
				item_proxy& toggle_group(const ::std::string& group);	///< Adds the tool to a toggle group (only if tool style is toggle).
2019-05-08 18:11:21 +02:00
Jinhao
dfc3cf0cbd Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-05-07 00:29:04 +08:00
qPCR4vir
9e60ae87ba better text error 2019-05-05 23:47:44 +02:00
qPCR4vir
ca96a9d3ca Fix merge
# Conflicts:
#	include/nana/gui/widgets/treebox.hpp
#	source/gui/place.cpp
2019-05-05 22:15:41 +02:00
ErrorFlynn
4e3641ed88
fix for issue #428 2019-05-05 11:13:08 -04:00
Jinhao
a08e274088 Merge branch 'hotfix-1.7' into develop 2019-04-22 01:08:49 +08:00
ErrorFlynn
c5b38f3643
bug: second parameter of category_icon() is rvalue reference 2019-04-18 17:12:31 -04:00
Jinhao
5320ead6bd add treebox.horvered method 2019-04-19 04:40:49 +08:00
Jinhao
9ec8ab4e9d add contributor information 2019-04-17 05:36:19 +08:00
Jinhao
f274ff4c4c Merge branch 'develop' of https://github.com/beru/nana into beru-develop 2019-04-16 23:39:40 +08:00
Jinhao
fd120c6425 Merge branch 'hotfix-1.7' into develop 2019-04-16 04:01:44 +08:00
Jinhao
f697f4c338 uses std::chrono 2019-04-16 03:54:16 +08:00
ErrorFlynn
b7ddcd7d3a
fix for issue #420 2019-04-15 13:00:04 -04:00
beru
a596c7f64e fix typos 2019-04-14 14:49:01 +09:00
Jinhao
d931ebb61c filter out the middle and right button for item selection(#413) 2019-04-10 00:41:04 +08:00
beru
3160b8a204 fix misspellings 2019-03-23 18:18:52 +09:00
Jinhao
7ba93f2164 add contribution description 2019-03-14 06:31:52 +08:00
ErrorFlynn
68d01ffe70
fix: tooltip window doesn't have tree scheme & typeface (issue #405)
The treebox tooltip window is not initialized with the treebox scheme, which causes a crash in color_proxy::operator color(). Additionally, the tooltip window also uses a default font.
2019-03-12 15:58:01 -04:00
Jinhao
2470848fba Merge branch 'hotfix-1.6.2' into develop-1.7 2019-03-09 21:54:57 +08:00
Jinhao
2abae1dd68 refactoring 2019-03-08 06:11:21 +08:00