Commit Graph

55 Commits

Author SHA1 Message Date
Manolo Gouy
25f3f44253 Mac OS X: display dragged text as cursor for Fl_Text_Display as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-29 14:12:57 +00:00
Manolo Gouy
b2d7e70851 Changed copyright to 2010
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28 21:57:37 +00:00
Manolo Gouy
7eb27fa4bd Mac OS X: introduced global variable fl_mac_os_version and cleaned a few unused variables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-25 18:21:21 +00:00
Greg Ercolano
61a9b32872 Solves STR #2428: Silence numerous compiler warnings about float->int conversions, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-15 04:34:58 +00:00
Manolo Gouy
d2f4577fc3 Fixed crash under Mac OS X 10.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-08 08:10:48 +00:00
Matthias Melcher
1d9781a7ae A bunch more UTF-8 fixes for Fl_Text_Display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 17:20:32 +00:00
Manolo Gouy
ae9da5cff9 Simpler and cleaner handling of cocoa keyboard events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-06 15:06:25 +00:00
Matthias Melcher
5560a4f0f1 Fixed a few pedantic warnings. Added Fl::option as discussed in STR #2368, but I am not too happy with it yet. Please see discussion in that STR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-31 22:39:40 +00:00
Manolo Gouy
b10ffb40d8 Mac OS X: simplified processing of keyboard events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-27 20:03:37 +00:00
Manolo Gouy
901bc31ec3 Use Mac OS-defined character composition method. It allows to handle composed characters of many more languages than before (e.g., Polish, Greek).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-26 21:01:17 +00:00
Manolo Gouy
3eddf4dcfc Corrected mac key codes for FL_Delete and FL_Num_Lock keys
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-19 12:29:35 +00:00
Manolo Gouy
9f8bbb2a11 Correctly account for position of dock in Fl::x() and Fl::h() functions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-07 10:50:13 +00:00
Manolo Gouy
61eb9377c8 Renamed global variable from fl_device to fl_graphics_driver to better express its class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-07-01 13:21:32 +00:00
Manolo Gouy
26049351e0 Better device hierarchy with surfaces and graphics drivers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-27 17:20:18 +00:00
Manolo Gouy
0a280ce591 Fl_cocoa.m: better delete_timer function
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-27 07:06:43 +00:00
Manolo Gouy
53d7a643f1 Fl_get_key_mac.cxx: removed GetKeys Carbon call
Tested OK with keyboard demo.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-26 21:25:11 +00:00
Manolo Gouy
e2165ba028 Fl_cocoa.mm: removed 4 more Carbon calls (related to timers)
Tested OK with clock, scroll and tabs demos.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-26 20:04:00 +00:00
Manolo Gouy
347754de61 Fixed "Unlock focus on wrong view" error that occurred sometimes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-05-18 14:21:45 +00:00
Manolo Gouy
d0b1cc30f7 Removed multiple inheritance: back to r. 7519 exactly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-18 06:57:37 +00:00
Manolo Gouy
913530758a Improved the hierarchy of Fl_Device subclasses to allow separation of platform-specific devices.
This introduces multiple inheritance.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-16 20:19:09 +00:00
Matthias Melcher
896c6c2766 Apple Cocoa: modal windows would not resize.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-04-11 09:52:05 +00:00
Manolo Gouy
b2a7c3df5e Fl_cocoa.mm: fixed bug where events of drag&drop of files at launch time were ignored
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-30 18:14:57 +00:00
Manolo Gouy
44d22726b6 Removed 3 Carbon calls from file Fl_cocoa.mm
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-26 16:04:06 +00:00
Manolo Gouy
80c7817dc2 Fixed bug where cmd-shift-key was not distinguished from cmd-key on US keyboards
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-24 13:54:50 +00:00
Manolo Gouy
b5e2d38b2f Have class Fl_Sys_Menu_Bar and function fl_mac_set_about appear in Doxygen doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-16 14:47:40 +00:00
Manolo Gouy
0df1d8b695 Conflict with variable id used in Fl_Images.H and others was removed, so #define id id_ hack now useless.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-16 09:08:27 +00:00
Manolo Gouy
1c904d452b Now compiles with GCC3 and 4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-15 15:57:48 +00:00
Albrecht Schlosser
998cc6df52 Merge of branch-1.3-Fl_Printer, with the following main changes:
(1) adding Fl_Device class (and more) for device abstraction
 (2) adding Fl_Pinter class (and more) for printing support.

