Commit Graph

9155 Commits

Author SHA1 Message Date
ManoloFLTK 08b36fe4c8 Remove useless typedef declaration. 2020-11-10 15:51:54 +01:00
ManoloFLTK 9bd65d5993 Remove compilation warning that HAVE_DLFCN_H is undefined. 2020-11-10 15:51:54 +01:00
Albrecht Schlosser a03ab3b498 Clarify offscreen drawing documentation
... and rename drawing chapters (sections + subsections) according
to our documentation conventions (prefix "drawing_").

documentation/make_pdf: fix copyright year.
2020-11-08 15:43:34 +01:00
ManoloFLTK b35010595a Simpler code and doc of Fl::screen_scale(int n, float factor) 2020-11-07 12:44:06 +01:00
ManoloFLTK 0d594319c1 Add extra argument to Fl_SVG_File_Surface constructor.
This makes processing of the underlying FILE object consistant by classes
Fl_SVG_File_Surface, Fl_EPS_File_Surface and Fl_PostScript_File_Surface.
2020-11-03 18:05:18 +01:00
ManoloFLTK 5132bb6a06 Clarify doc about how FLTK_SCALING_FACTOR operates. 2020-11-03 08:13:45 +01:00
ManoloFLTK 98a4e49204 Fix possible memory leak in Fl_WinAPI_Screen_Driver::read_win_rectangle_unscaled()
Thanks to "fire-eggs" for spotting it.
Also minor optimisations in Fl_X11_Screen_Driver::read_win_rectangle_unscaled() and
Fl_Cocoa_Screen_Driver::read_win_rectangle_unscaled().

