821 Commits

Author SHA1 Message Date
Jinhao
c66895ead6 apply C++17 folding expression 2017-12-20 11:53:29 +08:00
Jinhao
9d75d15474 add detection of C++17 folding experssion 2017-12-20 01:28:05 +08:00
Jinhao
5f77c73aaa no throw() 2017-12-19 03:30:38 +08:00
Jinhao
486e75f3ae apply constexpr if 2017-12-18 22:13:03 +08:00
Jinhao
1e551f4e55 add check for C++17 constexpr if 2017-12-18 22:10:01 +08:00
qPCR4vir
5f947d5ec8 convenient generic_u8string(path) as workaround Boost not having path.generic_u8string()
- a good point for http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0251r0.pdf
2017-12-03 01:57:27 +01:00
qPCR4vir
16f835e083 enable directory_iterator range-based for statements while using Boost 2017-12-03 01:55:41 +01:00
qPCR4vir
d5d1ba3c9e Merge remote-tracking branch 'cnjinhao/develop' into develop
# Conflicts:
#	build/vc2017/nana.vcxproj.filters
2017-12-03 00:55:27 +01: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
dddd704786 Merge branch 'hotfix-1.5.5' into feature-listbox 2017-11-22 03:54:49 +08:00
Jinhao
b71427334a listbox header font 2017-11-21 17:20:47 +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
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
qPCR4vir
d889db7c1e Merge remote-tracking branch 'cnjinhao/develop' into develop 2017-10-20 02:08:36 +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
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
28e9bb8a7d fix some legacy issues 2017-09-30 07:19:15 +08:00
Ac
d86a8cfad2 use std::thread if gcc is compiled with c++11 threading support
NANA_CMAKE_ENABLE_MINGW_STD_THREADS_WITH_MEGANZ option must still be enabled but mingw.thread.h and mingw.mutex.h will be ignored if _GLIBCXX_HAS_GTHREADS is defined
2017-09-29 11:06:22 +09:00
Jinhao
d715c87d93 correct the process of failure of resizing a window 2017-09-28 08:29:19 +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
cnjinhao
bb47cdc6c9 fix bug that DEL key is incorrect in key_press/key_release(#259) 2017-09-22 15:47:12 +08:00
Jinhao
dbc9bc55ff fix bug that fast clicking a spinbox doesn't change the value(#257) 2017-09-18 23:36:40 +08:00
qPCR4vir
3b454cc2c5 minor doxygen changes 2017-09-14 19:39:56 +02:00
qPCR4vir
e5fe759c7d Merge remote-tracking branch 'cnjinhao/hotfix-1.5.5' into hotfix-1.5.4 2017-09-07 12:36:50 +02:00
qPCR4vir
252b8cbf65 #if __has_include(<mutex>) 2017-09-07 12:32:53 +02:00
qPCR4vir
5549b6c21e Merge remote-tracking branch 'cnjinhao/develop' into develop 2017-09-05 00:15:31 +02:00
Jinhao
905443eba1 Merge branch 'hotfix-1.5.4' into develop 2017-09-05 05:04:20 +08:00
Jinhao
dd5bb86514 refactor menubar 2017-09-05 04:57:35 +08:00
Jinhao
2974fe2137 add event filter contributed by A2Razor 2017-09-01 22:57:12 +08:00
Jinhao
fba4097851 refactor menubar 2017-08-31 02:57:34 +08:00
Jinhao
64899a3d6a add functions to menubar for auto-close when mouse leave 2017-08-28 21:09:04 +08:00
Jinhao
ec9ec611b4 refactor drawing of shortkey underline 2017-08-27 10:32:56 +08:00
Jinhao
4e18d81f90 fix bug that listbox incorrect scrolls if content is sorted(#245) 2017-08-24 05:49:19 +08:00
qPCR4vir
e1c1976e2f Merge remote-tracking branch 'cnjinhao/develop' into develop 2017-08-21 09:11:20 +02:00
Jinhao
c025f01f5e refactor 2017-08-12 12:29:58 +08:00
Jinhao
d4a815c8cc refactor 2017-08-11 22:50:44 +08:00
Jinhao
752a26e795 Merge branch 'hotfix-1.5.4' into develop 2017-08-11 22:43:28 +08:00
Jinhao
a21a5e940d fix comment 2017-08-06 09:47:01 +08:00
Jinhao
a2ba2cfaec add progress scheme 2017-08-05 17:05:49 +08:00
Jinhao
12843da679 improve listbox model_guard exception information 2017-08-02 00:14:39 +08:00
James Bremner
953450a868 Inputbox set minimum width entry field 2017-07-27 11:15:53 -04:00
qPCR4vir
b7fec184aa Merge remote-tracking branch 'cnjinhao/develop' into develop 2017-07-25 22:32:09 +02:00