Commit Graph

2976 Commits

Author SHA1 Message Date
Fabien Costantini
226f425443 STR2731 fixing: potential use of unassigned (Y) value
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-21 03:02:25 +00:00
Greg Ercolano
526efe8a13 > Added ^A to 'select all' when tree has focus
> A user click on the tree's background does a 'deselect all'



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-19 08:58:22 +00:00
Greg Ercolano
055a7d47ed STR# 2827 cont'd:
> Prevent 'changed' flag from being set during reselect
> test/tree.fl: added chooser so user can test with item reselect enabled|disabled
  (Chooser deactivated if the ABI option is not enabled)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-19 08:50:04 +00:00
Greg Ercolano
c7044ca009 Optimizations for when Fl_Tree is a container of FLTK widgets.
o Don't draw FLTK widgets outside tree's viewport.
   o Added tree-as-container.cxx example program, demos tree 
     w/50k tree items each with 6 widgets (300k total)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-18 15:20:20 +00:00
Greg Ercolano
d741da4317 indent fixes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-18 08:23:35 +00:00
Fabien Costantini
b31264e473 STR 2827 implementation. Implemented Reselect code and related API all within ABI controlled preprocessor blocks because of new attribute defintion would break ABI anyway. Because the code is already ABI controlled, I took the opportunity to keep keep the REASON enum sorted. Added test code in Tree.fl adequately.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-15 20:11:36 +00:00
Greg Ercolano
3cf006f5c3 Solves STR #2681.
Added ABI-breaking Fl_Table::scrollbar_size() with new ABI #ifdefs.
tests/unittests program modified to test this feature if enabled.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-14 20:35:56 +00:00
Greg Ercolano
418dd143f0 ABI modifications to Fl_Tree: deprecate mouse selection hotfix with proper solution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-13 02:51:15 +00:00
Greg Ercolano
6444e23359 fixes to build on IRIX.
(scoping rules for variables declared within for() loops)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-10 19:16:44 +00:00
Albrecht Schlosser
dfe7fafd92 Fix compiler warning "variable set but not used".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-09 12:36:23 +00:00
Manolo Gouy
60d448d150 Removed Fl_Widget::is_fullscreen() that is just another name for Fl_Window::fullscreen_active()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-09 09:12:34 +00:00
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