45 Commits

Author SHA1 Message Date
Jinhao
b0392bfa3c fix missing noexcept 2019-03-12 04:09:13 +08:00
Jinhao
0a3fb34e09 use std::filesystem::path instead of std::string 2019-03-07 01:10:02 +08:00
Jinhao
bf27549beb fix nana filesystem 2019-02-23 00:52:21 +08:00
Jinhao
fb7a16bc61 use std::filesystem instead of std::experimental::filesystem 2018-12-15 10:48:16 +08:00
Jinhao
3f446e9a0c add directory_options 2018-12-12 00:18:07 +08:00
Jinhao
c09e7b7ba6 improve nana.filesystem 2018-12-10 07:22:16 +08:00
Jinhao
a9f23e2503 Merge branch 'develop-c++17' into develop 2018-06-04 02:29:55 +08:00
Jinhao
734479562e update project information 2018-05-11 16:29:15 +08: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
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
880a91b717 fix a bug that incorrect BMP header processing(#179) 2017-01-15 20:45:14 +08:00
Jinhao
1845b41019 remove filesystem_selector 2016-06-27 00:35:04 +08:00
qPCR4vir
82d999ecf2 FIX filebox in linux with fs_ext 2016-06-25 03:18:17 +02:00
qPCR4vir
4450ff9678 FIX crash in VS consistently using filesysten_ext 2016-06-24 23:48:53 +02:00
qPCR4vir
3b6718d67f using explicit namespaces 2016-06-24 14:22:04 +02:00
Jinhao
6b6b527007 eliminate -Wextra and -pedantic warnings 2016-03-15 15:46:28 +08:00
qPCR4vir
d335f34a6c truly empty? in filesystem_ext 2016-02-26 16:47:53 +01:00
qPCR4vir
aad9e77804 a few more std features in filesystem 2016-02-25 19:18:40 +01:00
qPCR4vir
2e8b9264bf fix compiler error noexeption 2016-02-19 14:43:14 +01:00
qPCR4vir
9f430f7220 more standard features for filesystem 2016-02-19 14:42:22 +01:00
qPCR4vir
9e686eb5d6 cleanup use of namespace filesystem 2016-02-18 10:54:14 +01:00
Jinhao
5e09cf1aef add a check for support of C++11 inline namespace 2016-02-17 00:32:15 +08:00
qPCR4vir
9f3060f912 nana::experimental::filesystem 2016-02-14 05:23:31 +01:00
qPCR4vir
3f8aab22cf filesystem inline v1 + generic_string 2016-02-14 05:04:24 +01:00
Jinhao
325961a277 remove utf8_cast functions 2016-01-22 00:46:10 +08:00
Jinhao
ece696c3b5 update filesystem and remove fs_utility 2016-01-20 01:06:16 +08:00
Jinhao
8d2ec2fbd1 update experimental::filesystem and remove file_iterator 2016-01-19 01:34:07 +08:00
Jinhao
70ecce5962 remove some useless trait classes 2016-01-06 00:23:27 +08:00
Jinhao
7d7cce8d2a add path conversion functions 2016-01-05 01:11:15 +08:00
Jinhao
a42ebe19b4 use UTF-8 for string representation 2015-12-31 01:09:52 +08:00
Jinhao
0a396c12c2 remove filesystem::file_attrib() function 2015-12-30 01:11:07 +08:00
Jinhao
443b3dcd87 update experimental::filesystem 2015-12-29 01:11:03 +08:00
Jinhao
2ca11d4e25 fix compile errors under Linux 2015-12-16 01:21:44 +08:00
Jinhao
b35f293b9e replace string parameter of image's constructor with filesystem::path 2015-11-30 00:58:29 +08:00
Jinhao
c86a00bea5 remove macro STR 2015-11-29 22:38:22 +08:00
Jinhao
94c10c8fba Merge branch 'macos' of https://github.com/BenjaminNavarro/nana into BenjaminNavarro-macos 2015-11-10 23:21:07 +08:00
Benjamin Navarro
a09d5c3c95 Mac OS X support 2015-10-11 18:31:30 +02:00
Jinhao
75ee238f34 Merge branch 'master' of https://github.com/htzh/nana into htzh-master 2015-09-27 16:46:07 +08:00
Haitao Zhang
4337222549 Fix return char * when path is expected by explicit cast to
nana::string first.
2015-09-26 18:33:54 -07:00
Pr0curo
1d7781e1a6 fix for gcc/mingw 2015-09-18 17:20:45 +02:00
Jinhao
894e7e61c8 fix compiling errors by using GCC/Clang 2015-07-28 01:53:41 +08:00
qPCR4vir
a42931830f mimic path.filename() 2015-05-28 01:46:37 +02:00
qPCR4vir
f55c54f7b4 filesystem to experimental to avoid conflicts with fs_utillity 2015-05-28 01:44:10 +02:00
qPCR4vir
59f0ace353 mimic enum class perms , more adaption 2015-05-28 01:43:43 +02:00
qPCR4vir
02961f1673 add file_type (from type), bring all from fs_utility and mimic path, and directory_entry 2015-05-28 01:43:28 +02:00