Commit Graph

1967 Commits

Author SHA1 Message Date
Fabien Costantini
3787be9b6e Doxygen documentation: replace all occurences in comments of " by a quote char. Temporarily set warn_if_undocumented to NO until we correct more severe messages.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-17 15:44:43 +00:00
Albrecht Schlosser
5cd6da0ae4 Fixed bad '\' escape sequences (removed "unknown command" warnings).
And yes, I added some <tt> tags again, because e.g. "@." wouldn't
be very well readable in a proportional font (FL_Browser.H).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-17 11:08:59 +00:00
Albrecht Schlosser
9e2f9c5b3a fixed typo in comments
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-17 09:18:52 +00:00
engelsman
915d310a70 added doxygen comments for fl_color_chooser() function.
By creating a doxygen group in the .cxx file with the implementation,
I've achieved a separate fl_color_chooser() module in the generated
documentation, with a Referenced by link that doesn't [yet] work.
Is there a way to also make this appear in the Fl_Color_Chooser.H page?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 22:25:07 +00:00
Fabien Costantini
ae697b80b2 Doxygen documentation : took the opportunity to update copyright info as we modified already in batch almost all sources, added also a fil doxygen command to class headers to harmonize with original matt Fl_Widget dox. format.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 07:26:22 +00:00
Albrecht Schlosser
e20eeb6541 applied Duncan Gibson's documentation patch (WP3).
Docs look good, compiles okay.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-16 06:49:08 +00:00
Fabien Costantini
e6652d845a Doxygen documentation increment 2: adding more classes, comments not referenced in original doc. hide public enter_(), exit_() functions, made friend Fl_Widget::tooltip(), these should not appear in the public member dox. documentation. added static variables initialisation to 0 in glut for msvc platform compilers."
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 20:56:17 +00:00
Fabien Costantini
a99524ef2d Doxygen documentation. Completed Fl class, added a todo related to recent Fl API to document. Matt?. More cosmetics have been done, replaced *all* <pre> </pre> tags by \code \endcode sequences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 19:21:20 +00:00
Fabien Costantini
d55dfeb5e9 Doxygen documentation. Fixed somes typos and also H4 remanent misplaced tags and comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 17:46:42 +00:00
Fabien Costantini
b8955a9ced Doxygen documentation WP11 Done!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 16:39:05 +00:00
Fabien Costantini
09f3094aef Doxygen documentation WP10 Done. Reserved WP11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 12:46:49 +00:00
Matthias Melcher
730dc6367d Ah Unicode! Using the correct UTF8 glyphs for OS X menu shortcuts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 11:41:39 +00:00
Fabien Costantini
8701883e54 Doxygen documentation WP9 Done.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 11:10:51 +00:00
Fabien Costantini
b9ca133376 Doxygen documentation WP8 Done. Reserved WP9, WP10. Will now check WP3 from engelsman and integrates it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 08:41:54 +00:00
Fabien Costantini
fdcfef214e Doxygen documentation WP7 Done. Fl_Menu_Item was a real pain to doxyfy.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-15 00:27:28 +00:00
Fabien Costantini
6645d3cb6a Doxygen Documentation WP6 Done, Also completed the documentation of Help_View, Help_Dialog and cleaned up Preferences from ugly stars in comments and also removed redundant get/set text from methods doc. In this increment, we don't bother with the old dox format (comments in header). We have better things to do with our time (like about 40 mores files to doxyfy :-).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14 20:00:03 +00:00
Matthias Melcher
f49e2a7af5 Horribly hacked together Unicode keyboard support for OS X. But although this needs a lot of fixing and cleaning, we can now at least enter characters outside of the stricly ASCII range again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14 19:09:13 +00:00
Fabien Costantini
7ddd3b8c50 Doxygen Documentation WP5 Done, WP6 half finished so that all Fl_Image class hierarchy is up-to-date. Also completed the documentation of the useful Fl_Shared_Image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14 18:19:41 +00:00
Fabien Costantini
ce4d0fd5d8 Doxygen Documentation WP4 Done. Has all documentation content but should be completed in increment 2. Registered for WP5.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14 15:45:27 +00:00
Fabien Costantini
58548b781d Doxygen Documentation WP2 done.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14 12:45:42 +00:00
Fabien Costantini
9bf19e2329 WP1 merged from my branch, WP2 reserved, todo list updated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-13 22:33:03 +00:00
Matthias Melcher
483dab9e92 Remove compile-time dependency on Imm32.dll on Win32. I have no MSWindows machine here, so this code is likely to contain one or more typos... . When working, this will take the burdon of linking to imm32 away, so that existing makefiles will need no changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-11 11:14:06 +00:00
Matthias Melcher
000946ba22 Fixed a few missing renames form Fl_FontSize to Fl_Font_Descriptor
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-11 06:12:21 +00:00
Matthias Melcher
b6bde2e456 Merging the UTF8 patch, consisting of O'ksi'd s original 1.1.6 patch and additions by Ian. PLEASE BE AWARE that the patch in its current incarnation is a regression in many aspects and further work is required before we can announce Unicode support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-10 23:56:49 +00:00
Albrecht Schlosser
84e98c0ce9 modified resize behavior, as discussed in STR 2032.
Fl_Group.cxx: resizes itself before changing its children
Fl_Scroll.cxx: similar change


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-07 11:22:14 +00:00
Fabien Costantini
c7f4b8c930 merged modification from my private branch after successful regression testing on win32,cygwin/mingw, mac osx, linux.
Fl_win32.cxx and Fl_x.cxx modified for:
======================================
 - STR# 2029 fix: async select using USE_ASYNC_SELECT def. would not work. Obsoleted and commented as discussed
 - STR# 2032 fix: fl_ready would load wsock dll unnecessarily. Bad indents corrected

fluid.cxx modifed for:
======================
Added a local portable Fl_Process class to fluid enabling popen encapsulated win32 impl. based on CreateProcess() to work as expected in non console apps, so that exec command output window is now also implemented in win32, also permitting testing add_fd()/remove_fd() API relying on winsock on win32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-02 12:03:30 +00:00
Fabien Costantini
e77a5d14d8 wsock32 static lib dependency removal from win build files.
error msg if wsock load fails changed by Fl::fatal() API use.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-28 17:33:56 +00:00
Fabien Costantini
5156431137 STR #1972 fix :check validity of icrsr before updating cursor state.
Fixes crashes when setting up Fl_Wizard pane dynamically before show() is called.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-27 18:12:28 +00:00
Fabien Costantini
bc6d15183c + Added a new optional compile time varaible named USE_WSOCK1 that would change the use of the WINSOCK2 libray by default, by the use of Winsock 1 (also implies the use of winsock.h instead of winsock2.h)
+ Removed one unused ret variable.