Todo: Code cleanup, update dependencies, remove/replace test print window.
I'm looking into converting the test window popup in a global shortcut
that would pop up the print dialog now...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-14 18:07:24 +00:00
Greg Ercolano
8b9b025f8f Fixes for STR #2323; missing right/middle drag events and missing mousewheel clicks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-03-04 17:17:04 +00:00
Albrecht Schlosser
0f891bc48b Adjusting indentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-28 13:56:26 +00:00
Manolo Gouy
cdfefaed88 Simpler Fl_X::q_begin_image() function without matrix inversion that accepts scaling and rotation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-21 18:40:15 +00:00
Matthias Melcher
2f82fd0663 Mixed bag. Please see CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 21:14:47 +00:00
Manolo Gouy
c7a1aead4c Removed unnecessary statement when destroying a window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 17:28:44 +00:00
Manolo Gouy
191abba69a Fixed Alt+Shift+letter as shortcut
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-20 14:06:36 +00:00
Matthias Melcher
b416a027cf Fixed window levels in OS X Cocoa (STR #2316)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-19 20:21:20 +00:00
Manolo Gouy
b434df6061 changed events dispatching so command+key generates both FL_KEYBOARD and FL_KEYUP events
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-16 07:27:55 +00:00
Manolo Gouy
5a76896908 removed unused variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-15 20:35:58 +00:00
Manolo Gouy
1ff2af5fd3 update event_x_root and event_x earlier is more accurate
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-11 09:32:26 +00:00
Manolo Gouy
881c882629 allows compilation with gcc-3.3
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-10 23:11:19 +00:00
Manolo Gouy
5ec87ac848 simplifying clipping algorithm: done once in make_current() instead of repeated at each fl_restore_clip() call
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-02 17:13:55 +00:00
Manolo Gouy
c7b67bc252 fixes STR 2309 by updating Fl::e_x, e_y, e_x_root and e_y_root after window moves, resizes and activations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-02-01 17:41:32 +00:00
Manolo Gouy
4645ed9703 defined macro FL_CGRECTMAKE_COCOA that
contains the correct way to transform x,y,w,h into
a CGRect adequate for clipping

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-29 21:16:20 +00:00
Manolo Gouy
1eb95cd823 Three Cocoa-related changes:
- correct window resize in mandelbrot demo
- clip to 1-pixel and 0-pixel width now work
- modifier key presses are now correctly reported

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-24 10:27:21 +00:00
Greg Ercolano
1de0988c31 Added Fl_Native_File_Chooser widget (with manolo's cocoa mods) to FLTK.
* Source brought into CMP standards compliance
	* test program added (test/native-filechooser.cxx)
	* Tested with linux (Ubuntu8) and with OSX (cocoa and non-cocoa builds)

TODO:
	* Needs doxygen docs from Greg's original HTML documentation
	* Needs mods to Windows build files
	* Needs mods to cmake, and other build files
	* Needs Manolo's latest mods (from STR #2298) mentioned on and after "02:05 Jan 13, 2010"



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-13 23:13:59 +00:00
Matthias Melcher
e5fed1d0fa Another update by Manolo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-01-04 16:57:11 +00:00
Matthias Melcher
a5a5850e10 Yet another Cocoa patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-21 18:43:13 +00:00
Matthias Melcher
bdbea14218 Patched for Cocoa.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6971 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-18 20:11:24 +00:00
Matthias Melcher
73a30359b9 Trying to fix update rectangles and dnd in Cocoa. Currently, invalidating a rectangle does not work. This can be seen when dragging data within an application, for example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-13 17:34:19 +00:00
Matthias Melcher
c8278a2344 New patches appliet for Cocoa port. Fixed(?) STR 2232 workaround for X11 keyrepeat bbbbuuuuuuggggg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-13 12:03:26 +00:00
Matthias Melcher
64716f01e2 Applied the 'recap.zip' files to the Cocoa patch. About diaog now correct. Much other stuff should work better now. Exciting!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-12-12 18:26:12 +00:00