Article #1554: FLTK 1.4.x Weekly Snapshot, r12517

  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Articles | Show Comments | Submit Comment ]

Article #1554: FLTK 1.4.x Weekly Snapshot, r12517

Created at 03:00 Oct 20, 2017 by mike

A new weekly snapshot of FLTK 1.4.x (r12517) is now available on the download page:

    http://www.fltk.org/software.php?VERSION=fltk-1.4.x-r12517

Commit Log:

------------------------------------------------------------------------
r12517 | manolo | 2017-10-19 06:15:12 -0400 (Thu, 19 Oct 2017) | 1 line

Add details to the doc of fl_open_callback().
------------------------------------------------------------------------
r12516 | greg.ercolano | 2017-10-18 11:48:29 -0400 (Wed, 18 Oct 2017) | 2
lines

Fixes STR# 3388, format_char(0) can cause array overruns/garbage
characters.

------------------------------------------------------------------------
r12514 | manolo | 2017-10-18 10:53:05 -0400 (Wed, 18 Oct 2017) | 1 line

Mac OS 10.13 "High Sierra": restore possibility to run app from a command
line and find it activated.
------------------------------------------------------------------------
r12512 | manolo | 2017-10-18 08:35:03 -0400 (Wed, 18 Oct 2017) | 1 line

MacOS: make sure all files dropped to the app at launch time are open when
Fl_Window->wait_for_expose() is used.
------------------------------------------------------------------------
r12511 | greg.ercolano | 2017-10-18 03:16:46 -0400 (Wed, 18 Oct 2017) | 3
lines

Addresses STR #2788 for cursor positioning with mouse-click on different
sides of character.
Applying guyben's patch (with small mods suggested by albrecht & greg in
comments 7-11).

------------------------------------------------------------------------
r12510 | manolo | 2017-10-18 00:24:51 -0400 (Wed, 18 Oct 2017) | 1 line

MacOS: slightly simpler implementation of
Fl_Cocoa_Window_Driver::wait_for_expose().
------------------------------------------------------------------------
r12508 | manolo | 2017-10-17 05:01:28 -0400 (Tue, 17 Oct 2017) | 16 lines

Mac OS: complete changes needed for 10.13 "High Sierra" regarding how FLTK
applications start.

With MacOS 10.13 "High Sierra", it was necessary to change what happens at
application start time.
The new procedure is:
fl_open_display() calls [NSApp run], and during this call:
     the main event loop is started;
     the app delegate receives an openFile: message for each file dropped
on the app icon. Each
           such filename is memorised in an NSMutableArray called
dropped_files_list;
     the app delegate receives applicationDidFinishLaunching and stops the
main event loop
           (this seems to occur unpredictably after the first openFile:
message or after all of them).
When the FLTK event loop begins, it checks whether dropped_files_list is
empty. If it is not,
   the first element of this list is a filename which is opened and is
removed from dropped_files_list.

This new setup allows to turn resizable windows fullscreen and back as
expected under MacOS,
and to support launching apps while dropping file(s) on its icon.

------------------------------------------------------------------------
r12507 | greg.ercolano | 2017-10-16 20:38:38 -0400 (Mon, 16 Oct 2017) | 2
lines

Changed Fl_Simple_Terminal::draw() public -> protected

------------------------------------------------------------------------
r12506 | greg.ercolano | 2017-10-16 20:28:56 -0400 (Mon, 16 Oct 2017) | 3
lines

