2016-11-25 18:15:09 +03:00
|
|
|
Changes in FLTK 1.4.0 Released: ??? ?? 2017
|
2016-11-12 16:09:20 +03:00
|
|
|
|
2016-11-25 18:15:09 +03:00
|
|
|
General Information about this Release
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2016-11-25 18:15:09 +03:00
|
|
|
- FLTK 1.4.0 is based on FLTK 1.3.4 (released Nov 15 2016),
|
|
|
|
see CHANGES_1.3 for more information.
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2016-11-12 16:09:20 +03:00
|
|
|
- CMake is the primary supported build system in FLTK 1.4.0 and later.
|
|
|
|
CMake can be used to generate Makefiles, IDE project files, and
|
|
|
|
several other build systems by using different "generators" provided
|
2017-06-02 12:18:59 +03:00
|
|
|
by CMake (for instance Ninja, CodeBlocks, Eclipse, KDevelop3, Xcode, etc.).
|
2016-11-12 16:09:20 +03:00
|
|
|
See README.CMake.txt for more information.
|
2016-11-25 18:15:09 +03:00
|
|
|
|
|
|
|
- autoconf/configure is still supported by the FLTK team for backwards
|
2016-11-12 16:09:20 +03:00
|
|
|
compatibility with older systems that lack CMake support.
|
2016-02-02 06:01:58 +03:00
|
|
|
|
|
|
|
|
2016-11-25 18:15:09 +03:00
|
|
|
New Features and Extensions
|
|
|
|
|
2017-05-15 18:30:52 +03:00
|
|
|
- (add new items here)
|
2018-02-06 20:26:11 +03:00
|
|
|
- New member functions FL::run_also_windowless(),
|
|
|
|
and FL::wait_also_windowless(double secnds) to run the event
|
|
|
|
loop even without any mapped window if the platform supports it.
|
|
|
|
- New member functions Fl::program_should_quit(void),
|
|
|
|
and Fl::program_should_quit(int) to support detection by the library
|
|
|
|
of a request to terminate cleanly the program.
|
2017-12-18 18:19:15 +03:00
|
|
|
- MacOS platform: Added support for rescaling the GUI of any app at run-time
|
|
|
|
using the command/+/-/0/ keystrokes.
|
|
|
|
- MSWindows platform: Added optional support for rescaling the GUI of any app
|
|
|
|
at run-time using the ctrl/+/-/0/ keystrokes. This requires to build the
|
|
|
|
FLTK library with -DFLTK_HIDPI_SUPPORT (for now). This option also makes
|
|
|
|
app detect the desktop scaling factor and automatically scale their GUI
|
|
|
|
accordingly. This effectively renders WIN32 FLTK apps "per-monitor DPI-aware"
|
|
|
|
whereas they were "DPI-unaware" with FLTK 1.3.4.
|
|
|
|
- FLTK apps on the MacOS platform contain automatically a Window menu, which,
|
|
|
|
under MacOS ≥ 10.12, allows to group/ungroup windows in tabbed form. The new
|
|
|
|
Fl_Sys_Menu_Bar::window_menu_style() function allows to specify various
|
|
|
|
styles for the Window menu, even not to create it.
|
2017-10-15 15:34:24 +03:00
|
|
|
- New function: int fl_open_ext(const char* fname, int binary, int oflags, ...)
|
2017-10-12 17:54:47 +03:00
|
|
|
to control the opening of files in binary/text mode in a cross-platform way.
|
2017-09-03 17:20:31 +03:00
|
|
|
- New Fl_SVG_Image class: gives support of scalable vector graphics images
|
|
|
|
to FLTK using the nanosvg software.
|
2017-07-26 15:32:13 +03:00
|
|
|
- Fl_Text_Selection got a new method length() and returns 0 in length()
|
|
|
|
and in all offsets (start(), end(), position()) if no text is selected
|
|
|
|
(selected() == false). The behavior in FLTK 1.3 and earlier versions
|
|
|
|
(returning undefined values if !selected()) was confusing.
|
2017-07-18 08:54:25 +03:00
|
|
|
- Added support for MacOS 10.13 "High Sierra".
|
2017-07-07 22:16:40 +03:00
|
|
|
- New method Fl_Group::bounds() replaces Fl_Group::sizes() which is now
|
|
|
|
deprecated. Fl_Group::bounds() uses the new class Fl_Rect that contains
|
|
|
|
widget coordinates and sizes x(), y(), w(), and h() (STR #3385).
|
|
|
|
Documentation for bounds() and its internal structure was added.
|
2017-06-02 12:13:47 +03:00
|
|
|
- X11 platform: Added support for HiDPI displays and for rescaling any window
|
|
|
|
at run-time under user control. Under the gnome desktop, FLTK applications
|
2017-06-02 12:18:59 +03:00
|
|
|
detect the current gnome scaling factor and use it to scale all FLTK windows.
|
2017-06-02 12:13:47 +03:00
|
|
|
Under other desktops, the FLTK_SCALING_FACTOR environment variable can be
|
|
|
|
used to set the starting scaling factor of all FLTK applications.
|
|
|
|
In addition, it is possible to rescale all FLTK windows mapped to a screen
|
|
|
|
by typing ctrl-'+' (enlarge), ctrl-'-' (shrink) or ctrl-'0' (back to starting
|
|
|
|
factor value). Windows moved between screens adjust to the scaling factor of
|
|
|
|
their screen. This supports desktops mixing screens with distinct resolutions.
|
|
|
|
[HiDPI displays have been supported since FLTK 1.3.3 for the WIN32 and MacOS platforms].
|
2017-05-15 18:30:52 +03:00
|
|
|
- New method shadow(int) allows to disable the shadows of the hands
|
|
|
|
of Fl_Clock, Fl_Clock_Output, and derived widgets.
|
2017-03-06 19:54:33 +03:00
|
|
|
- New method Fl_Tabs::tab_align() allows to set alignment of tab labels,
|
|
|
|
particularly to support icons on tab labels (STR #3076).
|
2016-12-03 09:59:26 +03:00
|
|
|
- Added '--enable-print' option to configure effective under X11 platforms
|
|
|
|
and with 'yes' default value. Using '--enable-print=no' removes print
|
|
|
|
and PostScript support from the FLTK library, thus reducing its size.
|
2016-12-10 17:40:00 +03:00
|
|
|
- Added Fl_Surface_Device::push_current(new_surface) and
|
|
|
|
Fl_Surface_Device::pop_current() to set/unset the current surface
|
|
|
|
receiving graphics commands.
|
2016-12-21 18:05:02 +03:00
|
|
|
- X11 platform: Added support for drawing text with the pango library
|
|
|
|
which allows to draw most scripts supported by Unicode, including CJK
|
|
|
|
and right-to-left scripts. The corresponding CMake option is
|
|
|
|
OPTION_USE_PANGO. The corresponding configure option is --enable-pango.
|
|
|
|
This option is OFF by default.
|
2016-11-25 18:15:09 +03:00
|
|
|
|
|
|
|
New Configuration Options (ABI Version)
|
2016-11-12 16:09:20 +03:00
|
|
|
|
2017-09-03 17:20:31 +03:00
|
|
|
- The library can be built without support for SVG images using the
|
|
|
|
--disable-nanosvg configure option or turning off OPTION_USE_NANOSVG in CMake.
|
2016-11-12 16:09:20 +03:00
|
|
|
- FLTK's ABI version can be configured with 'configure' and CMake.
|
|
|
|
See documentation in README.abi-version.txt.
|
|
|
|
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2016-11-11 20:55:44 +03:00
|
|
|
1.4.0 ABI FEATURES
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2016-11-12 16:09:20 +03:00
|
|
|
- None. FLTK 1.4.0 has a new ABI, breaking 1.3.x ABI.
|
2016-02-02 06:01:58 +03:00
|
|
|
|
|
|
|
|
2016-11-25 18:15:09 +03:00
|
|
|
Other Improvements
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2017-02-05 00:56:38 +03:00
|
|
|
- (add new items here)
|
2018-01-31 20:46:48 +03:00
|
|
|
- The include file for platform specific functions and definitions
|
|
|
|
(FL/x.H) has been replaced with FL/platform.H. FL/x.H is deprecated
|
|
|
|
but still available for backwards compatibility (STR #3435).
|
|
|
|
FL/x.H will be removed in a (not yet specified) future FLTK release.
|
|
|
|
We recommend to change your #include statements accordingly.
|
2017-09-11 21:54:10 +03:00
|
|
|
- The Fl_Boxtype and Fl_Labeltype definitions contained enum values
|
|
|
|
(names) with a leading underscore (e.g. _FL_MULTI_LABEL) that had to
|
|
|
|
be used in this form. Now all boxtypes and labeltypes can and should
|
|
|
|
be used without the leading underscore. A note was added to the enum
|
|
|
|
documentations to make clear that the leading underscore must not be
|
|
|
|
used in user code, although the enum documentation still contains
|
|
|
|
leading underscores for technical reasons (internal use).
|
2017-07-25 21:44:19 +03:00
|
|
|
- The blocks demo program got a new keyboard shortcut (ALT+SHIFT+H) to
|
|
|
|
reset the user's high score. It is now slower than before in higher
|
|
|
|
levels, hence you can expect higher scores (due to a bug fix in the
|
|
|
|
timer code). You can use the '+' key to increase the level at all times.
|
2017-05-22 17:34:38 +03:00
|
|
|
- Some methods of Fl_Tabs are now virtual and/or protected for easier
|
|
|
|
subclassing without code duplication (STR #3211 and others).
|
|
|
|
To be continued...
|
2017-03-12 02:26:32 +03:00
|
|
|
- Separated Fl_Input_Choice.H and Fl_Input_Choice.cxx (STR #2750, #2752).
|
2017-03-10 01:08:29 +03:00
|
|
|
- Separated Fl_Spinner.H and Fl_Spinner.cxx (STR #2776).
|
2017-03-10 21:49:44 +03:00
|
|
|
- New method Fl_Spinner::wrap(int) allows to set wrap mode at bounds if
|
|
|
|
value is changed by pressing or holding one of the buttons (STR #3365).
|
2017-03-11 00:47:08 +03:00
|
|
|
- Fl_Spinner now handles Up and Down keys when the input field has
|
|
|
|
keyboard focus (STR #2989).
|
2017-03-10 01:08:29 +03:00
|
|
|
- Renamed test/help.cxx demo program to test/help_dialog.cxx to avoid
|
2017-05-15 18:30:52 +03:00
|
|
|
name conflict with CMake's auto-generated target 'help'.
|
2016-12-05 20:47:02 +03:00
|
|
|
- Many documentation fixes, clarifications, and enhancements.
|
2016-11-12 16:09:20 +03:00
|
|
|
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2016-11-25 18:15:09 +03:00
|
|
|
Bug Fixes
|
2016-02-02 06:01:58 +03:00
|
|
|
|
2017-02-05 00:56:38 +03:00
|
|
|
- (add new items here)
|
2017-09-10 14:38:23 +03:00
|
|
|
- Fix Fl_PNG_Image error handling. An error was potentially caused
|
|
|
|
by error handling of the image library with setjmp/longjmp.
|
2017-06-04 17:39:05 +03:00
|
|
|
- Fix Fl_Browser background and text color parsing (STR #3376).
|
2017-04-12 00:53:50 +03:00
|
|
|
- Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
|
2017-03-06 19:54:33 +03:00
|
|
|
- Fix Fl_Tabs label drawing for Fl_Window children (STR #3075).
|
2017-02-05 00:56:38 +03:00
|
|
|
- Fix line number alignment in Fl_Text_Display/Editor (STR #3363).
|
2016-12-05 20:03:29 +03:00
|
|
|
- Fix ignored buffer pre-allocation (requestedSize) in Fl_Text_Buffer.
|
|
|
|
See fltk.general "Fl_Text_Buffer constructor bug" on Dec 5, 2016.
|
2016-11-25 18:15:09 +03:00
|
|
|
- Fix build with configure --enable-cairo --enable-cairoext,
|
|
|
|
see this report in fltk.general:
|
|
|
|
https://groups.google.com/forum/#!topic/fltkgeneral/x80qQ6wt0s4
|
2016-11-12 16:09:20 +03:00
|
|
|
|
2016-11-11 20:55:44 +03:00
|
|
|
|
|
|
|
Removed Features
|
|
|
|
|
2016-11-12 16:09:20 +03:00
|
|
|
- Bundled IDE project files (Xcode and Visual Studio) have been
|
|
|
|
removed. Please use CMake to generate your IDE project files.
|
|
|
|
See README.CMake.txt for more information.
|
2016-11-11 20:55:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
Changes in FLTK 1.3
|
|
|
|
|
|
|
|
See CHANGES_1.3
|
|
|
|
|
|
|
|
|
|
|
|
Changes in FLTK 1.1
|
|
|
|
|
|
|
|
See CHANGES_1.1
|
|
|
|
|
|
|
|
|
|
|
|
Changes in FLTK 1.0
|
|
|
|
|
|
|
|
See CHANGES_1.0
|