OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Snapshot.cpp File Reference
#include "Snapshot.hpp"
#include <fstream>
#include <stdexcept>
#include <cstdio>
#include <algorithm>
#include <ios>
#include <ostream>
#include <string>
#include <cassert>
#include <map>
#include <set>
#include <boost/filesystem/directory.hpp>
#include <cstring>
#include <boost/filesystem/file_status.hpp>
#include "libslic3r/Exception.hpp"
#include "slic3r/Config/Version.hpp"
#include <exception>
#include <time.h>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/log/trivial.hpp>
#include "libslic3r/PresetBundle.hpp"
#include "libslic3r/format.hpp"
#include "libslic3r/libslic3r.h"
#include "libslic3r/Time.hpp"
#include "libslic3r/Config.hpp"
#include "libslic3r/FileParserError.hpp"
#include "libslic3r/Utils.hpp"
#include "libslic3r/Preset.hpp"
#include "../GUI/GUI.hpp"
#include "../GUI/GUI_App.hpp"
#include "../GUI/I18N.hpp"
#include "../GUI/MainFrame.hpp"
#include "../GUI/MsgDialog.hpp"
#include <vector>
#include <utility>
#include <wx/richmsgdlg.h>
#include <wx/string.h>
Include dependency graph for Snapshot.cpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI
namespace  Slic3r::GUI::Config

Macros

#define SLIC3R_SNAPSHOTS_DIR   "snapshots"
#define SLIC3R_SNAPSHOT_FILE   "snapshot.ini"

Functions

static std::string Slic3r::GUI::Config::reason_string (const Snapshot::Reason reason)
static void Slic3r::GUI::Config::copy_config_dir_single_level (const boost::filesystem::path &path_src, const boost::filesystem::path &path_dst)
static void Slic3r::GUI::Config::delete_existing_ini_files (const boost::filesystem::path &path)
const Snapshot * Slic3r::GUI::Config::take_config_snapshot_report_error (const AppConfig &app_config, Snapshot::Reason reason, const std::string &comment)
bool Slic3r::GUI::Config::take_config_snapshot_cancel_on_error (const AppConfig &app_config, Snapshot::Reason reason, const std::string &comment, const std::string &message)

Variables

static constexpr auto Slic3r::GUI::Config::snapshot_subdirs = { PRESET_PRINT_NAME, PRESET_SLA_PRINT_NAME, PRESET_FILAMENT_NAME, PRESET_SLA_MATERIALS_NAME, PRESET_PRINTER_NAME, "physical_printer", PRESET_SYSTEM_DIR }

Macro Definition Documentation

◆ SLIC3R_SNAPSHOT_FILE

#define SLIC3R_SNAPSHOT_FILE   "snapshot.ini"

◆ SLIC3R_SNAPSHOTS_DIR

#define SLIC3R_SNAPSHOTS_DIR   "snapshots"