From 65e19a1d2d12b9a5629c3022612d9000c4ac2ff0 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 9 Apr 2016 16:37:24 +0000 Subject: Rewrite fl_shortcut.cxx for the driver model. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FL') diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index db0c1119f..f83bd774a 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -39,6 +39,8 @@ protected: // implement once for each platform static Fl_System_Driver *newSystemDriver(); Fl_System_Driver(); + struct Keyname {unsigned int key; const char* name;}; + static Keyname table[]; public: virtual ~Fl_System_Driver(); // These flags are useful after calling XParseGeometry(). They indicate which of its arguments @@ -122,6 +124,10 @@ public: virtual int use_tooltip_timeout_condition() {return 0;} // the default implementation of use_recent_tooltip_fix() may be enough virtual int use_recent_tooltip_fix() {return 0;} + // the default implementation of shortcut_add_key_name() is in src/fl_shortcut.cxx + virtual const char *shortcut_add_key_name(unsigned key, char *p, char *buf, const char **); + // the default implementation of need_test_shortcut_extra() may be enough + virtual int need_test_shortcut_extra() {return 0;} }; #endif // FL_SYSTEM_DRIVER_H -- cgit v1.2.3