Commit Graph

4598 Commits

Author SHA1 Message Date
Greg Ercolano
2c5006563f Fl_Tree API breaking changes (we haven't released 1.3.0 yet..):
Fl_Tree::labelsize() -> item_labelsize()            -- TO AVOID COLLISION WITH Fl_Widget::labelsize()!
    Fl_Tree::labelfont() -> item_labelfont()            -- TO AVOID COLLISION WITH Fl_Widget::labelfont()!

Fl_Tree_Prefs (internal) changes:
    Fl_Tree_Prefs::fgcolor() -> labelfgcolor()          -- for consistency with above
    Fl_Tree_Prefs::bgcolor() -> labelbgcolor()          -- for consistency with above
    Fl_Tree_Prefs::selectcolor() removed                -- uses Fl_Widget::selection_color() instead
    Fl_Tree_Prefs::inactivecolor() removed              -- was unused; inactive color procedurally calculated

Other Fl_Tree mods:
    o Fixed bug with select_all(item) and deselect_all(item)
      (they were not limiting themselves to children of specified item)
    o Fixed bug with item not drawing in its /own/ bgcolor when item selected
    o Fl_Tree uses the Fl_Widget::selection_color()
    o All methods that deal with 'font types' changed int -> Fl_Font
    o All methods that deal with 'font sizes' changed int -> Fl_Fontsize
    o Added needed methods to Fl_Tree for accessing colors:

        item_labelfgcolor()     -- access default fg color used for new items
        item_labelbgcolor()     -- access default bg color used for new items
        tree_connectorcolor()   -- access the connector line color

    o Small doxygen comment adjustments and general clarifications
    o test/tree demo modified to include testing of new label color methods, cleanup



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 20:22:06 +00:00
Ian MacArthur
31db787583 Oops - someone committed a typo in Fl_Spinner.H - I think this is an adequate fix.
Needed this change to make r8338 build for me.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 12:50:19 +00:00
Manolo Gouy
d4ad141d4d Reorganization of the Doxygen docs of some Fl_Image class functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 09:24:40 +00:00
Manolo Gouy
5850cc1334 Minor changes in Doxygen docs of Fl_Value_Input::shortcut() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 09:04:59 +00:00
Manolo Gouy
802aff1785 Minor changes in Doxygen docs of Fl_Window constructors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:55:46 +00:00
Manolo Gouy
ff39941c20 Reorganized Doxygen docs of Fl_Spinner::type() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:45:34 +00:00
Manolo Gouy
0e55ee68d0 Minor change in Doxygen docs of Fl::wait() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:36:33 +00:00
Manolo Gouy
f832f4af57 Reorganized Doxygen docs of Fl::event_is_click() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:18:52 +00:00
Manolo Gouy
d51f3b0898 Reorganized Doxygen docs of Fl::grab() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:06:06 +00:00
Manolo Gouy
a1d85a742b Fix STR #2549: error in sizeof arithmetic
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 16:20:16 +00:00
Matthias Melcher
e77d29a1ee Doc update for OS X installation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 14:35:01 +00:00
Greg Ercolano
909cf0061b Fixes STR#2547.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 06:00:46 +00:00
Manolo Gouy
8181b42f88 Removed compilation warning for pre-10.5 Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 18:10:39 +00:00
Manolo Gouy
5e50478380 Fix STR #2541. The code is unchanged for Mac OS and MSWindows because the bug
does not occur there.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 17:38:07 +00:00
Greg Ercolano
35c7c2f14c Makefile modified to demonstrate use of fltk-config.
FLTK settings defined in a separate Makefile.FLTK
    which users can nab for their own use.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 16:11:45 +00:00
Manolo Gouy
23ab3ff119 Corrected typo in Doxygen doc (again).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:37:49 +00:00
Manolo Gouy
12f064a121 Corrected typo in Doxygen doc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 08:20:34 +00:00
Greg Ercolano
d8d04b2485 Removed unncessary calls to set_value_hide() which was
causing a crash on windows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 01:34:22 +00:00
Manolo Gouy
4df0320ec6 Clarified the Doxygen docs of fl_utf8toUtf16() and fl_utf8towc() where there was some mixup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 17:27:52 +00:00
Manolo Gouy
8d4dea4bc0 Allow easier modification of the block size for character widths.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 16:55:43 +00:00
Matthias Melcher
60eae78679 Slightly changed the event dispatch functions to allow for exception handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-26 19:14:38 +00:00
Matthias Melcher
5e0710fcd0 Stupid bug removed
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 22:16:49 +00:00
Matthias Melcher
7b832a512e Added Fl::event_dispatch() which can add a function to FLTK that monitors all events before they reach Fl::handle(). STR 2532
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 19:54:09 +00:00
Manolo Gouy
ece27e347c Fix STR #2530 (Mac OS only)-continued. Change to allow display of the surrogate zone of UniChar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:58:44 +00:00
Manolo Gouy
37180e08b3 Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths-continued:
two 256->512 substitutions were missing.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:00:17 +00:00
Manolo Gouy
e3a96057c1 Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths
(instead of 256x256) because this reduces greatly the opening time of windows
with several new fonts.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 20:05:34 +00:00
Albrecht Schlosser
5824eb4eb9 Removed unnecessary dependencies from ide/VisualC6/fltkdll.dsp.
This is a try to get rid of bogus X11 warnings (STR #2521).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 19:48:36 +00:00
Albrecht Schlosser
ddc3d3b8c5 Fixed ide/VisualC6/fltkdll.dsp to writed the correct dll in debug mode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 19:04:18 +00:00
Matthias Melcher
fe25f19767 Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 17:04:22 +00:00
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