1993 Commits

Author SHA1 Message Date
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
ErrorFlynn
e626f816b3
nana::any bug fix - argument not forwarded
A constructor and an overload of the assignment operator each have a forwarding reference as a parameter, but they don't actually forward the argument.
2019-09-16 06:07:04 -04: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
ErrorFlynn
1b0ac10475
fixes for the listbox bugs described in issue #472 2019-08-05 14:11:02 -04: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
ErrorFlynn
417071e4b5
fix for selection bug described in issue #448 2019-06-03 17:51:21 -04:00
ErrorFlynn
4e3641ed88
fix for issue #428 2019-05-05 11:13:08 -04:00
ErrorFlynn
e36a3270e9
bug: second parameter of category_icon() is rvalue reference 2019-04-18 17:13:19 -04:00
ErrorFlynn
c5b38f3643
bug: second parameter of category_icon() is rvalue reference 2019-04-18 17:12:31 -04:00
ErrorFlynn
b7ddcd7d3a
fix for issue #420 2019-04-15 13:00:04 -04:00
ErrorFlynn
1468d1836c
Merge pull request #4 from cnjinhao/hotfix-1.7
Hotfix 1.7
2019-04-15 12:52:33 -04:00
Jinhao
cff318d182 enhance the performance of nana 2019-04-13 00:03:40 +08:00
Jinhao
cff5a0e1c4 hides place.splitter if one of leaves is undisplayed 2019-04-10 23:17:20 +08:00
Jinhao
3716961eb4 small fix that wrong parameter is passed to scan_div 2019-04-10 23:13:37 +08:00
Jinhao
682e92c14d add check for matching numbers of left/right brackets of div-text 2019-04-10 01:19:36 +08:00
Jinhao
d931ebb61c filter out the middle and right button for item selection(#413) 2019-04-10 00:41:04 +08:00
Jinhao
a4c3784efe fix bug that wd.find_window unexpectedly returns
wd.find_window unexpectedly returns a wrong handle if captured window
ignores children windows.
2019-04-03 23:59:12 +08:00
Jinhao
6b8a898239 improve fix 73c68def7ec2bb7d3af1a4370209cb862f66b408 2019-04-02 01:19:07 +08:00
Jinhao
73c68def7e fix bug that child widgets may not be updated during event handling 2019-04-01 06:25:18 +08:00
Jinhao
5803395b7e improve place.modify
it is allowed to modify a field with a new div-text which contains an existing
name in the field being modified
2019-03-31 12:44:22 +08:00
Jinhao
bd01cb447e fix bug that mouse wheel when displaying a msgbox(#411) 2019-03-24 20:03:45 +08:00
Jinhao
01b7f6ff09 add lexically_normal and weakly_canonical to nana.fs 2019-03-22 06:11:24 +08:00
Jinhao
6c7211e77d Merge branch 'qPCR4vir-folderbox_weakly_canonical' into hotfix-1.7 2019-03-21 22:31:40 +08:00
Jinhao
71e3f9de80 Merge branch 'folderbox_weakly_canonical' of https://github.com/qPCR4vir/nana into qPCR4vir-folderbox_weakly_canonical 2019-03-21 22:30:16 +08:00
qPCR4vir
db0812fdab nana hotfix point to nana-demo hotfix. 2019-03-20 17:26:38 +01:00
Vina Rodriguez
83eab4ba63 use gcc 8 to have weakly_canonical in travis ? 2019-03-19 20:26:42 +01:00
Vina Rodriguez
ea3082239b implement filesystem path stem() in nana 2019-03-19 20:04:31 +01:00
Vina Rodriguez
2b6c8e0180 fix crash by using empty path to initialize folderbox with fs canonical() which don't exist 2019-03-19 20:00:55 +01:00
Jinhao
7ba93f2164 add contribution description 2019-03-14 06:31:52 +08:00
Jinhao
8a552910c6 Merge branch 'ErrorFlynn-hotfix-1.7' into hotfix-1.7 2019-03-14 06:25:35 +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
ErrorFlynn
40085f24cc
Merge pull request #3 from cnjinhao/hotfix-1.7
Hotfix 1.7 sync
2019-03-12 11:21:49 -04:00
Jinhao
b0392bfa3c fix missing noexcept 2019-03-12 04:09:13 +08:00
Jinhao
beb87fe45b Merge branch 'develop-1.7' 2019-03-11 22:52:19 +08:00
Jinhao
f8604c06c8 improve jpeg check 2019-03-09 22:55:37 +08:00
Jinhao
2470848fba Merge branch 'hotfix-1.6.2' into develop-1.7 2019-03-09 21:54:57 +08:00
Jinhao
bc6773c15c Merge branch 'ErrorFlynn-hotfix-1.6.2' into hotfix-1.6.2 2019-03-09 21:35:05 +08:00
Jinhao
0d96fcc097 refactoring general events 2019-03-09 18:12:47 +08:00
Jinhao
2abae1dd68 refactoring 2019-03-08 06:11:21 +08:00
ErrorFlynn
845dda8c3e
corrected wrong offset for "Exif" bytes 2019-03-07 12:42:59 -05:00
ErrorFlynn
fd8261c6a2
fix for issue #399 2019-03-07 04:36:27 -05:00
Jinhao
0a3fb34e09 use std::filesystem::path instead of std::string 2019-03-07 01:10:02 +08:00
Jinhao
051525fc6f Merge branch 'ErrorFlynn-develop-1.7' into develop-1.7 2019-03-06 00:30:04 +08:00
ErrorFlynn
26ae1bf32e
OFN_FILEMUSTEXIST for filebox in open mode
When the user types in the name of a nonexistent file, or selects a file and then changes the folder, the `OFN_FILEMUSTEXIST` flag causes the dialog box to pop up a warning message box when the user clicks the "Open" button, instead of closing and returning a nonexistent path.
2019-03-05 08:33:05 -05:00
Jinhao
92ae306994 small change 2019-03-05 03:37:01 +08:00
Jinhao
ed550480c1 Merge branch 'beru-text_editor_handle_end_key' into develop-1.7 2019-03-04 22:08:48 +08:00
Jinhao
3b00ef8008 Merge branch 'text_editor_handle_end_key' of https://github.com/beru/nana into beru-text_editor_handle_end_key 2019-03-04 22:08:30 +08:00
Jinhao
cbd337d283 Merge branch 'beru-develop-1.7' into develop-1.7 2019-03-04 22:06:53 +08:00