summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-09-16Removed incorrect docs, solves issue #137Greg Ercolano
2020-09-16Fix fluid output for international languagesAlbrecht Schlosser
The fluid version and other values in .fl files are written as float values which means that locale settings apply since we enabled the locale with "setlocale()". Update the "rebuild" target in fluid and src folders to update the fluid (.fl) files and related {.cxx|.h} files.
2020-09-07Further minor change to support macOS 11.0 "Big Sur".ManoloFLTK
2020-09-06Fix Fl_Check_Browser.{H|cxx} indentation (#121) (#132)Albrecht Schlosser
* Fix Fl_Check_Browser.{H|cxx} indentation (#121) ... and some more whitespace errors as proposed by Greg ... in issue #121: Fl_Check_Browser--whitespace-patch.txt Fixes #121 * Fix copyright years
2020-09-01Fix issue with Fl_Tiled_Image: did not correctly drawfire-eggs
... to sub-region of widget. Original patch (PR #114) modified by Albrecht-S: - fixed whitespace - removed modifications of test/unittest_images.cxx
2020-09-01Customize corner radius for rounded box/frame (#130)Albrecht Schlosser
Make maximum box corner radius and shadow width configurable. See Fl::box_border_radius_max() and Fl::box_shadow_width(). Documentation: update image of box types. Fixes #130
2020-08-22Fix .clang-format and some whitespace errorsAlbrecht Schlosser
.clang-format: UseTab: ForIndentation -> Never Update fluid generated files
2020-08-17Make recent changes to support macOS 11.0 "Big Sur" active with 11.0 only.ManoloFLTK
An optimisation used for drawing to windows is not possible under 11.0. This commits reinstalls it under macOS 10.14 and 10.15.
2020-08-14Add Fl_Window::screen_num(int) to fully control window locationManoloFLTK
on multi-screen systems having distinct per-screen scaling factors.
2020-08-11Slightly simpler code in the drawRect:(NSRect) methodManoloFLTK
2020-08-10Fix missing Alt-N shortcut for newly created favoritesGreg Ercolano
Fl_File_Chooser's "Add Favorite" function wasn't including the Alt-N shortcut when initially added. Now just calls update_favorites() to rebuild the menu with proper shortcut numbering.
2020-08-10Added Mike's feature list to Fl_File_Chooser docsGreg Ercolano
When Mike proposed Fl_File_Chooser, he included a list of features in the voting contest: https://www.fltk.org/contest.php Seemed like a good idea to include these in the widget's docs.
2020-08-10Add support of macOS 11.0 "Big Sur".ManoloFLTK
2020-08-08Allow unix style paths for windows native filechooserGreg Ercolano
Allows and preserves unix style paths if user specifies them, otherwise uses Windows style. This allows end users to use either style path and get behavior they expect in cross-platform environments. Addresses problems raised by issue #122
2020-08-07Error string that was created is now saved with errmsg()Greg Ercolano
2020-08-05Remove useless 'if (...)'Albrecht Schlosser
- dasharray_ can never be NULL unless if memory allocation failed previously - if dasharray_ was NULL, the previous strcmp() would have crashed anyway (but it can't be NULL, see above)
2020-08-04Remove memory leak.ManoloFLTK
2020-08-03Remove useless Fl_GDI_Graphics_Driver::reset_spot()ManoloFLTK
2020-08-03Update dependencies + fluid/generated filesAlbrecht Schlosser
2020-08-01Remove unneeded strdup from example, fold tabsGreg Ercolano
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-31Solves issue #117, memcmp -> strncmpGreg Ercolano
Closes #117.
2020-07-30Fix use of an SVG image in Fl_Tiled_Image when display is rescaled.ManoloFLTK
2020-07-29Documentation: complete the inheritance diagram from class Fl_Surface_Device.ManoloFLTK
2020-07-28Fix for issue #119. Drawing artefacts for SVG images without XRender.ManoloFLTK
Xlib: Drawing SVG images in scaled mode without XRender has drawing artefacts.
2020-07-27Fix for "Crashing regression in MacOS code" in fltk.coredev.ManoloFLTK
2020-07-24Fix problem when calling Fl_Window::fullscreen_off() in certain circumstances.ManoloFLTK
The problem was discovered in fltk.coredev "Crashing regression in MacOS code"
2020-07-23Fix for issue #50: usage in plugins on Linux.ManoloFLTK
2020-07-20Add missing driver folder to Makefile (clean)Albrecht Schlosser
2020-07-17Restore use of virtual Fl_Window::resize() to be notified when window moves.ManoloFLTK
A previous commit c66caf5dce9331fd3e011873711a768adb28cf9d "Simpler implementation of Fl_Cocoa_Window_Driver::resize()" made that Fl_Window::resize() was no longer called by FLTK when a window is moved. This prevented the undocumented practice of re-implementing the virtual function Fl_Window::resize() and use it as a way to get a notification that a window was moved.
2020-07-15CMake: refactor and reformat CMake filesAlbrecht Schlosser
- raise minimum CMake version from 2.6.3 to 3.2.3 (Jun 01, 2015) - indent all CMake files according to the CMP (2 col.) - refactor FLTK version number definitions and usage - unify CMake and autoconf/configure variable names: - FL_VERSION -> FLTK_VERSION - FL_MAJOR_VERSION -> FLTK_VERSION_MAJOR - etc. for _MINOR_ and _PATCH_, respectively - note: this does not affect FL_VERSION etc. in source code - generate "export headers" for all libraries (experimental: OFF) - port some forgotten goodies from branch-1.3 to master - merge and improve macro 'create_example' (WIP) - remove "temporary" options and code for older CMake versions - include and use 'GenerateExportHeader' (experimental, WIP: OFF) - note: created header files are not yet used - build only *one* DLL with Visual Studio (tested, works) - similar to the bundled IDE projects in 1.3.x - add some dynamically linked test/demo programs ('*-shared') if shared libraries are built (WIP) - split 'macros.cmake': use one file per macro
2020-07-14Merge branch 'issue-99a': add OS error messages to Fl_File_ChooserGreg Ercolano
Pulling in Greg & Albrecht's work on PR #99 and PR #103. This includes supporting operating system error messages in the user's local language, which took some extra effort.
2020-07-14Fix old URL's and forum/newsgroup namesAlbrecht Schlosser
- fltk.development has been renamed to fltk.coredev - all FLTK URL's are now of the form https://www.fltk.org/…
2020-07-14Windows: convert error message to UTF-8Albrecht Schlosser
We need to get the error message in "wide character" format and convert it to UTF-8. The conversion would truncate it if the buffer was too small, hence we don't need to check for overflow. Tested on Windows 10 with VS 2010, including (faked) error codes with non-ASCII characters (German).
2020-07-14Extra fool-proofing, and suggested use of strerror_r()Greg Ercolano
strerror_r() sounds like the better thing to use, but if you read the man page carefully, there are pitfalls of competing GNU vs POSIX versions of the same function, with different return values. GNU version returns a pointer to the error string, which may or may not use the error string supplied to use. Makes no sense. Why not use the buffer the user prepared? Makes returning errors hard. One thing GNU does underline is the string is always NUL terminated. POSIX version doesn't return a string at all, it returns an int, making handling the GNU cases impossible. POSIX /doesn't/ say one way or the other about the string being NUL terminated, so you have to make sure when you use it. I trawled the net, seems this is a big annoying issue. For now, leaving the code with strerror(), but we should change it.
2020-07-14First pass at fixing issue 99Greg Ercolano
A lot of code touched because low level functions needed to pass up error messages reliably, and this had to propagate up the entire driver hierarchy. Tested OK *in English* on: > Linux > OSX 10.10.x > Windows VS2017 > Windows mingw64 I have no way to test on Android, but it might work. TODO: Needs testing in other languages to verify proper UTF8 error messages, esp. with Windows VS, due to complexities with FormatMessage() -- see get_ms_errmsg()
2020-07-12Update Fl_Window docs, fix typosAlbrecht Schlosser
No source code changes
2020-07-11Simpler code to support layer-based views that occur when macOS ≥ 10.14ManoloFLTK
2020-07-11Fix for building without print support (GitHub issue #98).ManoloFLTK
2020-07-10Convert Fl_Group::array_ to union to better represent its behaviorRobert Schumacher
Amended by Albrecht: - rename union member variables as discussed - add comments to new array_ union members Fixes #96 Signed-off-by: Albrecht Schlosser <albrechts.fltk@online.de>
2020-07-06Improve control of sheet containing file dialog window.ManoloFLTK
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-07-01Update doc of Fl_Help_View following addition of html entity &dagger;ManoloFLTK
2020-07-01Add "&dagger;" HTML entity.ManoloFLTK
2020-06-29Move class Fl_SVG_File_Surface from libfltk to libfltk_images.ManoloFLTK
File examples/SVG_File_Surface.cxx is no longer useful because it was a very partial implementation of what is now class Fl_SVG_File_Surface.
2020-06-27Add classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to draw to SVG and EPS.ManoloFLTK
Test programs device and pixmap_browser use these new classes. Class Fl_SVG_File_Surface can be optionally made non functional using the --disable-svg configure option or turning off OPTION_USE_SVG in CMake. Class Fl_EPS_File_Surface can be optionally made non functional using the --disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
2020-06-24Fix static code analyzer warningsAlbrecht Schlosser
Note: there's more to do ...
2020-06-24Avoid crash in Fl::next_window(win)Albrecht Schlosser
As documented, Fl::next_window(win) must only be called with a valid *shown* window. The old code would crash if the argument was NULL or the window was not shown. The new code avoids the crash, issues an error message, and returns NULL to the caller.
2020-06-17macOS Window menu: select in menu new top window after window deletionManoloFLTK
2020-06-16More detailed documentation of Fl_SVG_Image::normalize().ManoloFLTK