diff --git a/src/OrcaSlicer.cpp b/src/OrcaSlicer.cpp index 992a9c9bc2..e3373418a0 100644 --- a/src/OrcaSlicer.cpp +++ b/src/OrcaSlicer.cpp @@ -141,6 +141,8 @@ using namespace nlohmann; #include "slic3r/GUI/GuiColor.hpp" #include +namespace fs = boost::filesystem; + #ifdef __WXGTK__ #if __has_include() #include diff --git a/src/dev-utils/OrcaSlicer_profile_validator.cpp b/src/dev-utils/OrcaSlicer_profile_validator.cpp index bbfa53c262..140716c896 100644 --- a/src/dev-utils/OrcaSlicer_profile_validator.cpp +++ b/src/dev-utils/OrcaSlicer_profile_validator.cpp @@ -58,6 +58,8 @@ #include #include +namespace fs = boost::filesystem; + using namespace Slic3r; namespace po = boost::program_options; diff --git a/src/libslic3r/Format/STEP.cpp b/src/libslic3r/Format/STEP.cpp index 611648bc5a..71eb846b6a 100644 --- a/src/libslic3r/Format/STEP.cpp +++ b/src/libslic3r/Format/STEP.cpp @@ -60,6 +60,8 @@ #include "BRepTools.hxx" #include +namespace fs = boost::filesystem; + namespace Slic3r { diff --git a/src/libslic3r/Format/STEP.hpp b/src/libslic3r/Format/STEP.hpp index 5563a690c8..a043412469 100644 --- a/src/libslic3r/Format/STEP.hpp +++ b/src/libslic3r/Format/STEP.hpp @@ -17,7 +17,6 @@ #include #include -namespace fs = boost::filesystem; namespace Slic3r { @@ -104,7 +103,7 @@ public: MESH_SUCCESS, MESH_ERROR }; - Step(fs::path path, ImportStepProgressFn stepFn = nullptr, StepIsUtf8Fn isUtf8Fn = nullptr); + Step(boost::filesystem::path path, ImportStepProgressFn stepFn = nullptr, StepIsUtf8Fn isUtf8Fn = nullptr); Step(std::string path, ImportStepProgressFn stepFn = nullptr, StepIsUtf8Fn isUtf8Fn = nullptr); ~Step(); Step_Status load(); diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index 2b0f254b43..7f7b18b315 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -133,6 +133,8 @@ using namespace std::literals::string_view_literals; #include +namespace fs = boost::filesystem; + namespace Slic3r { //! macro used to mark string used at localization, diff --git a/src/libslic3r/Preset.cpp b/src/libslic3r/Preset.cpp index 5c87b6b03e..321fab6310 100644 --- a/src/libslic3r/Preset.cpp +++ b/src/libslic3r/Preset.cpp @@ -87,6 +87,8 @@ #include "PlaceholderParser.hpp" #include "libslic3r/GCode/Thumbnails.hpp" +namespace fs = boost::filesystem; + using boost::property_tree::ptree; namespace Slic3r { diff --git a/src/libslic3r/PresetBundle.hpp b/src/libslic3r/PresetBundle.hpp index 46d81a9052..31ed101803 100644 --- a/src/libslic3r/PresetBundle.hpp +++ b/src/libslic3r/PresetBundle.hpp @@ -470,8 +470,8 @@ public: // Orca: Bundle metadata and cached preset names // std::map m_bundles; - fs::path dir_user_presets_local; - fs::path dir_user_presets_subscribed; + boost::filesystem::path dir_user_presets_local; + boost::filesystem::path dir_user_presets_subscribed; PresetBundleMetadata bundles; struct ObsoletePresets diff --git a/src/libslic3r/Print.cpp b/src/libslic3r/Print.cpp index bb91441c79..6dc8811e0e 100644 --- a/src/libslic3r/Print.cpp +++ b/src/libslic3r/Print.cpp @@ -102,6 +102,8 @@ #include +namespace fs = boost::filesystem; + using namespace nlohmann; // Mark string for localization and translate. diff --git a/src/slic3r/GUI/Auxiliary.cpp b/src/slic3r/GUI/Auxiliary.cpp index 956417016c..cc30da4b4a 100644 --- a/src/slic3r/GUI/Auxiliary.cpp +++ b/src/slic3r/GUI/Auxiliary.cpp @@ -65,6 +65,8 @@ #include "MainFrame.hpp" #include "Widgets/Label.hpp" +namespace fs = boost::filesystem; + namespace Slic3r { namespace GUI { wxDEFINE_EVENT(EVT_AUXILIARY_IMPORT, wxCommandEvent); diff --git a/src/slic3r/GUI/Auxiliary.hpp b/src/slic3r/GUI/Auxiliary.hpp index 442d4d0718..c7fb89f920 100644 --- a/src/slic3r/GUI/Auxiliary.hpp +++ b/src/slic3r/GUI/Auxiliary.hpp @@ -99,7 +99,7 @@ public: bool m_cover{false}; wxStaticText* m_text_name {nullptr}; ::TextInput* m_input_name {nullptr}; - fs::path m_file_path; + boost::filesystem::path m_file_path; wxString m_add_file; wxString m_file_name; wxString cover_text_left; @@ -116,7 +116,7 @@ public: ScalableBitmap m_bitmap_txt; public: - AuFile(wxWindow *parent, fs::path file_path, wxString file_name, AuxiliaryFolderType type, wxWindowID id = wxID_ANY, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxTAB_TRAVERSAL); + AuFile(wxWindow *parent, boost::filesystem::path file_path, wxString file_name, AuxiliaryFolderType type, wxWindowID id = wxID_ANY, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, long style = wxTAB_TRAVERSAL); void enter_rename_mode(); void exit_rename_mode(); void OnPaint(wxPaintEvent &evt); @@ -164,7 +164,7 @@ public: void clear(); void update_cover(); - void update(std::vector paths); + void update(std::vector paths); void msw_rescale(); public: @@ -240,7 +240,7 @@ public: bool Show(bool show); // core logic - std::map> m_paths_list; + std::map> m_paths_list; wxString m_root_dir; void init_auxiliary(); void create_folder(wxString name = wxEmptyString); diff --git a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp index 832fab7d6f..2022722da7 100644 --- a/src/slic3r/GUI/AuxiliaryDataViewModel.cpp +++ b/src/slic3r/GUI/AuxiliaryDataViewModel.cpp @@ -21,6 +21,8 @@ #include #include +namespace fs = boost::filesystem; + const static std::array s_default_folders = { _L("Model Pictures"), _L("Bill of Materials"), diff --git a/src/slic3r/GUI/ConfigWizard.cpp b/src/slic3r/GUI/ConfigWizard.cpp index 945e88cc45..2ff1dd0ee3 100644 --- a/src/slic3r/GUI/ConfigWizard.cpp +++ b/src/slic3r/GUI/ConfigWizard.cpp @@ -83,6 +83,8 @@ #include "UnsavedChangesDialog.hpp" #include "MainFrame.hpp" +namespace fs = boost::filesystem; + #if defined(__linux__) && defined(__WXGTK3__) #define wxLinux_gtk3 true #else diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 9d60a0bf9a..290f1dc4ca 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -108,6 +108,8 @@ #include "IPrinterAgent.hpp" +namespace fs = boost::filesystem; + #define CALI_DEBUG #define MINUTE_30 1800000 //ms #define TIME_OUT 5000 //ms diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index ac66e1b988..639905a31b 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -58,6 +58,8 @@ #include "libslic3r/Print.hpp" #include "libslic3r/Utils.hpp" +namespace fs = boost::filesystem; + namespace Slic3r { class AppConfig; diff --git a/src/slic3r/GUI/HMS.cpp b/src/slic3r/GUI/HMS.cpp index 5a37823092..a210a99656 100644 --- a/src/slic3r/GUI/HMS.cpp +++ b/src/slic3r/GUI/HMS.cpp @@ -25,6 +25,8 @@ #include #include +namespace fs = boost::filesystem; + static const char* HMS_PATH = "hms"; static const char* HMS_LOCAL_IMG_PATH = "hms/local_image"; diff --git a/src/slic3r/GUI/Jobs/PrintJob.cpp b/src/slic3r/GUI/Jobs/PrintJob.cpp index 265014c7e4..d1e803c5a7 100644 --- a/src/slic3r/GUI/Jobs/PrintJob.cpp +++ b/src/slic3r/GUI/Jobs/PrintJob.cpp @@ -35,6 +35,9 @@ #include #include "slic3r/GUI/DeviceCore/DevStorage.h" #include +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Jobs/SendJob.cpp b/src/slic3r/GUI/Jobs/SendJob.cpp index 9a155e6a85..0aa0dd98c6 100644 --- a/src/slic3r/GUI/Jobs/SendJob.cpp +++ b/src/slic3r/GUI/Jobs/SendJob.cpp @@ -20,6 +20,9 @@ #include #include #include +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Jobs/UpgradeNetworkJob.cpp b/src/slic3r/GUI/Jobs/UpgradeNetworkJob.cpp index d5cb7f4aae..d0ee87668a 100644 --- a/src/slic3r/GUI/Jobs/UpgradeNetworkJob.cpp +++ b/src/slic3r/GUI/Jobs/UpgradeNetworkJob.cpp @@ -11,6 +11,8 @@ #include "libslic3r/Utils.hpp" #include +namespace fs = boost::filesystem; + namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/PartSkipDialog.cpp b/src/slic3r/GUI/PartSkipDialog.cpp index 7d7b4a0635..a423802a6c 100644 --- a/src/slic3r/GUI/PartSkipDialog.cpp +++ b/src/slic3r/GUI/PartSkipDialog.cpp @@ -62,6 +62,8 @@ #include "DeviceCore/DevManager.h" +namespace fs = boost::filesystem; + namespace Slic3r { namespace GUI { extern wxString hide_passwd(wxString url, std::vector const &passwords); diff --git a/src/slic3r/GUI/Plater.hpp b/src/slic3r/GUI/Plater.hpp index 17534ebf7d..77aff736f0 100644 --- a/src/slic3r/GUI/Plater.hpp +++ b/src/slic3r/GUI/Plater.hpp @@ -376,8 +376,8 @@ public: // BBS: check snapshot bool up_to_date(bool saved, bool backup); - bool open_3mf_file(const fs::path &file_path); - int get_3mf_file_count(std::vector paths); + bool open_3mf_file(const boost::filesystem::path &file_path); + int get_3mf_file_count(std::vector paths); void add_file(); // Returns false when no object was added (e.g. the user cancelled the load dialog). bool add_model(bool imperial_units = false, std::string fname = ""); diff --git a/src/slic3r/GUI/PrivacyUpdateDialog.cpp b/src/slic3r/GUI/PrivacyUpdateDialog.cpp index 4e2d4053a8..fb4ae5ac45 100644 --- a/src/slic3r/GUI/PrivacyUpdateDialog.cpp +++ b/src/slic3r/GUI/PrivacyUpdateDialog.cpp @@ -21,6 +21,9 @@ #include #include #include +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Project.cpp b/src/slic3r/GUI/Project.cpp index d8e7d6b806..07c04371e8 100644 --- a/src/slic3r/GUI/Project.cpp +++ b/src/slic3r/GUI/Project.cpp @@ -57,6 +57,8 @@ #include "MainFrame.hpp" #include +namespace fs = boost::filesystem; + namespace Slic3r { namespace GUI { wxDEFINE_EVENT(EVT_PROJECT_RELOAD, wxCommandEvent); diff --git a/src/slic3r/GUI/ReleaseNote.cpp b/src/slic3r/GUI/ReleaseNote.cpp index a65e39787c..fd8c0bad2c 100644 --- a/src/slic3r/GUI/ReleaseNote.cpp +++ b/src/slic3r/GUI/ReleaseNote.cpp @@ -70,6 +70,9 @@ #include "DeviceCore/DevStorage.h" #include "../Utils/Http.hpp" #include "md4c/src/md4c-html.h" +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 6855a42d77..2fe8d416c6 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -120,6 +120,9 @@ #include "Notebook.hpp" #include "BitmapCache.hpp" #include "BindDialog.hpp" +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/SendMultiMachinePage.cpp b/src/slic3r/GUI/SendMultiMachinePage.cpp index 87b68d1ddd..809a8b4715 100644 --- a/src/slic3r/GUI/SendMultiMachinePage.cpp +++ b/src/slic3r/GUI/SendMultiMachinePage.cpp @@ -61,6 +61,9 @@ #include "DeviceCore/DevManager.h" #include "DeviceCore/DevStorage.h" +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/SendToPrinter.cpp b/src/slic3r/GUI/SendToPrinter.cpp index 3ab630b404..370baf29d1 100644 --- a/src/slic3r/GUI/SendToPrinter.cpp +++ b/src/slic3r/GUI/SendToPrinter.cpp @@ -77,6 +77,9 @@ #include "DeviceCore/DevStorage.h" #include "libslic3r_version.h" #include "slic3r/Utils/FileTransferUtils.hpp" +#include + +namespace fs = boost::filesystem; namespace Slic3r { diff --git a/src/slic3r/GUI/SyncAmsInfoDialog.cpp b/src/slic3r/GUI/SyncAmsInfoDialog.cpp index f4c46c4a5c..67efdd6ff7 100644 --- a/src/slic3r/GUI/SyncAmsInfoDialog.cpp +++ b/src/slic3r/GUI/SyncAmsInfoDialog.cpp @@ -78,6 +78,8 @@ #include "DeviceCore/DevStorage.h" #include "FilamentBitmapUtils.hpp" +namespace fs = boost::filesystem; + using namespace Slic3r; using namespace Slic3r::GUI; diff --git a/src/slic3r/GUI/WebGuideDialog.cpp b/src/slic3r/GUI/WebGuideDialog.cpp index 350dd9d4be..5fb8d716cb 100644 --- a/src/slic3r/GUI/WebGuideDialog.cpp +++ b/src/slic3r/GUI/WebGuideDialog.cpp @@ -79,6 +79,8 @@ #include #include "CreatePresetsDialog.hpp" +namespace fs = boost::filesystem; + using namespace nlohmann; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Widgets/MultiNozzleSync.cpp b/src/slic3r/GUI/Widgets/MultiNozzleSync.cpp index bbaf2cb3b3..2fe66de8de 100644 --- a/src/slic3r/GUI/Widgets/MultiNozzleSync.cpp +++ b/src/slic3r/GUI/Widgets/MultiNozzleSync.cpp @@ -52,6 +52,9 @@ #include #include #include +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/src/slic3r/GUI/Widgets/WebView.cpp b/src/slic3r/GUI/Widgets/WebView.cpp index c446875d1f..ec10dd03b3 100644 --- a/src/slic3r/GUI/Widgets/WebView.cpp +++ b/src/slic3r/GUI/Widgets/WebView.cpp @@ -34,6 +34,9 @@ #include #include #include +#include + +namespace fs = boost::filesystem; #if defined(__WIN32__) || defined(__WXMAC__) #include "wx/private/jsscriptwrapper.h" #endif diff --git a/src/slic3r/GUI/WipeTowerDialog.cpp b/src/slic3r/GUI/WipeTowerDialog.cpp index 51fcb8f613..791271689d 100644 --- a/src/slic3r/GUI/WipeTowerDialog.cpp +++ b/src/slic3r/GUI/WipeTowerDialog.cpp @@ -40,6 +40,9 @@ #include "libslic3r/Config.hpp" #include "Widgets/Label.hpp" #include "MainFrame.hpp" +#include + +namespace fs = boost::filesystem; using namespace Slic3r; using namespace Slic3r::GUI; diff --git a/src/slic3r/Utils/CalibUtils.cpp b/src/slic3r/Utils/CalibUtils.cpp index 82686cb7c7..f0fcdd53e6 100644 --- a/src/slic3r/Utils/CalibUtils.cpp +++ b/src/slic3r/Utils/CalibUtils.cpp @@ -58,6 +58,9 @@ #include "slic3r/GUI/OpenGLManager.hpp" #include #include "slic3r/GUI/Jobs/PrintJob.hpp" +#include + +namespace fs = boost::filesystem; namespace Slic3r { namespace GUI { diff --git a/tests/libslic3r/test_config.cpp b/tests/libslic3r/test_config.cpp index bb51735bfe..7a23f103ac 100644 --- a/tests/libslic3r/test_config.cpp +++ b/tests/libslic3r/test_config.cpp @@ -29,6 +29,8 @@ #include #include +namespace fs = boost::filesystem; + using namespace Slic3r; SCENARIO("Generic config validation performs as expected.", "[Config]") {