TODO: remove unnecessary wsock32.lib dependency from fltk-config, and other win32 build files.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-27 16:53:39 +00:00
Fabien Costantini
05a6292ac0 included the broken_image test in the free() method of Fl_Help_View for Win32, now also fixes heap error on exit
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26 15:08:55 +00:00
Fabien Costantini
a8e192e6b4 STR #2004 fix: got inspired from suggested modifications but limited their impact for broken_image test because it is not needed for osx and win32 platforms. thanks Mark and Sebastian. Works great in X11 now.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26 14:49:51 +00:00
Fabien Costantini
c874be7712 removed unused wsock api, fixed return result in fl_ready()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26 08:24:54 +00:00
Fabien Costantini
fa58041f11 STR #1906 fixed as discussed :
Now winsock2 is linked instead of winsock1 by default.
 Also, this lib is now linked dynamically on-the-fly, only when needed.
 Separate commit will follow for vc2005 proj. modifications (removing wsock32.lib) for more readability.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-25 23:51:34 +00:00
Matthias Melcher
b6b746cd69 Replaced badly named type Fl_FontSize with Fl_Font_Descriptor. This type is only used in the core files and not available to the user.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-15 21:18:27 +00:00
Matthias Melcher
e63c50b2d1 Rename type Fl_Font_Size into Fl_Fontsize to comply with other naming in FLTK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-15 21:11:21 +00:00
Matthias Melcher
2bded55947 Moving more documentation into doxygen format
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-11 08:35:34 +00:00
Michael R Sweet
ba2e9f3375 Make --post create a basic Mac OS X application bundle with a shell script
that executes the bundled program.

Change the defaults for Quartz, threading, large file support, XDBE, Xft,
and Xinerama to "yes".

