summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-25 13:08:48 +0000
committerManolo Gouy <Manolo>2016-03-25 13:08:48 +0000
commita69133d3177f025d9810bdf9305147f80bbb270e (patch)
treec0513df6f46a47acb80860a0a03055ab376e3e98 /src/drivers
parent2530120d7d084f1ffbb9331e925153a3bcb15b92 (diff)
Separating platform-dependent from platform-independent code: make src/Fl.cxx cross-platform.
File src/Fl_win32.cxx is now compiled instead of included in Fl.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Darwin/Fl_Darwin_System_Driver.cxx8
-rw-r--r--src/drivers/Posix/Fl_Posix_System_Driver.cxx6
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx6
3 files changed, 20 insertions, 0 deletions
diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
index 1b08b30e4..fa6893784 100644
--- a/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
+++ b/src/drivers/Darwin/Fl_Darwin_System_Driver.cxx
@@ -20,6 +20,14 @@
#include "../../config_lib.h"
#include "Fl_Darwin_System_Driver.H"
+//const char* fl_local_alt = "\xe2\x8c\xa5\\"; // U+2325 (option key)
+const char* fl_local_alt = "⌥\\"; // U+2325 (option key)
+//const char* fl_local_ctrl = "\xe2\x8c\x83\\"; // U+2303 (up arrowhead)
+const char* fl_local_ctrl = "⌃\\"; // U+2303 (up arrowhead)
+//const char* fl_local_meta = "\xe2\x8c\x98\\"; // U+2318 (place of interest sign)
+const char* fl_local_meta = "⌘\\"; // U+2318 (place of interest sign)
+//const char* fl_local_shift = "\xe2\x87\xa7\\"; // U+21E7 (upwards white arrow)
+const char* fl_local_shift = "⇧\\"; // U+21E7 (upwards white arrow)
//
// End of "$Id$".
diff --git a/src/drivers/Posix/Fl_Posix_System_Driver.cxx b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
index 866be9b3d..763dca752 100644
--- a/src/drivers/Posix/Fl_Posix_System_Driver.cxx
+++ b/src/drivers/Posix/Fl_Posix_System_Driver.cxx
@@ -20,6 +20,12 @@
#include "../../config_lib.h"
#include "Fl_Posix_System_Driver.H"
+// Pointers you can use to change FLTK to a foreign language.
+// Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx
+const char* fl_local_alt = "Alt"; ///< string pointer used in shortcuts, you can change it to another language
+const char* fl_local_ctrl = "Ctrl"; ///< string pointer used in shortcuts, you can change it to another language
+const char* fl_local_meta = "Meta"; ///< string pointer used in shortcuts, you can change it to another language
+const char* fl_local_shift = "Shift"; ///< string pointer used in shortcuts, you can change it to another language
//
// End of "$Id$".
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
index 031b0aac2..1a59a2c05 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.cxx
@@ -20,6 +20,12 @@
#include "../../config_lib.h"
#include "Fl_WinAPI_System_Driver.H"
+#if !defined(FL_DOXYGEN)
+const char* fl_local_alt = "Alt";
+const char* fl_local_ctrl = "Ctrl";
+const char* fl_local_meta = "Meta";
+const char* fl_local_shift = "Shift";
+#endif
//
// End of "$Id$".