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:
authorbubnikv <bubnikv@gmail.com>2019-02-03 13:10:25 +0300
committerbubnikv <bubnikv@gmail.com>2019-02-03 13:10:25 +0300
commitf050d912395523162d1234a61158d58558635f2f (patch)
tree7a40dd2b91bc93121d21456e622fc32eb0c12486 /src/slic3r/GUI/GUI.cpp
parenta56f7d60e58f05624ccb45573e4d6344c71a9692 (diff)
OSX specific: The Command short keys over the 3D scene toolbars
are now shown with the OSX "Command" symbols, not as "Ctrl+"
Diffstat (limited to 'src/slic3r/GUI/GUI.cpp')
-rw-r--r--src/slic3r/GUI/GUI.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp
index 148285e86..8e80d64c3 100644
--- a/src/slic3r/GUI/GUI.cpp
+++ b/src/slic3r/GUI/GUI.cpp
@@ -75,6 +75,30 @@ void break_to_debugger()
#endif /* _WIN32 */
}
+const std::string& shortkey_ctrl_prefix()
+{
+ static const std::string str =
+#ifdef __APPLE__
+ "⌘"
+#else
+ "Ctrl+"
+#endif
+ ;
+ return str;
+}
+
+const std::string& shortkey_alt_prefix()
+{
+ static const std::string str =
+#ifdef __APPLE__
+ "⌥"
+#else
+ "Alt+"
+#endif
+ ;
+ return str;
+}
+
bool config_wizard_startup(bool app_config_exists)
{
if (!app_config_exists || wxGetApp().preset_bundle->printers.size() <= 1) {