diff options
| author | Manolo Gouy <Manolo> | 2016-04-09 16:37:24 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-09 16:37:24 +0000 |
| commit | 65e19a1d2d12b9a5629c3022612d9000c4ac2ff0 (patch) | |
| tree | 15948c3c6949d325a921751ccb835d7cb949dc33 /FL | |
| parent | 3bc5be71a39bf2ed9d9937a4f60df61dd6d3a2b4 (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_System_Driver.H | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
