Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-11-04 15:42:47 +0300
committerYuSanka <yusanka@gmail.com>2019-11-04 15:42:47 +0300
commitd5f7956a55f8625fb4b8ddfd5203ddfbe8ff8f3c (patch)
treed91510e7b50a8662cb66b012719a8eb08914937c /src/slic3r/GUI/wxExtensions.hpp
parentc564f693e906d1764fffadba7bf7a29aecfb6742 (diff)
Set custom color for color change
Diffstat (limited to 'src/slic3r/GUI/wxExtensions.hpp')
-rw-r--r--src/slic3r/GUI/wxExtensions.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp
index 1b8dc2fa5..5cdf99c60 100644
--- a/src/slic3r/GUI/wxExtensions.hpp
+++ b/src/slic3r/GUI/wxExtensions.hpp
@@ -922,6 +922,7 @@ private:
bool m_is_one_layer_icon_focesed = false;
bool m_is_enabled_tick_manipulation = true;
bool m_show_context_menu = false;
+ bool m_suppress_add_code = false;
ManipulationState m_state = msSingleExtruder;
wxString m_custom_gcode = wxEmptyString;
int m_current_extruder = -1;
@@ -958,18 +959,18 @@ private:
struct TICK_CODE
{
- TICK_CODE(int tick):tick(tick), gcode("M600"), extruder(0) {}
+ TICK_CODE(int tick):tick(tick), gcode("M600"), extruder(0), color("") {}
TICK_CODE(int tick, const std::string& code) :
tick(tick), gcode(code), extruder(0) {}
TICK_CODE(int tick, int extruder) :
tick(tick), gcode("M600"), extruder(extruder) {}
- TICK_CODE(int tick, const std::string& code, int extruder) :
- tick(tick), gcode(code), extruder(extruder) {}
+ TICK_CODE(int tick, const std::string& code, int extruder, const std::string& color) :
+ tick(tick), gcode(code), extruder(extruder), color(color) {}
bool operator<(const TICK_CODE& other) const { return other.tick > this->tick; }
bool operator>(const TICK_CODE& other) const { return other.tick < this->tick; }
TICK_CODE operator=(const TICK_CODE& other) const {
- TICK_CODE ret_val(other.tick, other.gcode, other.extruder);
+ TICK_CODE ret_val(other.tick, other.gcode, other.extruder, other.color);
return ret_val;
}/*
TICK_CODE& operator=(const TICK_CODE& other) {
@@ -982,6 +983,7 @@ private:
int tick;
std::string gcode;
int extruder;
+ std::string color;
};
std::set<TICK_CODE> m_ticks_;