Commit Graph

4569 Commits

Author SHA1 Message Date
Manolo Gouy f9363c16d0 Fix STR #2530 (Mac OS only). Implements a fast algorithm for fl_width() that memorizes the
width of all characters the first time they are seen and computes the width of a string
as the sum of the widths of its characters. Char widths are memorized in 256 blocks of 256 widths;
only blocks used in some text are allocated and computed. The width of characters beyond
U+FFFF is computed anew each time. Strings are drawn using core text, after having 
deactivated character kerning, so their width is the sum of the widths of their characters.
This is the same algorithm as used for WIN32.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 15:30:14 +00:00
yuri 1b146a4837 wix find windress when using crosscompiler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-23 11:14:21 +00:00
Albrecht Schlosser c54e998967 Added FL_EXPORT for some more classes and structs to clean up MS DLL building.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:40:11 +00:00
Albrecht Schlosser 1c38a0f2f7 Tweaks to silence more MS compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:38:55 +00:00
Albrecht Schlosser 00710928d4 Added compiler options to silence warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:35:56 +00:00
Greg Ercolano 5f1f1d7444 Brian, Greg, and Albrecht's solutions to build errors in VS6.
Possibly solves STR#2521.

There are still warnings about bool <-> int conversion
that are probably benign.

There are also warnings during dependency creation
about other platform files that also appear to be benign.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 21:15:52 +00:00
Albrecht Schlosser d655684c77 Added missing dependency on tree.fl, and extended target clean to delete
all fluid-generated .h files (as well as .cxx files).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 16:56:12 +00:00
Manolo Gouy 0a346cf536 Removed duplicate definition of font_mx variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-21 16:05:46 +00:00
Manolo Gouy a306fe46d3 Redefined fl_xid() as an inline function when used inside the FLTK library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 13:22:30 +00:00
Manolo Gouy 30c1eed80b A better solution to the crash when printing the mandelbrot demo under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 12:55:50 +00:00
Albrecht Schlosser 0eec2893a1 Updated VisualC2008 and VisualC2010 project files to define FL_LIBRARY in
non-dll builds. Also changed some dependencies to get correct build order.
To Do: VisualC2008 doesn't create the .cxx and .h files with fluid from
.fl files correctly (VisualC2010 does, but maybe except test/tree.cxx).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 00:37:18 +00:00
Matthias Melcher 0ae74b5ab1 Fluid binary type adds size to the array of unsigned char, giving better access to the resource.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-19 23:14:09 +00:00
Manolo Gouy b015837b2a Removed gcc 4.4 compiler warning:
Fl_Preferences.cxx:1322: warning: ignoring return value of 
‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-19 06:33:48 +00:00
Manolo Gouy 39ae4651bf Removed compiler warning:
Fl_PNG_Image.cxx:108: warning: 'fp' may be used uninitialized in this function

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-19 06:29:06 +00:00
Albrecht Schlosser 96c410dceb Hiding the Fl_X class under WIN32 (STR #2522).
Applied Manolo's patch, modified to use FL_INTERNALS for
explicit request in user code to expose class Fl_X.
Also changed X11 and Mac OS to use FL_INTERNALS.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 23:52:32 +00:00
Albrecht Schlosser b841d90d3c Documentation updates (remaining fix for STR #2520).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 22:42:34 +00:00
Manolo Gouy 0ae1054d07 Fix 2nd part of STR #2520: added Fl_PNG_Image in-memory constructor.
This constructor has a 3rd argument, the size of the array holding the in-memory PNG image.
This allows the constructor to check for errors in the image.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 20:51:12 +00:00
Manolo Gouy 5af1531cd2 Fl_File_Chooser: removed the "Show hidden files" button for WIN32 where it's not relevant.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 09:39:14 +00:00
Manolo Gouy 5593c60d50 Fix STR #2524: no more NSAutoreleaseNoPool messages.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 21:05:29 +00:00
Manolo Gouy 356b3bbc7d Fix STR #2523: unimplemented functions have been removed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 19:56:01 +00:00
Manolo Gouy 253dfe93c1 Fix STR #2525. The bug was PPC-specific.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 19:44:12 +00:00
Manolo Gouy e2ddb1715c Fl_File_Chooser: added a "Show hidden files" button. Hidden files aren't shown
by default now. This removes a TODO clause.
Fl_Native_File_Chooser: removed the hack that added the "Show hidden files" button, and
made the "file already exists" warning message localizable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:26:51 +00:00
Manolo Gouy 774880acc5 Replaced "foreign language" by "another language" in doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:21:39 +00:00
Manolo Gouy 6f9f141462 Replaced "foreign language" by "another language" in doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:16:35 +00:00
Ian MacArthur bf52399372 Another tweak to fl_init_xim() as proposed by Denton Thomas.
Should not change the behaviour from the previous fix, it is
just a bit tidier!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-15 22:47:30 +00:00
Ian MacArthur d87cc866fc This is an attempt to resolve the potential leaks identified in fl_init_xim() by
Denton Thomas.
This is not quite the patch as he proposed it, but I *think* whay I have done
is OK.
Seems to be OK for me anyway... Needs testing by others of course!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-14 22:06:41 +00:00
Manolo Gouy 1a0b262f99 Fix memory leak in fl_new_ic() reported by Denton Thomas.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-14 11:48:18 +00:00
Manolo Gouy 728b46535b Document that hidden class Fl_X is accessible only if FL_LIBRARY is #define'd.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 22:32:38 +00:00
Manolo Gouy 9fc93d2613 Fix STR #2518: remove gcc 4.4 compilation warnings with -Wall
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 22:07:31 +00:00
Manolo Gouy 1ef50fc9c2 Mention in comment that FL_LIBRARY must be defined to access the Fl_X class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 22:00:11 +00:00
Manolo Gouy 172e368434 Fixed WIN32 crash when printing with the test/mandelbrot demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 20:05:32 +00:00
Greg Ercolano 8999b88bd8 Fixes STR #2519; problems building on VS6.
Verified with VS7, which was giving the same errors.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 17:03:49 +00:00
Albrecht Schlosser 0c896c024c Fixed typos, added \todo ... (see STR #2520).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 16:50:36 +00:00
Albrecht Schlosser 129ae3ecd0 Deleted unused files in src/xutf8
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 10:28:53 +00:00
Albrecht Schlosser b4f08251b1 Updated dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:36:56 +00:00
Manolo Gouy 77204efa1c X11 specific: made class Fl_X visible only if FL_LIBRARY is defined before compilation,
as discussed in fltk.development ("Fl_X not exported on mac in 1.3").  
Tested OK with configure+make and CMake.
At this point, the FL_X class remains to be hidden on the WIN32 platform.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:24:03 +00:00
Albrecht Schlosser 0cfc132601 Documentation updates. Reformatted development.dox, removed some old and
obsolete parts.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:20:11 +00:00
Manolo Gouy be8b1f4ac5 Another change to allow OS-independent compilation of external applications as suggested by Greg.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 07:54:42 +00:00
Albrecht Schlosser b4c15eb8ae Fixed a few GNU compiler warnings (-pedantic): C++ comments in C files,
extraneous ';' and ',' and an invalid cast.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:52:38 +00:00
Matthias Melcher 9c0c450cbd Fixed accidental commit of some eperimental dead key preview code. STR 2515
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:50:36 +00:00
Albrecht Schlosser 645e86a30c Updated documentation copyright dates to 2011.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:23:46 +00:00
Matthias Melcher b55ac81f51 Attempt to fix the dead_key/special_key issue.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 16:43:52 +00:00
Albrecht Schlosser 7ada14f3b7 Reverting unintentionally committed experimental code in r8256. Sorry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:40:26 +00:00
Matthias Melcher 026632d781 Small formatting updates for Intor.dox
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:07:10 +00:00
Albrecht Schlosser 313352b55f Updated documentation/README to reflect the new distribution of
pre-generated documentation as separate downloads.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:06:15 +00:00
Manolo Gouy b6d2207550 New attempt to fix STR #2513.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 12:08:44 +00:00
Albrecht Schlosser aa4342fe1a Next try to improve documentation title and version numbers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 10:49:50 +00:00
Albrecht Schlosser 1cccb74748 Fixed Doxygen version numbers (and better HTML title with version number).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 10:37:47 +00:00
Manolo Gouy 03af588ef9 Added missing #include's when compiled using Xcode
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 10:36:44 +00:00
Greg Ercolano 94a3cdaa47 Added dnd example to Makefile.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-10 22:25:59 +00:00