mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-19 20:04:27 +08:00
tryfix for linux build...
This commit is contained in:
parent
013e068d71
commit
c398e9b2af
@ -237,16 +237,19 @@ public:
|
|||||||
virtual void process() = 0;
|
virtual void process() = 0;
|
||||||
|
|
||||||
struct Status {
|
struct Status {
|
||||||
Status(int percent, const std::string &text, unsigned int flags = 0) : percent(percent), text(text), flags(flags) {}
|
|
||||||
int percent;
|
int percent;
|
||||||
std::string text;
|
std::string text;
|
||||||
|
unsigned int flags; // Bitmap of FlagBits
|
||||||
|
|
||||||
// Bitmap of flags.
|
// Bitmap of flags.
|
||||||
enum FlagBits {
|
enum FlagBits {
|
||||||
RELOAD_SCENE = 1,
|
RELOAD_SCENE = 1,
|
||||||
};
|
};
|
||||||
// Bitmap of FlagBits
|
|
||||||
unsigned int flags;
|
inline Status(int percent, const std::string &text, unsigned int flags = 0) :
|
||||||
|
percent(percent), text(text), flags(flags) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::function<void(const Status&)> status_callback_type;
|
typedef std::function<void(const Status&)> status_callback_type;
|
||||||
// Default status console print out in the form of percent => message.
|
// Default status console print out in the form of percent => message.
|
||||||
void set_status_default() { m_status_callback = nullptr; }
|
void set_status_default() { m_status_callback = nullptr; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user