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
qPCR4vir
06ba591b66
FIX old bug during resizing of header, when next column spring to second position
2019-09-09 17:23:22 +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
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
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
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
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
9ec8ab4e9d
add contributor information
2019-04-17 05:36:19 +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
bbc39906c0
remove deprecated code and debug code
2019-02-15 06:27:17 +08:00
besh81
56065bb2b8
fixed listbox scheme.header_padding_top use
2019-02-06 11:35:33 +01:00
Jinhao
85c2bdbd75
small changes
2019-02-02 00:31:56 +08:00
Jinhao
fb8ade6557
some modifications to #357 and #383
2019-01-31 07:08:45 +08:00
Jinhao
f63cfce5cd
Merge branch 'resort_column_range' of https://github.com/qPCR4vir/nana into qPCR4vir-resort_column_range
2019-01-27 23:45:46 +08:00
Jinhao
3e9b08c0cc
fix issue that reverse box selection works incorrectly
...
new bug from develop-1.7
2019-01-27 06:14:21 +08:00
Jinhao
e057724f98
new method is_single_enabled for listbox
2019-01-21 23:51:45 +08:00
Jinhao
5935ce2036
fix bug that listbox item automatically deselected
...
item automatically are deselected when release mouse after mouse
selection(develop-1.7)
2019-01-19 03:09:52 +08:00
Ariel Vina-Rodriguez
9a52336645
typos
2019-01-18 11:09:16 +01:00
Jinhao
186b76e765
improve filebox appearance on Linux
2018-12-13 06:43:11 +08:00
Jinhao
c09e7b7ba6
improve nana.filesystem
2018-12-10 07:22:16 +08:00
Jinhao
54cfd3075d
add methods for listbox visible range
2018-12-02 06:44:11 +08:00
qPCR4vir
201e13d687
update
2018-11-13 19:42:46 +01:00
qPCR4vir
c0de9ee460
listbox::reorder_columns implemented by move_column
2018-11-13 19:05:19 +01:00
qPCR4vir
e4b60148e7
listbox::move_column implemented by new es_header::move_to_view_pos ()
2018-11-13 19:01:20 +01:00
Jinhao
b3eacfddd0
add column_resizable and column_movable to listbox
2018-11-07 06:18:56 +08:00
Jinhao
ee419c8885
refactoring of listbox
2018-11-05 01:33:36 +08:00
Jinhao
b87d17cac1
bug fix and improvement of listbox
2018-11-04 13:50:12 +08:00
Jinhao
91675cb32d
improve listbox methods
...
listbox::hovered() and listbox::insert_item()
2018-11-01 06:37:26 +08:00
Jinhao
943a9e444d
init dragdrop
...
contains a new class simple_dragdrop and changes of listbox for dragdrop
2018-10-09 03:56:50 +08:00
Jinhao
852aa698ed
Merge branch 'hotfix-1.6.1' into develop
2018-08-28 07:36:51 +08:00
Jinhao
81d667dbd7
using C++17 emplace return type
2018-08-27 06:51:20 +08:00
Jinhao
52d814673b
Merge branch 'hotfix-1.6.1' into develop
2018-08-19 15:24:05 +08:00
Jinhao
04e57771a4
eliminate GCC warings when -Wimplicit-fallthrough is enabled
2018-08-10 23:35:11 +08:00