Commit Graph

841 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
17f677e0a3 Fix more compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 21:12:49 +00:00
Albrecht Schlosser
d2a6ac8b6b Fix compiler warnings found with gcc 4.0.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 20:35:29 +00:00
Albrecht Schlosser
4b63361471 Fix and simplify exe name handling in demo (Windows).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 14:38:35 +00:00
Albrecht Schlosser
08d4044829 Add Ian's offscreen test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 00:39:40 +00:00
Albrecht Schlosser
59aa9b25d6 Enable negative 'd' and 'ld' arguments in fl_draw_image() test.
This commit defines additional preprocessor macros to enable testing
negative d and ld arguments of fl_draw_image(). Documentation (test
scenario) has also been improved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 15:38:18 +00:00
Albrecht Schlosser
753aa53c2e Fix compiler warnings, last part (STR #2988).
The fixes in this commit include those proposed in file #6
(fltk-misc-1.patch) with a few modifications (see comment on STR).

Changes in src/fl_set_font.cxx are not included (see comment #13).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 15:14:42 +00:00
Albrecht Schlosser
4c191cda8f Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-22 17:46:53 +00:00
Albrecht Schlosser
a72bba7a3c Add some test options to test/editor.cxx.
These options are not enabled by default, but you can enable them by
defining macro DEV_TEST. This adds buttons to toggle wrap mode,
scrollbar positions, and to increase or decrease the window size (width).

Note: this can be used to test STR #3272 and the fixes in a follow-up
commit.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-22 16:36:38 +00:00
Manolo Gouy
249e2e9b00 Add Fl_Shared_Image *Fl_Image_Surface::highres_image() to draw into high-resolution bitmap.
This new member function returns a high resolution bitmap image scaled to the adequate
drawing size. This allows to create a bitmap image able to fill all pixels of a high resolution
display. This is functional only for the Mac OS platform and with FL_ABI_VERSION >= 10304. 
On other platforms, the new member function returns an unscaled bitmap.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-11 20:42:51 +00:00
Albrecht Schlosser
29bbb3f263 [CMake only] Add examples/fltk-versions to test programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-09 00:58:18 +00:00
Albrecht Schlosser
18e72ba9e7 Fix another compiler warning [-Wformat=].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31 04:28:04 +00:00
Albrecht Schlosser
e934dd5468 Fix compiler warnings (STR #2988).
gcc issued lots of warnings if compiled with -Wundef. This shows access
to undefined preprocessor macros, particularly for config tests.

This update is similar, but not identical to fltk-cpp-fixes.patch as
posted on STR #2988 (file #1). There have been changes in the configure
script and the  macros in configh.in and configh.cmake.in meanwhile.

This commit compiles with -Wundef w/o such warnings under Linux and
Windows (MinGW).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-31 02:49:56 +00:00
Albrecht Schlosser
2fbffa98fa Porting back changes of branch-1.3-porting.
The old behavior is retained, but the files have been modified
to match the new versions in the porting branch as much as possible.

The porting branch has its own (modified) version. Windows executables
built with the new IDE's (generated by CMake) don't have the trailing 'd'
in Debug mode.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-30 21:11:16 +00:00
Manolo Gouy
94e2c48f5f Implemented Fl_Image_Surface::draw_decorated_window().
This gives the same drawing capabilities to all supported drawing 
surfaces: display, printer, clipboard, in-memory bitmap image,
PostScript file.

Also, completed the Mac OS implementation of 
Fl_Copy_Surface::draw_decorated_window(Fl_Window *win, int delta_x=0, int delta_y=0)
that did not honor non-zero last arguments.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-01-04 13:16:23 +00:00
Manolo Gouy
8ac33d6b71 Mac OS: Enhanced the application bundle for the editor demo
so it is launchable by dropping any file on its icon. This is
done both for the configure/make and the CMake build systems
(the Xcode build system did that already).
The editor demo is the only one calling fl_open_callback().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-29 16:41:15 +00:00