Manolo Gouy
3ce92f408f
Fixed STR#2848: Mac OS: close putative memory leak when detaching child threads.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-12 15:36:33 +00:00
Fabien Costantini
0ab2bd9dda
Added cocoa improvement inspired for from ossman improvement STR2802 for modal windows...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9407 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-28 00:46:24 +00:00
Fabien Costantini
e67e798aeb
Fixed build break on FLTK_ABI_VERSION >= 10302 introduce in r9293 as extern ref to fl_copy_offscreen would not be found anymore by linker... This can't be captured yet by the Jenkins continous intergration builds as the compilation is for the FLTK_ABIVERSION >= 10302
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9406 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-28 00:42:31 +00:00
Matthias Melcher
e2d3d400cd
Reverted flags in Fl_Widget to protected.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-23 20:12:06 +00:00
Manolo Gouy
37ea8ba9e6
Mac OS: canBecomeKeyWindow returns NO also for menu windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-04 19:53:11 +00:00
Manolo Gouy
cb32ceaf4d
Fix STR#2818: (Mac OS) tooltip window takes focus away from input field.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-04 16:33:09 +00:00
Manolo Gouy
08ce2e07d3
Fix STR#2641: true fullscreen windows that cover all their screen including menu bar, task bar, dock.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-23 16:47:53 +00:00
Manolo Gouy
8cd98f5236
Mac OS: Allow keyboard input with borderless windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-22 13:58:38 +00:00
Manolo Gouy
32d4bc4099
Fix STR#2810: removed all uses of function Fl_Device::class_name().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-18 18:48:29 +00:00
Manolo Gouy
7d0b5d05cb
Simplified Fl_Paged_Device::print_window() under Mac OS
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-14 08:49:36 +00:00
Manolo Gouy
f6cb583e27
Replaced fl_copy_offscreen_with_alpha() by Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha() and
...
fl_create_offscreen_with_alpha() by Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-12 11:55:50 +00:00
Manolo Gouy
4715e1593e
Use a new Fl_Quartz_Graphics_Driver or Fl_GDI_Graphics_Driver instance when printing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-12 09:39:17 +00:00
Manolo Gouy
719f72b501
Mac OS: renamed compute_macKeyLookUp() to fl_compute_macKeyLookUp().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-10 08:45:44 +00:00
Manolo Gouy
739a6f89ae
Mac OS: the macKeyLookUp table is now computed at program start from the vktab table
...
by compute_macKeyLookUp() in file src/Fl_get_key_mac.cx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-09 21:35:45 +00:00
Manolo Gouy
b8d34a254f
Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-12 16:00:07 +00:00
Manolo Gouy
2d4cf9e26b
Some code simplifications.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-12 12:49:58 +00:00
Manolo Gouy
4be97ea19c
Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (Mac OS-specific).
...
Modified the menubar demo program to exercise the Fl_Sys_Menu_Bar class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-11 16:16:31 +00:00
Manolo Gouy
67fdcb8fa3
Fix STR #2779 : clang-detected error
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-29 14:41:33 +00:00
Manolo Gouy
eab4e1f2d5
Needed after r.9181 for the Gmsh program according to its author Christophe Geuzaine
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-29 11:50:18 +00:00
Manolo Gouy
a1a9dbd961
Improved the windowShouldClose message processing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-23 09:19:39 +00:00
Manolo Gouy
d92f2d765b
Mac OS: fix possible crash when closing window with a callback that deletes it.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-22 14:48:47 +00:00
Manolo Gouy
1962c2b6ed
Fix STR #2775 . Under Mac OS, fixed some erroneous window move/resize.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-22 12:33:49 +00:00
Manolo Gouy
12a0cb308e
Fix STR #2769 : Mac OS crash during creation of non-modal window on secondary screen
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-14 17:10:28 +00:00
Manolo Gouy
74720fd205
Mac OS: better window positioning on secondary displays at creation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-14 15:15:03 +00:00
Manolo Gouy
409afd29cc
Mac OS: more accurate definition of the Window system-specific type.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-12 13:06:54 +00:00
Manolo Gouy
0cf73d4603
Mac OS: simpler processing of window closing events.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-30 17:23:42 +00:00
Manolo Gouy
8ff32e11d6
Mac OS: fixed the setting of the key window after a window is closed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-27 19:41:54 +00:00
Manolo Gouy
353f59a0ce
Mac OS: restore the focus to the top FLTK window after closing the window opened by the
...
"About ..." item of the application menu. This issue appeared with OS X 10.7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 12:42:41 +00:00
Manolo Gouy
8c552b377d
Fl_cocoa.mm: removed useless fl_screen global variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 09:12:33 +00:00
Manolo Gouy
81fcaed456
Mac OS: the procedure used to restore visible focus to a window after using an Fl_Native_File_Chooser
...
window failed under OS X 10.7. It's replaced by a simpler, OS version-independent procedure.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9144 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-22 15:12:57 +00:00
Manolo Gouy
0ba6c0e381
Simplified window positioning on main screen.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-18 12:18:22 +00:00
Manolo Gouy
55b744c225
When several screens, allow creation of window on secondary screen by Fl_Window::Fl_Window(x,y,w,h,title).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-18 11:46:29 +00:00
Manolo Gouy
9f15516f5e
Mac OS: don't generate an FL_SCREEN_CONFIGURATION_CHANGED event at application startup.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-12 12:38:32 +00:00
Manolo Gouy
2df4196d8b
About STR#2600 : some code factorization.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 13:09:06 +00:00
Matthias Melcher
00e8e44cf4
OSX: Fixed screen updates durin DND operations
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 09:38:35 +00:00
Manolo Gouy
c029bba113
Fix STR#2600 for the MSWindow and Mac OS platforms.
...
A new event FL_SCREEN_CONFIGURATION_CHANGED is introduced.
Fl::add_handler() allows to register a callback for this event.
The unix/X11 implementation is still missing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 08:03:22 +00:00
Manolo Gouy
d9cda5c3aa
Fix STR#2695 & 2697: correct computation of work areas with multiple screens.
...
This introduces 3 new functions
static void Fl::screen_work_area(X,Y,W,H)
static void Fl::screen_work_area(X,Y,W,H,mx,my)
static void Fl::screen_work_area(X,Y,W,H,screen_no)
that compute screen work areas and are used by FLTK to position menu windows.
The Fl::x(),y(),w(),h() functions are made consistent across platforms: they return
the origin/size of the work area of the main screen (as far as possible, see below).
On the Mac OS platform, all screen functions reflect changes in screen number and
positions without requiring the application to restart.
On the X11 platform, I did not find an API to compute the main screen work area
in all conditions. What's used does compute the correct work area when there's
a single screen, but not when there are several, because it returns an area that
encompasses all screens. The implemented workaround is that Fl::x(),y(),w(),h()
and Fl::screen_work_area(X,Y,W,H,0) return the exact work area when there's
a single screen, and return the full screen area when there are several.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29 16:04:24 +00:00
Manolo Gouy
0faba4e3cb
Mac only: further fine tuning in clipping/rectf needed for scroll demo after changes in r.9050.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 09:07:50 +00:00
Manolo Gouy
bdb000bf2f
Mac OS: simplified use of CGRectMake() for rectangle drawing and clipping on display and printer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-19 19:03:22 +00:00
Manolo Gouy
58076d7a26
Mac OS: - Correct application hiding when modal or menu window is on.
...
- Removed useless FL_FOCUS events when unhiding application.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-13 13:03:07 +00:00
Manolo Gouy
8c6aad459d
Mac OS: center on page the "Print Front Window" application menu command.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08 08:09:20 +00:00
Manolo Gouy
21ddc8900c
Before deleting a window, it's better to check whether it contains the currently focused NSView,
...
and unlock focus there.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02 12:15:43 +00:00
Manolo Gouy
5b98e80a4f
Mac OS: Greatly simplified the open document handler.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 13:26:52 +00:00
Greg Ercolano
4f4a8fc3c7
Modifications to all LGPL headers for STR #2685 .
...
(to clarify static exception LGPL by changing license references)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Manolo Gouy
b2561363f7
Mac OS: fix STR #2666 allowing to display copyright info in the default About window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 14:53:07 +00:00
Manolo Gouy
264c73c9ab
Mac OS: added missing lock/unlock pairs when running system menu items.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 13:52:16 +00:00
Manolo Gouy
20ab9c3c33
Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_window().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 09:45:21 +00:00
Manolo Gouy
3bc8713bac
Fl_Paged_Device::print_window() now works with any output surface on Mac platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04 15:07:22 +00:00
Manolo Gouy
0b784cc90f
Arguments x_offset & y_offset of function Fl_Paged_Device::print_window() were partially
...
ignored by the Mac version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04 13:54:43 +00:00
Manolo Gouy
598057f079
Fix STR #2665 : Mac OS: use bundle name when available.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 12:35:32 +00:00