Commit Graph

1171 Commits

Author SHA1 Message Date
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
Albrecht Schlosser
642c475493 Fixed segfault in fl_set_fonts_xft.cxx when loading fonts not named
as expected (STR #2976).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-03 16:17:05 +00:00
Albrecht Schlosser
8e30fc438c Made Fl_Help_View::handle() public and Fl_Help_View::draw() protected
to enable inheritance and for consistency (STR #2834).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-30 14:18:18 +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
39a8ef3c4c Updated CHANGES file with ABI mods.
Also: added release dates for all releases I could easily find copies of.
      To determine release dates, I used e.g.

      tar tvfz /net/software/fltk/fltk-1.1.1-source.tar.gz | sort --key=4 | tail

      ..the date stamps on the directories at the bottom of the report indicate
      the date the tar file was created.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-09 21:28:51 +00:00
Greg Ercolano
4e6779bc49 Added code example for ossman's new add_clipboard_notify(),
and updated CHANGES.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-13 22:57:30 +00:00
Albrecht Schlosser
e9767cce34 Removed autoconf/configure and CMake tests and defines for
unused function strtoll() [resolves one part of STR #2965].


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-22 10:40:58 +00:00
Greg Ercolano
322d82f7e7 Mods to CHANGES file for recent additions/fixes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10 21:19:10 +00:00
Greg Ercolano
a1672828b5 Removing Fl_mac.cxx -- this code is no longer used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:31:35 +00:00
Manolo Gouy
ef67cdc9d0 Added changes in Mac version of Fl_Native_File_Chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-12 14:33:48 +00:00
Manolo Gouy
70ea6b8d7c Mentioned support for Mac OS text input system.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9768 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-19 12:34:42 +00:00
Albrecht Schlosser
da9c3af38a Fixed access of protected member (STR #2903)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-12 17:27:23 +00:00
Albrecht Schlosser
3b8e4b9e9c Removed unnecessary drawing calls (STR #2898)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-07 16:29:49 +00:00
Manolo Gouy
246157b51d Documented all changes from 1.3.1 release to 2012/11/25.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-26 11:59:14 +00:00
Greg Ercolano
09c80a3d7e Document mods for STR #2889
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-23 20:12:59 +00:00
Matthias Melcher
8701434312 Upgrade version number to 1.3.1
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-11-06 21:13:54 +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
Matthias Melcher
4e0bc49713 Fixed fl_utf_strncasecmp etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-24 19:49:37 +00:00
Matthias Melcher
398acd9c2a STR 2705: moved all inline constructors (that I could find) from header files into source files. Even though this breaks downward compatibility, it does make dynamic linking possible for all classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-07-24 04:37:22 +00:00
Manolo Gouy
cbcf0c9312 Fixed STR #2644: support horizontal wheel movement under X11 and MSWindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-06-21 08:52:29 +00:00
Albrecht Schlosser
66cea4322f Fix STR #2836: copy_label() with old label() value failed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-05-05 13:36:47 +00:00
Greg Ercolano
9a4ef219de Fl_Tree optimizations for selecting large trees (100k items).
Added _next_sibling and _prev_sibling to Fl_Tree_Item class to make 
next_sibling() and prev_sibling() more efficient during item selection.
Used new FLTK_ABI_VERSION macro (as designed by Greg and Albrecht on fltk.dev) to protect the ABI breaking features.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-19 12:44:26 +00:00
Albrecht Schlosser
d250e21542 Fixed Fl_Input_::maximum_size() documentation and Fl_Input::replace()
to honor maximum_size() as number of allowed characters (STR #2747).
This was a hangover from FLTK 1.1, where the number of bytes was equal
to the number of characters.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-06 16:55:51 +00:00
Albrecht Schlosser
05f669c9ce Fixed a potential crash if Fl_Double_Window::flush() was called before show().
Thanks to Mathieu Peyrega for the patch in fltk.general [1] on Nov 14, 2011,
although I implemented it differently.
[1] http://www.fltk.org/newsgroups.php?gfltk.general+v:33946


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-28 12:32:56 +00:00
Manolo Gouy
4fbc766422 Fixes for STR 2600, 2695, 2697.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-11 11:58:28 +00:00
Albrecht Schlosser
afd64de007 Fixed regression (in FLTK 1.3.0) that could clear a radio button by
using the keyboard (space or shortcut) (STR #2748).
This regression was introduced in svn r7826 and released with FLTK 1.3.0 (!)
to add visual feedback for Fl_Button's using the keyboard (STR #2372).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 10:29:13 +00:00
Albrecht Schlosser
62b30f85cb Fixed fl_pie() drawing too small on X11 (STR #2703)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-30 07:50:16 +00:00
Albrecht Schlosser
2d52aebc6d Fixed Fl_Menu issue with unusual menu flags (STR #2680).
Setting some flags in a terminating Fl_Menu_Item (one with
a NULL label/text/name) caused an endless loop.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20 13:50:15 +00:00
Albrecht Schlosser
6027f410ed Fixed Windows DLL import of fl_xid() (STR #2670)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-18 12:29:49 +00:00
Albrecht Schlosser
fce1e80ee3 Fix potential crash in fl_xid() on Linux (STR #2635). This would
crash if called when a window is not shown().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21 10:05:19 +00:00
Albrecht Schlosser
0f20c065ce Fixed keyboard navigation in fl_choice() (STR #2591)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:54:42 +00:00
Albrecht Schlosser
08b93ec972 Reverted changes done in svn r 7788 for STR #2420 ("Tab-Navigation focuses
non-active_r() widgets"). This must be investigated further, and if necessary,
solved differently. STR #2420 will be reopened...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:34:53 +00:00
Albrecht Schlosser
18628d428b Fixed alpha blending under X11 when line data size != 0 (STR #2606)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:01:04 +00:00
Albrecht Schlosser
8920d92944 Updated the bundled libpng to v1.5.1 (released Feb 3, 2011).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 09:11:57 +00:00
Albrecht Schlosser
3bb11b9993 Common dialogs like fl_message() and fl_ask() can now have a window
title (STR #2562).
Added a test case for disabling the hotspot and using a window title
to test/ask.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-12 12:08:52 +00:00
Albrecht Schlosser
f8c0dd0110 Hotspot behavior of fl_message() and other common dialogs is now
optional (STR #2561).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8415 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-12 11:31:40 +00:00
Albrecht Schlosser
c4be7d9cd7 Changed default for configure option --with-links for common misspellings
on case sensitive file systems like Unix/Linux, as discussed some time ago.
The new default is --without-links.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-30 15:05:53 +00:00
Matthias Melcher
8a66c06e10 Attmpt to throw away meaningless CHANGES entries, and resort by priority in better categories. The CHANGES file is a clear indicator of packing much too much into a single *minor* release. OTOH: boy, have we been active!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 14:55:53 +00:00
Albrecht Schlosser
64468d4639 CHANGES: Fixed typos and removed trailing spaces.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 13:23:53 +00:00
Albrecht Schlosser
ada206d8f7 Added Fl_Tabs::client_area() (STR #2480).
Fixed some typos in CHANGES.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 13:06:03 +00:00
Matthias Melcher
3b65b1b3bf Sorted CHANGES text a bit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 21:21:19 +00:00
Matthias Melcher
387c60fab2 Removed Watcom compiler support because it was introduced in 1.1.6 as a partial solution and never completed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-20 19:28:23 +00:00
Albrecht Schlosser
403ee0ce23 Fixed Fl_Tabs selection border drawing, if tabs are at the bottom of
the widget (STR #2480). Thanks for the patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-18 15:31:44 +00:00
Albrecht Schlosser
ff4cafeb30 This new fl_read_image() function for Windows is *much* faster than
reading individual pixels as before (STR #2387), but there is still
room for improvement...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-16 20:23:57 +00:00
Matthias Melcher
318b3dea57 Added an 'Options' dialog (replacing test/preferences) that can be used to set system wide or user real options like Visible Focus.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-12 19:52:26 +00:00