Added Fl_Simple_Terminal widget, and mods to test+example programs (STR
#3411).


------------------------------------------------------------------------
r12505 | AlbrechtS | 2017-10-16 16:39:02 -0400 (Mon, 16 Oct 2017) | 2 lines

Fix typo.

------------------------------------------------------------------------
r12503 | manolo | 2017-10-15 13:36:58 -0400 (Sun, 15 Oct 2017) | 1 line

MacOS 10.13: fix problem with window made fullscreen by clicking on green
window button - continued.
------------------------------------------------------------------------
r12502 | manolo | 2017-10-15 13:04:53 -0400 (Sun, 15 Oct 2017) | 5 lines

MacOS 10.13: fix problem with window made fullscreen by clicking on green
window button.

With MacOS 10.13 "High Sierra", when a window is made fullscreen by
clicking on the green window button,
the window hides the system menubar, but it's not possible to show the
menubar by moving the pointer
to the very top of the window. This new way of starting apps fixes this
problem.
------------------------------------------------------------------------
r12501 | AlbrechtS | 2017-10-15 09:04:45 -0400 (Sun, 15 Oct 2017) | 2 lines

Replace remaining calls to getcwd() with fl_getcwd().

------------------------------------------------------------------------
r12500 | AlbrechtS | 2017-10-15 08:34:24 -0400 (Sun, 15 Oct 2017) | 7 lines

Rename fl_open_ext() parameter 'translation' to 'binary'.

The default (0) is 'text' mode, non-zero is 'binary' mode on platforms
that distinguish text and binary mode.

Currently Windows is the only supported platform that needs this.

------------------------------------------------------------------------
r12499 | AlbrechtS | 2017-10-15 07:47:01 -0400 (Sun, 15 Oct 2017) | 2 lines

Replace remaining calls to access() with fl_access().

------------------------------------------------------------------------
r12498 | AlbrechtS | 2017-10-15 06:46:16 -0400 (Sun, 15 Oct 2017) | 5 lines

Replace inappropriate usage of __WATCOM__ with _MSC_VER.

Note: this is in parts temporary since some of the functions redefined
for Visual Studio will be replaced with fl_*() functions in later commits.

------------------------------------------------------------------------
r12497 | AlbrechtS | 2017-10-15 06:37:29 -0400 (Sun, 15 Oct 2017) | 6 lines

Fix doxygen and other comments, coding style, and alignment.

Replace QT style doxygen markers "/*!" with Javadoc markers "/**".

This commit does not change executable code.

------------------------------------------------------------------------
r12496 | AlbrechtS | 2017-10-15 06:18:53 -0400 (Sun, 15 Oct 2017) | 4 lines

Replace remaining calls to unlink() with fl_unlink().

Tested under Linux, MinGW, and Visual Studio 2015.

------------------------------------------------------------------------
r12495 | AlbrechtS | 2017-10-14 04:54:48 -0400 (Sat, 14 Oct 2017) | 7 lines

Fix conditional compilation under Windows.

Target of the condition was MS Visual Studio, hence the replacement
of "ifndef __WATCOMC__" with "#if defined(_MSC_VER)".

Tested under Windows with MinGW and Visual Studio 2015.

------------------------------------------------------------------------
r12494 | AlbrechtS | 2017-10-14 04:35:38 -0400 (Sat, 14 Oct 2017) | 5 lines

Fix confusing (QT style) doxygen comment marker.

Add a space between '/*' and '!'.
Other changes: comment alignment.

------------------------------------------------------------------------
r12493 | AlbrechtS | 2017-10-13 11:00:06 -0400 (Fri, 13 Oct 2017) | 2 lines

Update dependencies.

------------------------------------------------------------------------
r12492 | AlbrechtS | 2017-10-13 10:58:30 -0400 (Fri, 13 Oct 2017) | 7 lines

Replace remaining calls to getenv() with fl_getenv().

... except in driver code that uses Fl_System_Driver::getenv().

Todo: Check if all remaining calls of getenv() in driver code are correct
or might use ::getenv() to avoid one calling level for optimization.

------------------------------------------------------------------------
r12491 | manolo | 2017-10-13 03:17:01 -0400 (Fri, 13 Oct 2017) | 1 line

Remove the Fl_SVG_Image::fl_gzopen() member function that is less useful
with the new fl_open_ext() function.
------------------------------------------------------------------------
Download | Home Page | Listing ]

Comments

Submit Comment ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2015 by Bill Spitzak and others. This project is hosted by Seriss Corporation. Please report site problems to 'erco@seriss.com'.