Commit Graph

856 Commits

Author SHA1 Message Date
Albrecht Schlosser
86a98e2054 Finish "Backport support for mouse buttons 4+5" (#1076, #1068)
- documentation updates, alignment, formatting, version numbers
- fix widget order in test/keyboard_ui.fl
- replace hard-coded bit mask with 'FL_BUTTONS'
- add missing macro definition 'GET_XBUTTON_WPARAM' for MinGW
- reorder 'case' statements for button events (like in master)
2024-11-14 18:07:34 +01:00
Adam Halim
f83c0042f3 Backport support for mouse buttons 4 + 5 (#1076, #1068)
This is a backport of PR 1081 by @Albrecht-S from master to branch-1.3.
2024-11-14 18:07:34 +01:00
ManoloFLTK
20e2879ea8 macOS: let fullscreen windows have access to the system menubar 2024-05-22 10:37:18 +02:00
Albrecht Schlosser
908d900794 Bump version numbers from 1.3.9 to 1.3.10 2024-05-14 15:57:04 +02:00
Albrecht Schlosser
4f787cc1f0 Fix a bunch of compiler warnings (backported from 'master')
Many warnings were benign, some were false positives, but better
fix a warning than miss an error.

test/fractals.cxx: backported from 1.4
2024-03-16 13:53:01 +01:00
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
7fb3ca2c3a Fix stack buffer overflow found by address sanitizer
This bug was only in some extra test code and only read access.
However, it should be fixed anyway.
2023-09-22 13:02:19 +02:00
Albrecht Schlosser
390f530abb Fix another compiler warning (#693)
Backported from 1.4.0.
2023-03-04 18:32:02 +01:00
Albrecht Schlosser
0695e62ce8 Fix compilation error with Visual Studio 2022
This old code (unchanged since 1998) wouldn't compile with the current
version of Visual Studio 2022.

Fix backported from 1.4.0 (c4bb4e192e).
Original commit by Matthias Melcher.
2022-11-11 00:49:21 +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
a394e7aff0 Fix compiler warnings (backported from 1.4) 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
693a420102 CMake/macOS: Fix and improve bundle generation
Update copyright, fix some bundle items, fix icon directory.
2021-05-04 19:22:18 +02:00
Albrecht Schlosser
15aff3718e Refactor macOS bundle generation to avoid "quarantine"
macOS Big Sur 11.3 introduced a new "security feature" such that
app bundles created from existing bundle templates in downloaded
files (tar distibutions, expanded) could no longer be executed
without unsetting the "quarantine" attribute. This commit fixes
this by creating all bundles from scratch.

Known *workaround* for older tarballs and snapshots:

  $ xattr -d -r com.apple.quarantine xxx.app
2021-05-03 16:11:05 +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
1eaf87b245 Minor CMake, docs, and test program updates
Fix bug in CMake/posixScandir.cxx (backported from 1.4).

Fix table structure in test/help-test.html (backported from 1.4).

Clarify that the deprecated forms compatibility *may* be removed in
FLTK 1.4
2020-09-19 19:47:18 +02:00
Albrecht Schlosser
0b27865f54 Update CHANGES and dependencies 2020-07-20 14:03:15 +02:00
Albrecht Schlosser
1397b70ce7 Remove duplicate source from Makefile (and sort it)
It's easier to notice duplicate files if they are sorted.
2019-02-09 15:41:35 +01:00
Albrecht Schlosser
c35adb92c7 Fix dependencies (STR 3506)
test/fracviewer.cxx wouldn't be compiled if the ABI version was
changed with configure and `make' was executed w/o `make clean'.
Add 'fracviewer.cxx' to list of source files to fix this.

Also add missing unittest_scrollbarsize.cxx to dependencies of
unittests.o.

Finally run `makedepend' to update all dependencies.
2019-01-17 18:12:41 +01:00
Albrecht Schlosser
b1f6e3e90e Fix line endings.
Note: we recommend `git config core.autocrlf true'.
2018-12-20 19:58:57 +01:00
ManoloFLTK
0d14e25354 Fix MacOS-specific regression appeared with move to git when building test with configure.
The svn contained empty directories, e.g., test/blocks.app/Contents/MacOS/
Git apparently can't store empty directories.
The test/Makefile is modified to create these directories at build-time.
2018-12-09 16:47:30 +01:00
Albrecht Schlosser
3bd78bb022 Fix CMake build (fluid) on case sensitive macOS file systems.
Note: Xcode projects NOT modified. These project files appear to refer
to 'fluid/Fluid.app' (with uppercase 'F') as well.
2018-12-04 15:00:49 +01: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
3a57a2ce1f Remove obsolete comments from test/ask.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 16:24:39 +00:00
Albrecht Schlosser
7c248d5ec7 Fix test/native-filechooser help display artefact (STR #3349).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-06 10:40:39 +00:00
Albrecht Schlosser
b2ab9c065b Minor fix of tree demo program (show tree widgets).
Clicking "Rebuild Tree" after "Close All" did not show the widgets
(Fl_Input test, ccc button, D1, D2). This is now fixed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:49:33 +00:00
Albrecht Schlosser
ad65146bf9 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:19:25 +00:00
Greg Ercolano
7dbb29524a Small size mods to prevent Fl_Help_View scrollbar and wordwrap,
while keeping Albrecht's recent mods.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11947 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 20:28:15 +00:00
Albrecht Schlosser
381dbf43f6 Fix native file chooser test program (STR #3326).
Fix compilation error under Windows with MS compiler (Visual Studio) only.
Also fix layout and resizing behavior.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11940 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-13 00:56:51 +00:00
Manolo Gouy
0e94558dda Remove comments that refer to non-cocoa Mac OS source code, which no longer exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-06 05:00:08 +00:00
Greg Ercolano
cad4115c23 Help text typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 19:29:48 +00:00
Greg Ercolano
86d8af009a Added "Filter" field to test filter strings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-05 16:41:14 +00:00
Manolo Gouy
a9195a3d94 MacOS platform: make configure-based build produce a bundled demo app in test.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 08:14:43 +00:00
Manolo Gouy
f84f5821b0 Mac OS platform: make the colbrowser demo load its data file from its bundle when started
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 07:45:31 +00:00
Manolo Gouy
c98f143ccb Mac OS platform: make the help demo load its data file when started after configure build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-03 07:35:59 +00:00
Albrecht Schlosser
a51a940890 Fix compiler warnings (gcc 6.1).
Some of these warnings were benign (code formatting), but one of them
showed a potential bug (zero divide in test/fraciewer.cxx).

Fixed warnings:

 2 suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
 1 this 'while' clause does not guard... [-Wmisleading-indentation]
 1 this 'for' clause does not guard... [-Wmisleading-indentation]
 1 this 'else' clause does not guard... [-Wmisleading-indentation]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-29 09:23:44 +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
7d3218f7ea Fix problem w/unittest's schemes -> tab3 text editors
not showing up correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-14 18:12:46 +00:00
Manolo Gouy
abb580f294 Add dots-per-inch info to the screen data displayed by the fullscreen demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 08:46:02 +00:00
Albrecht Schlosser
879d03fab4 [CMake] Improve sound support detection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-14 10:57:56 +00:00
Albrecht Schlosser
f9b235212d remove duplicate '†'
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-23 10:48:06 +00:00
Albrecht Schlosser
556727f026 Add another special test case "†" for Fl_Help_View.
Note: † = &#x2020 = U+2020, i.e. 0x2020 & 255 = 0x20 = ' ' (space).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-23 10:45:16 +00:00
Albrecht Schlosser
3a9afecc0b Add HTML entity tests to test/help-test.html.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-17 16:08:13 +00:00
Albrecht Schlosser
c092b92938 [CMake] Improve Mac OS X bundle generation and more (STR #3299).
Remove example specific tests from macro CREATE_EXAMPLE, add
function to set bundle icon, simplify some CMake setup code,
deprecate usage of UseFLTK.CMake.

Todo: Fix documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-16 14:43:37 +00:00
Manolo Gouy
cc3ef5bec9 Simplify test/help.cxx when USING_XCODE is set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-15 08:28:47 +00:00
Albrecht Schlosser
90e4ba1eed Fix typo in html file test/help-test.html
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-13 13:01:40 +00:00
Albrecht Schlosser
21768d9410 Fix documentation of Fl_Tile (STR #3303).
Clarify that the resizable() box should be the first child to ensure
correct event delivery to children.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-09 11:25:57 +00:00
Albrecht Schlosser
eda47df063 Fix compiler warning when compiled with USING_XCODE [-fpermissive].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 12:38:49 +00:00