Commit Graph

6185 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
6b8f3c6027 Fix compiler warnings in fluid-generated code (STR #2813).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-10 19:26:17 +00:00
Albrecht Schlosser
ce76b65e55 CMake: Remove installation of example programs (STR #3194).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-10 15:50:59 +00:00
Albrecht Schlosser
bd8ab76cb0 Improve test/color_chooser layout, fix some small bugs.
Added a "hint" to tell the user what the buttons are good for.
The hint also exercises fl_contrast(). Whenever the background color
is changed the hint's labelcolor is set with fl_contrast().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-09 20:10:25 +00:00
Manolo Gouy
130bbf6efa MacOS Xcode project: give proper icons to the blocks, checkers and sudoku test programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-09 11:42:31 +00:00
Manolo Gouy
792cf70daf MacOS: fix XCode4 -> Xcode4 typo
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-09 11:18:44 +00:00
Manolo Gouy
d2edec0517 MacOS: removed XCode3 from header search paths in Xcode FLTK project,
and fix the help demo.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-09 11:05:36 +00:00
Manolo Gouy
3e6b497b64 Mac OS: fix demo for programs that are run with an argument.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08 15:44:57 +00:00
Manolo Gouy
3ec8bab10e CMake build on Mac OS: r10688 was not a good move because it works with
the makefiles generator but not with the Xcode generator. Stepping back one commit.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08 12:16:52 +00:00
Manolo Gouy
4b5b11a1cb CMake building on Mac OS: use a simpler way to put files within app bundles.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08 11:37:14 +00:00
Manolo Gouy
ab78d7ee61 Make building on Mac OS: compile with -DUSING_XCODE only for demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08 10:54:24 +00:00
Manolo Gouy
9510c22bd3 CMake building on Mac OS: the demo program uses and finds demo.menu in its bundle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-08 09:33:39 +00:00
Manolo Gouy
ccffe4cf63 Corrected typo: resources --> Resources
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 16:13:25 +00:00
Manolo Gouy
6496fd33be CMake generation of Xcode project under Mac OS: bundle fluid with its proper icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 16:08:54 +00:00
Manolo Gouy
b0f05ee7ff CMake for Mac OS: the generated Xcode project creates bundled test applications and
uses appropriate icons for blocks, checkers, and sudoku.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 15:31:12 +00:00
Albrecht Schlosser
1bb0fb36f6 CMake] install CMake files in DATADIR instead of LIBDIR under Linux.
FLTKConfig.cmake and others have been installed in arch dependent LIBDIR,
but should be in arch independent DATADIR.  The result is that you can
always find FLTKConfig.cmake in <prefix>/share/fltk.

This is where "/path/to/fltk" should point to when FLTK is used in external
projects (see README.CMake.txt).

Todo: test if find_package works w/o defining FLTK_DIR when installed
in a standard location.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 15:18:35 +00:00
Manolo Gouy
f7ffa787fc Don't use -pthread in link commands on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 09:05:24 +00:00
Manolo Gouy
dde47cbd6a Fix for STR#3167 where a window would decrease in size after each close/open (MSWindows-only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-07 06:28:34 +00:00
Albrecht Schlosser
d767ae7ff6 [CMake] Fix and install fltk-config.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-06 13:06:21 +00:00
Manolo Gouy
0b3471658d Documentation: replaced characters by bytes as the correct unit
of Fl::event_length() when pasting text.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-05 20:05:46 +00:00
Albrecht Schlosser
c2601505bb Documentation updates on callbacks and Fl::readqueue().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-05 09:04:44 +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