61 Commits

Author SHA1 Message Date
f510771686 Replaced some u8string() with string() to fix compilation with C++ 20/23. 2025-01-12 13:18:15 +01:00
qPCR4vir
a8b5e92947 using nana filesystem 2019-11-05 21:00:33 +01:00
Zaha Mihai
7c442360ba
Fix inconsistency regarding filebox multi_select
When only one file is selected, the lpstrFile variable contains only the path to that file, without the parent path before that, thus, the targets vector is empty and the path variable contains the actual path to the file. This is inconsistent with the scenario where multiple files are selected, in which targets contains the file paths and path contains the parent directory path.
2019-09-01 17:53:23 +03:00
Jinhao
e5a935ab83 fix bug that filebox single selection fails on Linux 2019-06-18 08:23:54 +08:00
Jinhao
f274ff4c4c Merge branch 'develop' of https://github.com/beru/nana into beru-develop 2019-04-16 23:39:40 +08:00
beru
a596c7f64e fix typos 2019-04-14 14:49:01 +09: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
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
71f57bbf92 refactor filebox and folderbox 2019-02-28 07:38:13 +08:00
Jinhao
29cee29f5f refactor folderbox and filebox 2019-02-26 04:24:40 +08:00
Jinhao
bbc39906c0 remove deprecated code and debug code 2019-02-15 06:27:17 +08:00
Jinhao
b0201a5c23 Multiple file selection with filebox on Linux
based on beru's PR(#349)
2019-01-27 06:19:18 +08:00
Jinhao
bd472a8c46 Merge branch 'filebox_allow_multi_select' of https://github.com/beru/nana into beru-filebox_allow_multi_select 2019-01-18 00:54:01 +08:00
Jinhao
186b76e765 improve filebox appearance on Linux 2018-12-13 06:43:11 +08:00
Jinhao
a2cda83019 refactor shared_icons 2018-12-12 00:39:54 +08:00
Jinhao
c09e7b7ba6 improve nana.filesystem 2018-12-10 07:22:16 +08:00
Jinhao
32c03b49aa Merge branch 'cmake-dev' of https://github.com/qPCR4vir/nana into qPCR4vir-cmake-dev 2018-12-07 06:49:05 +08:00
Katsuhisa Yuasa
b8719f74a8 Allow multiple file selection with nana::filebox on Windows platform 2018-11-01 05:23:48 +09:00
qPCR4vir
c0862ba666 FIX folderbox with canonical make_prefered and add title 2018-10-25 00:56:09 +02:00
besh81
905c583621 fix folderbox init_path
fix folderbox init_path
2018-10-05 11:45:09 +02:00
Jinhao
d6590f88b0 remove the dependency of ole32.lib 2018-06-27 04:26:23 +08:00
Jinhao
a120447716 fix bug that shobjidl.h isn't supported well on MinGW 2018-06-27 02:45:39 +08:00
Jinhao
3075eccacf fix bug that folderbox returns an emtpy path 2018-06-26 08:06:43 +08:00
Jinhao
c0836fbbec new folderbox class 2018-06-20 01:09:56 +08:00
besh81
b00ab1df0f fix filebox.init_file()
Fix filebox.init_file()
2018-02-12 14:48:03 +01: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
cnjinhao
b0a58ed62f fix issue that filebox throws exception when permission denied(#251) 2017-09-11 15:54:42 +08:00
cnjinhao
8cb29a1617 fix issue that filebox incorrectly loads folder tree on Linux 2017-09-11 14:42:20 +08:00
Jinhao
0b4dc1904b fix compiler errors/warnings for clang 5.0 2017-06-11 11:33:52 +08:00
Jinhao
afc97ab230 Merge branch 'hotfix-1.4.1' into develop 2017-03-20 06:39:24 +08:00
Jinhao
dcdeba7d2e fix issue that filebox may throw exception(#191) 2017-03-20 06:33:37 +08:00
Jinhao
98f9132aa2 remove legacy typedefs 2017-01-17 07:10:50 +08:00
Jinhao
a298c00ede add on_missing handler to the i18n 2016-12-13 06:12:12 +08:00
Jinhao
8fef9916a9 fix filebox warning bug that occurs on Linux 2016-11-28 06:23:18 +08:00
Jinhao
738178dec3 fix freezing of filebox when opens in other thread 2016-11-14 06:57:42 +08:00
Jinhao
001eac9dbf fix a filebox error under Linux
fixed by buckyeh
2016-09-02 01:06:33 +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
qPCR4vir
9f3060f912 nana::experimental::filesystem 2016-02-14 05:23:31 +01:00
Jinhao
5a960ed88c a standard experimental class any 2016-01-25 23:56:05 +08:00
Jinhao
325961a277 remove utf8_cast functions 2016-01-22 00:46:10 +08:00
Jinhao
920a1fe490 fix compile errors with GCC/Clang 2016-01-20 14:40:57 +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
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