Manolo Gouy
5dab14dafa
Fix STR #2558 : use more consistently FL_NORMAL_SIZE to define the default font size
...
of interface elements.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 20:59:46 +00:00
Manolo Gouy
95db2790d6
To fix the crash reported by Corvid in STR #2550 : crash if fl_text_extent is called without a font.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 20:37:53 +00:00
Manolo Gouy
b667f4664f
To fix the crash reported by Corvid in STR #2550 : crash if fl_text_extent is called without a font.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 18:12:09 +00:00
Manolo Gouy
9f00704be8
Removed static global variables fl_font_ and fl_size_ to have separate font information
...
for each graphics driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 16:13:28 +00:00
Ian MacArthur
e2653ead78
Correct a few minor typos in xutf8/utf8Wrap.c and add comments to (attempt to) better explain what I have added...
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 10:06:19 +00:00
Ian MacArthur
40fab4c769
Set properties on xutf8/utf8Wrap.c
...
It doesn't look as if the props are set on any of the xutf8 files, actually.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 09:53:51 +00:00
Ian MacArthur
33af4e4ba5
Attempt to fix STR #2550 to make fl_text_extents work in Xlib-only
...
(i.e. non-XFT) X11 builds.
This appears to be working now, though I can not test it fully, so we
need more feedback.
In particular the setting of the dx param is certainly wrong, but
works fine in general cases. I think.
Also, I suspect it may behave badly in the face of RtoL text rendering
but I think we have other problems in that area anyway...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 22:22:16 +00:00
Manolo Gouy
d140f4f3be
Fix STR #2557 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 16:04:59 +00:00
Albrecht Schlosser
97bafa2e04
More cross-compiling features in configure: using AC_PATH_TOOL instead of
...
AC_PATH_PROG for ar and windres to get the cross-tools' paths.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 14:30:30 +00:00
Manolo Gouy
c02c04ede4
Fix STR #2556 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 13:51:17 +00:00
Manolo Gouy
cb902eebe3
Replaced global variable fl_fontsize by fl_graphics_driver->font_descriptor().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8395 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 13:49:34 +00:00
Manolo Gouy
db3e571637
Removed unused member of class Fl_Font_Descriptor under Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-07 08:53:28 +00:00
Manolo Gouy
dc8edfc216
Fix for STR #2543 : Fl::lock() function now returns an int that allows to detect whether
...
threading is available on the platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 19:46:11 +00:00
Manolo Gouy
75dea1bd8d
Fix for STR #2552 : focus was lost from within a tab when back from visiting another window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:48:36 +00:00
Albrecht Schlosser
84d0db1318
Removed superfluous -mno-cygwin from MinGW builds and corrected spelling
...
of "MinGW" and "Cygwin", where appropriate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:46:40 +00:00
Albrecht Schlosser
dce0fbe6ef
More dependency updates (makedepend files).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:41:45 +00:00
Manolo Gouy
1e26d2db61
Removed uses of Fl_Native_File_Chooser_{MAC,WIN32}.H that no longer exist.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:08:08 +00:00
Manolo Gouy
17f80015dc
Removed dependencies from Fl_File_Chooser_FLTK.H that no longer exists.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 14:00:36 +00:00
Manolo Gouy
6a5feafe23
Replaced global variable fl_color_ by a private member of the Fl_Graphics_Driver class,
...
and a public getter to it: Fl_Graphics_Driver::color().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8384 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 12:32:23 +00:00
Albrecht Schlosser
5e7232e776
Janitorial code fixes: braces, indenting, FLTK coding standard.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 12:20:16 +00:00
Manolo Gouy
e552ae319a
Moved the Doxygen doc of class Fl_Mac_App_Menu from mac.H to x.H so Doxygen
...
displays correctly that #include <x.H> is needed for this class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 10:24:23 +00:00
Manolo Gouy
d4007d5b06
Replaced /* \file by /** \file so Doxygen sees it.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-06 10:07:28 +00:00
Matthias Melcher
b661be2778
Distille the Native File Chooser files down into a single file. I would like to avoid that the common API runs out of sync between platforms (no code doubling - there was already a mismatch with 'const'), and that the users may wonder which file to include. Please check this on WIN32 and Unix. It does work on OS X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-05 22:35:51 +00:00
Greg Ercolano
46518adf58
Fixes problem with doxygen docs showing incorrect #include reference
...
at top of docs that was confusing users into #include'ing the wrong file.
Problem described here: http://fltk.org/newsgroups.php?gfltk.development+v:11617
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-05 17:45:00 +00:00
Greg Ercolano
b4e27fb943
Prevent loading of unistd.h on WIN32 platforms.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-05 17:09:21 +00:00
Albrecht Schlosser
e567a23563
FL/Fl_Window.H must be included always (not only in the FL_INTERNALS part).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-05 16:55:04 +00:00
Manolo Gouy
777ee1b822
Removed global variables fl_font_ and fl_size_ that are now distinct for each graphics device.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-05 13:54:56 +00:00
Manolo Gouy
668dfd109f
Fix STR #2535 : clipping + coordinate transformations are now managed separately for each
...
surface device.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-04 23:32:53 +00:00
Manolo Gouy
31bbbf7ae6
Removed the requirement of declaring class Fl_PostScript_Graphics_Driver friend of
...
class Fl_Graphics_Driver. This is undesirable because it obliges a user (e.g., Mingodad
and his PDF driver) who develops a new graphics driver to change the FLTK source code.
Just declaring font() public instead of private is enough.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-04 16:46:41 +00:00
Manolo Gouy
7c932c25d6
Added the possibility to call Fl_Paged_Device::scale(factor) with a single argument.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-04 09:17:45 +00:00
Manolo Gouy
2251609ab3
Fix STR #2553 : in function fl_width(unsigned), the SelectObject() statement was
...
put before making sure we have a valid gc, which was wrong.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-03 23:00:30 +00:00
Manolo Gouy
fe367d1309
Moved the initializations of Fl_Mac_App_Menu class fields to file Fl.cxx for Doxygen use.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-03 11:11:31 +00:00
Manolo Gouy
9bca5472d5
Corrected typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-03 09:31:51 +00:00
Manolo Gouy
8072ef8ce8
Replaced a bunch of delete by delete[] where it's legitimate.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 18:39:34 +00:00
Manolo Gouy
40624df4a9
Removed iff's from Doxygen comments.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 17:53:14 +00:00
Manolo Gouy
18156dfb30
Removed global variable fl_surface that was not very useful because equivalent
...
to Fl_Surface_Device::surface().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 12:42:47 +00:00
Manolo Gouy
bb29437427
Removed global variable fl_display_device that was not very useful because equivalent
...
to Fl_Display_Device::display_device().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 11:29:18 +00:00
Manolo Gouy
864918b6b2
Minor change in Fl_System_Printer constructors: use the same graphics driver as the display.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-02 09:55:47 +00:00
Manolo Gouy
816fc3b971
Mac OS only: added class Fl_Mac_App_Menu to support localization
...
of the application menu. Added corresponding Doxygen doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 21:31:57 +00:00
Greg Ercolano
073e051589
Mods to examples Makefile for windows mingw/msys builds.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 19:10:13 +00:00
Manolo Gouy
3204979d8b
Some Doxygen doc cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:42:04 +00:00
Manolo Gouy
b313a441cd
Some Doxygen doc cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:41:04 +00:00
Manolo Gouy
e7813bd7dc
Some Doxygen doc cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 15:05:41 +00:00
Greg Ercolano
7faf669422
Documentation fixups, code examples added.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 14:13:18 +00:00
Manolo Gouy
348e3367d9
Minor code simplification.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 12:43:31 +00:00
Manolo Gouy
45e539fff8
fl_draw_image() on Mac OS and to a printer requires the image data to be kept until the
...
page is finished. Thus, we now duplicate this data when the output is a printer, so the
caller of the function does not have to take into account this Mac OS specificity.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 10:13:54 +00:00
Greg Ercolano
2192b8aed2
Separated tree and tree_item methods.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 03:27:23 +00:00
Greg Ercolano
9510d1d52b
Fixes to help build on SGI.
...
Mainly: problem with C++ style comments that were in C code and headers.
SGI C compiler / pre processor no grok C++ comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 01:06:27 +00:00
Greg Ercolano
5759f3151f
Avoid non-ansi scoping issue with variables defined inside for() loops.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-01 00:08:45 +00:00
Manolo Gouy
7531d0e95f
Some Doxygen doc fine tuning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 18:04:09 +00:00