6406 Commits

Author SHA1 Message Date
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
Manolo Gouy
ca85f4a21e No longer use "-framework AGL" link arguments on the mac with OpenGL apps.
This change in configure.in affects also fltk-config.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10745 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-09 07:51:55 +00:00
Manolo Gouy
8df7d62951 Fixed typo in Doxygen doc of Fl_RGB_Image constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-08 07:54:26 +00:00
Manolo Gouy
7b9bf2cbdb Fixed typos in the constructors of Fl_JPEG_Image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07 06:21:40 +00:00
Manolo Gouy
d37447c7a1 Fixed typos in doc of Fl_JPEG_Image constructors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07 06:19:18 +00:00
Manolo Gouy
217261c97f Fixed the doc of the Fl_JPEG_Image constructors mentioning the purpose of Fl_Image::fail().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-07 06:17:14 +00:00
Manolo Gouy
b414576331 Added the libfltk target producing a static FLTK library libfltk.a
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-06-02 08:48:39 +00:00
Manolo Gouy
01587b308d Mac OS: allow using fl_color(r,g,b) without drawing context.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-30 13:46:59 +00:00
Manolo Gouy
2987b6a02b Added void Fl_Sys_Menu_Bar::setonly(Fl_Menu_Item*) member function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-25 05:46:04 +00:00
Greg Ercolano
97fe01b415 Removing this unused file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-24 19:02:03 +00:00
Greg Ercolano
42b4db0801 Moved docs for fail() from prototype in Fl_Image.H -> implementation in Fl_Image.cxx.
Also added coded example to assist app programmers in usage. (Matt: feel free to modify
the example code as needed)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-24 18:19:24 +00:00
Greg Ercolano
9632e422d3 Fixes these errors on Linux:
../FL/Fl_Image.H:58: error: ISO C++ forbids initialization of member 'ERR_NO_IMAGE'
../FL/Fl_Image.H:58: error: making 'ERR_NO_IMAGE' static



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-24 17:19:57 +00:00
Matthias Melcher
0539009c67 STR #2873: new function Fl_Image::fail() that returns 0, ERR_NO_IMAGE, ERR_FORMAT, or ERR_FILE_ACCESS to make life easier when loading images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-23 23:42:26 +00:00
Lauri Kasanen
03f69c0dd5 Add support for Fl::copy(..clipboard = 2..)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-18 09:10:06 +00:00
Manolo Gouy
f28b89f1d0 Fl::delete_widget() was changed in 1.3.4 to immediately hide the widget,
but the case of an iconified window (visible() is false and shown() is true) was forgotten.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-16 07:18:08 +00:00
Manolo Gouy
0e633c4872 Removed deprecation and implicit cast warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-05-04 17:00:46 +00:00
Manolo Gouy
626b8ef596 Removed unneeded include statements.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-29 11:48:26 +00:00
Manolo Gouy
a94642ee30 Simpler writing of Fl_X::get_carbon_function().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-29 11:33:56 +00:00
Manolo Gouy
f9fa74e3af Restored the possibility to call Fl::set_font()
in a global initializer (before main() starts).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-28 22:02:48 +00:00
Greg Ercolano
1c7daeca63 Doc clarifications for Fl_Image methods:
> inactive()
	> desaturate()
	> color_average()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-28 20:51:32 +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
Greg Ercolano
81654d15eb Fl_Tree: improved draw() behavior when deactivated;
icons draw deactivated now. 

