Manolo Gouy
1029debb66
Clarification of change in constant used for text-containing pasteboards across Mac OS versions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 08:27:10 +00:00
Manolo Gouy
3d7d2938c7
Fixes the copy/paste implementation to run on many Mac OS versions.
...
Checked on 10.3, 10.5, 10.6 and 10.8
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 19:00:15 +00:00
Manolo Gouy
cedcc3f52e
Fixed implementation of paste with NSPasteboard that did not work well under Mac OS 10.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 15:01:54 +00:00
Manolo Gouy
3baf5e0d58
Implemented copy/paste with Cocoa's NSPasteboard instead of Core Foundation's Pasteboard Manager
...
which allows quite simpler code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-12 12:21:57 +00:00
Pierre Ossman
1d6cc80d59
STR 2636. Add ability to get notifications whenever the
...
clipboard changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:54:40 +00:00
Manolo Gouy
65226e073e
Fixed typo in comments.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06 09:24:28 +00:00
Manolo Gouy
bc17e8c6f9
Removed linkage with undocumented function CPSEnableForegroundOperation() used to support
...
Mac OS 10.2 or below. This made no sense because the Copy/Paste implementation requires Mac OS 10.3.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-05 09:12:35 +00:00
Manolo Gouy
cc68c2e43c
Copy directly pasteboard data when pasting if it's UTF-8 encoded.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9962 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 14:39:59 +00:00
Manolo Gouy
0585de060c
Added fl_lock/unlock_function() calls for extra caution in - (void)applicationDidChangeScreenParameters:
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 09:30:18 +00:00
Manolo Gouy
12fbd8b6b4
Mac OS X text input: stop sending the FL_PASTE event after character palette events;
...
send instead FL_KEYBOARD as for regular text input. Fl::event_key() will return 0 during
palette events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-29 09:12:38 +00:00
Manolo Gouy
110cd81b1e
Call [NSWindow setRestorable:NO] for each FLTK window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-08 13:11:56 +00:00
Manolo Gouy
a2d821cc2e
Use the [NSimage initWithCGImage:size:] message when possible.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-30 08:56:28 +00:00
Manolo Gouy
076eb8679f
Changed © (copyright) date to 2013.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26 14:15:25 +00:00
Manolo Gouy
c4494a94a7
Cosmetic improvement of image used when dragging non-text data.
...
Minimum OS version has been verified.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-19 09:20:56 +00:00
Manolo Gouy
53e2e603d0
Cosmetic improvement of image used when dragging non-text data.
...
Minimum OS version still has to be verified.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-18 16:15:59 +00:00
Manolo Gouy
6b69461ea9
Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because objective-c code is used.
...
Some code is transferred from Fl_cocoa.mm thus reducing somewhat this very large source file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 14:02:42 +00:00
Manolo Gouy
850bda435b
Removed processing of obsolete deadkey flag.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15 13:34:46 +00:00
Manolo Gouy
4c97f14e88
Reduced the usage of global variables.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15 11:00:24 +00:00
Manolo Gouy
42cc953b0b
Mac OS text input: fixed processing of dead key followed by non-text key.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-09 13:54:58 +00:00
Manolo Gouy
914e7f9b09
Mac OS text input: removed the Fl::marked_text_length() function that's not necessary.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-08 11:58:19 +00:00
Manolo Gouy
b22744aac0
Mac OS text input: a single FL_KEYBOARD event is now sent when processing dead keys.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-02 15:46:00 +00:00
Manolo Gouy
49f8a3cfc9
Fix STR#2928: alt+e on US keyboard not processed correctly as shortcut on Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-28 21:05:29 +00:00
Manolo Gouy
834c714f26
Mac OS: added support for internationalization of the application menu.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-25 16:28:49 +00:00
Manolo Gouy
b5a9c5218a
Mac OS: changed memory allocation style of static NSBitmapImageRep* rect_to_NSBitmapImageRep().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-20 16:54:23 +00:00
Manolo Gouy
161bdb8973
Mac OS: fixed a crash when printing window with OS 10.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 14:07:34 +00:00
Manolo Gouy
511c14e47d
Mac OS: fixed processing of system menu shortcuts that had been partly damaged in r.9799,
...
and fixed application menu with OS <= 10.3 that was duplicated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 09:49:33 +00:00
Manolo Gouy
b08f91e529
r.9800 was a bad move; going back.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 17:12:39 +00:00
Manolo Gouy
a0ef82b7dc
Simplification of the - (BOOL)[FLView performKeyEquivalent:(NSEvent*)theEvent] method.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 16:34:58 +00:00
Manolo Gouy
81da29ff12
Mac OS: reorganized the text input handling code. Added a detailed description of what the code does
...
for this rather complex issue in comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-17 17:40:53 +00:00
Manolo Gouy
9e67096dbb
Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
...
some key opens a window with possible accented characters: added [NSView windowLevel] useful for
fullscreen windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-14 09:07:34 +00:00
Manolo Gouy
482c4a5e0a
Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
...
some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and
Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default
behavior is to not use it. Fl_Secret_Input turns it off, for example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13 15:25:37 +00:00
Manolo Gouy
e042966ae7
About the fix for a problem apparent with the "cube" test program:
...
if the cube window is moved around rapidly, the GL pixels leak away from where they should be.
This problem no longer occurs with Mac OS 10.7 and above. The fix is thus made effective
only when OS < 10.7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-10 08:57:19 +00:00
Manolo Gouy
57771e16fd
Fix STR#2915 where subwindow stayed hidden after hide() and then show().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-08 21:06:29 +00:00
Manolo Gouy
31e49fcf12
Mac OS: divided the FLDelegate object in two objects, FLWindowDelegate and FLAppDelegate.
...
This might help mixing FLTK and other window-creating systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-07 15:56:14 +00:00
Manolo Gouy
28a85d27e9
Mac OS text input: corrected processing of arrow keys during character composition.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-26 14:02:59 +00:00
Manolo Gouy
cf672dba0d
Mac OS text input: defined a small API that user-defined text editing widgets can use to signal marked text.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-24 11:45:07 +00:00
Manolo Gouy
d7a5f3f04a
Mac OS text input: corrected minor issue when text widget is in a subwindow (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20 16:00:04 +00:00
Manolo Gouy
4ab7e91c61
Mac OS text input: corrected minor issue when text widget is in a subwindow.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20 15:12:32 +00:00
Manolo Gouy
81c98f228b
Removed compilation warning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18 16:06:56 +00:00
Manolo Gouy
a59ec3744d
Mac OS text input support: use primary selection for marked text in Fl_Text_Display + some reformatting.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18 14:24:07 +00:00
Manolo Gouy
46abc078b4
Mac OS: improved text input support with visible display of marked text in text widgets.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-17 17:44:15 +00:00
Manolo Gouy
3eb27ccf3e
Mac OS text input: set marked text as selected in text widgets so user is aware of it.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-16 16:04:02 +00:00
Manolo Gouy
05d20db147
Mac OS text input: Fl::compose_state is a number of bytes (not of characters).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-15 22:03:55 +00:00
Manolo Gouy
22b4198e45
Mac OS: fixed [FLView keyDown:] for OS 10.3
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-15 14:19:42 +00:00
Manolo Gouy
5a054cd1b3
Mac OS: fixed [FLView keyDown:] for OS ≤ 10.5
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14 23:36:59 +00:00
Manolo Gouy
9a2467ebc5
MacOS: towards implementing the NSTextInput protocol to support the text input management system (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14 21:29:45 +00:00
Manolo Gouy
1e4165ee7b
MacOS: towards implementing the NSTextInput protocol to support the text input management system.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-14 08:36:13 +00:00
Manolo Gouy
4b6613cbd2
Fix STR #2890 : MacOS unbundled applications don't appear in dock nor menu bar (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-30 18:20:36 +00:00
Manolo Gouy
4b3855f8c5
Fix STR #2890 : MacOS 10.8 unbundled applications don't appear in dock nor menu bar
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-21 11:37:57 +00:00
Manolo Gouy
98d5dd690d
Mac OS: make clear that image capture from screen returns an image in premultiplied RGBA format (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-17 14:57:55 +00:00