20 Commits

Author SHA1 Message Date
Jinhao
5acbbf548e refactoring and fix
fix a potential dead-lock caused by timer
2019-07-10 04:25:00 +08:00
Jinhao
975993ff33 refactor types(#450) 2019-06-26 05:05:05 +08:00
beru
a596c7f64e fix typos 2019-04-14 14:49:01 +09: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
9548b87f54 fix memory leak that widgets wouldn't be deleted 2017-04-28 04:18:39 +08:00
Jinhao
4e9646cf64 unify semantics of the blend methods 2017-04-15 11:30:16 +08:00
Jinhao
9ed5e81ca2 fix the revertable lock of window_manager 2016-10-19 02:58:49 +08:00
Jinhao
116787072f Merge branch 'hotfix-1.3' into develop 2016-04-18 15:16:03 +08:00
Pr0curo
6540142e29 change includes
using the right includes to avoid the mess with the missing  threading library support of mingw
2016-03-16 09:24:22 +01:00
Jinhao
6b6b527007 eliminate -Wextra and -pedantic warnings 2016-03-15 15:46:28 +08:00
qPCR4vir
2c04ba7bf3 all demos added because exec() don't need main form to exit_all 2016-03-05 03:17:49 +01:00
qPCR4vir
7125ab8f48 exit_all 2016-03-04 23:54:42 +01:00
qPCR4vir
80af0b9a33 -#define NANA_AUTOMATIC_GUI_TESTING 2016-03-04 01:04:48 +01:00
qPCR4vir
594fee571b tested 2016-03-04 01:00:28 +01:00
qPCR4vir
39dab0f126 cleanup and document GUI testing 2016-03-04 00:44:48 +01:00
qPCR4vir
9c148a86a2 Wait_or_not 2016-03-02 15:29:38 +01:00
qPCR4vir
3184022bf1 wait and close 2016-03-02 14:08:14 +01:00
qPCR4vir
976b5ec275 explore automatic GUI testing in VS2015, cmake and travis
local works vary good in windows with VS2015
2016-03-01 18:59:57 +01:00
Jinhao
1b5aed2e5f code reviews 2015-10-13 01:38:53 +08:00
cnjinhao
d0a317bd45 first init of 0.9 2014-12-11 03:32:35 +08:00