mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Added shortcut to toggle axis display. Fixes #498.
This commit is contained in:
parent
6a11c7295c
commit
33679e4f70
4 changed files with 20 additions and 0 deletions
|
@ -1123,6 +1123,13 @@ lcCommand gCommands[LC_NUM_COMMANDS] =
|
|||
QT_TRANSLATE_NOOP("Status", "Toggle the view sphere"),
|
||||
""
|
||||
},
|
||||
// LC_VIEW_TOGGLE_AXIS_ICON
|
||||
{
|
||||
QT_TRANSLATE_NOOP("Action", "View.ToggleAxisIcon"),
|
||||
QT_TRANSLATE_NOOP("Menu", "Axis Icon"),
|
||||
QT_TRANSLATE_NOOP("Status", "Toggle axis icon"),
|
||||
""
|
||||
},
|
||||
// LC_VIEW_FADE_PREVIOUS_STEPS
|
||||
{
|
||||
QT_TRANSLATE_NOOP("Action", "View.FadePreviousSteps"),
|
||||
|
|
|
@ -176,6 +176,7 @@ enum lcCommandId
|
|||
LC_VIEW_PROJECTION_ORTHO,
|
||||
LC_VIEW_PROJECTION_LAST = LC_VIEW_PROJECTION_ORTHO,
|
||||
LC_VIEW_TOGGLE_VIEW_SPHERE,
|
||||
LC_VIEW_TOGGLE_AXIS_ICON,
|
||||
LC_VIEW_FADE_PREVIOUS_STEPS,
|
||||
LC_PIECE_INSERT,
|
||||
LC_PIECE_DELETE,
|
||||
|
|
|
@ -1257,6 +1257,13 @@ void lcMainWindow::ToggleViewSphere()
|
|||
UpdateAllViews();
|
||||
}
|
||||
|
||||
void lcMainWindow::ToggleAxisIcon()
|
||||
{
|
||||
lcGetPreferences().mDrawAxes = !lcGetPreferences().mDrawAxes;
|
||||
|
||||
UpdateAllViews();
|
||||
}
|
||||
|
||||
void lcMainWindow::ToggleFadePreviousSteps()
|
||||
{
|
||||
lcGetPreferences().mFadeSteps = !lcGetPreferences().mFadeSteps;
|
||||
|
@ -2734,6 +2741,10 @@ void lcMainWindow::HandleCommand(lcCommandId CommandId)
|
|||
ToggleViewSphere();
|
||||
break;
|
||||
|
||||
case LC_VIEW_TOGGLE_AXIS_ICON:
|
||||
ToggleAxisIcon();
|
||||
break;
|
||||
|
||||
case LC_VIEW_FADE_PREVIOUS_STEPS:
|
||||
ToggleFadePreviousSteps();
|
||||
break;
|
||||
|
|
|
@ -296,6 +296,7 @@ public:
|
|||
void SetShadingMode(lcShadingMode ShadingMode);
|
||||
void SetSelectionMode(lcSelectionMode SelectionMode);
|
||||
void ToggleViewSphere();
|
||||
void ToggleAxisIcon();
|
||||
void ToggleFadePreviousSteps();
|
||||
|
||||
void NewProject();
|
||||
|
|
Loading…
Add table
Reference in a new issue