995 Commits

Author SHA1 Message Date
5cript
1781e77e39 Added convenient proxy, that allows the user to disable items directly after creation. 2018-01-26 02:36:10 +01:00
unitrunker
80dcc96da4 missing header file for strcpy. 2018-01-23 18:44:52 -06:00
unitrunker
4415ba4ca0 nana::system::open_url actually works (with limitations). 2018-01-22 20:23:41 -06:00
unitrunker
796e5a4924 static for potentially easier use elsewhere. 2018-01-22 20:22:10 -06:00
unitrunker
bf0228487b Deal with possible BOM (dont assume BOM always there). 2018-01-22 14:52:10 -06:00
unitrunker
f2baba7c77 More thread_t fixes (dont use a 32 bit type to hold a 64 bit handle). 2018-01-22 11:46:29 -06:00
unitrunker
e9c381e1de Unicode fix for using iconv on little-endian machines. 2018-01-21 23:53:09 -06:00
unitrunker
c7434afed8 NANA_POSIX for bits common to Linux, MacOS and BSD. OSS sound as fall-back for POSIX. Cheat for detecting default browser on POSIX. 2018-01-21 23:41:52 -06:00
Jinhao
08077a9845 fix bug that wrong listbox selection after sorting 2018-01-13 13:08:43 +08:00
Jinhao
c80b4ce484 improve visualization of group caption 2018-01-13 13:07:40 +08:00
Jinhao
48be0b4b07 improve visualization of group caption 2018-01-13 10:49:37 +08:00
Jinhao
196d0bf351 Merge branch 'hotfix-1.5.6' into feature-listbox 2018-01-07 04:20:52 +08:00
Jinhao
970872c96f fix bug that integer overflow in progress widget 2018-01-07 04:18:23 +08:00
Jinhao
58b7bdf2f7 fix a stackoverflow error 2018-01-03 07:32:21 +08:00
Jinhao
5653bd2416 fix crash where listbox::item_proxy==str 2017-12-13 06:28:12 +08:00
Jinhao
2086f0c258 Merge branch 'boostfix' of https://github.com/pavelxdd/nana into pavelxdd-boostfix 2017-12-01 22:18:13 +08:00
Jinhao
7369b5437c Merge branch 'hotfix-1.5.5' into develop 2017-12-01 17:56:06 +08:00
pavelxdd
7e68068c25 fix compilation with boost::filesystem
CMakeLists.txt:
---------------------------
Until now build with boost::filesystem was completely broken,
since cmake exported definitions with wrong name prefixes, and
nana always defaulted to internal filesystem implementation.

After fixing the boost definitions, a number of errors came up
due to incompatibility of boost::filesystem with nana and std
filesystems. This commit tries to fix them all.

filesystem.cpp, filesystem.hpp, filebox.cpp:
--------------------------------------------
boost::filesystem doesn't have a file_time_type, so declared
it in the filesystem.hpp header.

boost::filesystem::last_write_time has a return type std::time_t
unlike the other two implementations of this function in nana
and std, so added ifdef to convert the result to file_time_type.

fixed build on gcc-4.9, since it doesn't have a std::put_time
function, included <nana/stdc++.hpp> in that case.

boost::filesystem::file_type types have different names than
std::experimental::filesystem::file_type types, fixed it by
creating an enum class file_type with the same type names as
in std::experimental::filesystem::file_type. This fix
requires static_cast from functions results to internal file_type,
since boost file_type and std file_type a different enum classes.

changed switch to if, bacause old gcc fails on converting
enum class members to int.

stdc++.hpp:
-----------
added ifndef guards to prevent errors on multiple includes of this header.

wvl.cpp:
--------
added boost/chrono.hpp include for the cases when std::thread is not
available.

travis:
-------
added boost system, thread, chrono libs to install, they are needed
for the nana-demo to compile.
2017-11-28 06:22:17 +03:00
Jinhao
474ff25426 fix compiler error for Linux 2017-11-24 04:58:59 +08:00
Jinhao
dddd704786 Merge branch 'hotfix-1.5.5' into feature-listbox 2017-11-22 03:54:49 +08:00
Jinhao
bbc2dc2aea rename pixels() to width_px() 2017-11-22 00:29:09 +08:00
Jinhao
b71427334a listbox header font 2017-11-21 17:20:47 +08:00
Jinhao
14cc7cdaa1 fix issue that progress is incorrect when it is resized 2017-11-19 07:04:34 +08:00
Jinhao
77f7bdb37c fix bug that a font lapse after widget resizes 2017-11-14 02:06:48 +08:00
Jinhao
60c85cff52 refactor picture widget 2017-11-06 05:56:08 +08:00
Jinhao
3dc7e3ae5b fix bug where picture throws if image is empty 2017-11-02 17:55:14 +08:00
Jinhao
74f5a8f40b fix caret issue 2017-11-02 16:36:23 +08:00
Jinhao
0796c1540b fix issue that listbox scheme mouse_wheel.lines has no effect 2017-11-01 11:57:52 +08:00
Jinhao
2df2b21830 Merge branch 'xim_cursor_follow' of https://github.com/cjacker/nana into cjacker-xim_cursor_follow 2017-10-29 02:17:26 +08:00
Jinhao
f2e7a4c044 Merge branch 'hotfix-1.5.5' of https://github.com/qPCR4vir/nana into qPCR4vir-hotfix-1.5.5 2017-10-29 02:13:30 +08:00
Cjacker
b7ad2d99e0 Also need to check addr 2017-10-25 15:29:29 +08:00
Cjacker
9379f19c19 Use tab instead of space to match original source format 2017-10-25 15:09:09 +08:00
Cjacker
7c7b0333d4 Fix input method cursor follow issue under X11 2017-10-25 15:03:21 +08:00
qPCR4vir
708152ed78 FEATURE: use width and height instead of weight 2017-10-20 02:11:39 +02:00
Jinhao
94ab3b9f78 fix bug that dropdown list of combox may excess screen 2017-10-20 04:19:35 +08:00
qPCR4vir
cff3ec58d4 Merge remote-tracking branch 'cnjinhao/hotfix-1.5.5' into hotfix-1.5.5 2017-10-19 22:19:11 +02:00
Jinhao
24bbfc6493 small changes 2017-10-17 06:49:39 +08:00
Jinhao
99a0cd2f8d fix issue that listbox selected event behaves incorrectly in single mode
In single selection mode, the selected event is firstly raised for the
deselecting item. It is different from the selected event in
multi-selection mode.
2017-10-17 03:35:04 +08:00
qPCR4vir
2ccfda24d0 Merge remote-tracking branch 'cnjinhao/hotfix-1.5.5' into hotfix-1.5.5 2017-10-10 14:39:31 +02:00
Jinhao
b730f368a4 fix syntax errors 2017-09-30 07:29:27 +08:00
Jinhao
28e9bb8a7d fix some legacy issues 2017-09-30 07:19:15 +08:00
Jinhao
a3cd37b9d5 fix a GCC compiler error 2017-09-28 08:42:11 +08:00
Jinhao
d715c87d93 correct the process of failure of resizing a window 2017-09-28 08:29:19 +08:00
Jinhao
8d9351e051 graphics::make throws std::bad_alloc when it fails 2017-09-27 08:13:55 +08:00
qPCR4vir
c982717012 Merge remote-tracking branch 'cnjinhao/hotfix-1.5.5' into hotfix-1.5.5 2017-09-26 19:24:56 +02:00
Jinhao
ae6ca7a5f5 Merge branch 'master' of https://github.com/wjiali6/nana into wjiali6-master 2017-09-25 21:54:19 +08:00
Mexsut
dcb472cb06 add a native wstring version textbox::append
added a textbox::append which accepts texts in std::wstring
2017-09-25 15:20:38 +08:00
Jinhao
13761be5e9 fix crash where a menubar popups a menu and exits by shortcut(#261) 2017-09-23 07:33:31 +08:00
Jinhao
eec7344c6d fix issue that typing text for spinbox doesn't draw spin buttons border 2017-09-23 07:25:16 +08:00
cnjinhao
bb47cdc6c9 fix bug that DEL key is incorrect in key_press/key_release(#259) 2017-09-22 15:47:12 +08:00