Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-10-25 13:53:31 +0300
committerbubnikv <bubnikv@gmail.com>2017-10-25 13:53:31 +0300
commitee645007f29cd8df4d2f085efb9b61bf958025e9 (patch)
tree3229d255bc7ab5bf93f5c1796492ef293589ddf7 /xs/src/libslic3r/Utils.hpp
parent7308017ee82abc725e5eb7aff26839d3e963b566 (diff)
Another step towards C++ presets.
Diffstat (limited to 'xs/src/libslic3r/Utils.hpp')
-rw-r--r--xs/src/libslic3r/Utils.hpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/xs/src/libslic3r/Utils.hpp b/xs/src/libslic3r/Utils.hpp
index 79e1c2e2e..23dc330a1 100644
--- a/xs/src/libslic3r/Utils.hpp
+++ b/xs/src/libslic3r/Utils.hpp
@@ -8,11 +8,21 @@ extern void trace(unsigned int level, const char *message);
// Set a path with GUI resource files.
void set_var_dir(const std::string &path);
-// Return a path to the GUI resource files.
+// Return a full path to the GUI resource files.
const std::string& var_dir();
-// Return a resource path for a file_name.
+// Return a full resource path for a file_name.
std::string var(const std::string &file_name);
+// Set a path with preset files.
+void set_data_dir(const std::string &path);
+// Return a full path to the GUI resource files.
+const std::string& data_dir();
+// Return a full path to a configuration file given its file name..
+std::string config_path(const std::string &file_name);
+// Return a full path to a configuration file given the section and name.
+// The suffix ".ini" will be added if it is missing in the name.
+std::string config_path(const std::string &section, const std::string &name);
+
extern std::string encode_path(const char *src);
extern std::string decode_path(const char *src);
extern std::string normalize_utf8_nfc(const char *src);