Commit Graph

4758 Commits

Author SHA1 Message Date
Albrecht Schlosser
58c94b9b33 Suppress warnings in fl_init_xim. Only the very first warning message
will be issued (STR #2578).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-26 14:14:50 +00:00
Manolo Gouy
10a07138b8 Fixed two doc typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-26 08:23:30 +00:00
Manolo Gouy
b693eac483 Fix STR #2516: under MSys, the FLTK_DOCDIR config.h variable did not allow
fluid to find its help files even if they are correctly installed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 22:19:09 +00:00
Albrecht Schlosser
d98a0fede6 Removed extraneous '\n' from Fl::warning() calls in src/Fl_x.cxx.
Note: '\n' is added in the default Fl::warning() handler function and should
not be in the format string.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 09:15:57 +00:00
Albrecht Schlosser
94e5f2e1fc Un-inlined Fl_Window::icon() methods to make them easier to extend w/o
breaking the ABI. See discussion in STR #2563.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-25 08:44:47 +00:00
Manolo Gouy
27987c6ee0 Made struct matrix a subclass of Fl_Graphics_Device class to avoid collision
with application-defined names.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 18:02:11 +00:00
Manolo Gouy
278c821ff4 Mac OS only: allows to print a menu window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 16:58:00 +00:00
Manolo Gouy
8d9f90e416 Mac OS only: Added the architecture flags to the dynamic library-creating command
in configure.in. Also, applied suggestion in "Fixing configure.in for OSX universal builds"
from the fltk.development forum that architecture flags are not transmitted from
configure to the fltk-config script. This brings 2 benefits:
- A universal library can be prepared, and then used to build applications of any sort
of architectures.
- Makefiles using non-Apple compilers that don't know the -arch option can call fltk-config.
This new behavior in now made clear in file README.OSX.txt.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-24 10:27:33 +00:00
Manolo Gouy
d8822aa74a Fl_Device: removed class_name(char *) member function and set class_name(void) virtual.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-23 14:36:18 +00:00
Manolo Gouy
5a6da14af3 Fl_Text_Display: avoid blinking by painting the full widget background only to the printer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-23 11:47:51 +00:00
Manolo Gouy
6d38eb67bc Fl_Text_Display widget: added a call to paint all the widget area with its background color
when it's fully redrawn, to avoid thin grey lines that appear when this widget is printed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-22 17:50:25 +00:00
Manolo Gouy
6e24f93c1a Corrected typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-22 09:41:26 +00:00
Fabien Costantini
cc79642a94 Say goodbye to weird comctl32.lib link clause in vc20xx builds. Now embeds it if it is supported, so no need to specify more than fltk libs in new fltk projects ! Makes it similar to other platforms linkage options and will probably improve learning curve of fltk new users. Improvements could be implemented for even easier/transparent linkage (fltk libs, fltk dlls?) of fltk apps.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 18:33:46 +00:00
Fabien Costantini
c7fff91435 Fixed FL_EXPORT missing would fail MSVS builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 16:36:10 +00:00
Manolo Gouy
a998c478d5 Removed inadequate use of fl_color() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 14:05:51 +00:00
Manolo Gouy
693d12ee88 Better horizontal positioning of right-to-left text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-21 13:39:08 +00:00
Manolo Gouy
287f5684ee Fix STR #2569 cont'd: put back MSWindows version of Fl_Native_File_Chooser::filters()
that had been erroneously removed by r.8378 that merged include files (it was
previously an inline function).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-20 21:46:11 +00:00
Manolo Gouy
c8ae58db48 Fix STR #2569: put back Mac OS version of Fl_Native_File_Chooser::filter_value() and filters()
that had been erroneously removed by r.8378 that merged include files (these were
previously inline functions for Mac OS only).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8453 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-20 21:28:55 +00:00
Manolo Gouy
ea3e3dae9b Fl::set_fonts() under Mac OS: it seems that we want the full name rather than the PostScript
name for each font.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-20 08:25:26 +00:00
Manolo Gouy
f18ac86bee Fl::set_fonts() under Mac OS: added missing delete statement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-20 08:02:50 +00:00
Greg Ercolano
5bbcebe9cd Small mod for NULL behavior of show_item(item,yoff). (STR#2517)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 22:50:39 +00:00
Greg Ercolano
723fe666cf Document NULL item behavior, small code mods for same.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-19 22:40:31 +00:00
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