Commit Graph

6253 Commits

Author SHA1 Message Date
Albrecht Schlosser
00da535a78 Fix wrong data type in Windows function override (STR #3232).
This patch uses the correct data type (as defined by Windows / msn)
but does not fix the Cygwin linker problem. Unfortunately.

This issue may be a Cygwin problem and should be reported to Cygwin.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17 17:14:14 +00:00
Manolo Gouy
873fa37a56 Fix compilation errors with Mac OS 10.11 that no longer accepts
enum CGLineCap
but wants
  CGLineCap
as type name.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17 16:16:09 +00:00
Manolo Gouy
6ad3a28cc5 Comment for a change that appeared in Mac OS 10.11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-17 16:14:21 +00:00
Manolo Gouy
70297713f2 Correctly handle Unicode's 'Variation selectors' where a Unicode codepoint
modifies the glyph used to draw the previous Unicode codepoint.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-16 15:16:24 +00:00
Manolo Gouy
db6b98e4f7 Mac OS: The 'variation selectors' of Unicode change the glyph associated to the preceding unicode character.
This defeats the procedure FLTK uses to compute text widths (precomputing the width of each used
character) because the width of character n is not unique and potentially depends on character n+1.
Therefore, we now remove variation selectors from the input string before drawing it.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-15 21:56:34 +00:00
Manolo Gouy
7c0c17a452 Preparing for Mac OS 10.11 'El Capitan':
change in rect_to_NSBitmapImageRep().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-15 21:47:39 +00:00
Manolo Gouy
3283aacf98 Prepare for Mac OS 10.11 "El Capitan"
Screen captures produce ARGB data (instead of RGBA until 10.10)
so access to the raw image data takes now this into account.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-13 20:43:13 +00:00
Albrecht Schlosser
449e15ecee Add copyright comments, improve comments, don't set FL_ABI_VERSION.
FL_ABI_VERSION should not be set in the IDE projects to avoid having to
update the version numbers for each release.

The default is used if FL_ABI_VERSION is not defined.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-13 18:17:33 +00:00
Albrecht Schlosser
fb172ecd3c Fix fltk-config for CMake build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12 22:32:30 +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
e5d7f8367e Add "deprecated" warning to examples/fltk-versions.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-12 17:45:13 +00:00
Manolo Gouy
9e320937fc Improved Fl_Window::make_current() that now creates a new NSGraphicsContext only when drawing
is not done through the standard event loop.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-11 15:35:20 +00:00
Albrecht Schlosser
c9d8e0feaa Update fluid .fl files and generated code - remove trailing white space.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-09 02:09:33 +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
Albrecht Schlosser
349f326933 Fix compiler warning, add inactive (deactivated) box test mode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10780 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-08 23:41:19 +00:00
Manolo Gouy
634ede015d Define NSInteger in FL/mac.H when needed, so it's available to all source files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-30 02:23:26 +00:00
Greg Ercolano
b4662e4f44 Fixes STR#3236; stops errors about "NSInteger was not declared" on OSX 10.4.x
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-29 15:44:17 +00:00
Manolo Gouy
a6b88e9191 Directly draw windows without forcing the system to send the -[NSView drawRect:] message
because this slowed window drawing under Mac OS 10.10

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-28 19:28:23 +00:00
Albrecht Schlosser
2778ac6e45 Add documentation of Fl_Scroll::resize(...), fix some more Fl_Scroll docs.
As noticed in fltk.general, documentation of Fl_Scroll::resize() did not
exist, hence the documentation shown was that of the parent class Fl_Group,
which was definitely wrong.

Some more minor documentation fixes have also been applied. No code changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-28 13:05:29 +00:00
Albrecht Schlosser
a7670ae8d4 Fix button label clipping (STR #3237).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-27 15:20:23 +00:00
Albrecht Schlosser
9801bb7839 Prevent sending (FL_SHORTCUT) events to inactive widgets (STR #3216).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-27 14:13:57 +00:00
Greg Ercolano
aa9b326b56 Fixes STR 3234
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-23 16:36:47 +00:00
Manolo Gouy
b231696dcf Indentation fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-22 05:15:42 +00:00
Albrecht Schlosser
8c4a98ac36 Fix Fl_Pixmap (background) drawing to respect the clip region (STR #3206).
STR title: (Re-)drawing artefacts with scheme plastic after STR 3059.

It turned out that drawing a pixmap could enlarge the clip region if the
intersection of the clip region and the pixmap was not a single rectangle.
Hence drawing the background pixmap would draw outside the clip region
and leave artefacts when a widget was drawn on top of it. See STR #3206.

Thanks to Manolo who had the idea and provided a patch to draw into
the individual rectangles of a multi-rectangle clip region.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-21 12:08:15 +00:00
Manolo Gouy
c0b97d86d4 Simpler target-specific options
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-21 08:23:21 +00:00
Manolo Gouy
59914ef57d Removed some warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-21 08:08:39 +00:00
Manolo Gouy
d7aa656044 Remove some minor warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10768 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-21 07:46:16 +00:00
Albrecht Schlosser
2b6bcd5a83 Fix and adjust documentation, remove trailing white space.
This is a comment/white space only commit to prepare for following
code changes in a later commit.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17 16:36:04 +00:00
Albrecht Schlosser
bea83e9cef Another update of tabs.fl.
Sorry, messed it up. This one is hopefully okay.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17 16:10:37 +00:00
Albrecht Schlosser
642c95517e Improve test/tabs demo - enlarge window, shift widgets around.
This is a layout update only. The window has been enlarged, and some of
the text widgets as well so the labels fit better, depending on fonts.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17 15:26:37 +00:00
Albrecht Schlosser
33e589b22f Add documentation on how to generate the html and pdf docs with CMake.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-17 12:25:36 +00:00
Albrecht Schlosser
c4c7767fd8 Remove more superfuous comments, fix one typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-16 13:42:25 +00:00
Albrecht Schlosser
2098d8bfd8 Generate Doxyfile and Doxybook from common source file Doxyfile.in.
Now we have less files to edit, and Doxyfile.in is shared with the
CMake generation of Doxyfile and Doxybook.

Besides that two files with FLTK version numbers are now removed (less
work for future version updates).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-16 13:18:28 +00:00
Ian MacArthur
ff1feb8adb Rework of fl_utf8 to fix up some build issues on Win32.
Also take a stab at progressing the documentation of
the UTF8 helper methods, as started by Albrecht.
Hope the stuff I have added makes sense!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-16 09:31:05 +00:00
Albrecht Schlosser
e610f5cc8e Fix code indenting, remove dead code, improve documentation.
There was still old (dead) code that had been deactivated by '#if 0'.
This code had been obsoleted by other functions, so it was time to
remove the dead parts of the code.

Many functions were not documented at all. I tried to add documentation,
but I ran out of time.

Todo: there are still some undocumented functions in src/fl_utf8.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10760 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 20:28:59 +00:00
Albrecht Schlosser
5573c35ff1 Fix spelling errors and improve documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 20:24:41 +00:00
Albrecht Schlosser
769b35770a Fix documentation. Make links an enumeration so they are displayed correctly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10758 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 15:39:10 +00:00
Manolo Gouy
8d57938397 Removing the svn:mime-type property
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 15:26:08 +00:00
Manolo Gouy
dc6b07c371 Fixed non-ASCII characters in Doxygen comment so they are UTF-8 encoded.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10756 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 15:19:51 +00:00
Manolo Gouy
b5b17c1ad2 Added svn:mime-type "text/plain; charset=UTF-8"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 14:59:03 +00:00
Albrecht Schlosser
16944bc383 Fix fl_nonspacing(), explain what non-spacing characters are (STR #3159).
I also edited the mentioned README file to eliminate the most obvious error(s).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 14:28:17 +00:00
Albrecht Schlosser
5283617e68 Fix documentation and make platform specific code better distinguishable.
This commit doesn't change any code (comments only).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 13:41:07 +00:00
Albrecht Schlosser
1ae60108b7 Silence doxygen warnings - commented out obsolete statements.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-15 11:31:08 +00:00
Albrecht Schlosser
77d272948c Minor documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-14 17:07:31 +00:00
Manolo Gouy
a097978096 Mac OS: computing a method's address once is enough.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-12 13:15:38 +00:00
Manolo Gouy
0a16c93a42 Fixed Doxygen doc of Fl_Native_File_Chooser::USE_FILTER_EXT option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-11 15:54:04 +00:00
Manolo Gouy
2d23313b4e Removed Doxygen warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-11 11:51:33 +00:00
Manolo Gouy
416c0d99d3 Mac OS: remove 5 compilation warnings of this kind:
warning: comparison of function 'CGDataConsumerCreateWithCFData' not equal to a null pointer is always true
note: prefix with the address-of operator to silence this warning



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-10 10:53:25 +00:00
Manolo Gouy
d408133397 Mac OS: make Fl_Display_Device::high_resolution() private because it is not
intended to be part of the FLTK public API.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-10 10:32:09 +00:00