Commit Graph

1243 Commits

Author SHA1 Message Date
Albrecht Schlosser
463b3e5d9d Fix blocks demo keyboard handling, add new shortcut.
The blocks demo was unintentionally intercepting ctrl/+ which was
introduced in FLTK 1.4.0 to change scaling for HiDPI screens. Now this
is separated: use ctrl/+/-/0 to change scaling, use '+' alone to change
the game level.

The new keyboard shortcut ALT+SHIFT+H allows users to reset their high
scores without editing the preferences file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-25 18:44:19 +00:00
Albrecht Schlosser
7dda366286 Remove documentation of STR #3374 from CHANGES.
We don't need to document STR fixes of bugs that have been introduced
and fixed in FLTK 1.4.0 svn since this is not a regression since 1.3.x.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 15:34:12 +00:00
Manolo Gouy
65b334777f Added support for MacOS 10.13 "High Sierra".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-18 05:54:25 +00:00
Albrecht Schlosser
0c210ae867 Introduce Fl_Group::bounds(), deprecate Fl_Group::sizes().
The new method Fl_Group::bounds() replaces Fl_Group::sizes() whose
internal array structure was not documented.

Fl_Group::bounds() uses the new and documented class Fl_Rect for its
internal structure.

src/Fl_Tile.cxx now uses bounds() instead of sizes().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-07 19:16:40 +00:00
Albrecht Schlosser
9ee09b1f90 Fix Fl_Browser background and text color parsing (STR #3376).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-04 14:39:05 +00:00
Manolo Gouy
c6cb25aa1b Fix typo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-02 09:18:59 +00:00
Manolo Gouy
7b52aafcec Document new HiDPI support under the X11 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-02 09:13:47 +00:00
Albrecht Schlosser
c364bb73f6 Make some methods of Fl_Tabs protected and/or virtual (STR #3211).
Patch proposed by Teklad (STR #3211, file #7):
  http://www.fltk.org/strfiles/3211/Fl_Tabs.H.patch
with minor modifications and adjustments for FLTK 1.4.0.

Method which() is now also virtual, as suggested by guyben in comment #24.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-05-22 14:34:38 +00:00
Albrecht Schlosser
a1d3936554 Allow to disable shadows in Fl_Clock and derived widgets.
As discussed on 2017-05-15 in fltk.general, thread "Fl_clock".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-05-15 15:30:52 +00:00
Manolo Gouy
660a65ed01 Mention fix for STR#3374
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12219 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-04-12 16:16:42 +00:00
Albrecht Schlosser
cd10796251 Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-04-11 21:53:50 +00:00
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