mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Gizmos shortcuts set as default
This commit is contained in:
parent
04d7154d40
commit
9bfcf10cc6
5 changed files with 0 additions and 28 deletions
|
@ -26,9 +26,7 @@
|
|||
#include "I18N.hpp"
|
||||
#include "PresetBundle.hpp"
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
#include <wx/defs.h>
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
// TODO: Display tooltips quicker on Linux
|
||||
|
||||
|
@ -161,9 +159,7 @@ GLGizmoBase::GLGizmoBase(GLCanvas3D& parent)
|
|||
: m_parent(parent)
|
||||
, m_group_id(-1)
|
||||
, m_state(Off)
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
, m_shortcut_key(0)
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
, m_hover_id(-1)
|
||||
, m_dragging(false)
|
||||
#if ENABLE_IMGUI
|
||||
|
@ -734,9 +730,7 @@ bool GLGizmoRotate3D::on_init()
|
|||
if (!m_textures[On].load_from_file(path + "rotate_on.png", false))
|
||||
return false;
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_R;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -824,9 +818,7 @@ bool GLGizmoScale3D::on_init()
|
|||
m_grabbers[2].angles(0) = half_pi;
|
||||
m_grabbers[3].angles(0) = half_pi;
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_S;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1202,9 +1194,7 @@ bool GLGizmoMove3D::on_init()
|
|||
m_grabbers.push_back(Grabber());
|
||||
}
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_M;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1430,9 +1420,7 @@ bool GLGizmoFlatten::on_init()
|
|||
if (!m_textures[On].load_from_file(path + "layflat_on.png", false))
|
||||
return false;
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_F;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1769,9 +1757,7 @@ bool GLGizmoSlaSupports::on_init()
|
|||
if (!m_textures[On].load_from_file(path + "sla_support_points_on.png", false))
|
||||
return false;
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_L;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -2292,9 +2278,7 @@ bool GLGizmoCut::on_init()
|
|||
|
||||
m_grabbers.emplace_back();
|
||||
|
||||
#if ENABLE_GIZMOS_SHORTCUT
|
||||
m_shortcut_key = WXK_CONTROL_C;
|
||||
#endif // ENABLE_GIZMOS_SHORTCUT
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue