Commit Graph

4686 Commits

Author SHA1 Message Date
Greg Ercolano
5ecca683a3 Tree demo: removed unused cruft, fixed custom icons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 22:39:00 +00:00
Manolo Gouy
3ca2074427 Fl::set_fonts() under Mac OS adds now all available fonts sorted in alphabetical order.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 22:29:39 +00:00
Manolo Gouy
601e2a5e3d Fix STR #2564: X11 preferred font encoding should now be iso10646-1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 18:03:43 +00:00
Manolo Gouy
ece0c2a57b Fixed Fl_PostScript_Graphics_Driver::rtl_draw() that didn't work well under MSWindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 13:01:45 +00:00
Manolo Gouy
cbaecee14e Minor improvement of the Fl_Graphics_Driver::text_extents() function used only if
a graphics driver does not properly implement text extents calculation.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 07:36:29 +00:00
Manolo Gouy
f5f0cf9908 Added scale(), translate(), and rotate() functions to the Fl_Graphics_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8443 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-18 17:22:43 +00:00
Manolo Gouy
199b32d921 Added virtual width(), height(), descent() and text_extents() functions to the Fl_Graphics_Driver
class to prepare for the future definition of graphics drivers that fully deal with text measurement.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-18 13:39:48 +00:00
Albrecht Schlosser
2c129b4833 Added a default window title function for common dialogs (STR #2562).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-18 08:52:48 +00:00
Manolo Gouy
dea2763983 Fix STR #2566: under Xft, the PostScript font size is set at value between the FLTK size
and the Xft-reported font height.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-17 14:29:44 +00:00
Michael R Sweet
30fd2c5bdf Clean up compile warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-16 21:15:37 +00:00
Manolo Gouy
162895ad57 Improved calculation of text width and height when using the PostScript graphics context
under Mac OS and MSWindows.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-16 15:17:01 +00:00
Manolo Gouy
3adac027c4 Improved calculation of text width and height when using the PostScript graphics context
under X11 or Xft.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-16 13:47:03 +00:00
Albrecht Schlosser
eb0b154ffd Fix for STR #2313 (SunOS scandir exception) and avoid double check of
scandir() if the POSIX compatible header was found.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-16 12:33:56 +00:00
Manolo Gouy
f924432dd5 Changed fl_height(), fl_descent(), fl_width() and fl_text_extents() so they use the display
graphics driver even if fl_graphics_driver is another driver, say, to PostScript.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 21:19:41 +00:00
Manolo Gouy
01085aca4b Added #include <config.h> to get access to USE_X11.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 17:29:39 +00:00
Manolo Gouy
2549a38b82 Removed use of USE_X11 that was not defined.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 17:08:09 +00:00
Manolo Gouy
37362e255b About PostScript text output under X11: Non-Xft fonts can have a different size from that required.
Give to the PostScript font the same size as that used on the display.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 15:54:06 +00:00
Manolo Gouy
63dbae51d2 Removed unused declaration of global variable fl_fontsize.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 15:47:22 +00:00
Michael R Sweet
2ec2b4eda2 Add clang pseudo-target.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 15:29:03 +00:00
Michael R Sweet
f8697125f4 Merge changes from JPEG 8c (released Jan 16, 2011)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8426 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 15:28:27 +00:00
Michael R Sweet
1216e9530f Update JPEG library to v8b.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 15:25:53 +00:00
Manolo Gouy
5d1669e273 Corrected PostScript show_pos_width procedure that writes text with pre-determined width:
division by length is replaced by division by (length/2 - 1), the correct value.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 13:48:06 +00:00
Manolo Gouy
f397c36c06 Fix STR #2565: initilization of the size field of Fl_Font_Descriptor's had been removed
by mistake when removing global variables.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-15 09:29:43 +00:00
Albrecht Schlosser
884aba6086 Fix threads configuration on Windows (Cygwin/MinGW), so that we don't
try to find libpthread, unless we use Cygwin with the Cygwin dll,
since Windows always uses native threads.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-14 18:11:15 +00:00
Greg Ercolano
97847cfe26 Enlarged pulldown menu choosers slightly.
(They were too small vertically, cutting off font descenders under linux.)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-13 17:31:54 +00:00
Greg Ercolano
d0d159d17d Selection color fixes, widget screenshot added to top of docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-13 17:30:17 +00:00
Greg Ercolano
83fab9118e Fix problem with text running off edges of buttons. (linux/xft, osx..)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-13 16:13:04 +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
Manolo Gouy
f028f2ec9d Fix STR #2560: use bullet instead of asterisk to hide secret input.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-11 16:37:06 +00:00
Manolo Gouy
1125cf5385 Fix STR #2559: go correctly fullscreen when several displays on X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8412 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-11 12:24:16 +00:00
Manolo Gouy
d36013aed9 Allow to use non-standard fonts with the PostScript backend: in that case all characters
are reproduced using a bitmap.
Fixed the bitmap-based text output for the X11-no-Xft case.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-10 18:41:12 +00:00
Matthias Melcher
e84d65fd33 Igonore.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8407 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 21:45:36 +00:00
Matthias Melcher
43a66af316 Igonore.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8406 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-08 21:45:15 +00:00
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