Commit Graph

1215 Commits

Author SHA1 Message Date
Manolo Gouy
25fc85190e Mac OS: Fix for STR#3268 where a fullscreen window could become relocated
behind the menu bar and dock.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-21 13:38:49 +00:00
Manolo Gouy
9c2a7e4a72 FLTK code and fluid-generated code can be used in static initializers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-19 07:27:11 +00:00
Manolo Gouy
fc89c11ddf Mention the --enable-x11 configure option is now allowed on the Mac OS platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 17:34:47 +00:00
Albrecht Schlosser
14669685d8 Fix Fl_Browser if text argument to some methods is NULL (STR #3269).
Fl_Browser::add(), Fl_Browser::insert(), and Fl_Browser::text() didn't
test if the provided text argument was NULL, although this was explicitly
allowed in the documentation.

Also applied some minor documentation fixes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 10:16:56 +00:00
Manolo Gouy
22af09dae7 Mac OS: support for high resolution OpenGL windows.
Methods Fl::event_x_pixel() and Fl::event_y_pixel() committed at r.10941
are removed. Instead method Fl_Gl_Window::pixels_per_unit() is added.

The documentation explains in more detail how to write cross-platform
FLTK code supporting high resolution OpenGL windows on retina displays.

The examples/OpenGL3test.cxx app exercises Fl_Gl_Window::pixels_per_unit().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-02 09:59:37 +00:00
Manolo Gouy
82f68ac756 Fixed typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-01 16:29:23 +00:00
Manolo Gouy
6c9ceb3ab0 Mention new Fl_Gl_Window::pixel_w(), Fl_Gl_Window::pixel_w(),
Fl::event_x_pixel(),  and Fl::event_y_pixel() functions.
Also, put tab at start of lines, as required.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-01 16:28:17 +00:00
Manolo Gouy
28355afa15 Mention addition of Fl_Mac_App_Menu::custom_application_menu_items()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-26 16:40:34 +00:00
Manolo Gouy
311bd8971e Mention Fl_Copy_Surface::draw_decorated_window().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-26 15:37:43 +00:00
Albrecht Schlosser
144c656360 Fixed missing image release as described in STR #2840.
Thanks to OP (Nikego) and Matt!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-07 00:11:45 +00:00
Albrecht Schlosser
d7d57f9113 Fixed copyright year, updated CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 15:45:41 +00:00
Manolo Gouy
2f7e5487b2 Added OpenGL 3 support in 1.3.4
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 14:51:55 +00:00
Manolo Gouy
07e37d23d5 Added message about Fl_Image_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-10-19 13:16:04 +00:00
Manolo Gouy
3d5a8e5588 Added several items since FLTK 1.3.3 was released.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-10-19 12:11:48 +00:00
Manolo Gouy
5cc6913cb7 Support for Mac OS 10.11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-08-23 13:58:07 +00:00
Albrecht Schlosser
9adb181156 Make FL_ABI_VERSION configurable (STR #3161).
This commit adds the configure option --with-abiversion and the CMake option
OPTION_ABI_VERSION. Both options can be set e.g. to 10304 to build with
FL_ABI_VERSION = 10304 (FLTK 1.3.4).

For IDE builds there are new files ide/<IDE-NAME>/FL/abi-version.h that
can be edited to change the ABI version before the FLTK lib is built.
Note that this file MUST be copied to the include/FL directory if the
IDE-built library is to be installed.

The default is FL_ABI_VERSION = FL_MAJOR*10000 + FL_MINOR*100 + 0, i.e.
10300 for all FLTK 1.3.x versions to keep binary compatibility (ABI).

Todo: more tests and more documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12 19:23:55 +00:00
Albrecht Schlosser
9488810968 Fix trailing white space in fluid .fl files (STR #3239).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09 01:17:33 +00:00
Albrecht Schlosser
4cea3aee0c Fix box background drawing for deactivated widgets (STR #2907).
Two new static methods have been introduced:

  - Fl::box_color(Fl_Color c) returns the bg color dependent on the
    widget's state (inactive_r()).
  - Fl::set_box_color(Fl_Color c) sets the correct bg color dependent
    on the widget's state by calling fl_color(Fl::box_color(c)).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09 00:10:44 +00:00
Greg Ercolano
8477a8108b Updated CHANGES to reflect Fl_Text_Display and Fl_Tree mods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-28 19:52:13 +00:00
Manolo Gouy
e4f645d60f Changed the fonts used for the FL_COURIER font family on the Mac.
It used to be 'Courier New' that was judged too thin. 'Courier' will be used now.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-28 13:30:12 +00:00
Manolo Gouy
83cfea0e3a Fixed TAB use.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-15 04:52:21 +00:00
Manolo Gouy
65fcab9d7f Made clear that the new image scaling feature requires FL_ABI_VERSION>=10304.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-05 05:56:26 +00:00
Manolo Gouy
d4867caf80 Fix STR #3176: possible bad border effect when a set of radio menu items is located first in its menu.
Fl_Menu_Item::set_only() is deprecated and replaced by Fl_Menu_::set_only(Fl_Menu_item*).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-22 07:08:04 +00:00
Lauri Kasanen
c91e48149b Add support for accelerated alpha blending under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:12:28 +00:00
Manolo Gouy
066f718674 Mentioned Fl_Shared_Image::scale() and BSD-style printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-12 15:33:30 +00:00
Albrecht Schlosser
0f45a7adf5 [Version 1.3.4] Update version numbers - hopefully complete.
Note to devs: if I missed something, please mark follow-up commits with
[Version 1.3.4] so we can find the necessary commits for version updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 01:41:55 +00:00
Manolo Gouy
372e707093 Added mention to compression techniques when drawing images to PostScript.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 08:01:35 +00:00
Albrecht Schlosser
fd7cfbb6f0 Update CHANGES file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 16:24:15 +00:00
Lauri Kasanen
d88bf15117 CHANGES: Fix the indentation in two 1.3.4 items
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 09:27:52 +00:00
Manolo Gouy
ff316fa357 Fixed reading of .pbm image files: the black & white pixels were reversed,
and P4-formatted files of width a multiple of 8 were handled incorrectly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 05:52:38 +00:00
Manolo Gouy
b079e52ada Mention that class Fl_Gl_Window now uses cocoa rather than the deprecated AGL on the Mac OS X platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 13:00:53 +00:00
Albrecht Schlosser
80bd905981 Fl::delete_widget() now hides a widget/window if it is shown (visible_r()).
This is useful (necessary) because in old (pre 1.1.6) which  didn't have
Fl::delete_widget() users would have called 'delete window', which would
have hidden a window and destroyed it as well. Now the widget/window is
hidden immediately, whereas it is destroyed delayed, which comes much
closer to the previous behavior and is useful for better window close
detection in Mac OS X cmd-Q handling.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-15 15:23:56 +00:00
Manolo Gouy
410f9e8e0e List new support for true subwindows on the mac.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 16:16:09 +00:00
Manolo Gouy
f9f4ecedf7 List fix for STR#3142.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 15:59:50 +00:00
Albrecht Schlosser
14bed23132 Update CHANGES (fix typo).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-03 09:30:36 +00:00
Lauri Kasanen
d0e261300b Tweak the wording in CHANGES, "fluid doesn't close" could be interpreted either way
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-03 08:10:05 +00:00
Albrecht Schlosser
2bd8ff37a1 Update CHANGES for FLTK 1.3.3 release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-02 22:37:52 +00:00
Albrecht Schlosser
325fec1f45 Update copyright and CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30 12:35:36 +00:00
Ian MacArthur
11ef7ee9e6 Add method Fl_Window::clear_modal_states(),
addresses STR #3123



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-29 14:21:08 +00:00
Albrecht Schlosser
f68d677bde Update CHANGES. Thanks to Greg for the patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28 11:29:29 +00:00
Albrecht Schlosser
3f912b42f8 Updated CHANGES for release 1.3.3, although release date is still missing.
Please check, and correct if necessary, fix typos, ...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28 00:58:40 +00:00
Albrecht Schlosser
4774c26182 Fix word select dragging bug in text input (STR #3014).
Thanks to Evan Laforge for spotting this and supplying a patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-16 12:15:12 +00:00
Manolo Gouy
14069e0621 Added Fl_Window::shape(Fl_Image*) and fixes for Apple’s retina displays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-14 05:49:53 +00:00
Manolo Gouy
baebff2227 STR #3088: make Fl_Native_File_Chooser use the standard GTK file dialog when available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-07 12:01:59 +00:00
Manolo Gouy
07dd8ba328 Added copy/paste from/to FLTK applications of graphical data.
Added Fl_Image_Surface class to draw into an Fl_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 16:47:21 +00:00
Manolo Gouy
c44e6122d4 Modified doc following closure of STR#2990.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-01 09:12:02 +00:00
Albrecht Schlosser
ef952dfa53 Fix crash when Fl_Window::flush() is called before show() (STR #3028).
The fix is twofold:
 (1) if Fl_Window::flush() is called, this is ignored silently
 (2) if Fl_Window::make_current() is called directly, but the window
     is currently not shown(), then the program will be terminated
     with an error message.
The latter is necessary because returning from make_current() would
leave the program in a state where it would expect to have a valid
drawing context.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-07 00:09:52 +00:00
Albrecht Schlosser
1aba94f136 New method Fl::scheme_is(const char *name).
This is a convenience method to support easier implementation of
scheme-specific code in draw() methods and elsewhere.

Also improved Fl::scheme(const char *name) documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 13:29:15 +00:00
Albrecht Schlosser
eb980231be Fixed recent MinGW build WRT configure not finding strcasecmp() (STR #2994).
Note: This fix is temporary and should be revisited later.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-03 17:24:00 +00:00
Albrecht Schlosser
738563f973 Fixed missing libdl dependency in CMake builds (STR #2977).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-03 16:42:21 +00:00