Albrecht Schlosser
8ed93f0065
fix a typo and indenting.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05 14:30:19 +00:00
Fabien Costantini
8809c5d65d
Fixed build error in msvs because Fl ref to FULLSCREEN enum was not accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05 05:12:30 +00:00
Manolo Gouy
37ea8ba9e6
Mac OS: canBecomeKeyWindow returns NO also for menu windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-04 19:53:11 +00:00
Manolo Gouy
cb32ceaf4d
Fix STR#2818: (Mac OS) tooltip window takes focus away from input field.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-04 16:33:09 +00:00
Ian MacArthur
1e5c19b087
Maybe fix for the Fl_Pixmap issue building 9310 on mingw/WinXP.
...
PLEASE check this is OK, I don't have access to test systems here...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-29 13:45:11 +00:00
Manolo Gouy
ae4d6338b8
WIN32: Fl_Pixmap printing uses a global variable called win_pixmap_bg_color equal to the color
...
used for the pixmap background, and treats this color as transparent. FLTK assigns to this variable
a color unused by the processed pixmap. In theory this variable should be specific to each processed
pixmap. In practice, it's very unlikely that several values are needed. A new member variable is
added to the Fl_Pixmap object to hold this value. This member is made static if FLTK_ABI_VERSION
< 10302 for ABI compatibility. The correct thing, though, is for a non-static member.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-28 13:19:33 +00:00
Manolo Gouy
0b6f546b0f
Added support for the additional key of ISO keyboards (aka 102-key keyboards) named FL_Iso_Key.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-26 16:54:54 +00:00
Manolo Gouy
08ce2e07d3
Fix STR#2641: true fullscreen windows that cover all their screen including menu bar, task bar, dock.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-23 16:47:53 +00:00
Manolo Gouy
8cd98f5236
Mac OS: Allow keyboard input with borderless windows
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-22 13:58:38 +00:00
Manolo Gouy
32d4bc4099
Fix STR#2810: removed all uses of function Fl_Device::class_name().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-18 18:48:29 +00:00
Manolo Gouy
53ccc78759
Removed duplicated code when printing pixmap on WIN32.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-17 17:35:02 +00:00
Manolo Gouy
c41d3ac3f3
Fixed error in printed color of Fl_Bitmap
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9284 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-14 15:59:02 +00:00
Manolo Gouy
da96b83903
Moved a few local variable declarations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-14 09:51:22 +00:00
Manolo Gouy
7d0b5d05cb
Simplified Fl_Paged_Device::print_window() under Mac OS
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-14 08:49:36 +00:00
Manolo Gouy
f6cb583e27
Replaced fl_copy_offscreen_with_alpha() by Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha() and
...
fl_create_offscreen_with_alpha() by Fl_Quartz_Graphics_Driver::create_offscreen_with_alpha()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-12 11:55:50 +00:00
Manolo Gouy
4715e1593e
Use a new Fl_Quartz_Graphics_Driver or Fl_GDI_Graphics_Driver instance when printing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-12 09:39:17 +00:00
Manolo Gouy
c9303f2c83
Added needed initialization in Fl_Graphics_Driver constructor.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-11 18:58:55 +00:00
Manolo Gouy
de254a0070
Fixed error in vktab[] table.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-10 15:52:44 +00:00
Manolo Gouy
719f72b501
Mac OS: renamed compute_macKeyLookUp() to fl_compute_macKeyLookUp().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-10 08:45:44 +00:00
Manolo Gouy
739a6f89ae
Mac OS: the macKeyLookUp table is now computed at program start from the vktab table
...
by compute_macKeyLookUp() in file src/Fl_get_key_mac.cx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-09 21:35:45 +00:00
Manolo Gouy
c36a9992e3
Fix STR #2260 : OpenGL windows in Fl_Tabs don't hide when tabs are switched (Mac only)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-05 08:46:30 +00:00
Manolo Gouy
7c4e992977
Minor comment rewording
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-02 16:23:28 +00:00
Greg Ercolano
4ce583c0f8
Docs + cosmetics only.
...
> Added docs to utf8_input_filter() function
> Documented its variables
> Added comments to its code so it can be better understood in the future.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-01 14:22:15 +00:00
Greg Ercolano
4e934c01be
Fix STR#2808: corruption bug with Fl_Text_Buffer::insertfile().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-01 13:25:15 +00:00
Manolo Gouy
17d221bd34
Improved doc of Fl_PostScript_File_Device::start_job().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-03-01 08:48:36 +00:00
Greg Ercolano
e920c28d0b
Fix STR#2807: when(FL_WHEN_NEVER) was not working.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-21 00:34:27 +00:00
Manolo Gouy
435e7f5e23
Various fixes required by device virtualization in fl_vertex.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-17 09:47:04 +00:00
Manolo Gouy
477febec7b
Added missing initialization/deallocation of member variables of class Fl_Graphics_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-16 13:09:34 +00:00
Greg Ercolano
78e2cdf50b
fl_measure() doc clarifications for common use errors.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-02-04 17:24:47 +00:00
Greg Ercolano
9a4ef219de
Fl_Tree optimizations for selecting large trees (100k items).
...
Added _next_sibling and _prev_sibling to Fl_Tree_Item class to make
next_sibling() and prev_sibling() more efficient during item selection.
Used new FLTK_ABI_VERSION macro (as designed by Greg and Albrecht on fltk.dev) to protect the ABI breaking features.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-19 12:44:26 +00:00
Albrecht Schlosser
92d846caa4
Fixed Fl_Preferences documentation typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-18 11:39:57 +00:00
Manolo Gouy
c7b0467518
Remove compilation error under Mac OS 10.3
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-13 19:04:10 +00:00
Manolo Gouy
b8d34a254f
Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (cont'd).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-12 16:00:07 +00:00
Manolo Gouy
2d4cf9e26b
Some code simplifications.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-12 12:49:58 +00:00
Manolo Gouy
4be97ea19c
Fixed the use of FL_SUBMENU_POINTER in Fl_Sys_Menu_Bar objects (Mac OS-specific).
...
Modified the menubar demo program to exercise the Fl_Sys_Menu_Bar class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-01-11 16:16:31 +00:00
Greg Ercolano
aa0e4bb823
Small fix for vertical connectors between far away items, as noted by Christophe.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-25 17:51:50 +00:00
Greg Ercolano
fc135a498b
Optimizations for very large Fl_Tree's
...
(Adding 60k items took forever, and drawing them
caused wraparound drawing issues and scrolling slowness)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-25 01:10:45 +00:00
Greg Ercolano
a0be94eebe
Fix comment typo
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-25 00:36:11 +00:00
Albrecht Schlosser
7788e3d699
Fixed fl_round_box regression causing drawing artifacts (STR #2709 ).
...
Regression was from svn r8630 (STR #2615 ), adding fl_line_style() settings
that turned out to cause side effects on fl_round_box drawing and others.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-21 12:01:50 +00:00
Ian MacArthur
c4e1e39f6b
Per STR 2687, remove the old fltk-local scandir implementation which might
...
have been re-using "borrowed" code with inappropriate licensing.
NOTE: It is not expected that this makes any real difference, it
is assumed that all modern hosts actually provice their own
scandir implementation and that the code (now excised) was orpahned
a long, long time ago...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-21 10:42:14 +00:00
Ian MacArthur
367f563334
Fix typo in includes
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-08 09:58:51 +00:00
Manolo Gouy
900fe72b8a
Fixed the Doxygen comments of the Fl_Overlay_Window class.
...
The description of Fl_Overlay_Window ::draw_overlay() didn't appear in Doxygen,
and Fl_Overlay_Window::can_do_overlay() wasn't commented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-07 13:40:39 +00:00
Greg Ercolano
272475dde4
Fixing STR #2786 ; clipping problem with child FLTK widgets.
...
Replication: Run 'tree' demo, open '500 items' subtree, change 'connector width' to 100..
the "D2" and "ccc" buttons would overdraw the scrollbar. (Not the regular tree items)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-06 21:08:07 +00:00
Albrecht Schlosser
d250e21542
Fixed Fl_Input_::maximum_size() documentation and Fl_Input::replace()
...
to honor maximum_size() as number of allowed characters (STR #2747 ).
This was a hangover from FLTK 1.1, where the number of bytes was equal
to the number of characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-12-06 16:55:51 +00:00
Manolo Gouy
67fdcb8fa3
Fix STR #2779 : clang-detected error
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-29 14:41:33 +00:00
Manolo Gouy
eab4e1f2d5
Needed after r.9181 for the Gmsh program according to its author Christophe Geuzaine
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-29 11:50:18 +00:00
Albrecht Schlosser
05f669c9ce
Fixed a potential crash if Fl_Double_Window::flush() was called before show().
...
Thanks to Mathieu Peyrega for the patch in fltk.general [1] on Nov 14, 2011,
although I implemented it differently.
[1] http://www.fltk.org/newsgroups.php?gfltk.general+v:33946
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-28 12:32:56 +00:00
Manolo Gouy
a1a9dbd961
Improved the windowShouldClose message processing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-23 09:19:39 +00:00
Manolo Gouy
c78bc79001
Fix STR #2770 : menubar menus have problems near screen edges.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9183 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-22 16:58:19 +00:00
Manolo Gouy
d92f2d765b
Mac OS: fix possible crash when closing window with a callback that deletes it.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-22 14:48:47 +00:00
Manolo Gouy
1962c2b6ed
Fix STR #2775 . Under Mac OS, fixed some erroneous window move/resize.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-22 12:33:49 +00:00
Manolo Gouy
12a0cb308e
Fix STR #2769 : Mac OS crash during creation of non-modal window on secondary screen
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-14 17:10:28 +00:00
Manolo Gouy
74720fd205
Mac OS: better window positioning on secondary displays at creation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-14 15:15:03 +00:00
Greg Ercolano
6b1db04a80
Small fix: typo affected string length calc.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-13 09:13:26 +00:00
Greg Ercolano
7f556fde4a
Solve STR #2733 : MAX_PATH too small on Win32 (260 chars!)
...
Removed some hardcoded arrays in favor of dynamic,
and created a new macro with 32768 and used it for remaining pathname arrays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-13 07:33:50 +00:00
Greg Ercolano
e0e04cc956
Solve STR #2768 : WIN32 file filter pulldown menu was not showing wildcard patterns.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-13 07:25:36 +00:00
Greg Ercolano
baca25f902
Fix for problem with posting 'popup menus' during user callback
...
causing change in row/col selection of Fl_Table_Row.
As reported by David Lopez in fltk.general on 11/09/2011, Subject: Popup menu over Fl_Table.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-13 02:46:10 +00:00
Manolo Gouy
409afd29cc
Mac OS: more accurate definition of the Window system-specific type.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-11-12 13:06:54 +00:00
Manolo Gouy
e37006f259
Fix STR #2759 : Fl_Window::hotspot() now positions a new window correctly on a secondary display.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-31 19:44:55 +00:00
Manolo Gouy
0cf73d4603
Mac OS: simpler processing of window closing events.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-30 17:23:42 +00:00
Manolo Gouy
c9345e7d01
Added more paper sizes for Fl_PostScript_Printer.
...
Fixed saving of the paper size preference for the "Print to File" printer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-29 14:50:04 +00:00
Manolo Gouy
1e88511efa
Fixed use of "landscape" orientation with PostScript printing/output.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-28 20:55:17 +00:00
Manolo Gouy
8ff32e11d6
Mac OS: fixed the setting of the key window after a window is closed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-27 19:41:54 +00:00
Manolo Gouy
353f59a0ce
Mac OS: restore the focus to the top FLTK window after closing the window opened by the
...
"About ..." item of the application menu. This issue appeared with OS X 10.7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 12:42:41 +00:00
Manolo Gouy
a1d63bc158
Mac OS: removed unused type Fl_XMap and global variable fl_current_xmap.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9151 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 11:17:31 +00:00
Albrecht Schlosser
afd64de007
Fixed regression (in FLTK 1.3.0) that could clear a radio button by
...
using the keyboard (space or shortcut) (STR #2748 ).
This regression was introduced in svn r7826 and released with FLTK 1.3.0 (!)
to add visual feedback for Fl_Button's using the keyboard (STR #2372 ).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 10:29:13 +00:00
Manolo Gouy
8c552b377d
Fl_cocoa.mm: removed useless fl_screen global variable.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-26 09:12:33 +00:00
Manolo Gouy
81fcaed456
Mac OS: the procedure used to restore visible focus to a window after using an Fl_Native_File_Chooser
...
window failed under OS X 10.7. It's replaced by a simpler, OS version-independent procedure.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9144 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-22 15:12:57 +00:00
Greg Ercolano
babac08474
1) Fix STR#2742.
...
2) Fix fl_eventnames[] debugging stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-20 05:02:53 +00:00
Manolo Gouy
31489f1f0d
Follow the declared type of the fl_window global variable: Window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-19 17:05:03 +00:00
Albrecht Schlosser
c90b78eb56
Typo correction (removed extraneous ";")
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-19 09:42:46 +00:00
Albrecht Schlosser
b2fb612dde
Removed unused variables (gcc 4.6 warning [-Wunused-but-set-variable]).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-19 09:22:52 +00:00
Albrecht Schlosser
df525e2922
Removed unused variables (gcc 4.6 warning [-Wunused-but-set-variable]).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-18 22:18:39 +00:00
Manolo Gouy
0ba6c0e381
Simplified window positioning on main screen.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-18 12:18:22 +00:00
Manolo Gouy
55b744c225
When several screens, allow creation of window on secondary screen by Fl_Window::Fl_Window(x,y,w,h,title).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-18 11:46:29 +00:00
Manolo Gouy
3c8a18a575
Back to before r.9070 because this change produces badly drawn menu button labels.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9133 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-17 13:46:31 +00:00
Manolo Gouy
9f15516f5e
Mac OS: don't generate an FL_SCREEN_CONFIGURATION_CHANGED event at application startup.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-12 12:38:32 +00:00
Manolo Gouy
23e38f1980
Exploit the HAVE_DLSYM and HAVE_DLFCN_H preprocessor variables defined by configure
...
to control usage of dlopen/dlsym system calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-04 16:56:09 +00:00
Manolo Gouy
d8a1aea23e
STR#2600 again: more detailed Doxygen comments of the FL_SCREEN_CONFIGURATION_CHANGED event.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-04 09:31:42 +00:00
Manolo Gouy
f309c395fc
STR#2600 again: under X11, dynamically load the libXrandr shared library.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-04 09:21:47 +00:00
Manolo Gouy
5c7800ea61
OSX: transferred from 3.0 the great speed improvement of text width computation when
...
many substitute fonts are involved.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-03 09:22:57 +00:00
Greg Ercolano
f86e7e318a
Fix drawing problem with Fl_Input as child of Fl_Tree.
...
(fixes STR#2725)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-02 19:56:19 +00:00
Manolo Gouy
e3b758c6f0
Fix STR#2724: #if HAVE_XRANDR instead of #ifdef
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 17:33:02 +00:00
Matthias Melcher
8e95ba0700
STR 2713: less restrictive XClass handling.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 15:53:57 +00:00
Matthias Melcher
8709753e1b
STR 2701: more tolerant Xft Font Attribute interpretation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 15:42:39 +00:00
Matthias Melcher
dde4dbd61f
If a vertical scrollbar is added, wrapped lines must be recalculated.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-10-01 06:48:50 +00:00
Manolo Gouy
9bdc310346
Fix STR#2600 : screens configuration changes are now detected under all platforms.
...
Requires the RandR X extension.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 14:46:08 +00:00
Manolo Gouy
2df4196d8b
About STR#2600 : some code factorization.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 13:09:06 +00:00
Matthias Melcher
b7abad288e
Horizontal Scrollbar in TextDisplay is now even smarter.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:31:08 +00:00
Matthias Melcher
7446a4d5bb
Text area width needs to be recalculated if vertical scrollbar changes visibility.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:20:09 +00:00
Matthias Melcher
41876bf00a
Horizontal scrollbar in TextDisplay is not shown if text wrappes at the right edge
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 10:09:16 +00:00
Matthias Melcher
00e8e44cf4
OSX: Fixed screen updates durin DND operations
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 09:38:35 +00:00
Manolo Gouy
c029bba113
Fix STR#2600 for the MSWindow and Mac OS platforms.
...
A new event FL_SCREEN_CONFIGURATION_CHANGED is introduced.
Fl::add_handler() allows to register a callback for this event.
The unix/X11 implementation is still missing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9087 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-30 08:03:22 +00:00
Greg Ercolano
7d44e7f378
Solve Fl_Tree issues w/ STR#2714 (shadow variable issue for apps)
...
by moving code implementations from Fl_Tree.H -> Fl_Tree.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29 20:08:54 +00:00
Manolo Gouy
d9cda5c3aa
Fix STR#2695 & 2697: correct computation of work areas with multiple screens.
...
This introduces 3 new functions
static void Fl::screen_work_area(X,Y,W,H)
static void Fl::screen_work_area(X,Y,W,H,mx,my)
static void Fl::screen_work_area(X,Y,W,H,screen_no)
that compute screen work areas and are used by FLTK to position menu windows.
The Fl::x(),y(),w(),h() functions are made consistent across platforms: they return
the origin/size of the work area of the main screen (as far as possible, see below).
On the Mac OS platform, all screen functions reflect changes in screen number and
positions without requiring the application to restart.
On the X11 platform, I did not find an API to compute the main screen work area
in all conditions. What's used does compute the correct work area when there's
a single screen, but not when there are several, because it returns an area that
encompasses all screens. The implemented workaround is that Fl::x(),y(),w(),h()
and Fl::screen_work_area(X,Y,W,H,0) return the exact work area when there's
a single screen, and return the full screen area when there are several.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-29 16:04:24 +00:00
Matthias Melcher
7ed9960a28
STR 2677: new cursor shape for Fl_Text_Display
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 20:08:48 +00:00
Matthias Melcher
6c3555c0de
STR 2710: limited scheme names to known schemes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 19:54:05 +00:00
Manolo Gouy
0faba4e3cb
Mac only: further fine tuning in clipping/rectf needed for scroll demo after changes in r.9050.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 09:07:50 +00:00
Matthias Melcher
1fba7d0f46
STR 2673: stop the annoying beeps when opening modal dialogs (this was so '80s)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 03:39:23 +00:00
Matthias Melcher
8f41d85454
STR 2711: fixed radio menu button drawing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 03:35:51 +00:00
Matthias Melcher
d5822e35e7
STR 2711: fitting Menu_Button label text into the part that does not have the pulldown symbol. This does not fix clipping: if a label is too big, it's still ugly (and too big)!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 02:44:56 +00:00
Matthias Melcher
b2399e393f
STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of a line would always be fully visible.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-28 02:11:14 +00:00
Matthias Melcher
6a14cfb34e
STR #2691 : fixed possible invalid text pointer in Text Display
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27 17:10:04 +00:00
Matthias Melcher
4a7eb9cb0c
STR 2683: calling show_cursor() before a text buffer is assigned to an Fl_Text_Diisplay deos not crash any longer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-27 17:00:35 +00:00
Manolo Gouy
5b04fd35fc
Mac OS: simplified use of #define MAC_OS_X_VERSION_10_x
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-22 11:40:53 +00:00
Manolo Gouy
bdb000bf2f
Mac OS: simplified use of CGRectMake() for rectangle drawing and clipping on display and printer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-19 19:03:22 +00:00
Manolo Gouy
1eb3664e7a
Don't draw the resize window corner under Mac OS X 10.7-Lion.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-16 08:29:23 +00:00
Manolo Gouy
58076d7a26
Mac OS: - Correct application hiding when modal or menu window is on.
...
- Removed useless FL_FOCUS events when unhiding application.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-13 13:03:07 +00:00
Manolo Gouy
28d33a29ad
Mac OS: print dialog uses only one window instead of two.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9033 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08 10:56:51 +00:00
Manolo Gouy
8c6aad459d
Mac OS: center on page the "Print Front Window" application menu command.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-08 08:09:20 +00:00
Manolo Gouy
19b3e33944
Keep filter attached to an Fl_Native-File_Chooser after it's closed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-05 16:52:16 +00:00
Manolo Gouy
bb9dd96ad3
Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does not end with \n.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-04 13:50:31 +00:00
Manolo Gouy
21ddc8900c
Before deleting a window, it's better to check whether it contains the currently focused NSView,
...
and unlock focus there.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-09-02 12:15:43 +00:00
Albrecht Schlosser
62b30f85cb
Fixed fl_pie() drawing too small on X11 (STR #2703 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-30 07:50:16 +00:00
Albrecht Schlosser
06ec8900f0
Fix window positioning on screen (Fl_X::fake_X_wm()) by testing the
...
entire window area instead of the top left corner only to find the
screen to put the window on (Windows only).
Note that this *should* be changed to use the work area instead of
the screen area, as discussed in fltk.development.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-19 14:11:30 +00:00
Ian MacArthur
ce3185a94f
Initial fixes for window position at or beyond (0,0) under win32.
...
This is not the whole story, but is better.
We were messing up the initialisation of num_screens on Win32 in that
it was being set to a non-zero value by a call to
GetSystemMetrics(SM_CMONITORS) but was then subsequently incremented
even higher by each iteration call to the screen_cb(...) function,
so what we were storing for the screen rectangles was a bit messed up.
Under fltk-1.1, the code used to explicitly reset num_screens to zero
before starting to iterate the screen_cb(...) function, so that worked OK.
I have sort-of restored that behaviour, and removed the (now redundant)
call to GetSystemMetrics(SM_CMONITORS) since we *always* enumerate the
monitors now to get the per-screen DPI values out.
I've also put in a commented out stub where we could store the per-screen
work-area, which it seems we do also need now, though I have not yet
contrived to actually implement that.
Volunteers welcomed...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-18 16:23:07 +00:00
Manolo Gouy
2beb43cf85
Fix STR #2695 (continued). Use of Fl::x() is appropriate only under Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8935 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08 15:24:19 +00:00
Manolo Gouy
59fdc24b16
Fix STR #2688 . fl_width(' ') was wrong under X11 without XFT.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08 12:24:54 +00:00
Manolo Gouy
de0be01e23
Fix STR #2695 : to scroll menus properly, use Fl::x(),y(),w() and h() functions that return
...
the work area rather than the screen size.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-08 10:07:03 +00:00
Ian MacArthur
e3a53da439
Add a #warning to scandir.c with the intent of trying to flag up which,
...
if any, hosts actually use this code now.
Will only trigger on hosts using gcc though, so may not help at all...
This is part of trying to remove this (possibly) not fltk license
compliant code from the codebase.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8913 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03 11:04:30 +00:00
Ian MacArthur
ec42758183
fix typo in debug output, as per #2690
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-08-03 08:17:34 +00:00
Manolo Gouy
0c0305865a
Fixed crash under Solaris if no printer is defined.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20 16:06:02 +00:00
Albrecht Schlosser
2d52aebc6d
Fixed Fl_Menu issue with unusual menu flags (STR #2680 ).
...
Setting some flags in a terminating Fl_Menu_Item (one with
a NULL label/text/name) caused an endless loop.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-20 13:50:15 +00:00
Manolo Gouy
5b98e80a4f
Mac OS: Greatly simplified the open document handler.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 13:26:52 +00:00
Greg Ercolano
4f4a8fc3c7
Modifications to all LGPL headers for STR #2685 .
...
(to clarify static exception LGPL by changing license references)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19 04:49:30 +00:00
Greg Ercolano
6fa9df7e90
Fixing STR #2679 ; Fl_Table makes use of FLTK's Fl::scrollbar_size() global.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-17 16:40:41 +00:00
Manolo Gouy
ada26bff29
Under X11, allow to call printable_rect() before any start_page() call.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-13 14:15:50 +00:00
Manolo Gouy
b2561363f7
Mac OS: fix STR #2666 allowing to display copyright info in the default About window.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 14:53:07 +00:00
Manolo Gouy
264c73c9ab
Mac OS: added missing lock/unlock pairs when running system menu items.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 13:52:16 +00:00
Manolo Gouy
20ab9c3c33
Mac OS: Added missing lock/unlock calls in Fl_Paged_Device::print_window().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-11 09:45:21 +00:00
Manolo Gouy
5faaebe373
Added initial value of _driver member in Fl_Printer constructor.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04 15:57:30 +00:00
Manolo Gouy
3bc8713bac
Fl_Paged_Device::print_window() now works with any output surface on Mac platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04 15:07:22 +00:00
Manolo Gouy
0b784cc90f
Arguments x_offset & y_offset of function Fl_Paged_Device::print_window() were partially
...
ignored by the Mac version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-04 13:54:43 +00:00
Manolo Gouy
682a8fc062
Mac OS: use cmd-A and cmd-C to select all and copy (instead of ctrl-A and ctrl-C).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-26 07:42:07 +00:00
Manolo Gouy
77e393f9b6
Added %%PageBoundingBox clause in each PostScript page so Evince, the Gnome doc
...
viewer recognizes page formats.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-20 13:23:05 +00:00
Albrecht Schlosser
6027f410ed
Fixed Windows DLL import of fl_xid() (STR #2670 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-18 12:29:49 +00:00
Manolo Gouy
c5784d139d
Fix STR #2671 : added missing object deallocation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-18 08:36:16 +00:00
Manolo Gouy
29d9c40dea
Removed Doxygen documentation of function Fl_File_Chooser::browser() that had been
...
removed at r. 8785.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-17 11:39:25 +00:00
Manolo Gouy
6475f1a424
Fix STR #2668 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8808 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 13:31:25 +00:00
Manolo Gouy
598057f079
Fix STR #2665 : Mac OS: use bundle name when available.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8807 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 12:35:32 +00:00
Manolo Gouy
82e53806aa
Fix STR #2664 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-16 11:13:59 +00:00
Albrecht Schlosser
5e7fea33d9
Update dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-11 09:11:08 +00:00
Matthias Melcher
6a5026055f
Tooltip test
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-08 14:35:22 +00:00
Manolo Gouy
75c9d386fa
Fix STR #2657 : repaired indentation error in fluid-output code.
...
Also changed copyright year to 2011.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-07 11:41:36 +00:00
Manolo Gouy
7feb5a9dfe
Added "Show hidden files" check button to the file chooser panel.
...
This had been previously done in r.8282 and r.8286 without accounting for
the existence of the Fl_File_Chooser.fl file. With this commit, files
Fl_File_Chooser.{cxx, H} are properly generated by Fl_File_Chooser.fl
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-06 16:11:22 +00:00
Manolo Gouy
9223527992
Mac OS: allow internationalization of file dialogs (continued).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-06 12:11:04 +00:00
Albrecht Schlosser
c53313ac6e
Fix potential NULL pointer dereference, if !XineramaIsActive(...).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-06 09:37:21 +00:00
Matthias Melcher
4236124af2
STR 2655: applied commited patch. Looks good to me.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03 19:51:19 +00:00
Manolo Gouy
6fde8226fa
Mac OS: allow internationalization of file dialogs.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03 16:08:42 +00:00
Manolo Gouy
f5de82aac5
Fix STR #2654 .
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03 14:07:52 +00:00
Manolo Gouy
ad73700388
Fix STR #2653 : (Mac OS only) filters in file chooser panels have now the form filter_name (pattern)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03 10:06:27 +00:00
Manolo Gouy
965e81fc87
Fixes bug entitled "Fl::event_text() omitted for keyups?" in fltk.development.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-03 09:12:07 +00:00
Manolo Gouy
bd1e9c8ca3
Fix STR #2652 : Mac OS-specific bug in Fl::remove_fd().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-31 11:20:52 +00:00
Manolo Gouy
1bef30d503
Fix STR #2647 : crash when copying text from firefox under X11.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-30 16:47:48 +00:00
Manolo Gouy
2e397fcd81
Fix STR #2649 : fl_measure() did not handle well double @@ at line start.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-30 16:08:46 +00:00
Manolo Gouy
18a902ca31
Fix Fl_Paged_Device::print_window(), Fl_Window::decorated_w() and Fl_Window::decorated_h()
...
when the window is iconized for all platforms.
Also, factorized some duplicated code in src/Fl_x.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-30 12:33:51 +00:00
Manolo Gouy
39998a972c
Fix for STR #2648 continued: Fl_Window::decorated_w() and Fl_Window::decorated_h() are
...
also involved in this fix.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8756 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-29 18:01:17 +00:00
Manolo Gouy
84a025b174
Fix for STR #2648 : when compiz is used, the window's parent is the root window, not the
...
title bar-containing window, so we resign printing the window decoration.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-29 17:34:57 +00:00
Manolo Gouy
493accc905
Attempt to fix STR #2648 by testing all X-API return codes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-29 16:29:09 +00:00
Matthias Melcher
76454cb77b
#2646 : improved queries for screen sizes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-26 13:48:00 +00:00
Albrecht Schlosser
9846e7879c
Fix constructors for VC++ DLL builds (STR #2645 ).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-24 20:00:56 +00:00
Albrecht Schlosser
203f4d8c7e
Fix STR #2643 : derefenced NULL pointer, if Xinerama is available, but inactive.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-24 10:20:25 +00:00
Albrecht Schlosser
c690c6fb1c
Fix STR #2637 , part 2: accessing pixel values beyond array bounds. 64-bit
...
converters to X image formats would access one more pixel per line
for images with odd widths.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 21:05:22 +00:00
Manolo Gouy
e86bbe4be8
Removes a compilation warning because of use of X->xid = NULL
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 19:40:23 +00:00
Albrecht Schlosser
4bea46c1ce
src/screen_xywh.cxx: Fix STR #2637 , part 1.
...
Fix array bounds error when Xinerama and Xlib disagree about number of screens.
Fix setting vertical resolution (dpi) of different monitors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 19:16:16 +00:00
Albrecht Schlosser
0c8f264df0
Add FL_EXPORT to several classes to fix MS VC++ dll builds (STR #2632 ).
...
Remove FL_EXPORT from fl_clip_region() since this is an inline function
on all platforms (and issued a warning when building fltkdll with MS VC++).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 18:32:47 +00:00
Manolo Gouy
ea020f0081
Fix STR #2640 : Fl::w() and Fl::h() are documented to return the width and height of the
...
main screen's work area (system-occupied space excluded); Fl::screen_xywh() functions
instead compute the full width and height of a screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 18:01:29 +00:00
Manolo Gouy
b3f6de1f37
Fix STR #2627 : if an X11 window is externally destroyed, FLTK now reacts coherently
...
either deleting the corresponding FLTK window, or recreating the X11 window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 16:49:02 +00:00
Ian MacArthur
4614fffc29
Rework the ifdefs for defining the appropriate value of WINVER in our builds.
...
In particular, ensure that if we redefine WINVER we undef it first (if it is already set) and also ensure that it is set before we include windows.h (by any hidden nested path!) in Fl.cxx.
Previously, we were hitting issues with WINVER being redefined in some build cases, e.g. with --enable-cairo set on a win32 build.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8722 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-23 16:06:13 +00:00
Manolo Gouy
2a9d1e7bec
Fix STR #2638 . The X11 part is simplified as suggested by Bill.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21 21:55:59 +00:00
Manolo Gouy
695613433a
Fix STR #2635 for Mac OS: allow fl_xid() even if window is not yet shown.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21 21:31:35 +00:00
Albrecht Schlosser
fce1e80ee3
Fix potential crash in fl_xid() on Linux (STR #2635 ). This would
...
crash if called when a window is not shown().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-21 10:05:19 +00:00
Manolo Gouy
422a2570a8
Allows to set the chooser's type at construction time without calling the type(int) function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-19 15:40:43 +00:00
Manolo Gouy
a64c0dc9f3
Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, iconlabel) - continued.
...
Now works also if called before the window is shown().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15 12:34:31 +00:00
Manolo Gouy
9e1a7079c3
Mac OS: implemented the effect of the 2nd arg of Fl_Window::label(label, iconlabel)
...
that sets the window name when it is iconized (or minimized).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-15 09:42:36 +00:00
Manolo Gouy
4ee9b8d7aa
Fix for STR #2629 : remove beep when typing cmd-<key> under Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-13 11:05:00 +00:00
Matthias Melcher
6892d8a265
STR 2630: added bounds check for very narrow text editing widgets, wishing that Valgrind was available for OS X
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-13 07:58:26 +00:00
Manolo Gouy
b588a8d399
Fix for STR #2628 : keep focus within an Fl_Tab after moving to another window and back.
...
This had been partially fixed following STR #2552 .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12 15:53:59 +00:00
Manolo Gouy
bcdf4a4be1
Mac OS: simplified by removing Fl_X::contains_GL_subwindow() function.
...
This operation is now performed within Fl_cocoa.mm
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12 11:50:43 +00:00
Manolo Gouy
622b357f24
Fix STR #2625 : removed memory leak after reading erroneous PNG data.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-12 08:07:27 +00:00
Manolo Gouy
bcbb26d5e7
On Mac OS, allow creation of a window in a minimized form.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11 18:31:28 +00:00
Manolo Gouy
703d7df7d5
On Mac OS, FL_HIDE is now sent when a window is minimized or the application is hidden.
...
The context removal on Fl_Gl_Window::handle() destroyed the GL colors when the window
is remapped.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-11 18:09:43 +00:00
Ian MacArthur
41fc90726b
Hopefully this fixes the bug Albrecht found in using fl_measure on surrogate pairs whilst we were looking at STR #2622 .
...
In summary, if you measured the string *before* the selected font had been used to actually fl_draw() anything, the measurement returned was invalid, as the new font was not "locked in" to the gc.
This change makes sure the selected font is set in the gc before making the measurement.
In tests, this appears to work correctly now...
More opinions welcomed!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10 15:37:05 +00:00
Ian MacArthur
eb16787f7a
Pushing this as a possible fix for STR #2622 .
...
This might not be correct (though I think it is) but should be no worse than the current mess I made...
Please test with as many different win32/64 compilers as possible and let me know!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-10 09:27:18 +00:00
Manolo Gouy
80ea4bcde6
Restoring correct keyboard handling under Mac OS X 10.5.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-07 13:45:42 +00:00
Manolo Gouy
f9a2d65bb3
Fix STR #2619 . An extra FL_MOVE event is sent on X11 after the menu item is selected
...
by the keyboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-07 07:15:39 +00:00
Manolo Gouy
2c42334c55
Fix STR #2620 . Obeys the tab distance value set by Fl_Text_Buffer::tab_distance(int).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06 18:15:29 +00:00
Manolo Gouy
26f81a4834
Fix STR #2613 . Allows a menu item to be invisible but with functional shortcut
...
as authorized by the doc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-06 16:29:16 +00:00
Greg Ercolano
6871a6512a
Fl_Tree mods for handling escaped item menu names.
...
Docs clarified.
Also, tree-simple example's callback handler brought up to date.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-04 02:59:50 +00:00
Manolo Gouy
14839338ec
Fix STR #2616 . This is a very indirect consequence of the fix made for STR #2594
...
that allowed to set the focus to an Fl_Window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01 20:02:47 +00:00
Albrecht Schlosser
428008c276
Fixed drawing artifacts when scrolling round boxes (FL_ROUND_UP_BOX and
...
FL_ROUND_DOWN_BOX) on Linux (STR #2615 ). This was done by
(a) setting the line width in the box drawing function (was undefined, maybe 0)
(b) taking care of zero and negative line width in X11 clipping functions.
Both solutions would have solved the particular problem individually.
Additionally made local helper function fl_arc_i() in src/fl_round_box.cxx
static to avoid name clashes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-05-01 12:45:29 +00:00
Manolo Gouy
ae8d142ed0
Corrected spurious FL_NUMLOCK setting.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-29 20:25:04 +00:00
Manolo Gouy
73a6f06c34
Reorganized keyboard input-handling code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-27 11:21:57 +00:00
Manolo Gouy
0f5ea9a2e2
Fix STR #2612 : added missing #include <X11/keysym.h>
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-27 08:47:00 +00:00
Manolo Gouy
5be46ea4ad
Added function keys F13 - F16 and corrected backslash key.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-26 17:28:10 +00:00
Albrecht Schlosser
3b76848435
Documentation updates, also fixing STR #2574 , trying to make clear
...
which events invisible and inactive widgets can get.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-24 17:09:41 +00:00
Albrecht Schlosser
06e17886ed
Documentation fixes and a few indent corrections.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-23 15:46:30 +00:00
Albrecht Schlosser
5c6913fed9
Fixed potential uninitialized pointer usage.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8620 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-23 12:27:58 +00:00
Manolo Gouy
65b9610a96
Mac OS: exact implementation of the Fl::screen_dpi() function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-22 17:30:37 +00:00
Manolo Gouy
239489c4b8
Fix STR #2608 : the bug had been introduced by r.8552 to solve STR #2598 .
...
The new code makes the STR #2598 changes unix-specific so it does not
interact with the WIN32 platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-22 11:00:06 +00:00
Albrecht Schlosser
0f20c065ce
Fixed keyboard navigation in fl_choice() (STR #2591 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:54:42 +00:00
Albrecht Schlosser
85a3534ee3
Updated dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:03:22 +00:00
Albrecht Schlosser
18628d428b
Fixed alpha blending under X11 when line data size != 0 (STR #2606 )
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8611 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-20 14:01:04 +00:00
Manolo Gouy
ad50b753be
Added fallback mechanism if malformed UTF-8 is used for a window title.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-19 12:37:20 +00:00
Manolo Gouy
d4685c13ef
Misc code cleaning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-19 08:22:05 +00:00
Manolo Gouy
1ad8cf320d
Fixed a problem in the WIN32 version of Fl_Paged_Device::print_window_part() and
...
Fl_Paged_Device::print_window() where the window didn't redraw well in some
cases after printing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 20:47:32 +00:00
Ian MacArthur
451b91ea46
OK - this time I actually think I have got it.
...
The win32 text-extents stuff now seems to be handling surrogate pairs correctly,
at least in my testing harness, and with a variety of supplementary plane fonts.
I really will leave this alone now - unless anyone finds bugs of course!
I have tested for regressions and it seems to be fine AFAICT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 14:34:20 +00:00
Manolo Gouy
aa930a6d21
Fix STR #2603 : deselected menu item when mouse enters menu bar out from any menu title.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 13:05:08 +00:00
Manolo Gouy
b51f47c437
Fix STR #2605 : proper mapping of the Windows key.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8603 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 11:45:46 +00:00
Manolo Gouy
619cb25982
Mac OS: The Fl_mac.cxx test
...
if (winclass != kHelpWindowClass)
is now replaced in Fl_cocoa.mm by its exact equivalent:
if ( w->border() || (!w->modal() && !w->tooltip_window()) )
so that tooltip windows are handled as in carbon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-18 08:18:16 +00:00
Ian MacArthur
ac5d865986
This WIN32 patch introduces a credible (though far from ideal)
...
workaround for text_extents being measured on glyphs from
supplementary Unicode planes.
It has no effect on glyphs from the Basic plane, so should not
be visible at all to most code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 21:19:14 +00:00
Manolo Gouy
8f59684c0f
Mac OS: Fixed bug where an application could be left with only a tooltip window opened.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8599 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 19:58:31 +00:00
Ian MacArthur
d77223ea58
A quick hack to prevent the OSX tooltip-crash on
...
badly formed UTF8 strings.
This probably is not the best solution, but it
does work.
Note that the problem actually seems to be in
setting the window title, and indeed if you try to
label ANY window with a badly formed UTF8 string
(not just a tooltip) you get the same exception
thrown.
NOTE: I'm not even sure why we try to set the
window title in tooltips, as it is never used
and the tooltip label itlsef still works fine.
Anyway, we can do something better, but this will
work for now.
Aside: If you close an app on OSX whilst a tooltip
is visible, the app will not exit, as there is still
a window open (the tooltip) but no way to cancel
the tooltip.
Don't know if this is OSX specific or not though
but it is certainly a bug.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8598 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 14:39:16 +00:00
Ian MacArthur
e67e628317
I've extended Manolo's excellent tweaks that handle surrogate pairs.
...
I found some kind of weird interaction with some symbol fonts that
covered the supplementary planes that meant we could not measure
the width correctly (although we did measure the text extents correctly.)
This mod mirrors what we do for non-surrogate-pair glyphs more
closely and appears to do the Righ Thing now, at least for the test fonts that I have, and which were exhibiting the aberrant behaviour before.
I don't think I have broken anything else in the meantime!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8597 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 13:18:55 +00:00
Manolo Gouy
f8d1e074ed
Made Fl_Quartz_Graphics_Driver::text_extents() resistant to mal-formed UTF-8 text.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 11:19:41 +00:00
Manolo Gouy
ddc4b21b55
Fixed Fl_Paged_Device::print_window() that did not work under Windows seven.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-17 08:48:40 +00:00
Manolo Gouy
8212e4bfe7
Corrected gl.h instead of gl.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8594 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-15 21:41:34 +00:00
Manolo Gouy
9ff9cf1230
Added Fl_Paged_Device::print_window() to print a window with its title bar and frame.
...
Added Fl_Window::decorated_w() and Fl_Window::decorated_h() that return the size
of a window with its title bar and frame.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-15 21:38:05 +00:00
Manolo Gouy
c473215f2a
Corrected typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-14 13:22:13 +00:00
Manolo Gouy
8d2d3c2a7d
Corrected typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-14 13:21:12 +00:00
Manolo Gouy
2af958422a
Corrected typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-14 13:16:03 +00:00
Manolo Gouy
8c6aa5edb5
Corrected typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-14 13:15:13 +00:00
Manolo Gouy
f7c2061f0c
Improved the accuracy of clipping when printing on Mac OS.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8586 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-13 20:50:41 +00:00
Ian MacArthur
be6df55717
More attempts to clean up WIN32 handling of UTF16 surrogate pairs.
...
In particular, I have added a new function to src/fl_utf.c called fl_ucs_to_Utf16() which
converts a single 32-bit Unicode value into one (or more) UTF16 cells.
This is needed in the win32 char-by-char text width() logic, and I suspect may also be useful in the OSX code in some places.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-13 15:43:22 +00:00
Manolo Gouy
639ee4fbab
Now sends FL_HIDE/FL_SHOW events when window is iconized/un-iconized.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-13 09:03:19 +00:00
Manolo Gouy
404a7c1bad
Restores change made in r.8557 that blocked system menu shortcuts.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12 20:15:10 +00:00
Ian MacArthur
1d988db2db
Under win32, text_extents() is not handling surrogate pairs either, at least on XP.
...
The problem seems to be in GetGlyphIndicesW() which is returning invalid indices for the surrogate pairs.
This causes subsequent measurements of the glyphs to fail, of course.
This patch does not fix the problem, it only makes sure it fails cleanly, causing a fallback to the default fl_measure like behaviour.
This is not nice, nor what I want, but at least it is consistent for now...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12 16:18:42 +00:00
Manolo Gouy
8b026342dd
Following STR #2583 , the behaviour of fl_draw_image() with d = 4 on Mac OS is here
...
made consistent with other platforms, that is, the 4th byte of each pixel is ignored
instead of treated as transparency data.
In the future, the fl_draw_image() signature may be extended with another argument
that would describe if and how transparency information is available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12 11:38:43 +00:00
Ian MacArthur
38a3c21ffd
Modify win32 text width(ucs) function to handle surrogate pairs.
...
This now correctly measures glyphs whose codepoint requires a surrogate pair to represent it in UTF16.
NOTE 1: This code makes any UCS point > 0xFFFF a "special case" and measures it explicitly, rather than using the lookup table. This "explicit measure" may be slow, but actually seems OK in my tests, so far.
The lookup table still covers the basic multilingual plane and is used for any glyph <= 0xFFFF as before, so the behaviour for most existing bodies of text is unchanged.
This code also retains the historical behaviour under Win32 whereby strings are measured char-by-char rather than as a whole string - again this is intended to retain compatability with existing implementations.
It is proposed that we should move towards measuring entire strings in the future as this is conceivably more efficient and certainly more consistent - rendering is now largely done "string as a whole" so we ought to measure in that way too; though to date the differences seem tiny, as evdienced by the text rendering page of the unittest example.
NOTE 2: This does not fix the *rendering* of surrogate pairs under XP, which still seems to be broken. I suspect that TextOutW() may genuinely broken under XP, as it works fine on Vista, and it is not just my code that seems broken, other non-fltk programs exhibit the same aberrant behaviour. Measuring of surrogate pairs appears to work correctly though...
Maybe we are using TextOutW() wrongly?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-12 10:08:58 +00:00
Ian MacArthur
d065ca89fe
modify the win32 text ::draw() function to do "string at once" rather than "char by char" rendering, as advised by Bill and Manolo.
...
This seems to be good so far, though does not resolve the XP surrogate pairs issues.
If this fix is bad, we need to revert to r8577, which is good...
And I still haven't fixed the handling of width in win32 code, so it is still inconsistent with draw for high Ubicode points.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8579 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11 22:00:19 +00:00
Ian MacArthur
924ed100d6
Minor rework of code to make ::rtl_draw() and ::draw(int angle,...) more consistent in coding terms. Behaviour of output unchanged.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11 21:49:05 +00:00
Manolo Gouy
87b998ed1f
Fixed crash on Mac OS when Fl::focus() called before show().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11 20:10:02 +00:00
Manolo Gouy
8d084cb4bc
Added missing fl_lock_function() / fl_unlock_function() pairs of calls.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8576 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11 19:52:41 +00:00
Ian MacArthur
4710a67670
Remove use of the MS API call MultiByteToWideChar(...) and re-instate use of fl_utf8toUtf16(...) now that I have fixed a slight off-by-one in handling the ends of the input strings.
...
This makes string handling much more consistent across variants.
Doh!. I am such an idiot...
NOTE: This still does not fix aberrant handling of surrogate pairs under WinXP, and I still haven't resolved the issues with the win32 ::width() functions not handling surrogate pairs at all...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-11 13:13:08 +00:00
Manolo Gouy
3d9eeb2d44
r. 8537 had by error introduced a compilation error with ppc architecture.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-10 09:10:40 +00:00
Manolo Gouy
7ce87f5102
Mac OS: fl_rect(), fl_rectf(), and fl_point() now have exact same output to display and printer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-10 09:01:13 +00:00
Manolo Gouy
0937913a7c
Added missing test of necessity of fl_open_display() call.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-08 16:14:05 +00:00
Ian MacArthur
016219f4a2
Replace a few instances of fl_utf8toUtf16() with the near-equivalent MS API call MultiByteToWideChar() as this seems to fix the regression I introduced in the rendering of rotated text on WinXP.
...
However... It does not cause the "high" Unicode code points to render correctly on XP, even though they do work on Vista (and I assume later variants like Win7...)
So there's still something I am missing here. Maybe XP is just broken? That'll be a problem...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-07 09:28:45 +00:00
Manolo Gouy
fc3ef2b0ea
Modified Fl_Quartz_Graphics_Driver::width(unsigned int wc) so it handles properly
...
cases with wc > 0xFFFF.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8569 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-07 07:51:26 +00:00
Ian MacArthur
8a830853bc
Further work to fix win32 handling of surrogate pairs for "high" Unicode points... Now fixed handling of rotated text version of win32 draw method.
...
Fixes to the various ::width() methods for win32 and OSX still TBD.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 21:37:13 +00:00
Ian MacArthur
f7e251e69b
Initial work to fix handling of surrogate pairs on win32 - draw() was not handling any Unicode char above U+FFFF as we did not handle the case where more than one UTF16 cell was required to hold the full glyph.
...
This change works, but is incomplete, other sections of the win32 code (and possibly OSX code) are making the same invalid assumptions about UTF16 chars.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 21:02:35 +00:00
Greg Ercolano
f76a1522e8
Fixed problem with void function trying to return a value.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 18:32:45 +00:00
Manolo Gouy
0c02f2dabd
Added Fl_Printer::driver(void) function that can be useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 13:43:09 +00:00
Manolo Gouy
80d6099c45
Window title bars are now printed with their rounded angles.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 12:33:34 +00:00
Manolo Gouy
265f213d23
Added function Fl_Printer::set_current() that may be useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-06 12:11:26 +00:00
Manolo Gouy
b149f786d7
Mac OS: Fl_Window::resize() shd not modify the maximum window size if it is 0.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05 17:16:35 +00:00
Manolo Gouy
7931fe1047
Removed an NSAutoreleasePool allocation/release.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05 16:41:31 +00:00
Manolo Gouy
b197f40781
Mac OS: the "Print Front Window" item of the application menu now prints also the title bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05 16:20:02 +00:00
Manolo Gouy
b5ab77d07d
Removed usage of NSMainMenuWindowLevel to use only 3 window levels.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-05 12:41:32 +00:00
Manolo Gouy
cd2b8ed399
Fix error that can happen with some 3rd party fonts lacking certain size information.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-04 12:28:20 +00:00
Manolo Gouy
a86df5ede6
Mac OS: removed duplicate FL_KEYBOARDS events with function and modifier keys.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-03 17:31:07 +00:00
Manolo Gouy
32df4755c4
about STR #2599 : - fix the synchro between key presses and key events
...
- implement character palette input by FL_PASTE events
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 17:19:34 +00:00
Albrecht Schlosser
cc3606b097
Updated dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 13:43:07 +00:00
Albrecht Schlosser
75294d3e24
Fixed dependencies of bundled libs, corrected a typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 13:40:41 +00:00
Manolo Gouy
8cd8a67b04
Fix STR #2598 with OP patch.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 09:00:07 +00:00
Manolo Gouy
f4c12d46d6
Mac OS: fixes in STR #2588 the warning message "_createMenuRef called with existing
...
principal MenuRef already associated with menu".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-04-01 08:32:57 +00:00
Manolo Gouy
bd36f0dd31
Mac OS: Make the Fl::event_key() function distinguish between left and right modifier keys.
...
Also, don't rebuild the application menu if one is already there.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30 22:15:17 +00:00
Albrecht Schlosser
281489f849
Documentation updates and typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30 12:07:52 +00:00
Manolo Gouy
45dba50515
Removed global variable appleMenu.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-30 08:53:07 +00:00
Manolo Gouy
03d531cd16
Fix STR #2588 . FLTK was subclassing a very important system-defined class NSApplication.
...
This created conflict with other libraries that do the same. This STR reports that Tcl/Tk is one
such library. The fix removes any NSApplication subclass usage in FLTK, and requires
to initialize the NSApplication-subclassing library before calling fl_open_display(). In this
condition an FLTK application can also use an NSApplication-subclassing library such as Tk.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29 20:26:51 +00:00
Manolo Gouy
c64fa4863e
Added info about where to find Mac OS virtual keycodes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29 14:22:48 +00:00
Manolo Gouy
5cda7e7232
Set svn properties.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29 11:19:51 +00:00
Manolo Gouy
d4f284d73c
Minor change.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-29 08:39:40 +00:00
Manolo Gouy
c4e554ff6b
Mac OS: simplified the handling of text input:
...
use the FLTextView subclass of NSTextView only for Mac OS < 10.5 because it's not
necessary for Mac OS >= 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-28 21:52:56 +00:00
Manolo Gouy
c6fb27e56d
Mac OS: added field subwindow to Fl_X class that is true if this is a subwindow.
...
Useful when deleting a window because subwindows share their xid with their parent
window (unlike under MSWIn or Xlib), so subwindows should not delete their xid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-28 09:28:05 +00:00
Albrecht Schlosser
409d4976c2
Enhanced documentation of Fl::event_inside() to mention the restrictions
...
WRT subwindows and when using the window itself as the widget argument.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-27 00:34:55 +00:00
Manolo Gouy
8d7c246676
Mac OS: added gl_texture_reset() function to be called when deleting an Fl_Gl_Window
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-26 21:56:24 +00:00
Manolo Gouy
a58a2ed9fb
Mac OS: Fixed bug where gl_draw() would fail after deletion of an Fl_GL_Window.
...
The fix invalidates the pile of string textures after each Fl_Gl_Window deletion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-26 14:37:28 +00:00
Manolo Gouy
3b7ff83e04
Fix STR #2595 . Mac OS. When deleting a subwindow, don't delete the Cocoa window
...
(xid) attached to it because it is in fact the Cocoa window of its parent window.
I check that by making sure that none of the windows in the window list uses
this Cocoa window. Is there a better algorithm ?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25 23:17:16 +00:00
Manolo Gouy
f088e583a1
Fix 2nd issue of STR #2594 : Fl::focus() now informs Mac OS when the focus
...
changes window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25 12:31:51 +00:00
Manolo Gouy
f8b645f614
Fl::focus(): allows the focus to be set to an Fl_Window widget.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25 12:16:57 +00:00
Manolo Gouy
edd848aa9c
Mac OS: implement the Cocoa equivalent of Carbon's kEventWindowHidden handler.
...
Positive effect visible with the clock demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-25 12:02:31 +00:00
Manolo Gouy
9fa8427b78
Fix STR #2594 : the focus after creating a new window was not set correctly
...
because some code present in Fl_mac.cxx was not reflected in Fl_cocoa.mm.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-24 12:58:32 +00:00
Manolo Gouy
1366cc68d3
PostScript support: simplified the Fl_PostScript_Graphics_Driver class by removing the
...
draw_scaled_image(_mono)() member functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 17:41:23 +00:00
Manolo Gouy
16d983eab4
Mac OS: correct handling of fl_draw_image() call with L > W*D when printing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-22 17:14:37 +00:00
Manolo Gouy
dfc067ecfc
Fix STR #2587 : under Xlib, the X input method must be reset by the Fl::compose_reset() function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-21 16:32:37 +00:00
Manolo Gouy
a36bca971a
Fix STR #2589 : incorrect cohabitation of modal and non-modal windows.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-20 21:43:10 +00:00
Manolo Gouy
7aa48e19b9
Fix STR #2575 : use the screen that intersects most of the window when made fullscreen.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-12 21:36:21 +00:00
Manolo Gouy
1d038565c1
Mac OS: modified the definition of the fl_mac_os_version global variable to allow v 10.10.10
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-04 16:48:10 +00:00
Manolo Gouy
23ac5868eb
Changed copyright year to 2011
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-02 14:17:34 +00:00
Manolo Gouy
f22e50af97
STR 2580: the first Fl::add_timeout() call now calls fl_open_display() because that is necessary for
...
timeout events to be recovered by the event loop.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 12:37:34 +00:00
Manolo Gouy
f7d7eff7ad
STR 2580: Fl::add_fd() now calls fl_open_display() because that is necessary for the fd event
...
to be recovered by the event loop. Before main() is called, only fl_mac_os_version is
initialized.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-03-01 11:58:36 +00:00
Manolo Gouy
8c9d34facf
The got_events global variable is now updated when an event is processed by do_queued_events
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-02-28 17:48:55 +00:00
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
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
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
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
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
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
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
Manolo Gouy
1277b4e9a2
Added missing static function qualifier
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 14:16:36 +00:00
Manolo Gouy
eec2fbea89
Corrected typos
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 14:08:58 +00:00
Matthias Melcher
d96789d931
STR 1760: using the alt modifier on OS X to access menubar accelerators.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-09 12:56:50 +00:00
Albrecht Schlosser
f62a6a927a
Removed unused (but unnecessarily incremented and decremented)
...
timeout counter variables and improved comment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-08 11:53:28 +00:00
Albrecht Schlosser
45745509f0
Fix to take care of Cygwin that uses UTF-16 as well as native Windows,
...
i.e. sizeof(wchar_t) = 2, and Unicode is UTF-16 with surrogate pairs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 17:23:02 +00:00
Manolo Gouy
63e77dfe56
Removed compilation warning in fl_font_win32.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 16:19:30 +00:00
Manolo Gouy
97fce6b748
Removed requirement of Mac OS 10.4 because of use of [NSScreen userSpaceScaleFactor]
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 14:47:02 +00:00
Albrecht Schlosser
8197ba8d9b
STR #2505 : Fixed double string conversion.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 13:28:42 +00:00
Albrecht Schlosser
cdaff761f7
src/screen_xywh.cxx:
...
Fix X11 screen_init() if Xinerama is available, but not active.
Still investigating why there are nonsense dpi values under Cygwin/X11,
but maybe this is an X server problem.
test/hello.cxx:
Extended test statements - don't forget to remove before release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 12:39:51 +00:00
yuri
3c25646121
fix build with xinerama
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 09:45:40 +00:00
Manolo Gouy
5c4cfa8863
Fix STR #2505 . This allows bad UTF-8 strings to be displayed under X11+Xft without crash.
...
Any string is converted to Unicode (to UTF-16 under Cygwin) by fl_utf8decode() within
the fl_draw() and fl_width() functions, and the converted data is drawn/measured.
fl_utf8decode() accepts any byte input, even bad UTF-8.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 09:15:02 +00:00
Matthias Melcher
af1d2731d0
DPI fixed for X11
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:37:47 +00:00
Matthias Melcher
ecc423c2f1
DPI fixed for Xinerama?
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:33:29 +00:00
Matthias Melcher
308c6bc307
DPI fixes for MSWindows GDI
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:12:04 +00:00
Matthias Melcher
7dc05cb20e
First attempt at finding the screen pixel sizes. Can't test Xinerame, MSWindows, or X11 yet.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-07 01:01:04 +00:00
Manolo Gouy
bc509d32eb
Fix STR #2504 (first part). Replaced HAVE _CAIRO by FLTK_HAVE_CAIRO and USE_CAIRO
...
by FLTK_USE_CAIRO everywhere.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 10:24:58 +00:00
Manolo Gouy
ead3432f9b
Classes Fl_Printer and Fl_Postscript_Printer: added missing class_name() calls.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-06 08:46:54 +00:00
Manolo Gouy
18ae07b181
Fix STR #2507 . Applied supplied patch modified for Mac OS X. Checked OK on Linux.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 16:50:10 +00:00
Manolo Gouy
4beb3b88e8
Renamed Fl_Device::type() to Fl_Device::class_name() to avoid conflict or confusion
...
with Fl_Widget::type(). Added a setter function Fl_Device::class_name(const char *).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-05 10:21:45 +00:00
Manolo Gouy
e11677bfaf
Better position of the Fl_Printer class in the Fl_Device class hierarchy.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 21:42:02 +00:00
Matthias Melcher
cf95f8d261
Some minor doc changes to avoid doxygen warning.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-04 18:28:01 +00:00
Manolo Gouy
d4d4a24eff
Fixed warning in Fl_Gl_Choice.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 20:51:17 +00:00
Manolo Gouy
874bca74f5
Mac OS X: removed all uses of Carbon (except for older OS versions) and re-organized
...
text input around the NSTextInput protocol.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-01-03 16:50:34 +00:00
Matthias Melcher
46f9ca2ad9
STR 2501: fixed freeing of incremented pointer.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-31 22:13:07 +00:00
Manolo Gouy
e6a506d1f6
Fix STR #2498 : removed run-time array allocations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-30 15:45:43 +00:00
Albrecht Schlosser
6e1ce92c62
Updated dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-30 15:35:33 +00:00
Manolo Gouy
24758b5cd6
Mac OS X: keep Mac-specific fl_beep() code in file src/fl_ask.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-29 11:51:29 +00:00
Manolo Gouy
dbb7be0fee
Mac OS X: removed dependency from AudioToolbox.framework by calling NSBeep() from Cocoa.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-29 11:33:42 +00:00
Manolo Gouy
d3d16a354e
Win32 right-to-left text: output whole string to obtain correct ligatures between Arabic letters.
...
This new algorithm is not coherent with fl_width() but allows minimal usage of fl_rtl_draw().
The utf8 demo shows the effect of this change.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 21:24:15 +00:00
Manolo Gouy
2a5a3d4e8b
Use device abstraction for colors.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 15:33:36 +00:00
Manolo Gouy
431fc4cd5d
Use device abstraction for image drawing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 15:17:23 +00:00
Manolo Gouy
64dd2cfa68
Added right-to-left text drawing to PostScript graphics driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 12:45:28 +00:00
Manolo Gouy
b431c1e0e7
Use device abstraction for font and text drawing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-28 12:02:23 +00:00
Albrecht Schlosser
5a2e5395b0
Updated dependencies
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 17:46:38 +00:00
Manolo Gouy
9f42fc19f5
Removed useless statements.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 11:25:57 +00:00
Greg Ercolano
7bfe700ea9
Finishing up STR#2479 as per Manolo/Greg/Albrecht conversation.
...
We return 0 for all unused keystrokes in Fl_Input.
So instead of 'return 1: absorb keystroke and ignore',
we're going with 'return 0: ignore keystroke and let parent have a shot at it'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-27 00:16:57 +00:00
Manolo Gouy
a8530c73fa
Adopted use of FL_LIBRARY #define symbol under Mac OS X. This allows to compile
...
client applications without including Mac OS system headers, with a gain in speed of
compilation and portability. The source files of all FLTK libraries must now be compiled with
-DFL_LIBRARY under Mac OS X. Make, CMake and Xcode project support files
have been modified accordingly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 14:24:29 +00:00
Manolo Gouy
3590348773
Doc changes: mention that FL_COMMAND modifier exists in doc of the Fl_Menu_::add() function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-23 08:02:52 +00:00
Greg Ercolano
e86b65c80a
Fixes to ensure readonly() widget is not modified by destructive keyboard functions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 20:20:28 +00:00
Albrecht Schlosser
ada206d8f7
Added Fl_Tabs::client_area() (STR #2480 ).
...
Fixed some typos in CHANGES.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-22 13:06:03 +00:00