test/tree: Added 'deactivate tree' button to test
deactivating entire widget.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-28 19:39:53 +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
Albrecht Schlosser
f5bf727e37 [CMake] Add option to suppress CMake regeneration (STR #3215).
This option is marked as advanced and only available with CMake >= 3.0.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 22:57:17 +00:00
Albrecht Schlosser
5f3f1c8bc6 [CMake] Add doxygen documentation generation (STR #3195).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 21:42:51 +00:00
Albrecht Schlosser
a6a75b81d2 [CMake] Update fltk-config generation for AIX (STR #3217).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10719 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 20:36:48 +00:00
Albrecht Schlosser
b02747d157 Simplify documentation generation, remove obsolete file.
Doxybook and Doxyfile have been compared and differences have
been adjusted so there are only _relevant_ differences now.

The dependency on fltk-book.tex in html generation has been removed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 17:23:21 +00:00
Albrecht Schlosser
adb63efc6f Remove obsolete Doxygen settings SHOW_DIRECTORIES and HTML_ALIGN_MEMBERS.
Both variables are obsolete since Doxygen 1.8.1, and both variables
had been set to their default values. Hence older Doxygen versions
should produce correct results.

Tested and confirmed with Doxygen 1.7.3, released Feb 2011.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 16:57:06 +00:00
Albrecht Schlosser
e23bf0b768 [CMake] Fix CMake build's fltk-config (STR #3217).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-25 13:50:27 +00:00
Greg Ercolano
d2b7b5b24a Fixed small typo, added some elipsis to clarify docs
when copy/pasting into email/forum posts as clear text.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-24 21:25:30 +00:00
Ian MacArthur
d0e5b00ea7 WIN32 specific fix for (or at least work around to) STR #3143.
In testing, this resolves the reported issue, but I'd be happy if we could find a
solution that resolved the underlying issue of us missing PostThreadMessage()
messages passed from the worker thread to the main thread, whilst the main window
is unresponsive (i.e. moving or dragging.)

This also puts in place an amendment to the way the awake callback ring-buffer indices
are tested, when the buffer is wrapping over or near to full. This was identified by 
Albrecht in STR #3223 (item #1 on that STR, though there are a few other issues 
identified there.)

In my testing, this appears to be correct and robust. Further testing would not go
amiss, however.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-23 10:11:23 +00:00
Manolo Gouy
335927ab90 Fix for STR #3221: restore the correct state of mouse buttons and keyboard modifier keys
after closing a non-FLTK window (file or printer dialogs).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-22 14:40:01 +00:00
Albrecht Schlosser
333b5268c3 Add FLTK version test program examples/fltk-versions.cxx.
This program can be used to verify that the FLTK runtime system
(ABI version) is binary compatible with the compiled and linked program.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-21 12:44:46 +00:00
Albrecht Schlosser
b79ad86683 Fix box sizes (box_dx() etc.) of scheme gleam.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-21 11:53:29 +00:00
Pierre Ossman
e0894bf0e1 Make sure we set WM_CLIENT_MACHINE, WM_LOCALE_NAME and _NET_WM_PID on
X11 windows as window manager need these to map windows to processes
and we might lose functionality without them.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-20 12:02:10 +00:00
Pierre Ossman
07c9526085 We cannot resize the selection buffer without also storing the new
length or we may get buffer overflows the next time we copy something.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-20 11:57:41 +00:00
Albrecht Schlosser
a08321a091 Rename static int send(..) to send_event() in src/Fl.cxx.
Also: remove unnecessary '#include <stdio.h>' (needed only for debugging).

Rationale: search for 'send' within the file has too many false positive
hits. The function is 'static' and hence local to this file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-19 14:16:10 +00:00
Manolo Gouy
0755a81759 Replaced incorrect use of abs() with floating point argument by fabs().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-15 05:46:26 +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
Greg Ercolano
f81374166b Fixes STR #3219, deactivate colors issue with Fl_Text_Display/Editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-14 22:28:33 +00:00
Albrecht Schlosser
1bfb17fb55 Fix compilation warning [-Wsign-compare].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-14 13:22:14 +00:00
Albrecht Schlosser
6fee0c5765 Fix compilation warnings: "... may be used uninitialized".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-14 12:45:22 +00:00
Albrecht Schlosser
0663c45e9c Documentation: move PDF creation from Makefile to new script 'make_pdf'.
The new script make_pdf can be used in the Makefile and in the CMake
PDF generation process. CMake update will follow in a later step.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10702 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 20:33:46 +00:00
Albrecht Schlosser
43b57ef526 Remove trailing spaces from Doxyfile and Doxybook.
Note: this is for better comparability - preparing new generator for CMake.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10701 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 20:16:24 +00:00
Greg Ercolano
f722272921 Small doc fixes as recommended by Albrecht,
who is currently proofreading the Fl_Tree docs/code.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10700 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 17:00:26 +00:00
Greg Ercolano
1f7eb7bc4e Fix return value test, as pointed out by Albrecht.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 16:55:27 +00:00
Greg Ercolano
d95750ede7 Fix problem with fl_contrast() affecting text color unnecessarily
when drawing normal (unselected) text. 

(See thread on fltk.coredev started 04/07/2015, "RFC: Fl_Text_Display style buffer color weirdness")



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 15:26:57 +00:00
Manolo Gouy
8c1833f15c Fix for STR#3165, as solved by OP.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-13 08:33:55 +00:00