Commit Graph

8356 Commits

Author SHA1 Message Date
ManoloFLTK 6d373286bc Mention Fix for STR#3473 (and its duplicate STR#3507) 2019-01-30 18:01:12 +01:00
ManoloFLTK 669f159665 Fix for STR#3473 (and its duplicate STR#3507)
Recent Linux distribution have replaced the freetype-config command
by pkg-config. The fix tries the new procedure with pkg-config and
falls back to freetype-config if the new procedure fails.
2019-01-30 17:58:22 +01:00
ManoloFLTK 899eaf8a69 Remove useless statement. 2019-01-28 17:10:13 +01:00
Albrecht Schlosser 2c5ba94458 Fix Fl_Tree::insert() with pos out ouf range (#18)
The given position to insert a new item was not checked  against the
valid range so the program  could crash if a position less than zero
or greater than children() was given. The position is now clamped to
the valid range, i.e. the item is either prepended or appended.

Fixes issue #18.
2019-01-25 17:40:51 +01:00
ManoloFLTK 9b272cfa4e Fix minor text input problem related to dead key previewing.
macOS normally previews a dead key and then replaces the preview by the final text
after the second key is typed.
macOS ≥10.7 also opens an auxiliary window to help choosing among possible characters
after some keys (e.g., n, c, o, a) are pressed and maintained for a while.
The problem fixed here is that after an auxiliary window has been used,
dead keys are no longer previewed.
That problem emerged at some undetermined point before 10.14 and after 10.7.
2019-01-24 15:19:33 +01:00
Greg Ercolano 4f8e07a0cd Doxygen mods for new FL_TREE_SELECT_SINGLE_DRAGGABLE flag
o Added mention of drag+drop / FL_TREE_SELECT_SINGLE_DRAGGABLE
     to list of features on main Fl_Tree doxygen page.

   o Whitespace mods to FL_TREE_SELECT_* to fix doxygen 1.8.5
     whitespace sensitivity that was causing single sentence
     to break into two when spanning multiple "///>" comments
     for last item in an enum (doesn't end in ",")
2019-01-23 16:01:06 -08:00
ManoloFLTK 83ecdd183a Remove incorrect putenv(buf) call followed by free(buf). 2019-01-21 16:03:59 +01:00
ManoloFLTK ba729e50b7 Remove unnecessary code related to layer-backed views.
That code is not useful if layer-backed views are used only with macOS 10.14.
2019-01-20 19:13:08 +01:00
Albrecht Schlosser 788a2f9fee Improve ABI configuration documentation
Add a note to rebuild everything after changing the ABI configuration.
2019-01-19 17:20:05 +01:00
Albrecht Schlosser 76c781a6da Merge local branch 'sort_makedepend'
The main dependencies (makedepend files) are now sorted.
2019-01-18 16:28:41 +01:00
Albrecht Schlosser bb91970122 Update dependencies (now sorted)
The main dependencies (makedepend files) are now sorted alphabetically
with one dependency per line.
2019-01-18 16:27:32 +01:00
Albrecht Schlosser 80ad88555f Sort makedepend files for better comparability
The intention is to improve (and minimize) diffs when dependencies
are changed and `make depend' is executed.

(1) use `makedepend ... -w 20'
(2) `sort -u' the resultant file with some more "magic".

(1) makes sure that there is only one dependent file per line,
(2) makes lines unique since `makedepend' can output one file
    many times which is redundant and makes diffs hard to read.

This uses 'mv', 'grep', and 'sort' in all FLTK library Makefiles.
Image libraries are intentionally left for a later update.
2019-01-18 15:44:24 +01:00
Albrecht Schlosser 64cd95d6d5 Merge branch 'fix-dependencies' (STR 3506)
This is intentionally a merge commit that includes both the fix
necessary for STR 3506 and the update of all remaining dependencies.
2019-01-18 14:12:34 +01:00
Albrecht Schlosser 2167908f8e Update (remaining) dependencies 2019-01-18 14:11:41 +01:00
Albrecht Schlosser 9177c6e4cc 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 dependencies.

Note: cherry-picked from branch-1.3 and adjusted to fit master (1.4)
2019-01-18 14:09:44 +01:00
Matthias Melcher 6bc3fa3768 Merge branch 'master' of https://github.com/fltk/fltk into Android 2019-01-17 21:30:16 +01:00
Matthias Melcher 2f0e45e7a7 Android CMake: icons, docs, more apps 2019-01-17 21:29:24 +01:00
Matthias Melcher 111985665d Andoird CMake: trying to autocreate Fluid files 2019-01-17 00:49:44 +01:00
ManoloFLTK 78510a831d Merge remote-tracking branch 'origin/master' 2019-01-16 13:38:45 +01:00
ManoloFLTK d17454ac6a Correct typo in comment. 2019-01-16 13:38:13 +01:00
Matthias Melcher 563baced13 Android CMake: fix, more autogenerated files
Fixed a bug that would cause an error is Android Build was NOT
defined. Creating list of test targets automatically.
2019-01-16 02:12:29 +01:00
Matthias Melcher 6de1c93e54 Android CMake: macro for multiple tests
Added a macro that creates the IDE files for a named test.
This is just a rough layout and will only work for the
simpelest of test targets.
2019-01-16 01:25:59 +01:00
Matthias Melcher a4fc8b06e1 Fixed typo in test/Cmake 2019-01-15 01:32:26 +01:00
Matthias Melcher b450cea7e2 Android: starting to use CMake to build AndroidStudio files. 2019-01-15 01:22:18 +01:00
Matthias Melcher e25511131b Android: modifying CMake to also create AndroidStudio IDE 2019-01-14 23:27:34 +01:00
Matthias Melcher 16181a3afb Android: modifying CMake to also create AndroidStudio IDE 2019-01-14 23:27:12 +01:00
Matthias Melcher 6ff11dd8d0 Added Fl_Simple_Terminal to Fluid. 2019-01-14 01:43:17 +01:00
Matthias Melcher 6a61772c80 STR 3460: Fluid menu item types
Added pulldown menus to create radio style and checkbox style
menu items without going through the Class menu.
2019-01-14 01:14:40 +01:00
Matthias Melcher b71601fe7c STR 3460: shell window remembers position
The Fluid window to display the execute shell command result
is now reopened where it was previously closed.
2019-01-14 00:09:31 +01:00
Matthias Melcher 3d6b234c27 STR 3460: remember cursor position in code editor
When editing code in Fluid, the COde_Type class will now
remember the last cursor position and reopen the editor
dialog at that position (not for external editor).
2019-01-13 23:32:34 +01:00
Matthias Melcher a1ebe87a88 STR 3460: removed nanny code for Fluid comments
When writing comments, FLuid would check if the comment was
C compatible. However, comments don;t need to comply to C
syntax. We could check for the "*/", but is that really needed?
2019-01-13 22:42:01 +01:00
Matthias Melcher 1643912e4a Merge branch 'master' of https://github.com/MatthiasWM/fltk 2019-01-13 22:08:47 +01:00
Matthias Melcher 7897787b38 Updated Android build files to newes Android Stduio version 2019-01-13 22:07:38 +01:00
Matthias Melcher aac0aae320 Updated Android build files to newes Android Stduio version 2019-01-13 21:58:02 +01:00
Albrecht Schlosser 8ba982ae37 Fix Cairo callback drawing (needs flush)
This commit adds a cairo_surface flush after calling the draw callback.
This fixes the test/cairo_test demo program under Windows.

At least under Windows the Cairo callback used in Fl_Cairo_Window
didn't draw anything with current Windows 10, MinGW (32-bit) and
Cairo 1.15.12 for Windows. It worked well under Linux though. Anyway,
the flush should do no harm.
2019-01-12 15:54:57 +01:00
Albrecht Schlosser 1a1492a174 Fix Fl_GIF_Image Color Table handling (STR 3491)
Loading GIF images could crash if there was no "Global Color Table"
but individual "Local Color Tables" with individual images.

Now local color tables are used correctly if available, but images that
lack both global and local color tables are being loaded with a default
(gray) color table and a warning is issued with Fl::warning().

The default color table uses black and white in the first two indices
as recommended by the standard.

Cherry-picked from: 35e03733f4
2019-01-09 18:07:38 +01:00
Manolo Gouy 2bc7816cab Slight reorganization of the [FLWindow close] method.
It might be safer to use the window's contentView before sending the close message to the window.
2019-01-04 17:50:58 +01:00
ManoloFLTK 38b8dfaaea Remove [FLViewLayer dealloc] method.
The Apple doc recommends not to release resources in an object's dealloc method.
The job is now done in the [FLWindow close] method.
2019-01-04 17:06:10 +01:00
ManoloFLTK 2575e7ef6b Merge remote-tracking branch 'origin/master' 2019-01-04 16:53:32 +01:00
ManoloFLTK 06fdfaf822 Restore possibility to compile with SDK 10.7 or earlier. 2019-01-04 16:52:26 +01:00
Matthias Melcher 51462930eb
Merge pull request #13 from MatthiasWM/master
Minor Android stuff
2019-01-03 14:46:10 -08:00
Matthias Melcher 46e7612953 Merge remote-tracking branch 'upstream/master' 2019-01-03 23:23:43 +01:00
Matthias Melcher caacc85685 Added git attribute for MSWindows .BAT files 2019-01-03 23:21:16 +01:00
Matthias Melcher 005a744d68 Android builds tested successfully after changeover to git 2019-01-03 23:16:59 +01:00
Manolo Gouy 8856b96701 Merge remote-tracking branch 'origin/master' 2019-01-02 19:41:59 +01:00
Manolo Gouy b027da8322 Document global variable fl_sys_menu_bar - continued. 2019-01-02 19:41:44 +01:00
Albrecht Schlosser f28cead0f0 Add abi-compliance-checker howto.
This is intentionally committed to the 'master' branch although it is
currently only useful for FLTK 1.3.x ABI checks.

In the future we will need it for FLTK 1.4.x or higher.
2019-01-02 15:33:34 +01:00
Manolo Gouy e118532c72 Document global variable fl_sys_menu_bar - continued. 2018-12-31 16:37:36 +01:00
Manolo Gouy ca8c5feb16 Document global variable fl_sys_menu_bar. 2018-12-31 16:03:46 +01:00
ManoloFLTK 362f935086 Merge remote-tracking branch 'origin/master' 2018-12-30 11:04:10 +01:00