Commit Graph

5942 Commits

Author SHA1 Message Date
Manolo Gouy
879a8fbabf Propagate Fl_X::mapped_to_retina value from parent to subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 20:09:55 +00:00
Manolo Gouy
68a577e1f6 Improved handling of high resolution ("retina") displays.
The new field bool Fl_X::mapped_to_retina is updated when needed, that is, when the window is moved.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 16:54:30 +00:00
Manolo Gouy
2d0670104b Removed one use of dynamic_cast.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-11 13:28:23 +00:00
Manolo Gouy
84af5805df Removed statement that became incorrect with true Mac OS X subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-09 11:15:12 +00:00
Manolo Gouy
c082c78805 Removed subwindow-specific code that is no longer needed with true subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-07 07:24:32 +00:00
Manolo Gouy
f1c7d674d2 Improved processing of retina displays: replace [NSWindow backingScaleFactor] that is not recommended.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-05 17:18:19 +00:00
Ian MacArthur
596fd2784a Extend advanced.dox multithreading to add additional caveats
about the use of show() and hide() from child threads, based
on issues reported in fltk.general with tooltip windows
causing issues.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-01 10:42:41 +00:00
Manolo Gouy
0fdb271a78 Make sure that subwindows won’t leak out of their parent window
even if they have coordinates that would provoke it.  

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-30 12:34:21 +00:00
Albrecht Schlosser
9797563552 Improve code formatting according to CMP.
Add one pair of braces for clarity, move some other braces and
else statements around. There's more to that, but these were
minimal changes to improve readability for solving STR #3043.
There are no real code changes involved though.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-27 15:29:54 +00:00
Lauri Kasanen
e7e8faa25b Improve tooltip behavior for huge tooltips: remove flicker, support key/mouse dismiss
Fixes STR 2650.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-27 09:47:40 +00:00
Manolo Gouy
a482495236 Corrected case when using retina display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-26 20:42:08 +00:00
Albrecht Schlosser
3e399aa704 Update CREDITS file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-26 15:11:20 +00:00
Albrecht Schlosser
278fafb2f3 Separate and improve documentation of overloaded Fl::event_state() methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-25 14:18:23 +00:00
Albrecht Schlosser
972c6ff7df Fix a doxygen warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-25 14:15:36 +00:00
Manolo Gouy
766a181421 Change necessary now that there are true FLTK sub-windows on the Mac OS X platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-25 09:03:30 +00:00
Albrecht Schlosser
f7b50362c4 [CMake] Fix CMake 3.1 warning about new policy CMP0053.
CMake Warning (dev) at CMake/export.cmake:48 (set):
  Policy CMP0053 is not set: Simplify variable reference and escape sequence
  evaluation.  Run "cmake --help-policy CMP0053" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

