summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-06Fl_SVG_Image::fl_gzopen(): write it more platform-independently (still not ↵Manolo Gouy
completely though) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12480 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-05Fix name clash with zlib gzopen on (64-bit) Linux.Albrecht Schlosser
Compilation error message: src/Fl_SVG_Image.cxx:80:21: error: out-of-line definition of 'gzopen64' does not match any declaration in 'Fl_SVG_Image'; did you mean 'gzopen'? void* Fl_SVG_Image::gzopen(const char *fname) { ^~~~~~ gzopen /usr/include/zlib.h:1709:20: note: expanded from macro 'gzopen' # define gzopen gzopen64 ^ The culprit was the macro defined in zlib.h (above). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-04Fl_SVG_Image constructor: handle case where file cannot be opened.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-04Fl_SVG_Image class: add support for compressed .svgz image files.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-04Undo commit at r.12475 that is not adequate.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-04Fl_SVG_Image class: add support for compressed .svgz image files.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-03Added missing accessor for Fl_Text_Display's cursor_style()Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-02Add public accessor Fl_Shared_Image::original().Albrecht Schlosser
This public, inline, and read-only accessor is intended for debugging purposes but can be useful for user code as well. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-27Small doc simplification/shorteningGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-25Change copyright yearManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-24Update the doc of the Fl_Image_Surface constructor to reflect HiDPI support ↵Manolo Gouy
by the WIN32 and X11 platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-23Make function gnome_scale_factor() more robust by checking each gnome key ↵Manolo Gouy
exists before asking for its value. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-23Change copyright year to reflect date of last commit.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-23Testing svn commits for manolo to see if this triggers website access problems.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-23Remove obsolete include directive.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-20X11 platform: Allow running with old (< 2.36) versions of libglib-2.0Manolo Gouy
These versions require calling g_type_init(). Newer versions don't. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-19Convert the initialisation of global variables fl_local_shift, ↵Manolo Gouy
fl_local_meta, etc... using the driver approach. This avoids repeating the default values "Shift", "Meta", etc... for several platforms. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-19Added control for when() to test browser's callback behavior.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-19Fl_XXX_System_Driver::clocale_printf() : use thread-specific, locale-setting ↵Manolo Gouy
APIs where possible This commit uses thread-specific, locale-setting functions under Linux and MSWindows-Visual Studio They are already used by the Mac OS system driver, when possible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-18SVG support: avoid re-rasterizing an image that was previously rasterized at ↵Manolo Gouy
higher resolution. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-14Reverting to previous; apparently this was a bug in doxygen 1.7.4's support ↵Greg Ercolano
of header markdown. The following is valid, documented, "standard markdown" for headers in doxygen: This is a level 1 header ======================== This is a level 2 header ------------------------ Upgrading doxygen from 1.7.4 to 1.8.13 fixed the problem. So beware of 1.7.4 wrt to these kinds of header markdown; the result in the docs was no header, the header text + underbars were appearing inline with the text, crlfs removed. Not sure exactly what version of doxygen this was fixed in; a search in their bugzilla for 'headers' seemed to show no directly relevant matches, other than maybe bug #681898. https://bugzilla.gnome.org/show_bug.cgi?id=681898 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-13Doxygen fix: The trick of using a line of dashes under a section heading no ↵Greg Ercolano
longer works. This has been working fine for years, not sure what version of doxygen dropped this. I'm running 1.7.4 here, and that trick isn't working for the Fl_Browser_.H docs. Changed to using <B> and </B> and <BR> which seems to work OK in both HTML and PDF generation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-13Fixed small doxygen inconsistencies for do_callback value.Greg Ercolano
Internally Fl_Browser passes the raw value of when() as the "do_callbacks" value, so it's important that ALL non-zero values mean "do the callback' (and not just 1). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-13SVG support: draw images at full screen resolution also when there are ↵Manolo Gouy
several pixels per graphical unit, as with Apple retina displays. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-13Mac OS: use Fl_Graphics_Driver::has_feature(PRINTER) to detect when drawing ↵Manolo Gouy
to a printer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-13Mac OS: explain more accurately in comments how the tricky part of printing ↵Manolo Gouy
an Fl_RGB_Image is handled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Demo image for Fl_Multi_Label docs.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12453 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Add reference to image in docs.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Add divider above Quit menu item. (needed for demo screenshot)Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Documentation and copyright updates.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Fluid: remove redundant code, fix FL_IMAGE_LABEL labeltype.Albrecht Schlosser
Remove leading underscore from _FL_IMAGE_LABEL. Remove redundant assignment of image(). Thanks to Greg for finding these issues. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Remove leading underscore from labeltyps as far as possible.Albrecht Schlosser
Removed obsolete '\todo' item from docs (done with recent commits). Removed redundant code from label assignment (e.g. use FL_IMAGE_LABEL instead of label type assignment + use of _FL_IMAGE_LABEL). See recent commits. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Fluid: align internal tables (no code changes).Albrecht Schlosser
Note: tab width 8. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Update ignored files: new example howto-menu-with-images.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Doxygen Fl_Multi_Label example code added. (STR #3400)Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Remove leading underscore from labeltype(s) in new demo.Albrecht Schlosser
Since svn r12443 we can use all labeltypes (including FL_IMAGE_LABEL and FL_MULTI_LABEL) w/o leading underscore. We can also use both documented variants to assign an FL_MULTI_LABEL to an Fl_Menu_Item. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Add missing Fl_Labeltype and Fl_Boxtype definitions.Albrecht Schlosser
Some labeltypes and boxtypes were missing a #define for the enum without a leading underscore and the corresponding setup function to initialize the internal table of boxtypes and labeltypes, for instance _FL_MULTI_LABEL. This is now fixed so (hopefully) all boxtypes and labeltypes can and _should_ be used w/o leading underscore. Note: if there are still boxtypes or labeltypes that can't be used w/o leading underscore this should be considered a bug and is to be fixed ASAP. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Simplified the example's menu item callback.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Applied Manolo's recommendation (fltk.coredev), removing unnecessary ↵Greg Ercolano
item->image(*pixmap) call. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Added example code to demonstrate Fl_Multi_Label for STR#3400.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-10Fix compiler warning and potential error in PNG error handling.Albrecht Schlosser
Compilation with gcc -Wall -Wextra displayed the following warning: Fl_PNG_Image.cxx: In member function ‘void Fl_PNG_Image::load_png_(const char*, const unsigned char*, int)’: Fl_PNG_Image.cxx:118:9: warning: variable ‘fp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] Making the variable static and initializing it properly avoids this potential error in the PNG lib's error handling. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09Set svn ps for this new file.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09These files are no longer used. They are replaced by nanosvg.h and nanosvg.diff.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09Differences between the FLTK-modified and the nanosvg versions of file nanosvg.hManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09Fix nanosvg implementation of nsvg__atof() to allow compilation with Visual ↵Manolo Gouy
Studio 7. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09#include <locale.h> is no longer needed.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-09Make virtual member function Fl_Image::draw_scaled(int X, int Y, int W, int ↵Manolo Gouy
H) protected rather than private. Consequently, remove the trailing _ from its name reserved for private class members. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-08Enhance howto-drag-and-drop example program.Albrecht Schlosser
Refer to discussion if fltk.general, thread "Drag and drop issue" in August September 2017. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-07Modify nanosvg.h to support compilation by Visual Studio 7.Manolo Gouy
This is a new implementation that does not tamper with the program's locale. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-06Simplify code using plain atof() instead of implementing function nsvg__atof().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121