This commit is contained in:
YuSanka 2019-12-03 18:35:05 +01:00
commit 6440c8ccfd
3 changed files with 6 additions and 4 deletions

View File

@ -38,6 +38,8 @@
#define ENABLE_2_2_0_ALPHA1 1 #define ENABLE_2_2_0_ALPHA1 1
// Enable thumbnail generator // Enable thumbnail generator
// When removing this technology, remove it also from stable branch,
// where it has been partially copied for patch 2.1.1
#define ENABLE_THUMBNAIL_GENERATOR (1 && ENABLE_2_2_0_ALPHA1) #define ENABLE_THUMBNAIL_GENERATOR (1 && ENABLE_2_2_0_ALPHA1)
#define ENABLE_THUMBNAIL_GENERATOR_DEBUG (0 && ENABLE_THUMBNAIL_GENERATOR) #define ENABLE_THUMBNAIL_GENERATOR_DEBUG (0 && ENABLE_THUMBNAIL_GENERATOR)

View File

@ -51,10 +51,10 @@
#include <Shlobj.h> #include <Shlobj.h>
#endif // __WXMSW__ #endif // __WXMSW__
#if ENABLE_THUMBNAIL_GENERATOR #if ENABLE_THUMBNAIL_GENERATOR_DEBUG
#include <boost/beast/core/detail/base64.hpp> #include <boost/beast/core/detail/base64.hpp>
#include <boost/nowide/fstream.hpp> #include <boost/nowide/fstream.hpp>
#endif // ENABLE_THUMBNAIL_GENERATOR #endif // ENABLE_THUMBNAIL_GENERATOR_DEBUG
namespace Slic3r { namespace Slic3r {
namespace GUI { namespace GUI {

View File

@ -188,10 +188,10 @@ public:
void open_web_page_localized(const std::string &http_address); void open_web_page_localized(const std::string &http_address);
bool run_wizard(ConfigWizard::RunReason reason, ConfigWizard::StartPage start_page = ConfigWizard::SP_WELCOME); bool run_wizard(ConfigWizard::RunReason reason, ConfigWizard::StartPage start_page = ConfigWizard::SP_WELCOME);
#if ENABLE_THUMBNAIL_GENERATOR #if ENABLE_THUMBNAIL_GENERATOR_DEBUG
// temporary and debug only -> extract thumbnails from selected gcode and save them as png files // temporary and debug only -> extract thumbnails from selected gcode and save them as png files
void gcode_thumbnails_debug(); void gcode_thumbnails_debug();
#endif // ENABLE_THUMBNAIL_GENERATOR #endif // ENABLE_THUMBNAIL_GENERATOR_DEBUG
private: private:
bool on_init_inner(); bool on_init_inner();