Remove the old Mac OS X resource fork file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-07-13 21:39:07 +00:00
yuri
c04f2f8bff fix Fl_Font and Fl_Font_Size types in Fl_File_Chooser.fl file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-05-01 18:56:12 +00:00
yuri
385c38912e STR #1908 add Fl_Widget* add_extra(Fl_Widget*) function to Fl_File_Chooser class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-05-01 18:03:45 +00:00
Matthias Melcher
a19a1da794 Text_Display was using a wrong border margin STR 1909
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-24 09:10:22 +00:00
Matthias Melcher
5134c0988d Fixed issues with Fl_Scroll inside and Fl_Scroll (STR #265)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-24 09:01:37 +00:00
Matthias Melcher
433dec6b92 Changed Makefile in src to use 1.3 instead of 1.1 (STR #1922). Fixed minor issue with handling of shortcuts in text input fields.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23 20:08:39 +00:00
Matthias Melcher
b812f9701f A few more chnaged to get Fl_Font as a new type going
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23 19:32:47 +00:00
Matthias Melcher
7c8f5cc888 First attempt at consistently using Fl_Font as a type for the font index and Fl_Font_Size as a type to measure font height (or rather size).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23 19:09:28 +00:00
Matthias Melcher
88c0d727aa All widget coordinates are now 32 bit. Beware though, on a 16 bit graphics system, line drawing and window positioning is still messed up for coordinates beyond 16 bit. See STR #1929.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23 15:07:13 +00:00
Matthias Melcher
8683ea2c81 Adding keyboard shortcut to Fl_Value_Input and Fl_Text_Editor
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23 14:19:58 +00:00
Matthias Melcher
8198e51799 Added support for keyboard shortcuts to Fl_Input_ derived widgets (STR #1770). Code added for Fluid. Documentation updated.
This commit must be considered partial because there is no shortcut handling for Fl_Text_Display derived widgets or Fl_Value_Input which is derived form Fl_Valuator.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-22 23:33:17 +00:00
Matthias Melcher
6a143b1f61 Applying 1.1.9 changes to the 1.3 branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-22 18:11:51 +00:00
Matthias Melcher
232ef4e159 Updated 1.3 with changes from 1.1.9
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-12 19:16:19 +00:00
Matthias Melcher
c6ee3b1922 STR 1891: fixing fl_read_image for double buffered windows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-03-09 17:58:10 +00:00
Matthias Melcher
8038713b19 Fixed library path in Makefile (STR #1885)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-27 15:00:31 +00:00
Matthias Melcher
a4c3c685dd STR #1716: Fixed image read for partial regions on X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-25 15:03:48 +00:00
Matthias Melcher
ac55d8490c Fixed Tab key to wrap around menu bars (STR #1877)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-25 13:09:30 +00:00
Matthias Melcher
fc60a90a67 STR 1880: Fixed timer leak in Fl_Scrollbar
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-25 13:00:53 +00:00
Matthias Melcher
f33d7c846e STR 1869: fixed race condition when an alert window pops up during menu handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20 18:33:25 +00:00
Matthias Melcher
3e9fc08353 Fixed recursion crash in event handling (STR #1873
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20 18:17:34 +00:00
Matthias Melcher
dc0ab1d06c STR 1719: fixed inconsistencies with FL_WHEN_NOT_CHANGED
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20 17:59:13 +00:00
Matthias Melcher
97c408f1d2 STR 1849: fixed messages sent to hidden windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20 17:42:08 +00:00
Matthias Melcher
28c87ce84d STR #1868: fixed horizontal scrolbar in help view thanks to wavexx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20 17:39:07 +00:00
Matthias Melcher
5d07b1a800 Fixed OS X pixmap offset bug (Thanks to D'Elia Yuri) STR 1856
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-14 18:17:06 +00:00
Matthias Melcher
923f9fe353 STR #1854: fixed win32 issue with possible NULL pointer
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-01-10 21:53:34 +00:00
Matthias Melcher
17fec4d9a6 Added warning in inofficial Fl_Sys_Menubar.cxx about bundeling apps to make the menu bar work
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-01-09 21:32:40 +00:00
Matthias Melcher
5e3d4fc7db STR #1853: fixed potntial buffer overrun un Fl_Preferences
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-01-09 21:23:51 +00:00
Matthias Melcher
329f5de330 Fixed Fl_Text_Display redrawing for focus changes for primary selection and highlight
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-01-04 20:32:37 +00:00
Matthias Melcher
f0ccbbabd8 Fixed 16 bit PNM image support (STR #1847)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-20 16:32:56 +00:00
Matthias Melcher
5097f4df5b Fixed exposure event on zero size windows (STR #1824)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6005 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-20 16:22:53 +00:00
Matthias Melcher
ffe3cb7bd5 STR #1729: fixed ovelay offset for Quartz rendering
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-18 09:41:12 +00:00
Michael R Sweet
4b6535cd5b Inset clipping rectangle using box types.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-16 23:34:06 +00:00
Michael R Sweet
3601f63659 Fix infinite loop bug...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-16 18:51:17 +00:00
Michael R Sweet
83a8cba9a7 Merge gl_font() changes for Xft+X11 (STR #1809)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 17:35:57 +00:00
Michael R Sweet
56cafe56c3 Fl_Gl_Window::mode() needed to hide and show the window when toggling stereo
mode (STR #1846)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 17:32:39 +00:00
Michael R Sweet
f525fc1160 Add set_visible() for GL windows on Mac OS X (STR #1707)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 17:29:32 +00:00
Michael R Sweet
681e6ae946 Add clip_children() method (STR #1844)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 16:42:00 +00:00
Michael R Sweet
fe1e8a37ee Fl_Browser_ and friends now support FL_WHEN_ENTER_KEY for both Enter/Return
and double-clicks (STR #1818)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 16:20:16 +00:00
Michael R Sweet
a9ee420fbf Fl_Help_View did not release the images it used (STR #1817)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15 16:08:23 +00:00
Michael R Sweet
034a26be41 Update scrollbars when showing or hiding items (STR #1724)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-20 21:57:17 +00:00
Michael R Sweet
d76c1e8cd0 Remove unused variables.
Fix fltk-config --libs and fltk-config --ldstaticflags (STR #1799)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-20 21:15:08 +00:00
Michael R Sweet
ac3ab91ca2 Fix window hide bug on WIN32 (STR #1748)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-20 17:00:56 +00:00
Matthias Melcher
d2242d59ef STR 1745: in fl_ask, if the rightmost button has a shortcut in its label, the default 'Escape' is overridden.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-19 16:21:19 +00:00
Matthias Melcher
2217ab964b STR #1767: Adding "remove" function for the Fl_Check_Browser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-19 15:46:03 +00:00
Matthias Melcher
faf6126897 STR #1805: removed hard-coded scroll bar widths.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-19 15:13:45 +00:00
Matthias Melcher
a965dff175 STR #1742: Updated documentation to reflect the true nature of "selection()" and "value()" for Fl_Multi_Browser which can be quite surprisin for unsuspecting customers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-10-07 18:39:23 +00:00
Matthias Melcher
25bae9b383 STR #1715: Added empty "awake" function for non-threaded dll's
in Linux

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-10-07 10:44:28 +00:00
Matthias Melcher
c6e6092657 STR #1761: fixed fl_filename_isdir for '/'-path in Unix
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-10-07 10:12:32 +00:00
Matthias Melcher
705780a301 Fixed Fl_Chart drawing (STR #1756)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-10-06 17:33:17 +00:00
Matthias Melcher
4261960ba4 STR #1714: fixed bad deallocation (NULL pointer issue) in Fl_Preferences.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-06-20 13:07:23 +00:00
Matthias Melcher
413d9295ac #1706: on WIN32, the attempt to map a subwindow when the parent window was not mapped yet would result in the subwindow never being mapped. This change will defer mapping until the parent window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-06-18 13:08:57 +00:00
Matthias Melcher
933ce8bf07 Fixed wrong array size.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-06-18 13:03:39 +00:00
Matthias Melcher
18dbfc8a57 STR #1706: mapping a subwindow with an unmapped parent window would crash under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-06-18 08:43:37 +00:00
Matthias Melcher
38cc8c2f4d Fixed rendering of grayscale images with alpha channel on unaccelerated machines. Thanks, Sanel (STR #1703)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-06-07 17:23:41 +00:00
Matthias Melcher
688c47020f Typo HAVE_LONg_LONG instead of HAVE_LONG_LONG
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-21 15:56:17 +00:00
Michael R Sweet
d8c288df3e Fix compiler warnings/errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20 16:18:31 +00:00
Michael R Sweet
73d01dd659 Fix all compiler warnings from various build systems.
Fix vsnprintf() implementation to properly handle long and long long ints.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-20 00:01:06 +00:00
Matthias Melcher
04ced5396e STR #1681: On WIN32 WM_PAINT messages, FLTK would first render the damaged area and then set the area as valid again. While this is mostly fine on single CPU machines, multi-CPU machines may re-invalidate areas that are currently drawn, resulting in unrendered strips when another window was moved quickly across an FLTK window during its redraw phase.
The new implementation validates the damaged area as quickly as possible, allowing new damage requests to be handled correctly, even while we are still redrawing the same damaged area.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-16 12:47:49 +00:00
Matthias Melcher
849efb47ae STR #1625: yet another slight change in the "fl_contrast" cut-off value that hopefully now delivers best results for all color schemes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-16 11:46:07 +00:00
Matthias Melcher
cd0defc000 Removed warning about unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-14 15:51:00 +00:00
Matthias Melcher
08c5fb6ff4 - Fixed calculation of stride for image scaling and color manipulation (STR #1673)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-14 13:18:44 +00:00
Matthias Melcher
8f8882a084 Reverted my changes in the message dialog boxes. Reapplied the static size icon, fixing it to 50x50 pixels and avoiding the superlarge bang on long texts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-09 12:42:39 +00:00
Matthias Melcher
01d6c3b3fc STR #1670: Fixed gcc warning in Mac source code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-06 15:54:07 +00:00
Matthias Melcher
b2ca1b9918 Fixed for Linux, based on my previous checkins
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-02 08:50:21 +00:00
Matthias Melcher
b4b6776d8f Added static icon, text selection, and HTML formatting to fl_message etc. (STR #1626)
Fixed selection of first word in Fl_Help_View


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 23:20:39 +00:00
Matthias Melcher
47e802218d Fixed endless loop in Fl_Text_Display (STR #1655)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 21:09:39 +00:00
Matthias Melcher
488f27d1eb STR #1652: allowing shortcuts in tabs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01 20:20:21 +00:00
Matthias Melcher
18f2016b1f Removed the Fl::set_awake_cb API and documented the Fl::awake(function, data) API.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 10:41:14 +00:00
Matthias Melcher
27568cfa1c Better contrast (#1625)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 09:52:51 +00:00
Matthias Melcher
cae6dd02b2 Fixed missing (and empty) unlock_ring and lock_ring for Unix builds without multithreading.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-20 09:42:36 +00:00
Matthias Melcher
4102380d65 Some improvements as discussed. Not a final feature! May be removed without notice!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 19:48:45 +00:00
Matthias Melcher
c4ad147d5f Fixed previous Fl::awake() commit for UNix and OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 19:21:41 +00:00
Matthias Melcher
11a15d83a2 This is a suggested change. It is complete except for documentation.
I did not like the awake_cb system at all. These changes implement Fl::awake(Fl_Awake_Handler, void*) which is called from a thread and tells the main loop to call the specified handler (rather a callback I guess) as soon as possible from within the main thread. It is implemented as Fifo (currently 1024 entry ring buffer), so handlers are called in the order that they are generated in.

"test/threads" was modified to change the label color as soon as a thread reaches 10000 - pretty boring, but it show the wonderful simplicity of this approach: you can write libraries that don't need to add to the main loop or register a handler at all... .

I will do some more stress testing tonight.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-03-06 17:15:03 +00:00
Matthias Melcher
a1f5426a97 STR #1617: fltkgl.vcproj in the vnet directory had missing closing brackets in the XML code. The question remains: who ate the slashes?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-27 19:23:24 +00:00
Matthias Melcher
d18f2b26b5 Removed warning about unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-25 00:00:49 +00:00
Matthias Melcher
3be4efbd8a First attempt at fixing all WIN32 scrolling issues. This code uses some (legal) trickery and should take multi-monitors and partially obscured windows into account. Albrecht, I do not have a multi-monitor setup. Please verify this fix on your machine. Thanks. (STR #1601)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-24 23:57:49 +00:00
Matthias Melcher
c47b4c91ae Avoiding to wait forever under Cygwin. (STR #1608)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-23 19:27:43 +00:00
Matthias Melcher
7696c64a46 Setting pointers in Fl_Preferences-destructor to zero. This should not be needed, but may help Cygwin figure it out correctly. I re-tested in Valgrind, and no members of deleted groups are ever accessed, just as I said. There is a slight p[ossibility of such false access if a C++ compiler does not conform to the standard and calls destructors in the fasle order.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-23 15:37:53 +00:00
Matthias Melcher
e954c5d433 Fixed file chooser to behave transparently to the current group setting
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-21 20:23:03 +00:00
Matthias Melcher
d1f1f1f26f Flushing file chooser preferences after every change to avoid data loss due to application crash
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-21 20:08:07 +00:00
Michael R Sweet
00c66abc0e Update copyright years and use "#ifndef" instead of "#if !defined".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 18:43:10 +00:00
Matthias Melcher
8ea59b412e Fixed Watcom compiler setup without verification using a patch by mnieuw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-20 17:02:41 +00:00
Matthias Melcher
658162c509 Fixed WIN32 version of prevois change (undefined variable)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-13 14:38:43 +00:00
Matthias Melcher
1b6f493c55 Updated 'hotspot' positioning of windows in OS X and WIN32 to keep the hotspotted window entirely on the screen that contaings the mouse pointer (STR #1599).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-13 14:36:08 +00:00
Matthias Melcher
474fa58939 Fixed clipping in OS X Quartz offscreen buffers (STR #1595)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-12 16:41:41 +00:00
Michael R Sweet
1dd28f6e4b Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-10 14:31:12 +00:00
Michael R Sweet
72ca38cdd9 Fix WIN32 builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-09 21:57:06 +00:00
Michael R Sweet
3439748eaf Don't depend on having RTLD_DEFAULT defined
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-09 16:21:55 +00:00
Michael R Sweet
6e9a163035 Add handler for thread messages (STR #1536)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 23:04:20 +00:00
Michael R Sweet
057e542c39 More Cygwin DLL fixes (STR #1585)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 21:22:32 +00:00
Michael R Sweet
1b7589dace Fix flickering of Fl_Help_View - turns out we were drawing to the
window every time we checked for extension of the selection.  The
new code draws to a 1x1 off-screen buffer, which eliminates the
flickering and runs much faster!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 21:18:50 +00:00
Michael R Sweet
3d11948876 Try a slightly different Xdbe implementation that copies instead of swaps.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 20:50:01 +00:00
Michael R Sweet
e173e7bec0 Add header check for dlfcn.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 20:14:30 +00:00
Michael R Sweet
4d6faca615 Add support for glutGetProcAddress() on Mac OS X and other platforms
via dlsym() (STR #1582)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 15:44:28 +00:00
Michael R Sweet
a72fa970a7 Fix text alignment (STR #1589)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 12:58:32 +00:00
Matthias Melcher
624e885b24 STR #1584: even smarter mouse pointer hiding. I also fixed two little historic bugs in "ask" (double adding a widget, and not using "label.obj()" instead of "copy_label()" for non-static buffer. Lastly, I changed "boxtype" to use a Double_Window because it has become so big now that it started flickering.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 07:58:47 +00:00
Michael R Sweet
44fab0180e Fix hoving over links (STR #1588)
Use blue as the default link color, not magenta.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08 01:28:50 +00:00
Michael R Sweet
07fd0cc413 Fix default link color.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-07 03:50:24 +00:00
Michael R Sweet
44b2ff35cf Use install command instead of CHMOD, CP, and MKDIR.
Drop all POSTBUILD stuff as it is no longer used.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-06 19:35:28 +00:00
Michael R Sweet
1c61b1297d Fix glXGetProcAddressARB() usage and support for POSIX threads on HP-UX 11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-05 03:20:30 +00:00
Michael R Sweet
502f83219d Fix DLL generation via MingW/Cygwin (STR #1546)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 20:23:31 +00:00
Michael R Sweet
a4814c41c3 Fix scheme background image bug on X11.
Drop changelog for hidden mouse pointer problems since that change was
not made until after 1.1.7 was released (CHANGES only shows changes/fixes
to the previous release...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 19:37:30 +00:00
Matthias Melcher
2368590ecd Fixed first window behavior in OS X (STR #1548)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 16:10:19 +00:00
Matthias Melcher
c005f9956f Added glut files to vc2005 solution.
Fixed popup menus that would not stay popped up when clicke once and the first item was disabled.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 15:14:42 +00:00
Matthias Melcher
3df9bdf5c5 Avoiding a hidden mouse pointer after a window is hidden
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-02 13:52:37 +00:00
Michael R Sweet
6bc5329935 Don't use ARB function unless available (still need to do the autoconf
test...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 21:52:11 +00:00
Michael R Sweet
85c2e38825 Update documentation and move glutDeviceGet() into code so we can return
the correct value for GLUT_NUM_MOUSE_BUTTONS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 21:11:20 +00:00
Matthias Melcher
eef6353369 Fixed calculation of character widths for OS X Quartz rendering. Fixed OS X mouse click handling (STR #1504).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 20:13:57 +00:00
Michael R Sweet
bda374b386 Add GLUT support functions from FreeGLUT (STR #1522)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-01 18:10:07 +00:00
Michael R Sweet
56eb04fc67 Incorporate run-time check and initialization of recursive mutexes.
This adds support for system-supplied recursive mutexes on OS's other
than Linux (not all define the _NP static initializer) while making
sure that the mutex we do use works as we expect (STR #1575)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-29 17:15:41 +00:00
Michael R Sweet
b7be6fb47e Drop recursive mutex code since the running kernel may not support it
(STR #1575)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 20:26:50 +00:00
Michael R Sweet
2fcd3610d5 Fl::awake() could block on X11 and OSX (STR #1537)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 20:03:31 +00:00
Michael R Sweet
ae8675a45f Fix order of idle/check processing compared to events (STR #1535)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5645 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:48:31 +00:00
Michael R Sweet
48a997d0ad Hide window before doing callback for OK button (STR #1565)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:41:56 +00:00
Michael R Sweet
84fe87f472 Fix indentation of elements (STR #1549)
Update layout of help dialog to look like other help dialogs.

Drop resource fork stuff from fltk-config (no more --post, it is a no-op)

Use a single table for the header on the documentation page.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28 19:36:51 +00:00
Matthias Melcher
4980b42829 Improved GTK+ schemed round box (STR #1531)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-25 15:41:13 +00:00
Matthias Melcher
e36d3a07ce - Fluid avoids writing unsopported combinations of the
"when()" flags (STR #1501)
- Fl_Browser_ would allow keyboard callbacks even though
  "when()" was set to "never" (STR #1501)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24 20:32:54 +00:00
Matthias Melcher
ecdd893933 - Added automated little helpers to Sudoku
(Menu Difficulty->add helpers)
- Added example code for Wizard with the
  Tabs demo (STR #1564)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-24 12:03:36 +00:00
Michael R Sweet
f8d84949c4 Refine the weak-binding solution...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 21:48:17 +00:00
Michael R Sweet
28b3753946 Don't need path_find() on Mac OS X...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 20:45:28 +00:00
Michael R Sweet
c8f1e91448 Rename fl_filename_isdir_quick to _fl_filename_isdir_quick, do not
export it, and add comments to indicate that it is a private API we
do not support outside of FLTK.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5635 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 15:02:00 +00:00
Matthias Melcher
7401cf37bf Hopefully some improvement to the 'bring to the foreground'-hack. Please folks, test this on every available platform!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-23 10:27:44 +00:00
Matthias Melcher
930d62b9f6 Fixed comment on trailing slashes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-22 11:18:30 +00:00
Matthias Melcher
e4586d1572 Removed 'optimization' for fl_filename_isdir which would break the original purpose of the fuction (testing the *existence* of a directory). But I did not want to lose the performance in the directory chooser where I *know* that a directory exists, just not if it is a file or directory, so I added the function fl_filename_isdir_quick() to do just that. Please verify that the new version works as expected, especially with regard to the directory chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-22 11:14:29 +00:00
Matthias Melcher
9e79fd13d2 I changed the Fl_Tabs drawing routine to only redraw the tabs themsleves on a PUSH event, instead of the whole current group. This also allows for a visual feedback from the clicked tab. (str #1520)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-21 15:54:53 +00:00
Matthias Melcher
30be5f711b Added code to support OS X weak'n;lazy linking.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-21 14:57:42 +00:00
Matthias Melcher
e9e0826d10 Made resource fork on OS X obsolete. We still do add it just in case, but should the data be lost during a copy process through a different file system, the app will still put itself in the foreground if using a GUI (STR #1453)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5627 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-20 15:28:11 +00:00
Matthias Melcher
4ee2c1fafa Somewhat improved the system menu bar for OS X (STR #1505)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 19:20:13 +00:00
Matthias Melcher
fbd01308b9 Fixed Quartz image drawing and screen reading
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 15:25:09 +00:00
Matthias Melcher
32a8df787c overlay drawing is now avoiding XOR mode (STR #1438)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 12:59:37 +00:00
Matthias Melcher
5411396ea6 Fixed mousewheel event propagation (STR #1521)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 10:40:37 +00:00
Matthias Melcher
bc842ea528 Fixed drawing issues of a tile in a scroll (STR #1507)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 10:01:24 +00:00
Matthias Melcher
5f0156cd02 Fixed dismissing buttons in menu bars (STR #1494)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-18 09:30:04 +00:00
Michael R Sweet
08216b4fac Fix fl_open_uri() on WIN32
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-10 21:11:34 +00:00
Michael R Sweet
5456a2b8fc Add fl_open_uri() function as discussed on fltk.development.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-04 14:53:54 +00:00
Matthias Melcher
230a2a4332 Added a fe comments to explain multi-monitor support on Win32 better.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-01 18:29:20 +00:00
Matthias Melcher
2c16ddb964 Fixed silly bug in OS X that would free a pixmap multiple times within Fl_RGB_Image::unchache.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-21 22:39:11 +00:00
Michael R Sweet
1c47b9826d Fix fl_measure with symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-21 19:39:26 +00:00
Matthias Melcher
baed853fe3 STR #1542: implemented the prototyped Fl::has_check() function
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-20 20:29:08 +00:00
Matthias Melcher
e8550d89b3 Enabled 'add_check()' on OS X (STR #1534)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-12-20 20:13:22 +00:00
Matthias Melcher
67f87f0285 STR #1463, STR #449: Better event mouse handling fixing detached menus and sticky tooltips.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-19 21:04:11 +00:00
Michael R Sweet
8ea3a45772 Merge all of the scrollbar sizes into a single API call
(Fl::scrollbar_size()) rather than a bunch of separate APIs and
hardcoded values (STR #1800)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-16 23:17:13 +00:00
Michael R Sweet
839ac66401 Fix text alignment - wasn't resetting the default alignment after
closing a table cell...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 04:29:45 +00:00
Michael R Sweet
0789a8a18e Fix endian problem with fl_read_image() and QuickDraw on Intel-based Macs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 01:52:20 +00:00
Michael R Sweet
b6a66645e0 Reject invalid workarea rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15 00:44:13 +00:00
Matthias Melcher
725efb3569 STR #1492: Fl_Progress was using the wrong width to calculate progress
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-12 20:44:12 +00:00
Michael R Sweet
095ed29a7f Add NULL check for _NET_WORKAREA property value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-01 15:30:11 +00:00
Michael R Sweet
3ebd631cf0 Fl::x(), Fl::y(), Fl::w(), and Fl::h() did not report the desktop
work area on X11 (STR #1482)

Fix another "missing sentinel" warning in the Xft code.

FL/Fl.H:
    - Remove in-line x() and y() implementation for X11.

src/Fl_x.cxx:
    - Fl::x(), Fl::y(): Added.
    - fl_init_workarea(): Added to get _NET_WORKAREA property from the
      root window; if none, is available, the code falls back to 0, 0,
      DisplayWidth, and DisplayHeight.

src/fl_font_xft.cxx:
    - Missing sentinel needs cast to void *.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-30 14:16:08 +00:00
Michael R Sweet
117e22670d Another try at the shortcut fix...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 17:11:10 +00:00
Michael R Sweet
39cb1f8daf Fix two "hide the cursor" bugs related to click-to-focus windows (STR #1475)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:43:31 +00:00
Michael R Sweet
7fffbf7dea Shortcut events could be sent to the wrong window (STR #1451)
src/Fl.cxx:
    - Fl::event_inside(): Only return true for widgets if the
      first_window() (focused window) is the same as the widget's
      window.
    - Fl::handle(): Send shortcuts to the first window (that has
      focus) before all others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 13:22:28 +00:00
Michael R Sweet
c0664eefcd Fl_File_Browser did not calculate the width of directory items
correctly (STR #1470)

src/Fl_File_Browser.cxx:
    - Fl_File_Browser::item_width(): Use a bold font for directory
      items.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-29 12:13:56 +00:00
Michael R Sweet
cec43a6cb1 Don't start widgets offset by 1/2 the spacing value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-20 01:07:16 +00:00
Michael R Sweet
2d2b24b781 Fix dead pixel in FL_GTK_UP_BOX/FRAME (STR #1471)
Use FL_COMMAND modifier in FLUID menus (CTRL for non-OSX, CMD for OSX)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-14 04:35:24 +00:00
Michael R Sweet
367c40a9b7 fl_arc() and fl_pie() did not draw properly on WIN32 when the
start and end points were identical (STR #1461)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:23:52 +00:00
Michael R Sweet
09a1c11ac1 Fl_Input and Fl_Text_Editor now hide the mouse pointer when
typing into them (STR #1466)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-11 01:01:02 +00:00
Michael R Sweet
b82b4c4445 Use standard link color as the default, not FL_SELECTION_COLOR.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-07 14:29:15 +00:00
Michael R Sweet
e8aac38a70 Look for Text.selectBackground instead of fltk.selectBackground to
get the selection color.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5508 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 12:48:18 +00:00
Michael R Sweet
228af43a56 Tweak GTK+ thin up/down boxes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-04 02:32:42 +00:00
Michael R Sweet
3c03eb67a0 More cleanup of GTK+ scheme - menu buttons now use the new look-n-feel,
and I also fixed the radio button offset for the plastic scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 23:08:49 +00:00
Michael R Sweet
7febae3f9e Add GTK thin up/down box/frame types.
Update the GTK round up/down box types.

Update radio/check box drawing for gtk+ scheme.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 02:35:12 +00:00
Michael R Sweet
ad4a4ea0db Fix "missing sentinal" warning from GCC 4 - basically this means we used
"0" instead of "(void *)0" in a variable-argument function, which will not
work on 64-bit systems where int is 32-bits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-03 00:51:35 +00:00
Michael R Sweet
4d0529a276 Fix new alpha blending code to use the source image width instead of
the destination width when computing the start pointer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 17:20:56 +00:00
Michael R Sweet
849ecabf53 Fix light button drawing so that the glowing LED mode is only used when
Fl::scheme() is "plastic".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-10-02 14:29:43 +00:00
Matthias Melcher
cc1ab1a315 STR #1447: Fixed CMake files to include new GTK+ scheme
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-26 18:05:10 +00:00
Michael R Sweet
faddffcf18 src/Fl_Button.cxx:
- Fl_Button::draw(): Only use fl_contrast() on the label
      color when value() is non-zero.

src/fl_color.cxx:
    - fl_contrast(): Require at least 1/3 (85) instead of 1/2
      (127) for contrast against the background.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-25 16:36:52 +00:00
Michael R Sweet
ad40154ca3 Adapt Sadysta's alpha compositing code for current implementation of
Fl_RGB_Image.  We now provide (unaccellerated) alpha compositing of
RGBA and Grayscale-Alpha images (d() == 4 and d() == 2) on X11 and
QuickDraw...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 19:05:38 +00:00
Michael R Sweet
b91935040a Flip the color of Fl_Choice to FL_BACKGROUND2_COLOR when there is no
scheme so the menu uses the same color as the background.

Add -Dname[=value] documentation to fltk-config man page.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 13:35:23 +00:00
Michael R Sweet
a4c2cbd49a Tweak gtk+ drawing of Fl_Choice.
Add support for "-Dname" option in fltk-config.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-24 04:39:55 +00:00
Michael R Sweet
9663eaa1c4 Use FL_BACKGROUND2_COLOR for the standard Fl_Choice background instead of
fl_lighter(color()), so that the previous look-n-feel is preserved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 22:52:07 +00:00
Michael R Sweet
b04788a189 Check buttons did not redraw properly with box() set to FL_NO_BOX
(STR #1440)

src/Fl_Button.cxx:
    - Fl_Button::value(): Use redraw_label() if box() is not set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-23 15:28:09 +00:00
Michael R Sweet
f0180536b3 Use "1" as the count for the targets query instead of sizeof(Atom).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-21 12:26:45 +00:00
Michael R Sweet
1d23087fc9 Fix inactive drawing of the new GTK+ box types.
Fix inactive drawing of Fl_Clock and Fl_Dial widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-20 03:03:14 +00:00
Michael R Sweet
b4c1d3ef03 Implement new "gtk+" scheme which provides a Bluecurve look-n-feel.
Fix size and position of dialog controls in FLUID to match the HIG.

Add "GTK+" scheme to the list of selectable schemes in FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 14:58:25 +00:00
Matthias Melcher
d63cf6e315 Much improved sensing if a machine will do Alpha blending. This may actually be the solution. If Alpha blending is not supported, we fall back to the old screen door transparency.
This does not take into account a multiple screen setup with different screen depths, but I assume that this is a rare enough constellation and would cause many other problems on top of this minor issue. As a fallback, we will *always* render the image, but worst case without any alpha channel.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-17 12:49:19 +00:00
Matthias Melcher
b39938e5cc OK, I believe I fixed the transparency issues on WIN32. Please everyone, test the code on all machines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 16:02:00 +00:00
Matthias Melcher
8238e05727 Found bug in Alpha Blending code when using double buffered windiws. Disabeling code until I find the fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-16 14:25:48 +00:00
Matthias Melcher
c6de2dd3ef Implemented alpha blending for WIN32. I believe that I did it in a way that is compatible even with Windows 95, but please let me know if you have any concerns. Cygwin not tested, but hopefully OK.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 15:35:16 +00:00
Matthias Melcher
ff94d41c51 In Fl_Text_Display, all unused keyboard events are sent to the scrollbars, so that the user can scroll through text using the usual navigation keys (left, right, up, down, page up, page down)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-15 08:24:34 +00:00
Matthias Melcher
27217f9a74 Fixed Fl_RGB_Image::copy. My previous fix had the meaning of ld() wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-13 22:55:55 +00:00
Matthias Melcher
44264e3c4e Additional fix for STR #1415 for Xft font selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-06 20:16:03 +00:00
Matthias Melcher
8c94b01142 Added code to clear the current font cache when the font face is changed. Now for OS X and X11 as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:26:41 +00:00
Matthias Melcher
caa6fd1ff2 Fixed font caching issue from STR 1415
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 11:16:15 +00:00
Matthias Melcher
bfe61f036a STR #1410: fl_file_chooser could crash after a previously canceled dialog
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-05 09:57:41 +00:00
Matthias Melcher
84360f49f2 STR 1412: fixed RGB image block copy for ld() values != 0
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 19:24:51 +00:00
Matthias Melcher
82fe05afd1 STR #1411: fixed latin-to-macRoman text conversion
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5408 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-09-04 18:46:28 +00:00
Matthias Melcher
46a890cad3 Fixed typo in 'desktop-osx' install. Commented out unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 10:01:35 +00:00
Matthias Melcher
3303d9d7f5 STR #1151: Cygwin for some reason was ifdef'd out for setting a shorter timout when reading fd's (yes, the Win32 requires polling to read fd's). Adding the shorter timeout has no impact on Apps that do not poll fd's, but should fix most (all?) problems described in this bug report.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-30 09:18:12 +00:00
Matthias Melcher
7ae0ff0240 Updated OSX subwindow simulation code to better add and remove from the clipping list
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 11:03:05 +00:00
Matthias Melcher
00ec9da8f5 - removed more inconsistencies between fl_draw and fl_measure (STR #1408)
- made the Tooltip hide code a little bit smarter
- Added subwindow test case to Fl_Tabs

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 10:04:02 +00:00
Matthias Melcher
ba8bb3d8c2 Fixed fl_measure which mistook a trailing '@@' for a symbol (STR #1406)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:49:22 +00:00
Matthias Melcher
3ae2d9cc7b STR #1403: GLUT window creation code - better fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-29 07:36:51 +00:00
Michael R Sweet
cb0d6f8f03 Fix blocks crashes on WIN32 - audio buffer too small
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-28 14:45:20 +00:00
Matthias Melcher
862506e6d9 Two simple glut fixes (flickering and VC6 compiler issues).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 10:33:30 +00:00
Matthias Melcher
961391ac08 Fixed GLUT behavior on window creation (STR #1267)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 09:11:42 +00:00
Matthias Melcher
4fae32c85c Fixed OS X bug that would hide tooltips before they were shown (STR #1392)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:49:06 +00:00
Matthias Melcher
8220dc5592 Fixed Fl_Tabs tooltip reappearing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 08:10:31 +00:00
Matthias Melcher
bd4d11e5e3 Fixed filechooser to behave as documented when file pattern changes (STR #135s9)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-24 14:23:24 +00:00
Michael R Sweet
0d0d5326ed Fix Fl_Gl_Overlay to use new valid API
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 17:40:54 +00:00
Matthias Melcher
da7658fa7f Avoiding problems with some platforms that don't implement hypot() (STR #1366)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 14:43:07 +00:00
Matthias Melcher
74b91fe371 Fixed Fl_Positioner callback when released (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 12:57:42 +00:00
Matthias Melcher
05cd337c05 Fixed WIN32 zero size window issue (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 11:47:58 +00:00
Matthias Melcher
ae68d64252 Refixed STR #1221, fixing STR #1393.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-22 15:45:51 +00:00
Matthias Melcher
555f776077 Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374).
Fixed silly but in preferences test (that was unrelated to Fl_Preferences).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-21 15:03:02 +00:00
Matthias Melcher
660d524700 Fixed unintialized data bug in OS X timeout functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 20:09:33 +00:00
Matthias Melcher
dadcbb61b3 Moved Quartz OS X fonts half a pixel up.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 19:20:56 +00:00
Matthias Melcher
86e2fa621a Fixed speed issues with measuring text sizes in OS X Quartz
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 15:24:55 +00:00
Matthias Melcher
edbf9ae510 Fixed focus issues on OSX (str #1377)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-19 13:34:10 +00:00
Matthias Melcher
d5a6cf798c I forgot
a dot.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 10:56:37 +00:00
Matthias Melcher
972624d613 STR #1381: added optional "precision" argument when writing floats or doubles to a Preferences file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 07:29:09 +00:00
Matthias Melcher
6391946be0 Fixed callback sometimes not calle when using the arrow keys in an Fl_Slider (STR #1333)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 14:41:20 +00:00
Matthias Melcher
2f4706602d Fixed ABI issue with const on glutCreateWindow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:49:46 +00:00
Matthias Melcher
49a0693962 Undid the previous Fl_Tabs::value() const change because adding 'const' *does* changed the ABI. Sigh.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 13:43:07 +00:00
Matthias Melcher
ae971b97da Fl_Text_Editor now correctly handles middle mouse clicks (STR #1384)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 11:10:54 +00:00
Matthias Melcher
c8288bd7b4 Added some GLUT4 functions (STR #1370)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:56:59 +00:00
Matthias Melcher
51d67574ec New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:49:43 +00:00
Matthias Melcher
ef48f007a1 Added missing const to GLUT call (STR #1371)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:05:44 +00:00
Matthias Melcher
9f41ba57ec Fixed stray FL_RELEASE events after clicking system areas on OS X (STR #1376)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:01:56 +00:00
Matthias Melcher
538a1c62ee Fl_Tabs::value() is now const as described in the documentation (STR #1379)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 08:43:50 +00:00
Matthias Melcher
4f6119433b Fixed Makefile configuration for OS X dynamic library. STR #1391
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-12 11:05:04 +00:00
Michael R Sweet
8266e090f5 Don't call dummy function inside dummy function - some compilers don't like
it...

Drop +DAportable from default HP-UX optimizations.

Move HP-UX C++ compiler warning options to CXXFLAGS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-02 18:03:10 +00:00
Michael R Sweet
9ee02e0f01 Fix compiler warning by adding a cast...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-25 19:14:11 +00:00
Matthias Melcher
e6818b19a6 Fixed byte order in OS X cursor shape data. Added Xft font pointer fl_xftfont.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 11:23:20 +00:00
Matthias Melcher
b6f3595669 Fixed Endianness in OS X Mouse Pointer graphics (STR 1348)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 08:19:14 +00:00
Michael R Sweet
846cfd4416 Allow non-JFIF JPEG images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-18 01:10:51 +00:00
Matthias Melcher
924e8a92d1 Fixed crash on mixed use of keyboard and mouse for Fl_Menu_Button (STR #1356)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:33:45 +00:00
Matthias Melcher
f0fcbb3866 Fixed my previous fix... . Resizing events were not handled anymore.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-17 20:14:50 +00:00
Matthias Melcher
30f4aebe8a STR #1341: Fixed Fl_Window::visible() and shown() for OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-16 20:37:41 +00:00
Matthias Melcher
d20a41681d Fixed Fl_Window::copy_label() losing copy (STR #1332)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-28 10:23:33 +00:00
Matthias Melcher
3f5710ca72 Attempt to improve on fl_scroll for Quartz on Mac, but we probably already use the best function. Added comment noting this attempt.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-23 10:27:09 +00:00
Matthias Melcher
baa92d1d7d STR #1330: Repeat button now cancels timeout if it should get deactivated during a callback
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-21 06:52:10 +00:00
Matthias Melcher
87bb58803a Another attempt at the window stacking problem in WIN32. It does fix the issue described in STR #1296 without the negative effects described by Torsten Giebl.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-20 08:55:43 +00:00
Matthias Melcher
6190aa5728 It seems that the long standing window stacking order problem in MSWindows is now finally solved. The solution is too silly to belive. It seems like WIN32 needs a HideWindow before the DestroyWindow, or the window manager gets confused. DOH!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:51:14 +00:00
Matthias Melcher
ad8d7c4b87 Fixed key compose sequences for shifted keys (STR #1194)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 07:43:39 +00:00
Matthias Melcher
582447c164 Converted global static variables into class static variables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:53:26 +00:00
Matthias Melcher
baeafbea45 Removed debugging messages, added character lookup table for HTML enteties into Mac Roman font.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-18 15:45:49 +00:00
Matthias Melcher
b51dd39f07 Added text selection and copy/paste to Fl_Help_View. Text can be selected by clicking and dragging the mouse over text. After releasing the mouse button, a stripped down ASCII text is in the text clipboard. Press Ctrl-C to copy the text into the main clipboard. Pressing Ctrl-A selects all text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 19:45:13 +00:00
Matthias Melcher
ec8ab0f22d STR #1322: fixes wrong menutitle position for popup menus. This was originally another fix for pulldown menus (see STR #794, SVN 4259), but had an impact on popups. This fix should work well for both situations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-16 10:42:58 +00:00
Matthias Melcher
27e5b81fd4 Changed Tooltip::exit_() to Tooltip::exit()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 11:01:03 +00:00
Matthias Melcher
c468a521b0 STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. 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-14 10:48:36 +00:00
Matthias Melcher
bc03e9b1a9 Avoiding crash when passing NULL as a string in Fl_Preferences::set(key, char *string_value);
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 08:03:16 +00:00
Matthias Melcher
a0cbcf3d1d STR #1227: Thanks to Albrecht Schlosser for commiting this patch to fix Fl_Test_Display. The little I could check seemed fine, and he's certain that he fixed the bugs that he found himself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-13 19:08:32 +00:00
Matthias Melcher
4f38c2c1c9 Fixing the fix: restored the FL_KEYUP behavior of WIN32 before the NumLock fix. Now NumLock and Keyup work well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 18:44:50 +00:00
Michael R Sweet
30d8dc5eeb Make sure that all source files expand $Id$...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 16:16:34 +00:00
Matthias Melcher
2db125bc43 Fixed the Fl::event_original_key() function for X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-09 08:06:14 +00:00
Matthias Melcher
428a283f83 Added an event variable "Fl::event_original_key()" which returns the current 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-09 07:48:08 +00:00
Matthias Melcher
d2f9ebf9b9 OS X: fixed handling of the KP_Enter key which is at different key codes for the Powerbook vs. Desktop machines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-07 09:46:03 +00:00
Matthias Melcher
abd221aa56 Increased gap size in Fl_Text_Buffer to make the buffer suitable for much longer text, which seems to be a common use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06 21:12:45 +00:00
Matthias Melcher
aa9148eea8 Added check for NULL for numbnuts (like me) who query the size of a font before choosing a font... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-06 15:28:20 +00:00
Matthias Melcher
30786c2ed3 STR #1310: OS X Quartz support fixed. All test codes now work without 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-06 08:00:56 +00:00
Matthias Melcher
587e1d170b STR #1309: resize indicator not showing if size range does not permit resizing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 12:09:30 +00:00
Matthias Melcher
9c0a2c0a0f OS X Quartz: fixed issues with creating a gray image map. Fluid problems still appear.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 11:59:09 +00:00
Matthias Melcher
c80ca69407 OS X Quartz: fixed the text width problem.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 09:04:23 +00:00
Matthias Melcher
8130f16538 OS X Quartz rendering: text is now clipped and drawn in the correct color. I 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-05 09:01:29 +00:00
Matthias Melcher
60ece00315 OS X Quartz: one pretty essential fix to the call order in Quartz context 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-06-04 10:21:45 +00:00
Matthias Melcher
c4b8afdcf9 STR #1305: Added MacRoman to utf16 lookup table. Everything's rendered the way we are used to it now, only in Quartz.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-02 15:01:32 +00:00
Matthias Melcher
4dd1f5e216 STR #1305: partial fix.
FLTK on Mac with --enable-quartz now uses ATSU instead of CG to render text. First of all, it is a lot faster, but more importantly, character positions are now all at integer positions. This is not as beatiful as standard Mac text, but required by the FLTK internals. I seriously doubt that anyone who's not a typesette will notice the difference.

But - and there's always a but, isn't there?

This commit does not handle the ASCII-to-UTF16 conversion yet, so all characters above 127 are junk.

Also, there are still a lot of problems with the Quartz support in general. Most prominently, we still get a lot of messages about invalid contexts which ruins the clipping.

So in conclusion (this must be the longest SVN commit annotation ever) this modification fixes the main reason why I did not finish the Quartz port. After fixing this, there's hope that we will wrap even that dirty little corner of FLTK up for good!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-02 14:17:41 +00:00
Michael R Sweet
b938cfb7ef Remove executable bit from more source files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-31 18:33:37 +00:00
Matthias Melcher
987d9e05f2 Fixed shortcut and default focus for message dialogs (STR #1298).
Default focus is now on the button that also reacts to the 'Enter' key. This should avoid confusion about Enter triggering the button1 or button 0.

Also, I changed the shortcut call to the new convention which works on MSWindows. I don't have a Linux system right now for testing... .

Fixed focus issues (STR #1286, STR #1289, STR #1296)

fl_xfocus was not always updated, making widgets or even whole windows loose focus when any focus changes were not accompanied by a click into the same window. Also, Fl_Tabs would not redraw correctly if focus returned to the active tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 09:38:19 +00:00
Matthias Melcher
6986a1d008 Remove warnings found by Robin Rowe's settings for VC7. I do not have VC7, but I believe I managed to find and fix them all... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 07:58:41 +00:00
Matthias Melcher
bfd2801df2 Fixed resizing in OS X. The code was not only unneccesarily convoluted, but 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-05-30 07:35:58 +00:00
Matthias Melcher
b9e4886cfe Tabs now show the correct tooltip (STR #1282)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-21 09:41:47 +00:00
Matthias Melcher
b0c7fc3ab7 Fixed insufficiently invalidated cache in Fl_Browser (STR #1265). Fl_Browser::cahceline was set to 0, but Fl_Browser::cache was not which lead to confusion if the cache was usable or not.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-10 10:45:59 +00:00
Matthias Melcher
fc57e07cbf STR #1153: This is an attempt to fix the described issues when querying multiple monitors on defferntly set up Windows environments. Would the posters please test if the new version works. Thanks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-10 10:37:32 +00:00