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-07-10 11:15:07 +0300
committerYuSanka <yusanka@gmail.com>2019-07-10 11:15:07 +0300
commit3720e6a3a3ec59fca0f8781139e5d329156f81e6 (patch)
tree314f9ad77003cce6f0f9117de310ff41ef9f4d39 /src/slic3r/GUI/GLToolbar.hpp
parentf985f5190c8260b28b1a3d06d20138ee16113dad (diff)
Fixed redo_to() function and code cleaning from redundant options
Diffstat (limited to 'src/slic3r/GUI/GLToolbar.hpp')
-rw-r--r--src/slic3r/GUI/GLToolbar.hpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/slic3r/GUI/GLToolbar.hpp b/src/slic3r/GUI/GLToolbar.hpp
index e32e4a41e..78dd56081 100644
--- a/src/slic3r/GUI/GLToolbar.hpp
+++ b/src/slic3r/GUI/GLToolbar.hpp
@@ -252,10 +252,7 @@ private:
MouseCapture m_mouse_capture;
std::string m_tooltip;
- bool m_undo_imgui_visible {false};
- bool m_redo_imgui_visible {false};
int m_imgui_hovered_pos { -1 };
- int m_imgui_selected_pos { -1 };
public:
#if ENABLE_SVG_ICONS
@@ -312,22 +309,9 @@ public:
bool on_mouse(wxMouseEvent& evt, GLCanvas3D& parent);
- // undo == true => "undo" imgui is activated
- // undo == false => "redo" imgui is activated
- bool get_imgui_visible(const bool undo) const { return undo ? m_undo_imgui_visible : m_redo_imgui_visible; }
- void hide_imgui(const bool undo) { undo ? m_undo_imgui_visible = false : m_redo_imgui_visible = false; }
- void activate_imgui(const bool undo) {
- m_undo_imgui_visible = undo;
- m_redo_imgui_visible = !undo;
- m_imgui_hovered_pos = m_imgui_selected_pos = -1;
- }
-
void set_imgui_hovered_pos(int pos = -1) { m_imgui_hovered_pos = pos; }
int get_imgui_hovered_pos() const { return m_imgui_hovered_pos; }
- void set_imgui_selected_pos(int pos = -1) { m_imgui_selected_pos = pos; }
- int get_imgui_selected_pos() const { return m_imgui_selected_pos; }
-
private:
void calc_layout() const;
float get_width_horizontal() const;