Commit Graph

1232 Commits

Author SHA1 Message Date
Albrecht Schlosser
a1d555bd80 Separated Fl_Input_Choice.H and Fl_Input_Choice.cxx (STR #2750).
As proposed in STR #2750 and #2752: only status quo, i.e.:

  - no new method Fl_Input_Choice::maximum_size(int) (STR #2750 and #2752)
  - no handling of FL_Down key to open menu (STR #2752)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-11 23:26:32 +00:00
Albrecht Schlosser
5544404f7a Enable Up/Down keys in Fl_Spinner if input has focus (STR #2989).
Previously Up/Down keys worked only if one of the buttons was pressed
before so that it had the focus.

test/valuators.fl: The second Fl_Spinner widget (FL_FLOAT_INPUT) now has
wrap mode disabled whereas the first one (FL_INT_INPUT) uses wrap mode
(default, compatible with FLTK 1.3.x and older).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-10 21:47:08 +00:00
Albrecht Schlosser
b67ba50f14 New method Fl_Spinner::wrap(int) to set wrap mode at bounds (STR #3365).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-10 18:49:44 +00:00
Albrecht Schlosser
7123b78f3f Separated Fl_Spinner.H and Fl_Spinner.cxx (STR #2776).
Also removed deprecated (misspelled) method names mininum() and maxinum().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-09 22:08:29 +00:00
Albrecht Schlosser
18bb55545e Fl_Tabs: improve tab label drawing (STR #3075, STR #3076).
New method Fl_Tabs::tab_align() supports icons in tabs (STR #3076).
This commit also enables drawing labels of Fl_Window children (STR #3075).

Setting tab_align(FL_IMAGE_NEXT_TO_TEXT) draws images (icons) in the tab
labels if the child has an image(). Currently this draws the image() even
if the child is deactived (so it should presumably draw the deimage()).

Todo: Label measurement and Fl_Windows as children still need fixups.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-03-06 16:54:33 +00:00
Albrecht Schlosser
16774ddc4e Rename test/help demo program to test/help_dialog.
This change avoids a name conflict with CMake's auto-generated target 'help'
for "Unix Makefiles", "Ninja", and supposedly other generators as well.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-08 02:06:52 +00:00
Albrecht Schlosser
759d2f1c99 Fix line number alignment in Fl_Text_Display/Editor (STR #3363).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-02-04 21:56:38 +00:00
Manolo Gouy
461750c38e X11 platform: Add optional use of the pango library to draw text, gaining the possibility to draw text in any script supported by Unicode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-21 15:05:02 +00:00
Manolo Gouy
d37f37e66e Mention Fl_Surface_Device::push_current(new_surface) and Fl_Surface_Device::pop_current().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-10 14:40:00 +00:00
Albrecht Schlosser
780755e46a Fl_Text_Display documentation clarifications.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-05 17:47:02 +00:00
Albrecht Schlosser
b6bd386231 Fl_Text_Buffer constructor: fix "requestedSize ignored in mGapEnd".
mGapEnd should reflect the total allocated size after the constructor
is executed, i.e. the text buffer is empty. This was not the case.

See thread "Fl_Text_Buffer constructor bug" (2016-12-05) in fltk.general.
The bug was harmless, but the pre-allocation did not work as expected, i.e.
the pre-allocated buffer size was allocated but effectively ignored later.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-05 17:03:29 +00:00
Manolo Gouy
0701204518 Mention new --enable-print configure option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-12-03 06:59:26 +00:00
Albrecht Schlosser
6fc796738d Fix build with configure --enable-cairo --enable-cairoext.
Add missing #include <config.h>, see this report in fltk.general:

  https://groups.google.com/forum/#!topic/fltkgeneral/x80qQ6wt0s4


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-25 15:15:09 +00:00
Albrecht Schlosser
8cdfb926f2 Reformat CHANGES and update dependencies (make depend).
Saved a few columns in CHANGES so more text fits in 80 columns.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-12 13:09:20 +00:00
Albrecht Schlosser
d5295c3bf7 Start branch-1.4 after rename from branch-1.3-porting.
Added FLTK 1.3 CHANGES file as CHANGES_1.3, updated CHANGES to start
release info (changelog) for FLTK 1.4.

You can update the svn configuration of your working to get this
branch if you previously used branch-1.3-porting:

 $ svn switch http://seriss.com/public/fltk/fltk/branches/branch-1.4

If you used branch-1.3 previously we recommend to checkout the new
branch-1.4 in a new working copy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-11 17:55:44 +00:00
Albrecht Schlosser
d039f6f7bc Add new CHANGES file for FLTK 1.4.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-02 03:01:58 +00:00
Albrecht Schlosser
2ddf594bc3 Document configuration of ABI version, prepare CHANGES for 1.4.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-02 02:59:32 +00:00
Manolo Gouy
25fc85190e Mac OS: Fix for STR#3268 where a fullscreen window could become relocated
behind the menu bar and dock.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-21 13:38:49 +00:00
Manolo Gouy
9c2a7e4a72 FLTK code and fluid-generated code can be used in static initializers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-19 07:27:11 +00:00
Manolo Gouy
fc89c11ddf Mention the --enable-x11 configure option is now allowed on the Mac OS platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 17:34:47 +00:00
Albrecht Schlosser
14669685d8 Fix Fl_Browser if text argument to some methods is NULL (STR #3269).
Fl_Browser::add(), Fl_Browser::insert(), and Fl_Browser::text() didn't
test if the provided text argument was NULL, although this was explicitly
allowed in the documentation.

Also applied some minor documentation fixes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-15 10:16:56 +00:00
Manolo Gouy
22af09dae7 Mac OS: support for high resolution OpenGL windows.
Methods Fl::event_x_pixel() and Fl::event_y_pixel() committed at r.10941
are removed. Instead method Fl_Gl_Window::pixels_per_unit() is added.

The documentation explains in more detail how to write cross-platform
FLTK code supporting high resolution OpenGL windows on retina displays.

The examples/OpenGL3test.cxx app exercises Fl_Gl_Window::pixels_per_unit().

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10945 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-02 09:59:37 +00:00
Manolo Gouy
82f68ac756 Fixed typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10943 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-01 16:29:23 +00:00
Manolo Gouy
6c9ceb3ab0 Mention new Fl_Gl_Window::pixel_w(), Fl_Gl_Window::pixel_w(),
Fl::event_x_pixel(),  and Fl::event_y_pixel() functions.
Also, put tab at start of lines, as required.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-12-01 16:28:17 +00:00
Manolo Gouy
28355afa15 Mention addition of Fl_Mac_App_Menu::custom_application_menu_items()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-26 16:40:34 +00:00
Manolo Gouy
311bd8971e Mention Fl_Copy_Surface::draw_decorated_window().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-26 15:37:43 +00:00
Albrecht Schlosser
144c656360 Fixed missing image release as described in STR #2840.
Thanks to OP (Nikego) and Matt!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-07 00:11:45 +00:00
Albrecht Schlosser
d7d57f9113 Fixed copyright year, updated CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 15:45:41 +00:00
Manolo Gouy
2f7e5487b2 Added OpenGL 3 support in 1.3.4
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-11-03 14:51:55 +00:00
Manolo Gouy
07e37d23d5 Added message about Fl_Image_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-10-19 13:16:04 +00:00
Manolo Gouy
3d5a8e5588 Added several items since FLTK 1.3.3 was released.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-10-19 12:11:48 +00:00
Manolo Gouy
5cc6913cb7 Support for Mac OS 10.11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-08-23 13:58:07 +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
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
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
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
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
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
Manolo Gouy
d4867caf80 Fix STR #3176: possible bad border effect when a set of radio menu items is located first in its menu.
Fl_Menu_Item::set_only() is deprecated and replaced by Fl_Menu_::set_only(Fl_Menu_item*).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-22 07:08:04 +00:00
Lauri Kasanen
c91e48149b Add support for accelerated alpha blending under X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-16 18:12:28 +00:00
Manolo Gouy
066f718674 Mentioned Fl_Shared_Image::scale() and BSD-style printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-12 15:33:30 +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
Manolo Gouy
372e707093 Added mention to compression techniques when drawing images to PostScript.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-02 08:01:35 +00:00
Albrecht Schlosser
fd7cfbb6f0 Update CHANGES file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-17 16:24:15 +00:00
Lauri Kasanen
d88bf15117 CHANGES: Fix the indentation in two 1.3.4 items
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-09 09:27:52 +00:00
Manolo Gouy
ff316fa357 Fixed reading of .pbm image files: the black & white pixels were reversed,
and P4-formatted files of width a multiple of 8 were handled incorrectly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-07 05:52:38 +00:00
Manolo Gouy
b079e52ada Mention that class Fl_Gl_Window now uses cocoa rather than the deprecated AGL on the Mac OS X platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-01-19 13:00:53 +00:00
Albrecht Schlosser
80bd905981 Fl::delete_widget() now hides a widget/window if it is shown (visible_r()).
This is useful (necessary) because in old (pre 1.1.6) which  didn't have
Fl::delete_widget() users would have called 'delete window', which would
have hidden a window and destroyed it as well. Now the widget/window is
hidden immediately, whereas it is destroyed delayed, which comes much
closer to the previous behavior and is useful for better window close
detection in Mac OS X cmd-Q handling.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-15 15:23:56 +00:00
Manolo Gouy
410f9e8e0e List new support for true subwindows on the mac.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-11-11 16:16:09 +00:00