5464 Commits

Author SHA1 Message Date
ManoloFLTK
87b73723ed macOS Window menu: select in menu new top window after window deletion 2020-06-17 20:09:15 +02:00
ManoloFLTK
5005d04765 More detailed documentation of Fl_SVG_Image::normalize(). 2020-06-16 12:04:20 +02:00
ManoloFLTK
46b89686df Allow using an Fl_SVG_Image object as window icon.
Fix for issue #90: Setting an svg image as a window icon causes a segfault.
2020-06-15 19:05:47 +02:00
Albrecht Schlosser
91b78572c7 Fix overly restrictive JPEG filter (#81)
See https://github.com/fltk/fltk/issues/81

Fixes #81
2020-06-15 02:17:20 +02:00
Albrecht Schlosser
a7a1e1594c Fix stale current_ pointer when deleting Fl_Group
If a user program accidentally deletes the "current" group, then
the pointer would still point at the deleted widget. This commit
prevents this and makes the Fl_Group's parent the current group.

Fixes issue #88.
2020-06-15 01:38:18 +02:00
Albrecht Schlosser
b8318480f5 CMake: Build static and shared libs side-by-side
Clean up library and variable names.
Remove '_SHARED' suffix from library (output) filenames.

This commit was inspired by David Runge ('dvzrv'), thanks.
See PR #21.

Fixes #21
2020-06-13 14:22:22 +02:00
Albrecht Schlosser
1078b8fe43 Update dependencies
Change sort order using -f (--ignore-case):
  fold lower case to upper case characters
2020-06-13 12:50:06 +02:00
ManoloFLTK
e43dee9d8a Fix for "Fullscreen_off removing the icon from the titlebar on MacOS" in fltk.coredev 2020-06-10 17:22:59 +02:00
ManoloFLTK
6481f95415 Make doc of member function Fl_SVG_Image::resize() more detailed. 2020-06-03 16:03:46 +02:00
ManoloFLTK
f9a63b5ed5 Fix for PR#86: mousewheel simultaneous X and Y scrolling under OS X .
Thanks to the OP for most of the fix.
2020-06-02 19:44:57 +02:00
Albrecht Schlosser
59a87fe795 Improve Fl_Preferences documentation
This commit fixes typos and reformats some of the documentation.
No code changes.
2020-06-01 18:53:56 +02:00
ManoloFLTK
61d9035e99 Avoid repeated calls to CGBitmapContextGetBytesPerRow(). 2020-06-01 11:04:46 +02:00
ManoloFLTK
897b903f16 Have NSAutoreleasePool released after last use of variable e 2020-05-31 21:19:26 +02:00
ManoloFLTK
9957063398 Protect NSHomeDirectory() call by an NSAutoreleasePool.
That may be necessary if preferences are accessed before fl_open_display() was called.
2020-05-31 11:47:34 +02:00
ManoloFLTK
026d560fb4 Reorganise code that captures on-screen window content.
Also introduce new rect_to_NSBitmapImageRep: method of class FLWindow
which makes it possible to reimplement it.
2020-05-20 07:51:33 +02:00
Newton
a432db8ca3 Fix "misleading indentation" in Fl_Text_Buffer.cxx
Compiling with clang produced the following warning on this line:

src/Fl_Text_Buffer.cxx:1292:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
    replace(start, end, text);
    ^
src/Fl_Text_Buffer.cxx:1288:3: note: previous statement is here
  if (!sel->position(&start, &end))
  ^
2020-05-15 23:08:33 +02:00
ManoloFLTK
7f7e0e4ea1 Replace Fl_Window_Driver::is_a_rescale() by Fl_Window::is_a_rescale()
so it can be called by any user code.
2020-05-08 17:08:33 +02:00
Albrecht Schlosser
ccb06e18b7 Fix doxygen docs (wrong argument name) 2020-05-08 12:34:37 +02:00
Albrecht Schlosser
46253603de Extend fl_message_position() with 'center' option
Add argument 'center' to position the message box centered over
  the given x/y coordinates.

Add another method to supply a widget or window to center the
  message box over.

Fix documentation and don't use INT_MIN to avoid having to
  include limits.h in user code.
2020-05-07 17:43:04 +02:00
airbrett
ee7577a897 Add (x,y) positioning mode to common dialogs
Add new function to set (x,y) position.
Reset to previous mode after innards is called by fl_* function.
Use magic number for preferred position state.

Note: several commits squashed and commit messages edited by AlbrechtS.
2020-05-07 14:59:19 +02:00
ManoloFLTK
f386bd2cb7 Support case when window is fullscreen - continued 2020-05-04 11:33:43 +02:00
ManoloFLTK
6d24a355f0 Support case when captured window is fullscreen: no titlebar. 2020-05-04 11:33:43 +02:00
Albrecht Schlosser
70d41b06a9 Reformat src/cmap.cxx and regen src/fl_cmap.h
- remove obsolete code / comments (see Git for history)
- add copyright to generated file src/fl_cmap.h
- generate copyright year in src/fl_cmap.h automatically
- add color indices as comments to color values
- remove $Id header
- replace $Id trailer with a more useful comment
2020-04-29 14:48:00 +02:00
ManoloFLTK
9fe77c6ff5 Minor readability doc change. 2020-04-29 11:24:00 +02:00
Albrecht Schlosser
c1b2e030c5 Update dependencies and .gitignore 2020-04-28 21:20:01 +02:00
ManoloFLTK
dd48bc52dd Misc doc improvements. 2020-04-24 09:30:01 +02:00
ManoloFLTK
255db6c8c4 Doc change with intent to make it clearer. 2020-04-24 08:17:52 +02:00
ManoloFLTK
c4342630f0 Update © year. 2020-04-23 11:30:06 +02:00
ManoloFLTK
f11a80482a Check for success of the FormatMessageW() call. 2020-04-23 11:28:18 +02:00
ManoloFLTK
2ced142adc Match variable type (DWORD) and format specifier 2020-04-22 16:58:48 +02:00
ManoloFLTK
2878fa95ab Add optional argument to Fl_Printer::begin_job() to inform caller when an error occurs.
This solves an issue raised in fltk.general :  Fl_Printer errors - how can I interpret them?
    https://www.fltk.org/newsgroups.php?s38419+gfltk.general+v38427
2020-04-22 16:01:33 +02:00
ManoloFLTK
b3d46711be Slightly improve drawing of window titlebars. 2020-04-21 09:45:43 +02:00
ManoloFLTK
e3ad0ee441 Avoid useless multiplication by 1 operations. 2020-04-21 09:38:39 +02:00
ManoloFLTK
b4dd1d36dd Make sure output file name extension is visible. 2020-04-14 21:13:04 +02:00
ManoloFLTK
f3e83d3ce5 MacOS: show print chooser panel as a sheet. 2020-04-12 17:18:44 +02:00
ManoloFLTK
6a01871f32 Give example of use of Fl_Native_File_Chooser::USE_FILTER_EXT option. 2020-04-10 18:41:24 +02:00
ManoloFLTK
84b753e7e9 Fix regression in Fl_Native_File_Chooser under macOS when USE_FILTER_EXT is ON. 2020-04-10 18:41:24 +02:00
ManoloFLTK
8e92ce49a8 Move Fl_Image_Reader.cxx to libfltk_images where it belongs. 2020-04-07 10:44:20 +02:00
ManoloFLTK
7793fa812a Update standard file headers 2020-04-05 16:53:37 +02:00
ManoloFLTK
e8185abf22 Fix Fl_X11_Window_Driver::capture_titlebar_and_borders() for resizable window. 2020-04-03 16:32:28 +02:00
Albrecht Schlosser
09352ddab0 Update documentation, fix typos 2020-03-26 14:21:33 +01:00
ManoloFLTK
24f9e7e7c4 Fix for issue #65: FLTK breaks when resize request is denied
Under Windows, window resize requests sent by the program are now ignored,
which is what happens under X11 and macOS.
Previously, the window would become frozen.
2020-03-25 12:16:03 +01:00
Albrecht Schlosser
09d35ee9d5 Fix a typo 2020-03-20 15:40:00 +01:00
ManoloFLTK
10a9a0440e Rewrite Fl_Xlib_Graphics_Driver::get_font_name() with less lines of code. 2020-03-20 10:47:19 +01:00
ManoloFLTK
214f14db8a Fix Fl::get_font_name() under X11+Xft-Pango 2020-03-20 10:20:30 +01:00
ManoloFLTK
a66fea7527 Minor rewriting for more readable code. 2020-03-15 08:16:59 +01:00
ManoloFLTK
4b2dbe3bb4 Fix when using Fl_Scroll inside Fl_Overlay_Window 2020-03-12 21:38:13 +01:00
Albrecht Schlosser
8a7d4c9f61 Remove CodeWarrior "support"
Metrowerks CodeWarrior was an ancient macOS compiler (discontinued
since 2005) that defined the macro __MWERKS__. Code using this macro
and several comments have been removed.
2020-03-11 14:38:02 +01:00
ManoloFLTK
55132049c7 Complete fix for "[fltk.general] scroll and overlay window" dated 7 march 2020. 2020-03-10 06:37:47 +01:00
ManoloFLTK
a1115f13e3 Improve use of fl_scroll within Fl_Overlay_Window on macOS.
This is a partial fix for "[fltk.general] scroll and overlay window"
dated 7 march 2020.
Mixing of Fl_Scroll and Fl_Overlay_Window is now OK also
on a retina display, but there are still problems when the window
is scaled.
2020-03-08 20:16:34 +01:00