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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Manolo Gouy
b42f5ebdbf
Fl_Paged_Device::print_window_part() doesn't need special WIN32 processing any more.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 17:17:54 +00:00
Manolo Gouy
535f0c2d3b
Introduction of the Fl_Printer class requires all member functions of class
...
Fl_Paged_Device to be virtual. That is done here.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 15:53:23 +00:00
Manolo Gouy
1993f08a33
Added Fl_Printer::add_image(const ichar*) needed for correct memory usage by
...
Fl_Paged_Device::print_window_part().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-31 13:02:55 +00:00
Greg Ercolano
2c5006563f
Fl_Tree API breaking changes (we haven't released 1.3.0 yet..):
...
Fl_Tree::labelsize() -> item_labelsize() -- TO AVOID COLLISION WITH Fl_Widget::labelsize()!
Fl_Tree::labelfont() -> item_labelfont() -- TO AVOID COLLISION WITH Fl_Widget::labelfont()!
Fl_Tree_Prefs (internal) changes:
Fl_Tree_Prefs::fgcolor() -> labelfgcolor() -- for consistency with above
Fl_Tree_Prefs::bgcolor() -> labelbgcolor() -- for consistency with above
Fl_Tree_Prefs::selectcolor() removed -- uses Fl_Widget::selection_color() instead
Fl_Tree_Prefs::inactivecolor() removed -- was unused; inactive color procedurally calculated
Other Fl_Tree mods:
o Fixed bug with select_all(item) and deselect_all(item)
(they were not limiting themselves to children of specified item)
o Fixed bug with item not drawing in its /own/ bgcolor when item selected
o Fl_Tree uses the Fl_Widget::selection_color()
o All methods that deal with 'font types' changed int -> Fl_Font
o All methods that deal with 'font sizes' changed int -> Fl_Fontsize
o Added needed methods to Fl_Tree for accessing colors:
item_labelfgcolor() -- access default fg color used for new items
item_labelbgcolor() -- access default bg color used for new items
tree_connectorcolor() -- access the connector line color
o Small doxygen comment adjustments and general clarifications
o test/tree demo modified to include testing of new label color methods, cleanup
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 20:22:06 +00:00
Manolo Gouy
0e55ee68d0
Minor change in Doxygen docs of Fl::wait() functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-30 08:36:33 +00:00
Manolo Gouy
a1d85a742b
Fix STR #2549 : error in sizeof arithmetic
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 16:20:16 +00:00
Greg Ercolano
909cf0061b
Fixes STR#2547.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-29 06:00:46 +00:00
Manolo Gouy
8181b42f88
Removed compilation warning for pre-10.5 Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 18:10:39 +00:00
Manolo Gouy
5e50478380
Fix STR #2541 . The code is unchanged for Mac OS and MSWindows because the bug
...
does not occur there.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-28 17:38:07 +00:00
Manolo Gouy
4df0320ec6
Clarified the Doxygen docs of fl_utf8toUtf16() and fl_utf8towc() where there was some mixup.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 17:27:52 +00:00
Manolo Gouy
8d4dea4bc0
Allow easier modification of the block size for character widths.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-27 16:55:43 +00:00
Matthias Melcher
60eae78679
Slightly changed the event dispatch functions to allow for exception handling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-26 19:14:38 +00:00
Matthias Melcher
5e0710fcd0
Stupid bug removed
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 22:16:49 +00:00
Matthias Melcher
7b832a512e
Added Fl::event_dispatch() which can add a function to FLTK that monitors all events before they reach Fl::handle(). STR 2532
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-25 19:54:09 +00:00
Manolo Gouy
ece27e347c
Fix STR #2530 (Mac OS only)-continued. Change to allow display of the surrogate zone of UniChar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:58:44 +00:00
Manolo Gouy
37180e08b3
Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths-continued:
...
two 256->512 substitutions were missing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 21:00:17 +00:00
Manolo Gouy
e3a96057c1
Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths
...
(instead of 256x256) because this reduces greatly the opening time of windows
with several new fonts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 20:05:34 +00:00
Matthias Melcher
fe25f19767
Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 17:04:22 +00:00
Manolo Gouy
f9363c16d0
Fix STR #2530 (Mac OS only). Implements a fast algorithm for fl_width() that memorizes the
...
width of all characters the first time they are seen and computes the width of a string
as the sum of the widths of its characters. Char widths are memorized in 256 blocks of 256 widths;
only blocks used in some text are allocated and computed. The width of characters beyond
U+FFFF is computed anew each time. Strings are drawn using core text, after having
deactivated character kerning, so their width is the sum of the widths of their characters.
This is the same algorithm as used for WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-24 15:30:14 +00:00
Albrecht Schlosser
1c38a0f2f7
Tweaks to silence more MS compiler warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-22 22:38:55 +00:00
Manolo Gouy
0a346cf536
Removed duplicate definition of font_mx variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-21 16:05:46 +00:00
Manolo Gouy
a306fe46d3
Redefined fl_xid() as an inline function when used inside the FLTK library.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 13:22:30 +00:00
Manolo Gouy
30c1eed80b
A better solution to the crash when printing the mandelbrot demo under WIN32.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-20 12:55:50 +00:00
Manolo Gouy
b015837b2a
Removed gcc 4.4 compiler warning:
...
Fl_Preferences.cxx:1322: warning: ignoring return value of
‘size_t fwrite(const void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-19 06:33:48 +00:00
Manolo Gouy
39ae4651bf
Removed compiler warning:
...
Fl_PNG_Image.cxx:108: warning: 'fp' may be used uninitialized in this function
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-19 06:29:06 +00:00
Albrecht Schlosser
96c410dceb
Hiding the Fl_X class under WIN32 (STR #2522 ).
...
Applied Manolo's patch, modified to use FL_INTERNALS for
explicit request in user code to expose class Fl_X.
Also changed X11 and Mac OS to use FL_INTERNALS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 23:52:32 +00:00
Albrecht Schlosser
b841d90d3c
Documentation updates (remaining fix for STR #2520 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 22:42:34 +00:00
Manolo Gouy
0ae1054d07
Fix 2nd part of STR #2520 : added Fl_PNG_Image in-memory constructor.
...
This constructor has a 3rd argument, the size of the array holding the in-memory PNG image.
This allows the constructor to check for errors in the image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 20:51:12 +00:00
Manolo Gouy
5af1531cd2
Fl_File_Chooser: removed the "Show hidden files" button for WIN32 where it's not relevant.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-17 09:39:14 +00:00
Manolo Gouy
5593c60d50
Fix STR #2524 : no more NSAutoreleaseNoPool messages.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 21:05:29 +00:00
Manolo Gouy
253dfe93c1
Fix STR #2525 . The bug was PPC-specific.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 19:44:12 +00:00
Manolo Gouy
e2ddb1715c
Fl_File_Chooser: added a "Show hidden files" button. Hidden files aren't shown
...
by default now. This removes a TODO clause.
Fl_Native_File_Chooser: removed the hack that added the "Show hidden files" button, and
made the "file already exists" warning message localizable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:26:51 +00:00
Manolo Gouy
6f9f141462
Replaced "foreign language" by "another language" in doc.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-16 18:16:35 +00:00
Ian MacArthur
bf52399372
Another tweak to fl_init_xim() as proposed by Denton Thomas.
...
Should not change the behaviour from the previous fix, it is
just a bit tidier!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-15 22:47:30 +00:00
Ian MacArthur
d87cc866fc
This is an attempt to resolve the potential leaks identified in fl_init_xim() by
...
Denton Thomas.
This is not quite the patch as he proposed it, but I *think* whay I have done
is OK.
Seems to be OK for me anyway... Needs testing by others of course!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-14 22:06:41 +00:00
Manolo Gouy
1a0b262f99
Fix memory leak in fl_new_ic() reported by Denton Thomas.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-14 11:48:18 +00:00
Manolo Gouy
172e368434
Fixed WIN32 crash when printing with the test/mandelbrot demo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 20:05:32 +00:00
Greg Ercolano
8999b88bd8
Fixes STR #2519 ; problems building on VS6.
...
Verified with VS7, which was giving the same errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 17:03:49 +00:00
Albrecht Schlosser
0c896c024c
Fixed typos, added \todo ... (see STR #2520 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-13 16:50:36 +00:00
Albrecht Schlosser
129ae3ecd0
Deleted unused files in src/xutf8
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 10:28:53 +00:00
Albrecht Schlosser
b4f08251b1
Updated dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:36:56 +00:00
Manolo Gouy
77204efa1c
X11 specific: made class Fl_X visible only if FL_LIBRARY is defined before compilation,
...
as discussed in fltk.development ("Fl_X not exported on mac in 1.3").
Tested OK with configure+make and CMake.
At this point, the FL_X class remains to be hidden on the WIN32 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-12 09:24:03 +00:00
Albrecht Schlosser
b4c15eb8ae
Fixed a few GNU compiler warnings (-pedantic): C++ comments in C files,
...
extraneous ';' and ',' and an invalid cast.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:52:38 +00:00
Matthias Melcher
9c0c450cbd
Fixed accidental commit of some eperimental dead key preview code. STR 2515
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 20:50:36 +00:00
Matthias Melcher
b55ac81f51
Attempt to fix the dead_key/special_key issue.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 16:43:52 +00:00
Albrecht Schlosser
7ada14f3b7
Reverting unintentionally committed experimental code in r8256. Sorry.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:40:26 +00:00
Albrecht Schlosser
313352b55f
Updated documentation/README to reflect the new distribution of
...
pre-generated documentation as separate downloads.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-11 13:06:15 +00:00
Manolo Gouy
7cc7abbd12
Removed compilation warning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 16:40:38 +00:00
Manolo Gouy
2dadc8cb54
First step to support CJK input under Mac OS: implementation of the function
...
firstRectForCharacterRange of the NSTextInput protocol.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 16:07:13 +00:00