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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2020-06-09 09:37:24 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2020-06-09 09:37:24 +0300
commit345c01c54ff1ef85fbb98a09864aaa124d8fa0a2 (patch)
tree0343dd8516476b44329d52df6a8c504bc522a708 /src/slic3r/GUI/KBShortcutsDialog.cpp
parentd358fe85fa03f6bdc807c14978d592bb066682da (diff)
ENABLE_GCODE_VIEWER -> Updated keyboard shortcuts dialog
Diffstat (limited to 'src/slic3r/GUI/KBShortcutsDialog.cpp')
-rw-r--r--src/slic3r/GUI/KBShortcutsDialog.cpp30
1 files changed, 22 insertions, 8 deletions
diff --git a/src/slic3r/GUI/KBShortcutsDialog.cpp b/src/slic3r/GUI/KBShortcutsDialog.cpp
index 556b610e9..51ba06ba4 100644
--- a/src/slic3r/GUI/KBShortcutsDialog.cpp
+++ b/src/slic3r/GUI/KBShortcutsDialog.cpp
@@ -1,3 +1,4 @@
+#include "libslic3r/libslic3r.h"
#include "KBShortcutsDialog.hpp"
#include "I18N.hpp"
#include "libslic3r/Utils.hpp"
@@ -29,7 +30,7 @@ namespace Slic3r {
namespace GUI {
KBShortcutsDialog::KBShortcutsDialog()
- : DPIDialog(NULL, wxID_ANY, wxString(SLIC3R_APP_NAME) + " - " + _(L("Keyboard Shortcuts")),
+ : DPIDialog(NULL, wxID_ANY, wxString(SLIC3R_APP_NAME) + " - " + _L("Keyboard Shortcuts"),
#if ENABLE_SCROLLABLE
wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
#else
@@ -146,7 +147,7 @@ void KBShortcutsDialog::fill_shortcuts()
{ "?", L("Show keyboard shortcuts list") }
};
- m_full_shortcuts.push_back(std::make_pair(_(L("Commands")), commands_shortcuts));
+ m_full_shortcuts.push_back(std::make_pair(_L("Commands"), commands_shortcuts));
Shortcuts plater_shortcuts = {
{ "A", L("Arrange") },
@@ -186,7 +187,7 @@ void KBShortcutsDialog::fill_shortcuts()
#endif // ENABLE_RENDER_PICKING_PASS
};
- m_full_shortcuts.push_back(std::make_pair(_(L("Plater")), plater_shortcuts));
+ m_full_shortcuts.push_back(std::make_pair(_L("Plater"), plater_shortcuts));
Shortcuts gizmos_shortcuts = {
{ "Shift+", L("Press to snap by 5% in Gizmo scale\nor to snap by 1mm in Gizmo move") },
@@ -195,7 +196,7 @@ void KBShortcutsDialog::fill_shortcuts()
{ alt, L("Press to scale (in Gizmo scale) or rotate (in Gizmo rotate)\nselected objects around their own center") },
};
- m_full_shortcuts.push_back(std::make_pair(_(L("Gizmos")), gizmos_shortcuts));
+ m_full_shortcuts.push_back(std::make_pair(_L("Gizmos"), gizmos_shortcuts));
Shortcuts preview_shortcuts = {
{ L("Arrow Up"), L("Upper Layer") },
@@ -205,7 +206,7 @@ void KBShortcutsDialog::fill_shortcuts()
{ "L", L("Show/Hide Legend") }
};
- m_full_shortcuts.push_back(std::make_pair(_(L("Preview")), preview_shortcuts));
+ m_full_shortcuts.push_back(std::make_pair(_L("Preview"), preview_shortcuts));
Shortcuts layers_slider_shortcuts = {
{ L("Arrow Up"), L("Move current slider thumb Up") },
@@ -213,10 +214,23 @@ void KBShortcutsDialog::fill_shortcuts()
{ L("Arrow Left"), L("Set upper thumb to current slider thumb") },
{ L("Arrow Right"), L("Set lower thumb to current slider thumb") },
{ "+", L("Add color change marker for current layer") },
- { "-", L("Delete color change marker for current layer") }
+ { "-", L("Delete color change marker for current layer") },
+ { "Shift+", L("Press to speed up 5 times while moving thumb\nwith arrow keys or mouse wheel") },
+ { ctrl, L("Press to speed up 5 times while moving thumb\nwith arrow keys or mouse wheel") },
};
- m_full_shortcuts.push_back(std::make_pair(_(L("Layers Slider")), layers_slider_shortcuts));
+ m_full_shortcuts.push_back(std::make_pair(_L("Layers Slider"), layers_slider_shortcuts));
+
+#if ENABLE_GCODE_VIEWER
+ Shortcuts sequential_slider_shortcuts = {
+ { L("Arrow Left"), L("Move current slider thumb Left") },
+ { L("Arrow Right"), L("Move current slider thumb Right") },
+ { "Shift+", L("Press to speed up 5 times while moving thumb\nwith arrow keys or mouse wheel") },
+ { ctrl, L("Press to speed up 5 times while moving thumb\nwith arrow keys or mouse wheel") },
+ };
+
+ m_full_shortcuts.push_back(std::make_pair(_L("Sequential Slider"), sequential_slider_shortcuts));
+#endif // ENABLE_GCODE_VIEWER
}
wxPanel* KBShortcutsDialog::create_header(wxWindow* parent, const wxFont& bold_font)
@@ -239,7 +253,7 @@ wxPanel* KBShortcutsDialog::create_header(wxWindow* parent, const wxFont& bold_f
sizer->Add(m_header_bitmap, 0, wxEXPAND | wxLEFT | wxRIGHT, 10);
// text
- wxStaticText* text = new wxStaticText(panel, wxID_ANY, _(L("Keyboard shortcuts")));
+ wxStaticText* text = new wxStaticText(panel, wxID_ANY, _L("Keyboard shortcuts"));
text->SetFont(header_font);
sizer->Add(text, 0, wxALIGN_CENTER_VERTICAL);