Changed old-style @variable@ replacement to ${variable}. 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-24 09:35:04 +00:00
Albrecht Schlosser
fd4784a340 Set correct svn properties on CMake files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-22 00:42:44 +00:00
Albrecht Schlosser
57318e8b3e Update ignored files in examples directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-21 17:17:49 +00:00
Manolo Gouy
d5d6b8ae19 Carbon function TSMGetActiveDocument() and its friends are no longer documented on the Apple web site.
Don’t use them unless Fl::disable_im() is called.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-19 18:20:41 +00:00
Manolo Gouy
f52b457cc2 Added full support of retina displays on the mac platform.
On such displays, one drawing unit equals two pixels.
The fl_xyline() and fl_yxline() functions are modified to perform
extra operations when drawing to a window on a retina display.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-19 16:23:36 +00:00
Manolo Gouy
659480f28b Matches CGContextSaveGState() with corresponding CGContextRestoreGState().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-19 10:29:30 +00:00
Manolo Gouy
a385786d3a Remove unnecessary statement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-19 10:05:47 +00:00
Manolo Gouy
a5c4784ded Use fl_xyline() and fl_yxline() that are better for horizontal and vertical lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-18 21:45:51 +00:00
Manolo Gouy
b8a1618c0a Implement applicationDidUpdate differently according to running OS version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-17 16:08:23 +00:00
Manolo Gouy
537ea4a7e1 Remove static members of the Fl_X class that became unused.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-16 13:10:45 +00:00
Manolo Gouy
7d6e58acba Improves the cmd-Q handler as discussed in FLTK.coredev "Safe widget deletion ».
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-15 21:59:41 +00:00
Albrecht Schlosser
80bd905981 Fl::delete_widget() now hides a widget/window if it is shown (visible_r()).
This is useful (necessary) because in old (pre 1.1.6) which  didn't have
Fl::delete_widget() users would have called 'delete window', which would
have hidden a window and destroyed it as well. Now the widget/window is
hidden immediately, whereas it is destroyed delayed, which comes much
closer to the previous behavior and is useful for better window close
detection in Mac OS X cmd-Q handling.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-15 15:23:56 +00:00
Manolo Gouy
cc9b73d97a Invalidate the Quit item of the application menu when running modal.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-15 14:55:15 +00:00
Manolo Gouy
43989ec606 Support for true subwindows under Mac OS X (cont’d).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-13 15:33:33 +00:00
Manolo Gouy
d2072c818c A subwindow in an Fl_Tile did not work well after recent addition of support for true Mac OS X subwindows.
The tile demo program runs correctly again.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10453 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-13 13:57:27 +00:00
Manolo Gouy
b0c7a6f509 Fix error in Gnome file dialog where a file filter did not work if it did not begin with *
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-13 12:36:57 +00:00
Manolo Gouy
42a2e9c64f Fixed the declaration of the Window type.
Before, the fl_find(Window) function was not accessible from .mm source files.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-12 20:42:41 +00:00
Manolo Gouy
410f9e8e0e List new support for true subwindows on the mac.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 16:16:09 +00:00
Manolo Gouy
e4d4f400a4 Added support of true subwindows to the Mac OS X code. With this, a window inside another
window is just another window with Mac OS as it was already with MSWindows and X11.
This requires Mac OS X 10.2. Window nesting to any depth is possible.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 16:08:09 +00:00
Manolo Gouy
f9f4ecedf7 List fix for STR#3142.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 15:59:50 +00:00
Albrecht Schlosser
14524992a6 Documentation: fix another image display issue.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-10 22:29:49 +00:00
Albrecht Schlosser
b93f8d775a Documentation: fix resizable images that were not displayed correctly.
The resizable effect was not shown proportionally correct.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-10 22:09:11 +00:00
Greg Ercolano
a6369a4234 Small mod to fix problem with color chip image not showing up in doxygen docs.
Oddly, leading white space on the two \image commands caused them to appear
as literal text inside a code box, similar to as if they were embedded in a
\code - \endcode block -- not sure why.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-10 20:31:42 +00:00
Manolo Gouy
eda1158509 Removed useless #include directive.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-09 11:30:14 +00:00
Manolo Gouy
e037083a5b Prevent Fl_Copy_Surface.H from including apple system headers on the mac platform.
With this, no public FLTK header includes system header files anymore on the mac.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-09 08:34:26 +00:00
Manolo Gouy
574e31276e Rewrite Fl_Copy_Surface::complete_copy_pdf_and_tiff() using cocoa APIs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-08 18:14:31 +00:00
Manolo Gouy
baf5ea7d56 Added Fl_Copy_Surface::w() and Fl_Copy_Surface::h() member functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-08 18:10:35 +00:00
Albrecht Schlosser
eb6c15bcef [CMake] Fix man page path. Patch posted by Richard Shaw in fltk.general.
Thanks for the patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-08 17:21:09 +00:00
Greg Ercolano
d892e05d8a Doc mods regarding the OS issue of Ctrl-Click simulation of Right-Click
on Mac OSX, as per recommendations from the forum posts on fltk.coredev
Subject: [RFC] Right click emulation for one button mouse on Mac
where both Manolo and Albrecht suggest documentation mods to reflect the issue.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-07 19:13:08 +00:00
Manolo Gouy
13cd0a16b5 Replace deprecated pasteboard manager by cocoa NSPasteboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-07 17:08:13 +00:00
Manolo Gouy
f2bb3ea76c The Fl_Native_File_Chooser class contains, under WIN32, two system-defined structures
(OPENFILENAMEW and BROWSEINFOW). This forces any application program that uses
Fl_Native_File_Chooser to include file windows.h.
This is corrected by using in the Fl_Native_File_Chooser class pointers to the 2 structures.
The changes are protected by #if FLTK_ABI_VERSION >= 10304 for ABI compatibility.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-06 21:33:09 +00:00
Manolo Gouy
bd1446a6eb Fix for STR#3142 where fl_read_image() correctly reads GL data under X11, but ignores them under MSWindows and Mac OS X.
Moreover, fl_read_image() behaves differently with and without OS virtualization for X11 and MSWindows.
The patched function reads whatever is in the rectangle transmitted in arguments, with and without GL data, with and without subwindows,
on ‘true’ OS or on virtualized OS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-06 16:48:57 +00:00
Manolo Gouy
f5e023f9c8 Use +(void)initialize method of the NSObject class.
Create classes FLWindowDelegateBefore10_6 and FLViewBefore10_6 to support text input before Mac OS 10.6

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-06 15:35:32 +00:00
Lauri Kasanen
4c811151c0 The EWMH check requires an open display.
Fixes a crash when a program calls take_focus() before any window has been show()n.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-04 17:26:47 +00:00
Albrecht Schlosser
df31569ac4 Add unittests to demo program menu.
This test program may not be in the optimal position in the menu,
but w/o restructuring more of the menu this was the best position
I could find. Maybe we can restructure the menu in the future.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-04 10:05:36 +00:00