Commit Graph

836 Commits

Author SHA1 Message Date
Ian MacArthur 6091b0e00b Testing to see if changing the file extension
from .xcf.gz to just .xcf (and uncompressing
the file too, of course!) unblocks the repository
access for svn checkouts etc.

Checkouts are currently broken because the
Apache server is mishandling files of .gz
type, and this is causing checksum errors
on file checkouts etc.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 11:45:54 +00:00
Ian MacArthur 5ffa744bcc Attempting to workaround issue with
repository access.

The Apache server is not handling
files of .gz type the way that SVN
needs and this is blocking any checkouts.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10924 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-24 11:42:56 +00:00
Albrecht Schlosser 298c734201 Fix typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-09-01 15:15:21 +00:00
Albrecht Schlosser 01cbcc8406 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-22 23:20:47 +00:00
Albrecht Schlosser 1763da6596 Update common dialog test program - add "recursive" dialog test.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-07-21 12:44:53 +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 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
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
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 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
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 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
Albrecht Schlosser c8cacb7677 Fix more compiler warnings in test/*.cxx (STR #2813).
Thanks to Csaba for the patch.
Also fixed copyright and a few indenting issues.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03 12:31:58 +00:00
Albrecht Schlosser e27102b0e9 Fix compiler warnings in test/forms.cxx and more (inspired by STR #2813).
This update ought to fix the compiler warnings (tested only under Linux)
mentioned in STR #2813. The patch is very different though (more radical).

Also removed unused code, fixed copyright and trailing white space.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03 12:18:31 +00:00
Albrecht Schlosser 50c963de12 Add missing cast (part of patch for STR #2813).
Thanks to Csaba for finding this and providing a patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-03 10:22:58 +00:00
Albrecht Schlosser b4a0961b88 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-28 11:35:35 +00:00
Albrecht Schlosser b89035f360 Add new animated demo to CMakeLists.txt, update .gitignore and svn props.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-18 13:31:59 +00:00
Manolo Gouy 982121f807 Added the new 'animated' test program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-18 11:32:42 +00:00
Albrecht Schlosser ae4b51b970 Remove obsolete watcom makefiles.
These makefiles included '../watcom.mif' which had already been removed
and they had not been updated anyway.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-17 14:53:09 +00:00
Lauri Kasanen 70d6d20e11 Add a test program to benchmark alpha blending.
The new XRender code uses 21 times less cpu than the old
read-back-and-manually-blend option. The blending is also
GPU-accelerated where possible, but works in software on
vesa/fb drivers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:23:59 +00:00
Manolo Gouy dbde470f8d Added Fl_Shared_Image::scale(width, height) to support scaled image drawing (STR #3185).
Useful for printing, PostScript or PDF output, or retina displays.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10 21:06:22 +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
Albrecht Schlosser 78783e1fd8 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-07 13:12:54 +00:00
Albrecht Schlosser 33206498fd Improve label demo test/label.cxx : better layout + new tooltips.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-05 12:40:32 +00:00
Albrecht Schlosser c0a760d1c6 Rename variable 'inp' because of colliding definition in Cygwin.
Although this is probably not the application's fault and this
was found with gcc 4.5.3 using Windows 64-bit cross-compiling only.

windowfocus.cxx:25:18: error: 'Fl_Input* inp' redeclared as different kind of symbol
/usr/x86_64-w64-mingw32/sys-root/mingw/include/intrin.h:347:5: error: previous declaration of 'int inp(short unsigned int)'


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-27 14:10:29 +00:00
Albrecht Schlosser 24dd515f30 [CMake] Fix creation of example directory when copying support files.
This was a regression introduced in svn r 10573 that affects new builds,
when the target directory for test files (bin/examples) doesn't exist yet.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-13 12:16:38 +00:00
Albrecht Schlosser 5b801eae16 [CMake] Copy support files for demo programs to build directory (incomplete).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-11 15:15:46 +00:00
Albrecht Schlosser 998a6be711 Fix typos in demo file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 19:15:09 +00:00
Albrecht Schlosser 965be94165 Make demo programs display the correct Fl::scheme() in all cases.
Demo programs using Fl::args() and fl_get_system_colors() instead of
Fl_Window::show(argc,argv) didn't correctly initialize the Fl::scheme()
if the environment variable FLTK_SCHEME was set.

Calling Fl::scheme(Fl::scheme()) fixes this, because (currently) only
Fl::scheme(NULL) reads the environment variable FLTK_SCHEME.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 18:04:31 +00:00
Manolo Gouy ec1d3ce3d9 Allow compilation with -std=c++11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-08 19:46:36 +00:00
Albrecht Schlosser a02e892b01 Improve test/boxtype demo program to help boxtype debugging.
(1) Set window title to reflect current scheme.
(2) Add class BoxGroup to show a red frame around each box
    and/or a white box background.

Both features are disabled though. Edit the source file to enable.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-31 15:43:53 +00:00
Manolo Gouy f3a84c0ee5 Changed OpenGL support for the Mac OS X platform: use cocoa instead of deprecated AGL.
All changes are mac-specific, except a very minor change in file src/gl_draw.cxx
where string drawing wrongly claimed to support @symbol, not possible
because symbols are drawn using non-GL primitives.

Unchanged application code can use the new FLTK code.
In addition, the new code allows mac applications to draw OpenGL scenes
at high resolution on so-called 'retina' displays, but this requires some
support from app code. They must call, before opening GL windows,
Fl::use_high_resolution(1);
and change their glViewport() calls as follows
glViewport(0, 0, pxel_w(), pixel_h());
This uses 2 new member functions of the Fl_Gl_Window class,
pixel_w() and pixel_h() returning the window dimensions in pixel
units, that is, twice the w() and h() when the window is mapped
on a retina display.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-20 07:19:23 +00:00
Greg Ercolano bcc7dc8b6f Fixes STR #3169, comment #8.
Prevents warnings from OSX 10.9.x clang compiler.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:50:09 +00:00
Greg Ercolano 889a8a6d42 Fixes STR #3169, comments #4, #5 and #7.
Prevents warnings from the OSX 10.9.x clang compiler.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-12-19 03:47:32 +00:00
Manolo Gouy baf5ea7d56 Added Fl_Copy_Surface::w() and Fl_Copy_Surface::h() member functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-08 18:10:35 +00:00
Albrecht Schlosser df31569ac4 Add unittests to demo program menu.
This test program may not be in the optimal position in the menu,
but w/o restructuring more of the menu this was the best position
I could find. Maybe we can restructure the menu in the future.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-04 10:05:36 +00:00
Albrecht Schlosser f500ff46e2 Update dependencies for FLTK 1.3.3 release.
This should be the final commit for FLTK 1.3.3.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-03 10:34:54 +00:00
Manolo Gouy e5536f5bc3 Undoing commit r.10422 that was a wrong move.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30 20:38:53 +00:00
Manolo Gouy 7df34e02c4 Fixed typo about the editor demo program
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30 20:29:21 +00:00
Albrecht Schlosser 3e1da3012a Remove Fl::*sleep() method family, as discussed in fltk.coredev.
Hopefully this doesn't break Windows or Mac OX IDE builds, please help
testing.

Short story: these functions showed compatibility problems, lacked some
quality (regarding interruption by signals), and maybe more.

This is a combined commit that reverts three (3) svn commits. The following
lists are extracted from git, but show the svn revisions and files:

    Remove Fl::*sleep() family, part 1: revert svn r 10287.

:100644 100644 a988702... 794920f... M	ide/Xcode4/FLTK.xcodeproj/project.pbxproj

    Remove Fl::*sleep() family, part 2: revert svn r 10151.

:100644 100644 cf839e6... bfde9c4... M	ide/Xcode3/FLTK.xcodeproj/project.pbxproj
:100644 100644 794920f... c0c772a... M	ide/Xcode4/FLTK.xcodeproj/project.pbxproj

    Remove Fl::*sleep() family, part 2b: revert svn r 10151 (continued).

:100644 100644 bfde9c4... abf2922... M	ide/Xcode3/FLTK.xcodeproj/project.pbxproj

    Remove Fl::*sleep() family, part 3: revert svn r 10150.

:100644 100644 b469018... e76a3e5... M	FL/Fl.H
:100644 100644 7bb7899... 4d4755d... M	ide/VisualC2008/fltk.lib.vcproj
:100644 100644 9d9a2cf... 334aef8... M	ide/VisualC2008/fltkdll.vcproj
:100644 100644 5533a54... e30058b... M	ide/VisualC2010/fltk.lib.vcxproj
:100644 100644 e49f691... 1259c87... M	ide/VisualC2010/fltk.lib.vcxproj.filters
:100644 100644 946f31a... d53ab80... M	src/CMakeLists.txt
:100644 000000 fed36fd... 0000000... D	src/Fl_sleep.cxx
:100644 100644 3d9656c... 3b265f9... M	src/Makefile
:100644 100644 6eadbcb... 5dd5872... M	test/sudoku.cxx


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-30 16:05:22 +00:00
Albrecht Schlosser 25cf93b4cb Improve and reorganize Fl_Tile's documentation and test/tile demo.
Moved docs from header file and enhanced docs, particularly about the
resizable() widget and the resize behavior in general.

Changed the tile demo program to use a resizable() with 20 pixels
border distance, so that border dragging is limited as described in the
docs. Updated the image file to reflect the current test/tile.cxx demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-19 14:17:47 +00:00
Albrecht Schlosser 31512b7323 Fix a tiny memory leak in test/editor and remove useless style_init().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 19:49:19 +00:00
Albrecht Schlosser aef482198e Bump version numbers to 1.3.3.
All fluid .fl files have been rewritten with fluid 1.3.3 and may differ
somehow, but there are no significant changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 00:03:27 +00:00
Albrecht Schlosser 318c3619dc CMake enhancements, as discussed in STR #3055.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-27 00:41:06 +00:00
Albrecht Schlosser 8ef6520fe3 Fix indentation in recently added test/twowin.cxx demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-27 00:07:27 +00:00
Albrecht Schlosser d6c9db1b92 Add missing svn $Id$ tags in new test files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-27 00:04:15 +00:00
Albrecht Schlosser eb1af07952 Add Fl_Window::wait_for_expose() and test program (STR #3124).
Also modified .gitignore, svn-properties, Makefile and CMake-Files.

Todo: test/twowin.cxx and test/windowfocus.cxx need to be added to ide files
(MS VC++ and Xcode).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-26 23:58:05 +00:00
Manolo Gouy 5899b2cc6d Added missing include x.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-26 17:11:21 +00:00
Albrecht Schlosser 023589e703 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-22 19:07:55 +00:00
Albrecht Schlosser dd37bc2c12 Update dependencies
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 23:54:11 +00:00
Lauri Kasanen 7ebbe0baf4 Add a two-window focus test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:45:49 +00:00
Lauri Kasanen d1d203ca57 Add support for dragging to reorder in Fl_Tree, STR #2828 (I)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:04:28 +00:00
Albrecht Schlosser d67f2e8e3e Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 09:31:37 +00:00
Albrecht Schlosser 105c2b466a Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:24:11 +00:00
Albrecht Schlosser 3dbc495127 Remove 'register storage class deprecated' compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:10:37 +00:00
Lauri Kasanen bbc8782b6a Move Xutf8.h to src/, update includes, refresh makedepends
This is an internal header.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:41:58 +00:00
Pierre Ossman f58b1a91b3 Add ability to set custom icons for windows. STR #2816.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:39:32 +00:00
Pierre Ossman 332dc1b7ac Add method to set any custom cursor, based on a Fl_RGB_Image object.
Also change our fallback cursors to use this method, so that fallback
cursors are handled in a platform independent manner. STR #2660.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:17:57 +00:00
Pierre Ossman 0cfc2554c6 Support for full screen over multiple monitors.
The API follows that of EWMH, which gives you a good control
over which monitors to use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 09:10:53 +00:00
Ian MacArthur 460544455d Another stab at STR #3090.
Now, instead of just ignoring the scrollwheel
events, I try to make the scene zoom in/out
in response to the wheel instead.

Seems to be working; not sure I have the
zoom sensitivity set to a sensible avlue, though!



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-06 21:46:42 +00:00
Ian MacArthur 63b5ee9ef1 Tweak fracviewer.cxx to ignore mousewheel inputs,
which were confusing it and making it sometimes
unresponsive to mouse left or middle button drag
inputs...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-06 12:30:38 +00:00
Greg Ercolano 547570fca6 Fixes STR#3089; some UI fonts too large on linux.
See image attachment included with the STR.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10183 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-05 05:05:19 +00:00
Greg Ercolano e0c747ee0b 1) Add descriptive tooltips to widgets in 'scheme' test.
2) Changed Fl_Scrollbar to show a 50% tab, so that the
   "///" scrollbar tab decorations are visible when the
   gtk+ scheme is enabled.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-24 02:59:19 +00:00
Greg Ercolano b04ec356b3 Added as per RFC on fltk.coredev 05/23/2014.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 23:32:27 +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
Greg Ercolano 46521bf437 Implements STR #2621: Add line numbers to Fl_Text_Display.
Applied LZA's patch and included some mods to address TODO items and ABI issues.

Also update CREDITS with LZA and a few other notably absent names.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 06:56:59 +00:00
Fabien Costantini 54b0123eab Added a new portable sleep API(ABI compatible). Now features a flexible multi-usage sleep() api accepting decimals, msleep() for millisecs only, usleep() for microsecs. Updated Makefiles, cmakefiles, vs2008, vs2010 with the new Fl_sleep add-on. Documented new API. still needs to be added in Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 04:10:12 +00:00
Manolo Gouy 6c92cc9a8d Fix STR#3063: compilation using Mac OS 10.4
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 13:57:09 +00:00
Ian MacArthur 770c280708 Adjust test/demo.cxx to support the newly added
"gleam" scheme.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-26 21:21:14 +00:00
Greg Ercolano c5d5ba1cf5 Applying the etorres gleam patch. STR #2672.
TODO: Xcode 4 ide needs fl_gleam.cxx added
      Test of Visual Studio IDE mods (which were hand-modified)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25 04:24:41 +00:00
Greg Ercolano 98695591f4 Added 'help-test.html' to test the Fl_Help_View
HTML parser. (Feel free to expand these tests)

Modified the 'help' program to use this help file
as a default, since the old reference was to our
old documentation link that (1) no longer is released
with the code, and (2) is doxygen content our HTML
parser can't possibly handle.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-08 20:44:09 +00:00
Greg Ercolano 9b5f1d78e1 Fixes Micha's two NetBSD warning msgs (posted on fltk.general 12/16/13):
tree.cxx: 1443: warning: passing 'double' for argument 1 to 'void Fl_Tree::scrollbar_size(int)'
    tree.cxx: 1440: warning: passing 'double' for argument 1 to 'static void Fl::scrollbar_size(int)'



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-18 02:14:02 +00:00
Greg Ercolano d36882e67e Adds horizontal scrollbar to Fl_Tree as an ABI 1.3.3 feature.
***************************************************************
NOTE: You MUST uncomment the FLTK_ABI_VERSION in Enumerations.H
      to use these changes.
***************************************************************

Also: separated tree size calculation from draw() code,
so that one can cause the tree to recalculate immediately
after making modifications to the tree by calling Fl_Tree::calc_tree().

Numerous improvements to docs for the tree as well, enough
to create a rather large diff.

Large internal changes were needed to do this properly.
The following was added to the CHANGES file:

	- Fl_Tree: various related changes:
	    o Added horizontal scrollbar
	    o Separated draw() and tree size calculation
	    o Added new public methods:
	        > resize()           -- uses optimized dim calc, avoids tree recalc
		> next_item()        -- added parameters: direction, visibility
		> extend_selection() -- added parameters, improved algorithm
		> calc_dimensions()  -- calc tix/y/w/h, tox/y/w/h and scrollbars
		> calc_tree()        -- calc tree_w/tree_h
		> recalc_tree()      -- schedules calc_tree()
		> first_visible_item(), last_visible_item(), next_visible_item()
		> first_selected_item(), last_selected_item(), next_selected_item()
	    o Added protected variables:
	        > _tix/y/w/h      -- tree widget 'inner' dimension
		> _tox/y/w/h      -- tree widget 'outer' dimension
		> _tree_w,_tree_h -- entire tree hierarchy width/height
	    o Deprecated:
	        > item_clicked() -- use callback_item() instead
		> first_visible() -- use first_visible_item() instead
		> last_visible() -- use last_visible_item() instead

	- Fl_Tree_Item: various related changes:
	    o Added Fl_Tree ptr: needed for auto-recalc when item modified directly
	    o Added new methods tree(), recalc_tree()
	    o Added new ctor that accepts Fl_Tree*
	    o draw() parameters changed to include tree size calculations
	    o Deprecated:
	       > ctor using Fl_Tree_Prefs parameter (Fl_Tree* version better,
	         and must be used for 1.3.3 ABI features to work correctly)
	       > next_displayed() -- use next_visible() instead
	       > prev_displayed() -- use prev_visible() instead

	- test/tree: added tests for newly added features




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-15 18:59:02 +00:00
Greg Ercolano bedb7fd6f0 Fixes STR# 2973: collection of Sun compiler fixes to Makefiles.
o Adds $(CXXFLAGS) to $(CXX) commands
    o Implements older, more backwards compatible Bourne shell test(1) syntax for equality tests (= vs ==)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 17:23:09 +00:00
Greg Ercolano 2082d7e197 Fixes STR# 2973: collection of Sun compiler fixes.
Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 16:41:23 +00:00
Greg Ercolano 2fc6c3a39b Fixes STR #2985: prevent memory leaks with XGetWindowProperty()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-20 03:36:02 +00:00
Greg Ercolano 67ed1a8da9 STR# #2973: applied patch str_2973_r9958_sun-fix-errors-5.patch verbatim.
src/Fl_Tree_Item.cxx -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    FL/Fl_Preferences.H  -- solve: "FL/Fl_Preferences.H", line 196: Error: Fl_Preferences::RootNode is not accessible from 0
    FL/Fl_Tree_Item.H    -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    test/unittests.cxx   -- solve: "unittests.cxx",        line 95: Error: The type "UnitTest*[]" is incomplete.
            


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 20:25:14 +00:00
Greg Ercolano 33933f8c13 Added "Pick Dir" button to allow checking of directory browsing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-08-15 23:01:15 +00:00
Manolo Gouy b94c8b0d73 mac os: added mark of support for high resolution in 3 test applications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-24 16:05:12 +00:00
Albrecht Schlosser 62ae23272b Add different selection_color()'s and tooltips to scheme test buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-12 23:30:55 +00:00
Greg Ercolano 85c1464715 Added some extra @@ tests for boundary conditions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:21:22 +00:00
Greg Ercolano fa75731c94 Fix for fl_measure() missing drawsymbol flag
Added comments
Added 3 line test.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 19:16:48 +00:00
Greg Ercolano ceb12d51ab Added unittest for checking symbol rendering and fl_measure() with symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-27 18:32:41 +00:00
Greg Ercolano 449f36b6f8 Added Fl_Choice to browser test program to let one
change the browser type(), allowing testing of the
different browser modes..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 21:32:34 +00:00
Albrecht Schlosser f2dc7f90ff make schemes test window resizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-10 15:14:03 +00:00
Greg Ercolano 4a2e8fa883 Added schemes test to unittests app, to check fltk schemes for artifacts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-08 20:37:00 +00:00
Manolo Gouy d9666eb8c9 Demo now runs Mac OS test applications both if they are bundled or unbundled.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-10 12:49:59 +00:00
Manolo Gouy 598e2cb63b MacOS: create a bundled version of all example programs with fltk-config --post
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-05 14:53:03 +00:00
Manolo Gouy 155e099f4a Documented how to make a Mac OS FLTK application launchable by dropping files on its icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-13 13:03:20 +00:00
Matthias Melcher 78039ecb55 Replaced 10302 with 10301 for FLTK_ABI_VERSION
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-06 20:46:14 +00:00
Manolo Gouy a413dd4340 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 15:09:46 +00:00
Manolo Gouy 483d064559 Fix STR#2856: extend the fullscreen demo to show screen and work area sizes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-14 14:36:11 +00:00
Manolo Gouy 0cfd9a1a23 button demo program: use fl_beep() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-02 08:59:45 +00:00
Greg Ercolano df5c8cc76f Fixed some keynav problems:
No focus, hitting down would skip first item
    Enter key to toggle was falling through to other widgets
    Removing an item that has focus clears item focus (to prevent wild ptr)

Added new methods:
	Fl_Tree::get_item_focus()
	Fl_Tree::first_visible()
	Fl_Tree::last_visible()
	Fl_Tree::is_vscroll_visible()

Simplified + fixed Fl_Tree_Item::next_displayed()

Fixed Fl_Tree_Item::visible_r(), was skipping item if it was a closed branch.

tree demo: fixed button ordering for "Test Suggestions" button



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-29 13:34:39 +00:00
Greg Ercolano 31f320e2c6 o Added new 0xffffffff 'transparent' color behavior for the item's bg color;
with this as the default color, Fl_Tree::color() can control the tree's background.
  Tests added to the test/tree application.

o test/tree.fl modified:
    o Added a 'Test Suggestions' button to document various tests
    o Added tests for new 'transparent' color behavior
    o Added test for STR#2832 to check if items can be drawn to the /right/ of child widgets

o Added new methods to Fl_Tree_Prefs:
    item_labelfont()     -- obsoletes labelfont()
    item_labelsize()     -- obsoletes labelsize()
    item_labelfgcolor()  -- obsoletes labelfgcolor()
    item_labelbgcolor()  -- obsoletes labelbgcolor()

o Added 'Fonts and Colors' section to Fl_Tree docs

o Fl_Tree_Item ABI feature added: using bitflags instead of chars
  to keep the class small, as it gets instanced a lot. (fast + LIGHT)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-09 21:26:32 +00:00
Greg Ercolano 474feee1db o Added FL_TREE_ITEM_HEIGHT_FROM_WIDGET option to item_draw_mode()
to allow widgets to control the size of items in the tree
  (instead of vice versa).

o Added item_draw_mode(int) to allow for easier bitflag maintenance,
  since enums don't seem to be typesafe yet.

o Tree demo modified to demonstrate this feature.
  An important feature for adding large widgets to tree items.
  Will probably add an example, 'tree-of-tables' to demo this usage.

o Small doc fixes.

o Had to rename FL_TREE_ITEM_DRAW_WIDGET_ONLY to FL_TREE_ITEM_DRAW_DEFAULT.
  Its meaning for the bit fields changed when new bit fields were added.
  (The prev name just didn't make sense in the new context. Since it was
  just a few svn commits old and an unreleased ABI feature, it shouldn't
  affect anyone not in R&D)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-27 02:03:48 +00:00