Commit Graph

1439 Commits

Author SHA1 Message Date
Albrecht Schlosser
5a5baca1e2 Bump version numbers, prepare release 1.3.9
Still to do: update bundled libs, maybe more.
2023-12-02 22:36:53 +01:00
Albrecht Schlosser
fc6675aa87 Fix doxygen warnings 2023-12-02 21:38:15 +01:00
ManoloFLTK
1b5db5519d Add support for macOS Sonoma 14 2023-10-25 11:29:07 +02:00
Albrecht Schlosser
66b0935ed9 Fix compiler warning as pointed out in PR #693
This PR has been closed by its OP.
2023-03-04 18:27:03 +01:00
Albrecht Schlosser
2fddbaea0f Windows: #define WIN32 if not defined by user
FLTK 1.3.x code relies on WIN32 being defined (rather than _WIN32).

This commit defines WIN32 on Windows builds unless Cygwin (__CYGWIN__)
is used to avoid the common user error to "forget" to define WIN32 on
the commandline or in the build system (e.g. Visual Studio).
2023-02-28 10:17:07 +01:00
Albrecht Schlosser
92b6962495 Add new dialog fl_choice_n() with extended return values (#282)
This new dialog enables the user program to distinguish whether the
user closed the window by hitting Escape, clicking the window's
close button, or using the "cancel" button with return value 0
as requested by GitHub Issue #282 "fl_choice() doesn't tell you
if the dialog was closed".
2021-11-20 14:42:56 +01:00
Albrecht Schlosser
6fb92e441e Bump version numbers, prepare release 1.3.8 2021-11-05 18:50:55 +01:00
Albrecht Schlosser
70ebfdb6a1 Finalize release 1.3.7
Update version numbers, announcement, docs, ...
2021-07-25 15:16:28 +02:00
Albrecht Schlosser
8268972061 Fix compiler warning
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: arm64-apple-darwin20.4.0

Warning appeared after upgrade to Xcode 12.5 in several files,
example:

In file included from Fl_Scroll.cxx:19:
../FL/Fl_Scroll.H:102:17: warning: anonymous non-C-compatible type given name for linkage purposes by typedef declaration; add a tag name here [-Wnon-c-typedef-for-linkage]
  typedef struct {
                ^
                 ScrollInfo
../FL/Fl_Scroll.H:104:5: note: type is not C-compatible due to this member declaration
    typedef struct { int x,y,w,h; } Fl_Region_XYWH;
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../FL/Fl_Scroll.H:128:5: note: type is given name 'ScrollInfo' for linkage purposes by this typedef declaration
  } ScrollInfo;
    ^
2021-05-03 21:31:58 +02:00
Albrecht Schlosser
52a853c39c Backport CMake and related stuff from 1.4 (master)
- update formatting + documentation generation
- rename help-test.html to help_dialog.html
- update CMake files + Makefiles + related source files
- update fluid files + dependencies
2021-04-08 14:57:40 +02:00
Albrecht Schlosser
02e4b8f980 Bump version numbers to 1.3.6 (prepare release part 1) 2021-02-04 14:58:30 +01:00
Albrecht Schlosser
0c70362e63 Fix offscreen drawing under X11 (STR 3384)
- fix undefined 'GC' if no window has been shown/drawn yet
- may still need to call fl_open_display() prior to offscreen-drawing
- improve documentation, add example code
2020-11-03 12:02:54 +01:00
ManoloFLTK
46235ff922 Transfer to branch 1.3 all changes in Fl_cocoa.mm from branch 1.4 as of 20 may 2020
This makes branch 1.3 OK for macOS 10.15 Catalina.
2020-05-27 11:06:03 +02:00
Albrecht Schlosser
da227a49eb Fix Doxygen documentation generation.
Back-ported from 1.4.x and verified.
2019-01-01 20:50:48 +01:00
ManoloFLTK
632144439d Remove errors with Doxygen 1.8.14 2018-12-05 13:30:51 +01:00
Manolo Gouy
63626c8f26 Cairo support under macOS 10.14 Mojave: slightly simpler implementation
This post http://www.fltk.org/newsgroups.php?s36927+gfltk.general+v36944
reports a full-size Cairo-using FLTK app to be OK under Mojave with the
equivalent of this fix for the 1.4 branch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-08 13:14:37 +00:00
Manolo Gouy
6467a4ada0 MacOS: fix support of Cairo under macOS 10.14 Mojave.
The cairo_test program would redraw the window vertically flipped after the window was
hidden or miniaturized when layer-backed windows were used.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-05 09:04:38 +00:00
Manolo Gouy
04e782d946 MacOS Mojave: restore support of gl_start()/gl_finish().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-11-01 21:01:41 +00:00
Albrecht Schlosser
a2ff8ee535 Document that Fl_Widget::GROUP_RELATIVE bit is not used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-10-19 16:51:57 +00:00
Manolo Gouy
2b7abcf6b4 Prepare for support of MacOS 10.14 Mojave.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-10-16 09:30:46 +00:00
Manolo Gouy
226b64e9bd X11 + OpenGL: new procedure to create OpenGL3+ contexts giving access to the highest OpenGL version supported by GLX.
The ABI compatibility was checked with the abi-compliance-checker tool.
The same code has already been committed in the 1.4 branch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@13043 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-06 16:51:31 +00:00
Albrecht Schlosser
9bc2c7ba52 Add FL/platform.H for compatibility with FLTK 1.4.0 and higher.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-19 16:58:22 +00:00
Manolo Gouy
6e5c31eab6 Introduce global fl_mac_quit_early that, if set to 0, prevents FLTK from terminating the app after cmd-Q without Fl::run() returning.
This is a MacOS-specific public global variable.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-07 09:37:10 +00:00
Albrecht Schlosser
1af036f6ed Add public accessor Fl_Shared_Image::original().
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.3@12473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-02 12:38:28 +00:00
Albrecht Schlosser
08533b52b5 Bump version numbers to 1.3.5, prepare for release.
There are still files that need changes, but with this commit the
majority of files is up-to-date.

Files left to be updated later:

 - ANNOUNCEMENT         partly done, needs RELEASE DATE !
 - CHANGES              up-to-date (?), but needs RELEASE DATE !
 - KNOWN_BUGS.html      needs more work (snapshot)
 - maybe more           (unknown)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 18:32:47 +00:00
Albrecht Schlosser
6daf518874 Add non-const version of Fl_Tree_Item::tree() as ABI feature.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:45:55 +00:00
Manolo Gouy
7fcdea663e Remove apparent breaking of ABI compatibility by class Fl_Device_Plugin
Also, add Doxygen comment this class is not for use outside the library.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 15:00:02 +00:00
Albrecht Schlosser
de80a36218 Fix inconsistent interpretation of ld() in image handling (STR #3308).
Documentation has been fixed and clarified, and ld() handling is now
consistent in Fl_(RGB_)Image, their subclasses and fl_draw_image()
and similar functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:44 +00:00
Manolo Gouy
81873ec324 Mac OS X SDK 10.12 is now supported, so MAC_OS_X_VERSION_10_12 is defined if SDK does not define it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-08 05:59:14 +00:00
Manolo Gouy
5c93e73a54 Add FL_EXPORT to quiet warning with MS VS2015
see http://www.fltk.org/newsgroups.php?s34326+gfltk.general+v34341

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-07 07:50:22 +00:00
Albrecht Schlosser
c8837ffaec Fl_Shared_Image documentation enhancements and clarifications.
Minor code changes (e.g. renaming of variables) included, but no functional
changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 22:35:37 +00:00
Albrecht Schlosser
8a392f90de X11: More explicit warning when using rotated text w/o Xft.
The warning is issued to stderr only once (previously: every time rotated
text was used).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-25 11:07:06 +00:00
Albrecht Schlosser
c930e2c0c0 Fl_Tree documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 22:47:28 +00:00
Albrecht Schlosser
5886d3706f Update fluid files and copyright.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 12:57:18 +00:00
Manolo Gouy
8b2c6cecfc Documentation: clarify and extend the description of Fl::paste().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 09:11:48 +00:00
Manolo Gouy
713cdbeb93 Documentation: better structure for the description of function Fl::paste()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11944 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 08:24:10 +00:00
Manolo Gouy
57e48378d7 Add Doxygen comments for the Fl_RGB_Image::alloc_array and ::array public attributes.
Also, document what is the value of alloc_array after construction of an Fl_RGB_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 11:10:54 +00:00
Greg Ercolano
2bb2192dd3 Solves STR#3294; added methods to let user set the userdeicon,
and removed the performance degrading automatic deicon creation.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11840 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-21 00:35:06 +00:00
Greg Ercolano
1c761bedc3 Solves STR# 3305 as ABI feature 1.3.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-14 18:48:43 +00:00
Greg Ercolano
5a340a2e5e Solves STR#3306.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-13 23:19:12 +00:00
Albrecht Schlosser
f41ef4e158 Clarification and better documentation of ABI version configuration.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 18:43:31 +00:00
Albrecht Schlosser
189591d4b6 Documentation fixes and clarifications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 17:06:46 +00:00
Greg Ercolano
a0086f7075 Document savefile() return value, see also references to/from outputfile()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-25 00:54:24 +00:00
Greg Ercolano
e964f33514 Small doc improvements/elaborations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-23 20:17:11 +00:00
Greg Ercolano
88105f2d72 Brought in Manolo's doc mods (r11785).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:49:34 +00:00
Greg Ercolano
e756dd8dab Changed Fl_Sys_Menu_Bar::update() from protected -> public
as per STR #3317 and manolo's commit #11785 to branch-1.3-porting/



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:43:16 +00:00
Manolo Gouy
6b95819984 Make Fl_Gl_Window::pixels_per_unit() return a float (rather than int) value.
This is compatible with future scaling factors applicable to the GUI.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 05:44:14 +00:00
Greg Ercolano
e09806d249 Some small Fl_Sys_Menu_Bar related doc mods as per STR#3317.
WIP -- more to come; just checking in what I have for now..

	1) rank -> index
	2) Added docs for index \return values for some methods 
	3) Some clarification in the internal docs about rank vs. index
	4) Enabled Fl_Menu_Item's enum flags to be able to be links (added @file
	   to Fl_Menu_Item.H) so references to e.g. "::FL_MENU_TOGGLE" will show
	   up as links in doxygen docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-18 00:32:18 +00:00
Greg Ercolano
3420a418c0 Doc fix: fixes STR#3312.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-03 05:13:44 +00:00
Manolo Gouy
d850775282 Proper handling of html entities (&name;) in text selections of Fl_Help_View widget.
This commit reproduces the same changes in the fltk-1.3-porting branch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-31 09:12:40 +00:00