diff options
author | YuSanka <yusanka@gmail.com> | 2020-01-13 19:03:10 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2020-01-13 19:03:10 +0300 |
commit | 36de2c5d90df562e0c7b243c942814090b05dd61 (patch) | |
tree | 5481a6c16590a1f151dac22bd72beffea31ef83b /src/slic3r/GUI/wxExtensions.hpp | |
parent | 02b2e206281e9cfc89c7efbb4d7d294c1332fe89 (diff) |
Code refactoring for context menus and current extruder color selection for tick
Diffstat (limited to 'src/slic3r/GUI/wxExtensions.hpp')
-rw-r--r-- | src/slic3r/GUI/wxExtensions.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp index 35357cea4..81f4d7342 100644 --- a/src/slic3r/GUI/wxExtensions.hpp +++ b/src/slic3r/GUI/wxExtensions.hpp @@ -898,6 +898,8 @@ protected: void action_tick(const TicksAction action); void enter_window(wxMouseEvent& event, const bool enter); +private: + bool is_point_in_rect(const wxPoint& pt, const wxRect& rect); int is_point_near_tick(const wxPoint& pt); @@ -910,9 +912,9 @@ protected: void get_size(int *w, int *h); double get_double_value(const SelectedSlider& selection); wxString get_tooltip(IconFocus icon_focus); - bool get_color_for_tick( wxColour& color, - std::set<TICK_CODE>::const_iterator tick_it, - const std::vector<std::string>& colors) const; + + std::string get_color_for_tool_change_tick(std::set<TICK_CODE>::const_iterator it) const; + std::string get_color_for_color_change_tick(std::set<TICK_CODE>::const_iterator it) const; int get_extruder_for_tick(int tick); std::set<int> get_used_extruders_for_tick(int tick); @@ -920,7 +922,6 @@ protected: void append_change_extruder_menu_item(wxMenu*); void append_add_color_change_menu_item(wxMenu*); -private: bool is_osx { false }; wxFont m_font; int m_min_value; |