mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Improved support for loading files, and support for file drop
This commit is contained in:
@@ -24,15 +24,14 @@ namespace SystemToolkit
|
||||
// builds the OS dependent complete file name for a settings file
|
||||
std::string settings_prepend_path(const std::string& basefilename);
|
||||
|
||||
// extract the base file name from a full URI (e.g. file:://home/me/toto.mpg -> toto)
|
||||
// extract the base filename from a full path / URI (e.g. file:://home/me/toto.mpg -> toto)
|
||||
std::string base_filename(const std::string& filename);
|
||||
|
||||
// extract the path of a file from a full URI (e.g. file:://home/me/toto.mpg -> file:://home/me/)
|
||||
// extract the path of a filename from a full URI (e.g. file:://home/me/toto.mpg -> file:://home/me/)
|
||||
std::string path_filename(const std::string& filename);
|
||||
|
||||
|
||||
std::string path_to_uri(const std::string& path);
|
||||
std::string uri_to_path(const std::string& uri);
|
||||
// extract the extension of a filename
|
||||
std::string extension_filename(const std::string& filename);
|
||||
|
||||
// true of file exists
|
||||
bool file_exists(const std::string& path);
|
||||
|
||||
Reference in New Issue
Block a user