This closes PR #151.
2020-11-02 13:13:53 +01:00
engelsman f0af606708
Save fl_file_chooser directory on cancel (STR 3225) (#110)
* save fl_file_chooser directory on cancel (STR3225)

by default, the fl_file_chooser() starts in the current directory
if no filename is given, but the directory is reset to the "system
directory" if the dialog is cancelled without choosing a file.
This patch saves and restores the directory if no file is chosen.

See also https://www.fltk.org/str.php?L3225

* add fl_file_chooser() reinitialization comments
2020-11-02 11:38:30 +01:00
Greg Ercolano 7d126461ef Update cmake version requirement in README 2020-11-01 13:03:33 -08:00
erco77 2b1a2fe8dd
Merge pull request #150 from erco77/master
Rewrite fluid CodeEditor syntax highlighting for issue #135
2020-11-01 12:48:52 -08:00
Greg Ercolano dab049a2bd Merge branch 'issue135-1.4.x' 2020-11-01 12:16:59 -08:00
Greg Ercolano d66e146a89 Handle single quotes 2020-11-01 12:16:23 -08:00
Greg Ercolano 4d503899a3 Mods for Albrecht's 09/19/20 code review 2020-11-01 12:16:23 -08:00
Greg Ercolano 890533a863 Code cleanup: moved keyword/type arrays to StyleParse
Needed to do this to prevent lower StyleParse class from #including upper CodeEditor.
2020-11-01 12:16:23 -08:00
Greg Ercolano cec029dbee Rewrite CodeEditor syntax highlighting for issue #135 2020-11-01 12:16:23 -08:00
ManoloFLTK 1761523c9e Add Fl_PostScript_File_Device::close_command(Fl_PostScript_Close_Command cmd)
Also expand Doxygen doc of class Fl_Printer for the X11 platform.
2020-11-01 09:26:40 +01:00
ManoloFLTK b540c65081 X11+GTK: remove warning when native file chooser runs on Wayland 2020-10-30 17:00:30 +01:00
ManoloFLTK 70da3a34b0 Fix PostScript driver for fl_draw_image(buf,X,Y,W,H,D,L) with negative D or L 2020-10-29 15:37:20 +01:00
ManoloFLTK 56318163e3 Cairo-based PostScript: fix image tiling 2020-10-29 10:32:17 +01:00
ManoloFLTK 2280e5838a macOS: remove explicit paths /opt/sw and /sw from configure.ac 2020-10-29 07:39:33 +01:00
ManoloFLTK 572d9cadc0 Mention in CHANGES.txt the new PostScript for non-Latin scripts (X11+Pango platform). 2020-10-28 17:34:05 +01:00
ManoloFLTK bfb64aa01e Remove the "Print" window meant for debugging. 2020-10-28 17:34:05 +01:00
ManoloFLTK 8accc6e840
Pango ps (#148)
Use cairo-PostScript to output PostScript when pango is available.

This allows to draw in vectorial form any script.
Before, only the Latin script could be drawn to PostScript in vectorial form.
2020-10-28 17:19:05 +01:00
ManoloFLTK f718943e6f Minor fix in doc of the Fl_Image_Surface constructor. 2020-10-14 13:36:50 +02:00
ManoloFLTK 966e15fe37 Simpler implementation of Fl_Quartz_Image_Surface_Driver::image() 2020-10-14 09:56:53 +02:00
ManoloFLTK 0d8385a652 Simpler macOS implementation of capture of window titlebars. 2020-10-12 21:05:38 +02:00
ManoloFLTK 5830226aab Change procedure to capture window titlebar for macOS ≥ 10.15
That is necessary to support macOS Big Sur because previous procedure
did not work for tabbed windows. The new procedure is potentially
usable from macOS 10.5, but tested at this stage for macOS ≥ 10.15.
2020-10-11 10:43:01 +02:00
ManoloFLTK 1a841795d1 Fl_Xlib_Font_Descriptor does not need char glok[64] when USE_XFT is on 2020-10-08 11:57:34 +02:00
ManoloFLTK de4a5765bc Fix for issue #145 and for unbundled macOS apps. 2020-10-05 18:20:25 +02:00
ManoloFLTK 1e73216405 Fix issue #145: Native file dialog on macOS in the absence of another FLTK window. 2020-10-05 11:54:02 +02:00
ManoloFLTK 0c55cd1aca Create Fl_X11_System_Driver::dlopen_or_dlsym() for run-time addresses.
The intent is to gather in a single place of the X11 platform source code
all variable elements when using dlopen() and dlsym() system functions
(e.g., .so vs .dylib extension name, is RTLD_DEFAULT available, locations
to be sought).
Member function Fl_System_Driver::load() is created only to support
Fl_Plugin_Manager::load().
2020-10-04 08:21:07 +02:00
ManoloFLTK 46598229a9 Have Fl_X11_System_Driver::newUUID() use uuid_generate() if available at run-time.
The code falls back to the ad-hoc method if uuid_generate() isn't available.
2020-10-02 12:18:18 +02:00
ManoloFLTK 7f2e206279 Fix possible memory allocation error. 2020-09-30 14:41:19 +02:00
ManoloFLTK 27c791ae8a More documentation of enum Fl_Paged_Device::Page_Format 2020-09-27 17:28:42 +02:00
ManoloFLTK 06504e1840 Add Fl_Option::OPTION_SHOW_SCALING to fluid's "Global FLTK Settings". 2020-09-27 10:02:39 +02:00
ManoloFLTK d20c68a495 More Doxygen information for enum Fl_Paged_Device::Page_Format. 2020-09-25 16:13:45 +02:00
Greg Ercolano a20c2103ec Solves issue #143. 2020-09-23 22:42:12 -07:00
ManoloFLTK 1d56c9e193 Add Doxygen doc of "static unsigned Fl_Graphics_Driver::need_pixmap_bg_color" 2020-09-23 12:46:28 +02:00
ManoloFLTK a4a5720658 macOS: minor improvement of capture of window titlebar. 2020-09-21 18:20:07 +02:00
Albrecht Schlosser b713b91975 PDF docs: generate LaTeX header file from source
The LaTeX header file used when creating PDF documentation depends on
the doxygen and latex versions, respectively.

The old header file 'documentation/src/fltk-book.tex.in' had been
generated manually and needed to be updated for new doxygen versions
which made the PDF documentation generation dependent on the
doxygen/latex versions on the build system.

The new LaTeX header file 'fltk-book.tex' is generated by doxygen,
i.e. taking into account the doxygen and latex versions on the build
system and "edited" to include the page title defined in the new
file 'documentation/src/fltk-title.tex.in'.

This makes the PDF documentation independent of the doxygen and
latex versions of the build system.
2020-09-21 14:32:46 +02:00
Albrecht Schlosser f072cec13f Improve and clarify documentation 2020-09-21 13:45:46 +02:00
ManoloFLTK 5c5132f681 Fix when building with SDK 10.15 and running with 11.0 Big Sur
When FLTK runs under macOS "Big Sur", the OS appears as 11.0
if FLTK was built with SDK 11.0 and as 10.16 it it was built with
SDK 10.15.
2020-09-19 21:59:25 +02:00
ManoloFLTK 8ba68dd275 macOS: increase resolution when drawing window titlebars to PostScript 2020-09-19 15:26:02 +02:00
Albrecht Schlosser caf0bfa81d Avoid CMake developer warning related to OpenGL/CMP0072
Newer CMake versions warn if CMake policy CMP0072 is not set. We're
using "legacy mode" since we use FindOpenGL with `OPENGL_LIBRARIES`
and not (yet) the `OpenGL::GL` target.

See https://cmake.org/cmake/help/latest/policy/CMP0072.html
2020-09-18 18:07:18 +02:00
Albrecht Schlosser 360040d0bf Improve Fl_Menu_Item docs and inline deprecated methods
The deprecated methods are now calling the new methods to be
entirely compatible.

These methods should be removed in 1.5.0

(fix unrelated whitespace as well)
2020-09-18 17:17:36 +02:00
Albrecht Schlosser 1d21dc7a38 Fix doxygen warnings for newer doxygen versions
Paper type "a4wide" is no longer accepted (by doxygen or latex)
for PDF generation, the other settings have been obsoleted by
doxygen 1.8.16.

Commented out for now to keep backwards compatibility with doxygen
versions 1.8.15 and earlier.
2020-09-18 17:07:27 +02:00
ManoloFLTK 49a94d2366 More detailed doc of Fl_Image_Surface::image() 2020-09-18 15:51:00 +02:00
ManoloFLTK b279c11d34 Fix use of "\deprecated" Doxygen commands. 2020-09-18 15:51:00 +02:00
Albrecht Schlosser 864a86b40f Fix doxygen warning
warning: Invalid section id `development_non'; ignoring section
2020-09-18 13:44:25 +02:00
Albrecht Schlosser 2392589f05 Return 1 from Fl_Menu_Item::value() for checked items
Previously (FLTK 1.3.x) the return value of a checked menu item
was FL_MENU_VALUE (4) but the docs warned explicitly:

"You should not rely on a particular value, only zero or non-zero."
2020-09-18 13:41:16 +02:00