
Custom URL Registration: - Windows - writes to registers. - Linux - desktop integration file. - Macos - info.plist.in creates registration and is controlled only via app config. Registration is first made in Config Wizard. Or is triggered from Preferences. Path to downloads folder can be set. URL link starts new instance of PS which sends data to running instance via SingleInstance structures if exists. New progress notification is introduced with pause and stop buttons. Downloader writes downloaded data by chunks. Support for zip files is introduced. Zip files can be opened, downloaded or drag'n'droped in PS. Archive dialog is opened. Then if more than 1 project is selected, only geometry is loaded. Opening of 3mf project now supports openning project in new PS instance.
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
#ifndef slic3r_GUI_Init_hpp_
|
|
#define slic3r_GUI_Init_hpp_
|
|
|
|
#include <libslic3r/Preset.hpp>
|
|
#include <libslic3r/PrintConfig.hpp>
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
struct OpenGLVersions
|
|
{
|
|
static const std::vector<std::string> core_str;
|
|
static const std::vector<std::string> precore_str;
|
|
|
|
static const std::vector<std::pair<int, int>> core;
|
|
static const std::vector<std::pair<int, int>> precore;
|
|
};
|
|
|
|
struct GUI_InitParams
|
|
{
|
|
int argc;
|
|
char **argv;
|
|
|
|
// Substitutions of unknown configuration values done during loading of user presets.
|
|
PresetsConfigSubstitutions preset_substitutions;
|
|
|
|
std::vector<std::string> load_configs;
|
|
DynamicPrintConfig extra_config;
|
|
std::vector<std::string> input_files;
|
|
|
|
bool start_as_gcodeviewer;
|
|
bool start_downloader;
|
|
bool delete_after_load;
|
|
std::string download_url;
|
|
#if ENABLE_GL_CORE_PROFILE
|
|
std::pair<int, int> opengl_version;
|
|
#if ENABLE_OPENGL_DEBUG_OPTION
|
|
bool opengl_debug;
|
|
#endif // ENABLE_OPENGL_DEBUG_OPTION
|
|
#endif // ENABLE_GL_CORE_PROFILE
|
|
};
|
|
|
|
int GUI_Run(GUI_InitParams ¶ms);
|
|
|
|
} // namespace GUI
|
|
} // namespace Slic3r
|
|
|
|
#endif // slic3r_GUI_Init_hpp_
|