summaryrefslogtreecommitdiff
path: root/src/Fl_mac.cxx
AgeCommit message (Collapse)Author
2006-08-17Fixed stray FL_RELEASE events after clicking system areas on OS X (STR #1376)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17Fixed my previous fix... . Resizing events were not handled anymore.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-16STR #1341: Fixed Fl_Window::visible() and shown() for OS XMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14Changed Tooltip::exit_() to Tooltip::exit()Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. ↵Matthias Melcher
Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus. Of course, poping up a tooltip window does *not* disable further tooltips... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09Added an event variable "Fl::event_original_key()" which returns the current ↵Matthias Melcher
key code (see Fl::event_key()) before it gets mangled through the NumLock keypad conversion. This way, an application can differentiate between an arrow key and a numeric keypad w/NumLock off. On Win32, releasing a numeric keypad key w/NumLock off wiould return the wrong keycode (keypad instead of arrow key). Documentation changed accordingly. X11 code is yet to be tested. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-07OS X: fixed handling of the KP_Enter key which is at different key codes for ↵Matthias Melcher
the Powerbook vs. Desktop machines. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06STR #1310: OS X Quartz support fixed. All test codes now work without ↵Matthias Melcher
complaints fro Quickdraw or CoreGraphics. If no more major bugs are reported for Quartz, I will make Quartz the default over Quickdraw in the next release of FLTK 1. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05OS X Quartz rendering: text is now clipped and drawn in the correct color. I ↵Matthias Melcher
had to reverse the 'selection color' change because some widgets rely on this color being dark. Still problems with Fluid rendering and measuring fonts before a window is open. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-04OS X Quartz: one pretty essential fix to the call order in Quartz context ↵Matthias Melcher
change which fixed a lot of warnings. I also added a file that helps tremondously to debug Core Graphics calls. This file is not compiled into the source tree by default, but the annotations in "src/cgdebug.h" explain the usage. In regard to CG Text drawing vs. the new ATSU Text drawing: I now remember why I did not ATSU in the beginning: STDU does not use the CG clipping area or text pen settings. So, if you plan on using the current SVN with --enable-quartz, please be aware that you will not have any text clipping or any other text color than black. Finally, I added code to FLTK on OS X that retreives the selection color from the system instead of assuming dark blue. I am not entirely confident about this change as it may require OS X 10.4 . Feedback appreciiated. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30Fixed resizing in OS X. The code was not only unneccesarily convoluted, but ↵Matthias Melcher
also forced some default sizes on user requests for specific window sizes. The new code also avoids two system calls and shortens a move/size combination into a single resize, which reduces some flicker on extreme resizes (but not all flickering - Apple, what's up with that?). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-28Fixed maximizing in OS X (STR #1221)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-20STR #1233: previous timer implementation on Mac OS X was eating up various ↵Matthias Melcher
resources. The new implementation will return Timer and UPP to the system, or just reprogram a timer for efficiency, where possible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-19STR #1195: It was not possible to enter a whole range of characters on Mac ↵Matthias Melcher
OS X, including umlauts, etc. . The changes in this patch should not only allow the FLTK way of composing characters, but also support the Mac way of composing including the dead-key preview. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-04STR 1195: caret key lookup entry was missing on Mac OS XMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-01STR 1200: fixed wrong allocation of copy/paste bufferMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15More copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02Use "512" in place of kWindowNoTitleBarAttribute, as that constant wasMichael R Sweet
only introduced in MacOS X 10.4! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02STR #1135: Triggering a timout would not break the event loop, giving no ↵Matthias Melcher
opportunity to FLTK to call flush. As a result, all redrawing that depended on timeouts only would not get done unless some other event was received. If the idle function was set, the event loop would break and redraw wold work again. I moved all timeout functions from Fl.cxx to Fl_mac.cxx since they are very system specific and made the timeout break the main event loop, just like it does on all other platforms. This bug must have been around for at least two months... . git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30STR #1082: fullscreen demo would not redraw because resizing would set the ↵Matthias Melcher
"wait for expose" flag. However, OS X does not send an expose event on resizes. Doh! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30STR #1082, part 1: Matthias Melcher
Borderless windows now do not vanish anymore when the application becomes inactive, unless they are menus, or tooltips. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29Fix mouse wheel handling on OSX (this works with MightyMouse on OSX 10.4.3Michael R Sweet
using the standard mouse wheel event...) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28STR #1075: After all windows in an application were hidden by the Command-H ↵Matthias Melcher
shortcut, FLTK would not be notified about the Command key beeing released. To fix this , I update the mofier keys when a window is shown again. There may be better ways to do this, but it seems to be working reliably for the apps I tested. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26Mousewheel fixes.Michael R Sweet
src/Fl_mac.cxx: - Disable MightyMouse code for the moment - it is crashing on my PowerBook... src/Fl_Scrollbar.cxx: - Fl_Scrollbar::handle() should only return 1 for mousewheel events that it uses. test/sudoku.cxx: - More tweaking. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25Fix mousewheel handler bug (using wrong variable in initial check)Michael R Sweet
Add sudoku game app (fun for the holidays! :) Use "-Os -g" as the default optimization settings. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25OSX fixes...Michael R Sweet
src/Fl.cxx: - Don't compile in static functions that aren't used. src/Fl_mac.cxx: - Coding style... src/Fl_Sys_Menu_Bar.cxx: - Fix FL_META handling - FL_META incorrectly set the CTRL modifier, and it was not possible to get all combos of modifiers. The new coding should work properly for all combos... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-06Added missing comma in Mac OS X codeMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04Fix speling misteaks :)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04STR #1060: first attempt at fixing the dreaded MightyMouse issue on OS X. Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02STR #1050: OS X: The new event handler code did not handle "high level" ↵Matthias Melcher
Apple events except "Quit". Added the neccessary AE handler call in the main loop. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-01STR #1059: OSX: applications could not reset the click count, so a trippleMatthias Melcher
click with reset could be interpreted as a double click, then a tripple click, instead of double click, then a single click M Fl_mac.cxx git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-10STR #1047 (Mac only): This is an additional fix to the event conversionMatthias Melcher
that I did to the Mac version a while ago. It makes the menus work as expected again. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-25Ported FLTK 2 changes to event system on OS X back to FLTK 1Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-11OS X drag'n'drop now pastes into the correct widget (STR #974)Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-08Moved some code around so that FLTK will figure out the Matthias Melcher
event_text for dnd text on the first FL_DND_ENTER event and then keep if in a temporary buffer until FL_PASTE or the next DND event. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-23STR #602Matthias Melcher
OpenGL Windows inside Tabs that were inside of tabs were not drawn correctly. This was due to the fact that a first 'show' on a Tabs widget would show *all* groups inside the tab (unless the user called 'value(...)' on it first). This was only visible on OS X, because subwindow clipping would wrongfully clip even hidden subwindows. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16Update source file headers with STR web page.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24Copyright updates.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-12-03Fl::event_number() didn't always match the value sent to theMichael R Sweet
handle() method (STR #634) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-23Moved code to avoid positioning windows on Dock into 'fake_X_event'Matthias Melcher
which now allows hotspot dialogs to pop up on a second screen, if requested. Unfortunatly, popup menus still pop into the main screen as soon as the mouse is moved. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-09Quartz port:Matthias Melcher
- removed all #warning statemnets and explained caveats with regular // warning lines - made GL text rendering work again (may use wrong fonts since agl doesn't really support ATS) - removed horizontal jittering in Fl_Input_ caused by fractional text positions. Unfortunatly, this does not work for Fl_Text_Display, which not only jitters, but also became horendously slow due to the complex font rendering in Quartz) I will fix some of the speed issues in fl_measure this afternoon, and also improve on the 'innards' for rgb data rendering. After that, I will have to leave the Quartz port alone for a while due to lack of time. I suggest we make another rc in the next days. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-31Quartz for FLTK1.1Matthias Melcher
- Pixmaps now correctly support transparency/masking - subimage drawing aligned correctly - lines with a size over 1 always anti-alias - fl_begin_points/fl_end_points works - fixed refresh problem for multiple open windows Will check Linux compile right after this commit to make sure that I didn't destroy anything. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-31Quartz for FLTK 1.1:Matthias Melcher
- added pixmap drawing (no masking yet) - added bitmap drawing - added line styles (complete) todo: - missing refresh (double test, fluid, others) - missing pixmap mask - color_chooser has alignment issues - images scale instead of beeing scissored - fonts git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-27Quartz:Matthias Melcher
- made multiple contexts for windows, popups and menus work - still missing: double buffer handling git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-26FLTK1.1 Quartz support:Matthias Melcher
- added a 'test/unittests' which wil check for identical drawing on all platforms. This was desperatly needed to fix tremendous problems in getting the Quartz drawing routines right - disabled anti-aliasing for functions that draw straight lines at integer coordinates git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-26Mac Quartz:Matthias Melcher
- attempt at making the clipping work well - improved drawing (still many 1-off bugs) - 'arc' test seems to run well - beware! the Quartz version is pretty unstable at this point git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-26Quartz implementation for FLTK 1.1:Matthias Melcher
- added very crude font support - added line drawing support - added line color support - added filled shapes support - added some arc and circle support (no ovals) - attempt at getting the clipping working, however the stack oriented design of Quartz is starting to become a real hassle git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-25Updated config stuff to allow for --enable-quartz ofr Mac OS X which inMatthias Melcher
turn defined USE_QUARTZ to 1 and defines __APPLE_QUARTZ__. If Quartz is not disabled, it will define __APPLE_QD__ for Quickdraw. I also replaced all relevand #ifdef __APPLE__ with #ifdef __APPLE_QD__ #elif defined(__APPLE_QUARTZ__). This does not affect the compile at this time and both version will generate the same Quickdraw code. I will start to replace all QD calls with Quartz calls for the remainder of the week until I can completely remove all QD calls from the Quartz branch. Thanks to Robert Smith for a great initial Quartz implementation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-06-19Fixed Mac NumLock mixup (Macs do not have a PC style NumLock)Matthias Melcher
Added keylookups and keycodes for FL_Menu and FL_Delete keys. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-06-01FLTK now honors the numlock key state (STR #369)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121