mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-04 22:31:02 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5704fa348f |
@@ -141,6 +141,8 @@ using namespace nlohmann;
|
|||||||
#include "slic3r/GUI/GuiColor.hpp"
|
#include "slic3r/GUI/GuiColor.hpp"
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
#if __has_include(<X11/Xlib.h>)
|
#if __has_include(<X11/Xlib.h>)
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|||||||
@@ -58,6 +58,8 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace Slic3r;
|
using namespace Slic3r;
|
||||||
namespace po = boost::program_options;
|
namespace po = boost::program_options;
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,8 @@
|
|||||||
#include "BRepTools.hxx"
|
#include "BRepTools.hxx"
|
||||||
#include <IMeshTools_Parameters.hxx>
|
#include <IMeshTools_Parameters.hxx>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace fs = boost::filesystem;
|
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
@@ -104,7 +103,7 @@ public:
|
|||||||
MESH_SUCCESS,
|
MESH_SUCCESS,
|
||||||
MESH_ERROR
|
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(std::string path, ImportStepProgressFn stepFn = nullptr, StepIsUtf8Fn isUtf8Fn = nullptr);
|
||||||
~Step();
|
~Step();
|
||||||
Step_Status load();
|
Step_Status load();
|
||||||
|
|||||||
@@ -133,6 +133,8 @@ using namespace std::literals::string_view_literals;
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
//! macro used to mark string used at localization,
|
//! macro used to mark string used at localization,
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
#include "PlaceholderParser.hpp"
|
#include "PlaceholderParser.hpp"
|
||||||
#include "libslic3r/GCode/Thumbnails.hpp"
|
#include "libslic3r/GCode/Thumbnails.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using boost::property_tree::ptree;
|
using boost::property_tree::ptree;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|||||||
@@ -470,8 +470,8 @@ public:
|
|||||||
|
|
||||||
// Orca: Bundle metadata and cached preset names
|
// Orca: Bundle metadata and cached preset names
|
||||||
// std::map<std::string, BundleMetadata> m_bundles;
|
// std::map<std::string, BundleMetadata> m_bundles;
|
||||||
fs::path dir_user_presets_local;
|
boost::filesystem::path dir_user_presets_local;
|
||||||
fs::path dir_user_presets_subscribed;
|
boost::filesystem::path dir_user_presets_subscribed;
|
||||||
PresetBundleMetadata bundles;
|
PresetBundleMetadata bundles;
|
||||||
|
|
||||||
struct ObsoletePresets
|
struct ObsoletePresets
|
||||||
|
|||||||
@@ -102,6 +102,8 @@
|
|||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
||||||
// Mark string for localization and translate.
|
// Mark string for localization and translate.
|
||||||
|
|||||||
@@ -65,6 +65,8 @@
|
|||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
#include "Widgets/Label.hpp"
|
#include "Widgets/Label.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
wxDEFINE_EVENT(EVT_AUXILIARY_IMPORT, wxCommandEvent);
|
wxDEFINE_EVENT(EVT_AUXILIARY_IMPORT, wxCommandEvent);
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ public:
|
|||||||
bool m_cover{false};
|
bool m_cover{false};
|
||||||
wxStaticText* m_text_name {nullptr};
|
wxStaticText* m_text_name {nullptr};
|
||||||
::TextInput* m_input_name {nullptr};
|
::TextInput* m_input_name {nullptr};
|
||||||
fs::path m_file_path;
|
boost::filesystem::path m_file_path;
|
||||||
wxString m_add_file;
|
wxString m_add_file;
|
||||||
wxString m_file_name;
|
wxString m_file_name;
|
||||||
wxString cover_text_left;
|
wxString cover_text_left;
|
||||||
@@ -116,7 +116,7 @@ public:
|
|||||||
ScalableBitmap m_bitmap_txt;
|
ScalableBitmap m_bitmap_txt;
|
||||||
|
|
||||||
public:
|
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 enter_rename_mode();
|
||||||
void exit_rename_mode();
|
void exit_rename_mode();
|
||||||
void OnPaint(wxPaintEvent &evt);
|
void OnPaint(wxPaintEvent &evt);
|
||||||
@@ -164,7 +164,7 @@ public:
|
|||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
void update_cover();
|
void update_cover();
|
||||||
void update(std::vector<fs::path> paths);
|
void update(std::vector<boost::filesystem::path> paths);
|
||||||
void msw_rescale();
|
void msw_rescale();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -240,7 +240,7 @@ public:
|
|||||||
bool Show(bool show);
|
bool Show(bool show);
|
||||||
|
|
||||||
// core logic
|
// core logic
|
||||||
std::map<std::string, std::vector<fs::path>> m_paths_list;
|
std::map<std::string, std::vector<boost::filesystem::path>> m_paths_list;
|
||||||
wxString m_root_dir;
|
wxString m_root_dir;
|
||||||
void init_auxiliary();
|
void init_auxiliary();
|
||||||
void create_folder(wxString name = wxEmptyString);
|
void create_folder(wxString name = wxEmptyString);
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
#include <wx/variant.h>
|
#include <wx/variant.h>
|
||||||
#include <wx/types.h>
|
#include <wx/types.h>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
const static std::array<wxString, 4> s_default_folders = {
|
const static std::array<wxString, 4> s_default_folders = {
|
||||||
_L("Model Pictures"),
|
_L("Model Pictures"),
|
||||||
_L("Bill of Materials"),
|
_L("Bill of Materials"),
|
||||||
|
|||||||
@@ -83,6 +83,8 @@
|
|||||||
#include "UnsavedChangesDialog.hpp"
|
#include "UnsavedChangesDialog.hpp"
|
||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__WXGTK3__)
|
#if defined(__linux__) && defined(__WXGTK3__)
|
||||||
#define wxLinux_gtk3 true
|
#define wxLinux_gtk3 true
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -108,6 +108,8 @@
|
|||||||
|
|
||||||
#include "IPrinterAgent.hpp"
|
#include "IPrinterAgent.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
#define CALI_DEBUG
|
#define CALI_DEBUG
|
||||||
#define MINUTE_30 1800000 //ms
|
#define MINUTE_30 1800000 //ms
|
||||||
#define TIME_OUT 5000 //ms
|
#define TIME_OUT 5000 //ms
|
||||||
|
|||||||
@@ -58,6 +58,8 @@
|
|||||||
#include "libslic3r/Print.hpp"
|
#include "libslic3r/Print.hpp"
|
||||||
#include "libslic3r/Utils.hpp"
|
#include "libslic3r/Utils.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
class AppConfig;
|
class AppConfig;
|
||||||
|
|||||||
@@ -25,6 +25,8 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
static const char* HMS_PATH = "hms";
|
static const char* HMS_PATH = "hms";
|
||||||
static const char* HMS_LOCAL_IMG_PATH = "hms/local_image";
|
static const char* HMS_LOCAL_IMG_PATH = "hms/local_image";
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,9 @@
|
|||||||
#include <boost/chrono/duration.hpp>
|
#include <boost/chrono/duration.hpp>
|
||||||
#include "slic3r/GUI/DeviceCore/DevStorage.h"
|
#include "slic3r/GUI/DeviceCore/DevStorage.h"
|
||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
#include "libslic3r/Utils.hpp"
|
#include "libslic3r/Utils.hpp"
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,8 @@
|
|||||||
|
|
||||||
#include "DeviceCore/DevManager.h"
|
#include "DeviceCore/DevManager.h"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
extern wxString hide_passwd(wxString url, std::vector<wxString> const &passwords);
|
extern wxString hide_passwd(wxString url, std::vector<wxString> const &passwords);
|
||||||
|
|||||||
@@ -376,8 +376,8 @@ public:
|
|||||||
// BBS: check snapshot
|
// BBS: check snapshot
|
||||||
bool up_to_date(bool saved, bool backup);
|
bool up_to_date(bool saved, bool backup);
|
||||||
|
|
||||||
bool open_3mf_file(const fs::path &file_path);
|
bool open_3mf_file(const boost::filesystem::path &file_path);
|
||||||
int get_3mf_file_count(std::vector<fs::path> paths);
|
int get_3mf_file_count(std::vector<boost::filesystem::path> paths);
|
||||||
void add_file();
|
void add_file();
|
||||||
// Returns false when no object was added (e.g. the user cancelled the load dialog).
|
// 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 = "");
|
bool add_model(bool imperial_units = false, std::string fname = "");
|
||||||
|
|||||||
@@ -21,6 +21,9 @@
|
|||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <wx/webview.h>
|
#include <wx/webview.h>
|
||||||
#include <wx/utils.h>
|
#include <wx/utils.h>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|||||||
@@ -57,6 +57,8 @@
|
|||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
#include <slic3r/GUI/Widgets/WebView.hpp>
|
#include <slic3r/GUI/Widgets/WebView.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
wxDEFINE_EVENT(EVT_PROJECT_RELOAD, wxCommandEvent);
|
wxDEFINE_EVENT(EVT_PROJECT_RELOAD, wxCommandEvent);
|
||||||
|
|||||||
@@ -70,6 +70,9 @@
|
|||||||
#include "DeviceCore/DevStorage.h"
|
#include "DeviceCore/DevStorage.h"
|
||||||
#include "../Utils/Http.hpp"
|
#include "../Utils/Http.hpp"
|
||||||
#include "md4c/src/md4c-html.h"
|
#include "md4c/src/md4c-html.h"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
|
|||||||
@@ -120,6 +120,9 @@
|
|||||||
#include "Notebook.hpp"
|
#include "Notebook.hpp"
|
||||||
#include "BitmapCache.hpp"
|
#include "BitmapCache.hpp"
|
||||||
#include "BindDialog.hpp"
|
#include "BindDialog.hpp"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,9 @@
|
|||||||
|
|
||||||
#include "DeviceCore/DevManager.h"
|
#include "DeviceCore/DevManager.h"
|
||||||
#include "DeviceCore/DevStorage.h"
|
#include "DeviceCore/DevStorage.h"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|||||||
@@ -77,6 +77,9 @@
|
|||||||
#include "DeviceCore/DevStorage.h"
|
#include "DeviceCore/DevStorage.h"
|
||||||
#include "libslic3r_version.h"
|
#include "libslic3r_version.h"
|
||||||
#include "slic3r/Utils/FileTransferUtils.hpp"
|
#include "slic3r/Utils/FileTransferUtils.hpp"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|||||||
@@ -78,6 +78,8 @@
|
|||||||
#include "DeviceCore/DevStorage.h"
|
#include "DeviceCore/DevStorage.h"
|
||||||
#include "FilamentBitmapUtils.hpp"
|
#include "FilamentBitmapUtils.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace Slic3r;
|
using namespace Slic3r;
|
||||||
using namespace Slic3r::GUI;
|
using namespace Slic3r::GUI;
|
||||||
|
|
||||||
|
|||||||
@@ -79,6 +79,8 @@
|
|||||||
#include <libslic3r/Utils.hpp>
|
#include <libslic3r/Utils.hpp>
|
||||||
#include "CreatePresetsDialog.hpp"
|
#include "CreatePresetsDialog.hpp"
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace nlohmann;
|
using namespace nlohmann;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|||||||
@@ -52,6 +52,9 @@
|
|||||||
#include <wx/webview.h>
|
#include <wx/webview.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/timer.h>
|
#include <wx/timer.h>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@
|
|||||||
#include <wx/uri.h>
|
#include <wx/uri.h>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
#include <wx/stdpaths.h>
|
#include <wx/stdpaths.h>
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
#if defined(__WIN32__) || defined(__WXMAC__)
|
#if defined(__WIN32__) || defined(__WXMAC__)
|
||||||
#include "wx/private/jsscriptwrapper.h"
|
#include "wx/private/jsscriptwrapper.h"
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -40,6 +40,9 @@
|
|||||||
#include "libslic3r/Config.hpp"
|
#include "libslic3r/Config.hpp"
|
||||||
#include "Widgets/Label.hpp"
|
#include "Widgets/Label.hpp"
|
||||||
#include "MainFrame.hpp"
|
#include "MainFrame.hpp"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace Slic3r;
|
using namespace Slic3r;
|
||||||
using namespace Slic3r::GUI;
|
using namespace Slic3r::GUI;
|
||||||
|
|||||||
@@ -58,6 +58,9 @@
|
|||||||
#include "slic3r/GUI/OpenGLManager.hpp"
|
#include "slic3r/GUI/OpenGLManager.hpp"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include "slic3r/GUI/Jobs/PrintJob.hpp"
|
#include "slic3r/GUI/Jobs/PrintJob.hpp"
|
||||||
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
using namespace Slic3r;
|
using namespace Slic3r;
|
||||||
|
|
||||||
SCENARIO("Generic config validation performs as expected.", "[Config]") {
|
SCENARIO("Generic config validation performs as expected.", "[Config]") {
|
||||||
|
|||||||
Reference in New Issue
Block a user