Commit Graph

3574 Commits

Author SHA1 Message Date
Albrecht Schlosser
aef482198e Bump version numbers to 1.3.3.
All fluid .fl files have been rewritten with fluid 1.3.3 and may differ
somehow, but there are no significant changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 00:03:27 +00:00
Manolo Gouy
7a609f3912 Protect use of dlopen() with HAVE_DLSYM and HAVE_DLFCN_H for compatibility with cases where this function is not available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-01 17:43:27 +00:00
Manolo Gouy
ecbda61220 Protect use of dlopen() and dlsym() with HAVE_DLSYM and HAVE_DLFCN_H for compatibility with cases where these functions aren’t available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-01 17:24:55 +00:00
Manolo Gouy
fca603cc35 Protect use of dlopen() and dlsym() with HAVE_DLSYM and HAVE_DLFCN_H for compatibility with cases where these functions aren’t available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-01 16:37:13 +00:00
Albrecht Schlosser
318c3619dc CMake enhancements, as discussed in STR #3055.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-27 00:41:06 +00:00
Albrecht Schlosser
eb1af07952 Add Fl_Window::wait_for_expose() and test program (STR #3124).
Also modified .gitignore, svn-properties, Makefile and CMake-Files.

Todo: test/twowin.cxx and test/windowfocus.cxx need to be added to ide files
(MS VC++ and Xcode).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-26 23:58:05 +00:00
Manolo Gouy
186312db50 Removed useless extern void fl_restore_clip()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-23 10:48:36 +00:00
Manolo Gouy
43d26240b5 Simpler implementation of Fl_GDI_Graphics_Driver::copy_offscreen_with_alpha() does just as well.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-23 10:36:58 +00:00
Albrecht Schlosser
023589e703 Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-22 19:07:55 +00:00
Manolo Gouy
afb08c015d Corrected drawing of RGBA images to Fl_Image_Surface and to Fl_Copy_Surface objects under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-22 16:51:21 +00:00
Manolo Gouy
f5e93e53ec Reformatted the Doxygen documentation of Fl_Window::shape(Fl_Image*)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-22 11:37:34 +00:00
Manolo Gouy
01c5028f0a Removed use of deleted Fl_Shaped_Window.* files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10328 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-21 15:16:43 +00:00
Manolo Gouy
b40ff04145 Corrected problem when compiling without FLTK_ABI_VERSION.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-21 14:59:11 +00:00
Manolo Gouy
f1b2c92fce STR#3093 continued: deleted the Fl_Shaped_Window class. Instead, added new member function Fl_Window::shape(Fl_Image*)
that gives a non-rectangular shape to a standard window. The benefit is that it works with Fl_Double_Window and Fl_Menu_Window as well.
It also works for free with Fl_Gl_Window on the X11 platform only.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-21 14:10:36 +00:00
Albrecht Schlosser
ada02ea752 Fix memory leak (STR #3069).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-19 16:28:16 +00:00
Manolo Gouy
527190420c Allow compilation with Mac OS SDK 10.10 and the i386 architecture
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-18 20:23:59 +00:00
Manolo Gouy
9dae6e96b2 Implemented panel:shouldEnableURL: for the open dialog delegate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-16 17:34:29 +00:00
Pierre Ossman
1c7409e0a1 Add methods to enable and disable the system's input methods.
This needs to be done from FLTK as it affects the window interaction,
which FLTK is largely responsible for.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:44:35 +00:00
Pierre Ossman
5101a8ea1c Remove commented out, alternative IM code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:40:46 +00:00
Pierre Ossman
61e1b18f7b Consolidate the Win32 init and cleanup code in to one place so
it's easier to keep track of it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:35:05 +00:00
Pierre Ossman
53888cf064 Get rid of the old IActiveIMMApp code as the newer code calls
fatal() if it cannot be loaded and is hence already required.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:31:46 +00:00
Pierre Ossman
e145df2165 Add methods to intercept low level system events.
This gives applications the means to handle some low level
integration with the system that might otherwise not be possible
without modifying FLTK itself.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:17:56 +00:00
Pierre Ossman
321fb4ed7a Clean up Win32 message pump. The logic was a bit overly complex
with the double calls to PeekMessage() and the extra if clause.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-15 09:14:07 +00:00
Manolo Gouy
0356bd257c Fixed compilation warning messages that Fl_PostScript_File_Device::start_job() hides an overloaded virtual function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 17:51:20 +00:00
Manolo Gouy
1b74551e9d Removed ‘array subscript is of type char’ compilation warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 17:04:20 +00:00
Manolo Gouy
eadd6e87f1 Removed several compilation warnings with OS X SDK 10.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 16:49:47 +00:00
Manolo Gouy
76418b352b Allow compilation with SDK 10.10 and use new API to discover os version at runtime.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 14:29:53 +00:00
Manolo Gouy
6482acf15a Allow compilation with SDK 10.10 and use new API to identify OS version at runtime.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-13 14:18:34 +00:00
Pierre Ossman
952369163f Revert r3215. The original issue it "fixed" is no longer
reproduciable, and the change causes the wrong symbol to be
generated for Ctrl-minus. STR 264.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-12 12:38:07 +00:00
Manolo Gouy
aecb3ac594 Fix for STR #3128
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-09 11:02:33 +00:00
Albrecht Schlosser
dd37bc2c12 Update dependencies
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 23:54:11 +00:00
Manolo Gouy
2af3261d51 Fixed typo ./FL/Fl_Plugin.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:55:46 +00:00
Manolo Gouy
9e8eba7818 Replaced Xutf8.H by Xutf8.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:48:53 +00:00
Manolo Gouy
c3d04a6c42 Added dependencies of Fl_PostScript.o
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10293 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:45:58 +00:00
Manolo Gouy
11f55e80b3 Put Fl_PostScript.cxx in list of files compiled in libfltk rather than including it in Fl_Printer.cxx.
VisualC project files still need to be changed accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10291 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 16:03:52 +00:00
Manolo Gouy
c7f0ee3bd0 Fix for STR #3130 where PostScript printing may fail when program modifies LC_NUMERIC of its locale.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08 12:35:23 +00:00
Manolo Gouy
3e0bb410f8 Handle deprecation with Mac OS 10.9 of SetFrontProcess(), GetCurrentProcess(), GetFrontProcess(), SameProcess().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-07 20:30:46 +00:00
Greg Ercolano
1fefa174c9 Adding some parameter docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 20:27:39 +00:00
Lauri Kasanen
031a30a4b5 Bilinear div-by-zero fix
Probably temporary if this will be replaced with Roman's int version, but
better have it anyway.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-06 13:22:28 +00:00
Lauri Kasanen
d3a8566cab Move the ewmh_supported check into fl_fix_focus to avoid a double show() on new WMs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 16:42:00 +00:00
Lauri Kasanen
523c657f2e Robustness fix for the first window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 13:14:16 +00:00
Lauri Kasanen
005bfa4294 Fix cross-window focus throwing on X11, similar to the Mac case. STR #3129
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:33:35 +00:00
Lauri Kasanen
d1d203ca57 Add support for dragging to reorder in Fl_Tree, STR #2828 (I)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 12:04:28 +00:00
Albrecht Schlosser
d67f2e8e3e Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 09:31:37 +00:00
Greg Ercolano
ce1ab7e1ce Fixes to how new move() operations handle the concept
of 'above' and 'below' when referring to items instead
of index positions.

Small offsets needed due to how the arrays are scrolled
after a move operation.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-05 02:59:00 +00:00
Greg Ercolano
107fc50e48 Solves STR #3127.
Added to assist cand for his patch to solve RFE STR #2828 option (I).

o Add move() methods to Fl_Tree_Item.
o Add deparent()/reparent() methods
o Supporting methods added to Fl_Tree_Item_Array, and enhancement
  to update_prev_next() to allow -1 option to create an orphan item

Added to Fl_Tree_Item:

    * Fl_Tree_Item* deparent(int pos)
    * int reparent(Fl_Tree_Item *newchild, int pos)

    * int move(int to, int from)
    * int move(Fl_Tree_Item *item, int op, int pos)
    * int move_above(Fl_Tree_Item *item)
    * int move_below(Fl_Tree_Item *item)
    * int move_into(Fl_Tree_Item *item, int pos)

Added to Fl_Tree_Item_Array:

    * int move(int to, int from)
    * int deparent(int pos)
    * int reparent(Fl_Tree_Item *item, Fl_Tree_Item* newparent, int pos)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-04 18:56:52 +00:00
Lauri Kasanen
0ed1e8e0f0 Small fix in the bilinear formula
After consulting Gimp again, the formula was missing a final divide. This
takes care of the 1:1 discrepancy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-04 07:58:07 +00:00
Lauri Kasanen
cce4cece01 Add bilinear scaling support. STRs #2869 and #3062.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 11:00:56 +00:00
Albrecht Schlosser
105c2b466a Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:24:11 +00:00
Albrecht Schlosser
3f98f88156 Remove unused code and trailing white space.
The unused function was commented out about 6 months ago, see
svn r 10123. No changes other than comments and white space.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-03 10:07:33 +00:00
Manolo Gouy
1a7fcf0757 Fixed header/footer lines.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-02 09:15:08 +00:00
Lauri Kasanen
795342693d Don't grab navkeys with modifiers, as the app may want them. STR #3104
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-29 12:10:11 +00:00
Lauri Kasanen
9905a47ffb Cache created X11 cursors until program exit.
Each set_cursor was taking 0.5ms, due to libXcursor having to open, parse, and close
cursor theme files. Other toolkits likewise cache created cursors.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-29 11:23:44 +00:00
Lauri Kasanen
ca904c01ad Const the remaining fl_gray_ramp references.
These were nastily done by extern, and so unnoticable in a non-LTO build.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-28 08:26:41 +00:00
Manolo Gouy
9a4ae935a1 Account for new Fl_Shaped_Window.cxx file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27 13:16:28 +00:00
Manolo Gouy
8997131377 Added the Fl_Shaped_Window class to support windows of arbitrary shapes.
The new class is fully Doxygen-documented.
Added an example program (example/shapedwindow.cxx) that exercises the new class.
Modified all IDE-supporting files accordingly.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-27 11:55:57 +00:00
Ian MacArthur
22beee52af Try to fix building on OSX (and I assume WIN32) following
some changes introduced in r10248 that were causing issues
with including X11.h on non-X11 platforms.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-24 21:23:34 +00:00
Lauri Kasanen
3b1e7f31b9 Const the gray ramps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:27:30 +00:00
Lauri Kasanen
b42e32f70d Const the shadow, embossed, and engraved color tables
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:22:17 +00:00
Lauri Kasanen
1c82d8e14b Const two tables in Fl_PostScript.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:18:51 +00:00
Lauri Kasanen
02ab0c4a2c Use a larger buffer in fl_shortcut_label. Found by clang.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 09:10:50 +00:00
Lauri Kasanen
6e72a21271 Move the X11 UTF check above in utf8Input to avoid an unused function warning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:48:31 +00:00
Lauri Kasanen
bbc8782b6a Move Xutf8.h to src/, update includes, refresh makedepends
This is an internal header.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-23 08:41:58 +00:00
Pierre Ossman
936e4ca511 Only link with fontconfig if Xft is used
This matches what the autoconf stuff does. It is also crucial
on OS X where linking against fontconfig can fool the system into
believing that FLTK requires X11, prompting the installation of
XQuartz.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 11:54:35 +00:00
Albrecht Schlosser
ee118334be Remove unused variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-22 10:28:50 +00:00
Lauri Kasanen
c4b6455d32 Newer linkers are more strict about libs coming after objects.
This is also consistent with the Mac and Windows platforms in the same file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:24:19 +00:00
Lauri Kasanen
376cad54b1 Apply static-fixes.patch by skunk. STR #2988
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 14:03:52 +00:00
Lauri Kasanen
c4b3a2d5d3 When typing a path in Fl_File_Chooser, the enter key should select the file. STR #2910
This was originally changed in 1.1.8 by matt (r6092). The commit was about fixing
multiple selection and had no mention of why the enter key behavior was changed
not to work. STR #1913

Multiple selection still works.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 13:51:11 +00:00
Lauri Kasanen
9d96c7a26c X11: Use libX11 UTF-8 support when available.
This saves quite a bit of library size. STR #3107


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:34:07 +00:00
Lauri Kasanen
64dd5df141 Enable symbol visibility on Linux, bringing a shared libfltk on par with Windows.
Also drops the size of libfltk.so nicely.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:29:48 +00:00
Lauri Kasanen
6bfd46312f Sprinkle some more const on internal arrays. STR #3110
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:18:32 +00:00
Lauri Kasanen
c706d3c101 Constify the pointers in some XPM images. STR #3108
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:16:40 +00:00
Lauri Kasanen
d9505e1b24 Mark a few symbols static. This is the bulk from STR #3111.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:13:47 +00:00
Lauri Kasanen
88b5e53289 Constify an internal table in Fl_Help_View. STR #3109
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:10:33 +00:00
Lauri Kasanen
3a5f3f1820 Use system vsnprintf when possible, saves 2kb lib size.
Currently with Linux guards, as the function seems to be broken in Windows.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 12:01:46 +00:00
Lauri Kasanen
f44d3fe01c Fix two typos in comments (test commit)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21 08:14:19 +00:00
Albrecht Schlosser
82f157481d Fix a comment, remove trailing white space.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:37:13 +00:00
Albrecht Schlosser
34a641f1ef Fix a typo (cut'n'paste error).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-19 12:36:12 +00:00
Greg Ercolano
cd3ca84e71 Fixes STR #3113 memory overrun
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-03 16:40:58 +00:00
Greg Ercolano
d785f5b4e8 Removed unused variable last_y to prevent this warning under mingw:
Compiling Fl_Text_Display.cxx...
    Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)':
    Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable]



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:07:09 +00:00
Greg Ercolano
018f4ee978 Removed unused code strcnt() to prevent warnings w/mingw
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-21 18:05:25 +00:00
Greg Ercolano
7eb0c224df * Small doxygen doc improvements + elaborations
* Small name change for new typedef.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 18:51:56 +00:00
Greg Ercolano
afcd967fd8 * Modified the ScrollInfo structure for more modularity,
which helps doxygen docs be clear.

* Changed loop in recalc_scrollbars() to loop thru /all/ children
  and skip over scrollbars, instead of assuming fix_scrollbar_order()
  has been called.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-16 03:32:14 +00:00
Manolo Gouy
677e13f2bb Fix for STR #3106: a tiled image could fail if the size of the tiled surface exceeded the size of the main screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-10 12:28:00 +00:00
Greg Ercolano
574c174dd7 Fix for STR #3101 to handle e.g. "foo.f[ld]" filters properly.
(Was only counting ',' style filters, not character oriented filters)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-07-01 01:43:33 +00:00
Manolo Gouy
0f4fa1633d Changes brought in at r. 10046 make fluid crash when open or saving files with Fl_Native_File_Chooser
on the WIN32 platform.
The filter used by fluid "FLUID files \t*.f[ld]/n" makes Fl_Native_File_Chooser::parse_filter() crash.
The present changes TEMPORARILY avoid this crash, but r. 10046 changes should be closely reviewed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 13:39:09 +00:00
Pierre Ossman
e64a8e90e3 Follow up to earlier commit. Missed one reference to fixcursor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 10:30:58 +00:00
Pierre Ossman
0f75e7fdb2 The SGI 320 is obsolete since many many years, so remove this code
rather than try to port it to the new fancy cursor handling.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-30 09:39:57 +00:00
Manolo Gouy
a59a3d29ff Fixed a menu-positioning problem where a menu window could appear on another screen
than where expected. Occurred when one screen has negative x coordinates.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-28 12:29:51 +00:00
Manolo Gouy
a8d1251aaa Mac OS: a borderless, non-modal window was not created properly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-26 19:31:38 +00:00
Manolo Gouy
87fe066c29 It's probably better to also change SendMessage into SendMessageW
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-24 15:23:51 +00:00
Manolo Gouy
10caca062a Fixed error when browsing for a directory and using a non-ascii starting directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-24 15:06:24 +00:00
Manolo Gouy
f7f820ed4c Added const qualifier to remove compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-23 17:17:05 +00:00
Manolo Gouy
5bc8825509 Since fl_cursor_wait.xpm is used only on Mac OS, draw it the Mac way.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-23 17:14:57 +00:00
Manolo Gouy
f60b8778f7 Removed non-standard allocation of variable-sized array on the stack.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-21 17:47:50 +00:00
Manolo Gouy
0831d31b03 GTK file chooser: set correct current directory when selecting for a folder.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10203 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20 15:40:50 +00:00
Manolo Gouy
37f77a271c GTK file chooser: honor request of current directory for the file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10202 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-20 13:43:17 +00:00
Manolo Gouy
703045f5b1 Fixed a possible crash of the GTK file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-19 17:02:36 +00:00
Manolo Gouy
da5dff32ea Sets the return type of Fl_Image_Surface::image() to its real value, Fl_RGB_Image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-18 01:22:16 +00:00
Pierre Ossman
06ee4b9b14 Fix inverted logic. It's the even depth values that include alpha.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-17 11:13:55 +00:00
Pierre Ossman
776fd2a107 Make sure the XPM files define const char arrays to avoid
compiler warnings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 13:58:42 +00:00
Pierre Ossman
f58b1a91b3 Add ability to set custom icons for windows. STR #2816.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:39:32 +00:00
Pierre Ossman
332dc1b7ac Add method to set any custom cursor, based on a Fl_RGB_Image object.
Also change our fallback cursors to use this method, so that fallback
cursors are handled in a platform independent manner. STR #2660.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 11:17:57 +00:00
Pierre Ossman
b4013ef602 Make sure that modal and non-modal windows are at a higher level
than "normal" windows. This is mostly necessary when full screen
windows are present as those are raised to a higher level in order
to obscure the dock and main menu.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-16 10:59:46 +00:00
Manolo Gouy
d55fac2243 After r.10119 calling Fl_Window::make_current() within a widget's draw function created errors.
This patch fixes that.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-15 18:45:32 +00:00
Manolo Gouy
700435ee0a Fixed problem of upside-down text when compiling with SDK OS X 10.4
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-14 11:06:42 +00:00
Pierre Ossman
ed7983f5b5 Add ability to convert a Fl_Pixmap into a Fl_RGB_Image.
This is very convenient as a lot of other functions only accept
a Fl_RGB_Image. Adding this functionality also required a bit
of spring cleaning in the the drawing routines. STR #2659.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-12 13:28:04 +00:00
Pierre Ossman
5e9624286a canBecomeMainWindow() is not absolutely necessary, but it makes
the window decorations behave better by properly graying out windows
that will have their input stolen by a modal one.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 14:12:29 +00:00
Pierre Ossman
7057e56c28 Behave better when it comes to modal windows. Primarily this
makes sure that windows are decorated better when a modal window
is active. STR #2802.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 14:09:28 +00:00
Pierre Ossman
0cfc2554c6 Support for full screen over multiple monitors.
The API follows that of EWMH, which gives you a good control
over which monitors to use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-11 09:10:53 +00:00
Pierre Ossman
f27bde8316 Windows' clipboard chain is a very fragile thing that can
easily break if an application misbehaves and/or crashes.
So to minimise risk, don't register ourselves unless we
really need to.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-10 14:23:46 +00:00
Pierre Ossman
6944612e56 We are required to pass along WM_CHANGECBCHAIN messages to the
next window in order for the chain to properly update.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-10 14:21:26 +00:00
Manolo Gouy
baebff2227 STR #3088: make Fl_Native_File_Chooser use the standard GTK file dialog when available.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-07 12:01:59 +00:00
Manolo Gouy
e3959bbaff Fixed D&D to FLTK broken by recent commits.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-01 17:21:37 +00:00
Manolo Gouy
9b79cb89f7 Fixed source formatting error.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-01 07:20:03 +00:00
Manolo Gouy
50405942b5 Restore D&D of filenames that was broken in recent commits.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-06-01 07:17:15 +00:00
Manolo Gouy
95b8282edb Removed -Wuninitialized compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-30 05:57:00 +00:00
Manolo Gouy
44c2ca6521 Fl::clipboard_contains(): handle now properly the case when there's nothing in the clipboard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-29 15:28:04 +00:00
Manolo Gouy
67f3c4cc82 Avoid crash when XftFontOpenPattern() returns NULL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-29 13:28:55 +00:00
Manolo Gouy
454fb25fa5 Reset file header and footer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10171 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-24 16:19:30 +00:00
Manolo Gouy
7d6f41728a Reset file header and footer.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-24 16:13:06 +00:00
Manolo Gouy
9648a51d67 Added new source files Fl_Copy_Surface.cxx & Fl_Image_Surface.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-24 06:17:12 +00:00
Manolo Gouy
ecb31ba5e8 Removed compilation warning about signed/unsigned comparison.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 21:19:29 +00:00
Manolo Gouy
2b2f0c43eb Updated after addition of Fl_Copy_Surface and Fl_Image_Surface classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 21:12:38 +00:00
Manolo Gouy
8b62acc266 Added required #include <time.h>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 18:27:55 +00:00
Manolo Gouy
423ef813f0 Removed compilation warning of signed/unsigned comparison.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 17:03:08 +00:00
Manolo Gouy
07dd8ba328 Added copy/paste from/to FLTK applications of graphical data.
Added Fl_Image_Surface class to draw into an Fl_Image object.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10159 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-23 16:47:21 +00:00
Manolo Gouy
dd2b095f87 Fix STR#2995: make FLTK robust to bad .xpm files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-22 12:11:17 +00:00
Manolo Gouy
94d86bba5c Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 14:12:04 +00:00
Ian MacArthur
3cccaf83c1 Attempt pt fix keywords property on Fabien's
new Fl_sleep file, it seems to have been missed
of from the intial commit.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 11:00:37 +00:00
Greg Ercolano
46521bf437 Implements STR #2621: Add line numbers to Fl_Text_Display.
Applied LZA's patch and included some mods to address TODO items and ABI issues.

Also update CREDITS with LZA and a few other notably absent names.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 06:56:59 +00:00
Fabien Costantini
54b0123eab Added a new portable sleep API(ABI compatible). Now features a flexible multi-usage sleep() api accepting decimals, msleep() for millisecs only, usleep() for microsecs. Updated Makefiles, cmakefiles, vs2008, vs2010 with the new Fl_sleep add-on. Documented new API. still needs to be added in Xcode.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10150 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-21 04:10:12 +00:00
Manolo Gouy
b6703eb58f Fix for STR#3079 (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-04 14:04:52 +00:00
Manolo Gouy
1882f90a94 Removed compilation warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-04 13:46:09 +00:00
Manolo Gouy
f8852ab51d Fix for STR#3079 (WIN32 only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10144 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-03 12:19:39 +00:00
Ian MacArthur
315fcfa57a Remove use of the macro min() from fl_gleam code, since it triggers redefinition warnings on some build hosts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10143 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-02 09:13:29 +00:00
Manolo Gouy
b6049a3ef4 Fix STR#3039.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-02 06:41:01 +00:00
Ian MacArthur
7278f1ac37 Modify fl_gleam.cxx to experimentally remove
an inclde of <iostreams> and a call to 
"using namespace std;" that appear to be unnecessary
in this code.

Also add the svn $Id$ lines, which appear to have
been missing before.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-01 22:04:26 +00:00
Manolo Gouy
ab220c131a Fix STR#3044 (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10140 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-01 15:55:03 +00:00
Ian MacArthur
b1a6eeeda2 Fix for STR #3044, part 2. (final)
Fix DEBUG statement near line 572 of Fl_File_Icon2.cxx


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-01 09:09:58 +00:00
Ian MacArthur
abb91eed73 Partial fix for STR #3044.
Fixes typo in a DEBUG section of Fl_Native_File_Chooser_WIN32.cxx



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-05-01 09:00:30 +00:00
Manolo Gouy
6f7b09bdf1 Fix STR#3072: text display is slow on WIN32 with Chinese characters.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-30 20:03:12 +00:00
Greg Ercolano
cc4697dbf2 Fixes STR#3065
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-29 03:22:38 +00:00
Manolo Gouy
b6a46a7099 To fix "C++11 related issues" from fltk.coredev.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-28 09:17:12 +00:00
Manolo Gouy
b24f66109d Fix STR#3063: compilation using Mac OS 10.4 (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 15:48:18 +00:00
Manolo Gouy
6d3bb5f754 Fix STR#3063: compilation using Mac OS 10.4 (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-27 14:14:23 +00:00
Greg Ercolano
6ae1b1665e Added "gleam" to docs for Fl::scheme()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-04-19 14:55:15 +00:00
Manolo Gouy
2d845e708a Minor reformatting to follow the coding style of the CMP.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-30 21:32:46 +00:00
Manolo Gouy
623012ad72 Removes a constraint that the fancy string drawing function fl_draw() is limited to 1024 chars/line
that blocked a user of the Fl_Browser widget (see "fl_draw MAXBUF limit" in fltk.coredev).

Also, removed a useless computation in string expansion that checked for valid UTF-8 sequences:
the point is that a valid UTF-8 sequence for a non-ascii char contains no ascii char,
thus no tab, space, control, & or @ we want to process differently. 
Also, invalid UTF-8 sequences are copied unchanged by this procedure.
Therefore, checking for tab, space, control, & or @, and copying the byte otherwise, is enough.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-28 10:15:43 +00:00
Greg Ercolano
7accbfd440 Fixing STR#3009 as a two step process:
1) Undo r9867 (a fix for STR#2939) which made more changes than needed
        Doing this will also fix #3009.
 
     2) Apply just the small mod needed to fix STR#2939
        so that both #3009 and #2939 are solved.

This commit resolves (2), which re-fixes STR #2939.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24 18:24:59 +00:00
Greg Ercolano
fca43790e0 Fixing STR#3009 as a two step process:
1) Undo r9867 (a fix for STR#2939) which made more changes than needed
       Doing this will also fix #3009.

    2) Apply just the small mod needed to fix STR#2939
       so that both #3009 and #2939 are solved.

This commit resolves (1).
Next commit will resolve (2).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-24 18:22:51 +00:00
Manolo Gouy
fac0e9d43a Mac OS: drawing to windows at each FLTK event loop is now done as normally with Cocoa, that is,
by the [NSView drawRect:] implementation. The system therefore has prepared before the 
adequate graphics context for the window.
This introduces a limitation: it's not possible to call Fl::wait(), Fl::check()
nor Fl::ready() while in the draw() function of a widget. Use an idle callback instead.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-22 17:09:07 +00:00
Greg Ercolano
d175f860db Fixed casing issue for code comment: XkbSetDetectableAuto*R*epeat()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-13 16:57:52 +00:00
Manolo Gouy
1ce59d2caa Removed unnecessary clip when printing a sub-window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-03-05 12:55:34 +00:00
Greg Ercolano
595da3e496 Added fl_gleam.cxx..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25 15:10:13 +00:00
Greg Ercolano
c5d5ba1cf5 Applying the etorres gleam patch. STR #2672.
TODO: Xcode 4 ide needs fl_gleam.cxx added
      Test of Visual Studio IDE mods (which were hand-modified)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-25 04:24:41 +00:00
Manolo Gouy
de7a79afd6 print_window():: make the test specific to a printer device.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-23 15:58:12 +00:00
Manolo Gouy
fe4d1af194 Check for use of the Fl_GDI_Printer_Graphics_Driver class to detect printer usage.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-22 15:04:44 +00:00
Manolo Gouy
56ac442c93 Better separate printer-specific code using virtual Fl_GDI_Printer_Graphics_Driver::draw(Fl_Bitmap*...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-22 14:51:50 +00:00
Manolo Gouy
291a25f547 It's better to reset the widget's damage bits after Fl_Paged_Device::print_widget() (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-20 21:16:28 +00:00
Manolo Gouy
079d029379 It's better to reset the widget's damage bits after Fl_Paged_Device::print_widget().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-20 20:22:43 +00:00
Manolo Gouy
dc80217531 Fixed processing of menu shortcuts for Fl_Sys_Menu_Bar
in the case of an invisible item.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-19 16:02:56 +00:00
Manolo Gouy
1122c14443 Invisible items and submenus are now skipped
when building MacOS menus.
Previously, corresponding MacOS items were first built and then deleted.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-19 14:24:49 +00:00
Greg Ercolano
b72cb18681 Fixes STR #3018 -- thanks kdiman for complete patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16 08:36:34 +00:00
Greg Ercolano
9302301809 Fixes STR #3054
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-16 08:24:18 +00:00
Manolo Gouy
e43bf8a1b2 Completed the implementation of Fl_Sys_Menu_Bar that now accepts all calls of its parent class Fl_Menu_.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-11 17:59:20 +00:00
Manolo Gouy
0b6475d8d6 Exclude processing of system menu shortcuts when a modal window is running.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-11 09:02:10 +00:00
Manolo Gouy
b01cbd577b Improvement of the Fl_Sys_Menu_Bar class in relation to STR #3047:
- menu shortcuts, including function keys, are correctly handled
- the mac system menus and FLTK menus share Fl_Menu_Item's, thus 
many member functions of the parent Fl_Menu_ class apply equally
to an Fl_Sys_Menu_Bar.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-10 22:24:27 +00:00
Albrecht Schlosser
ef952dfa53 Fix crash when Fl_Window::flush() is called before show() (STR #3028).
The fix is twofold:
 (1) if Fl_Window::flush() is called, this is ignored silently
 (2) if Fl_Window::make_current() is called directly, but the window
     is currently not shown(), then the program will be terminated
     with an error message.
The latter is necessary because returning from make_current() would
leave the program in a state where it would expect to have a valid
drawing context.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10095 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-07 00:09:52 +00:00
Pierre Ossman
74aeae38cb Revert the revert in r10060, reinstating commit r10030.
The reason the code was problematic was because of r4589, where
a call to PostQuitMessage() snuck in. As we could not find a
valid reason for that PostQuitMessage(), it has been removed and
FLTK is now again properly responsive to WM_QUIT messages.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-05 09:38:22 +00:00
Greg Ercolano
1adf939c59 Fixes STR #3040
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-31 15:52:56 +00:00
Manolo Gouy
e19ea8eb33 Mac OS: have Fl_Paged_Device::print_window() support all devices.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-30 07:10:37 +00:00
Greg Ercolano
ebd1e106aa Fixes STR#3041, int -> size_t
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-27 02:16:24 +00:00
Albrecht Schlosser
f7ac3b417c Fix potential memory leak in text buffer (STR # 3035).
Also small code formatting, remove one redundant statement.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-25 23:47:44 +00:00
Albrecht Schlosser
1d069a1a95 Remove extraneous parentheses, fix STR #3036.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-25 23:04:36 +00:00
Greg Ercolano
1ba5c254f5 More Fl_Tree doc improvements.
Only docs changed here, no code changed..
one method's definition moved to match similar method organization.

Some redundant docs (for const vs. non-const) changed
by referring the non-const method to the const one, to reduce size.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-24 19:03:15 +00:00
Greg Ercolano
6f2c8deaae Small doc tweaks to Fl_Tree's insert()/insert_above() docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10080 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-23 21:12:49 +00:00
Greg Ercolano
a41a41583f Added some code examples to docs for
Fl_Tree::insert()
    Fl_Tree::insert_above()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-23 21:05:17 +00:00
Manolo Gouy
4eee9f1f63 Mac OS: handle possible NULL return after screen capture attempt.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-22 20:39:21 +00:00
Manolo Gouy
4d5e10097e Mac OS: use the exact title bar font when printing window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 14:04:43 +00:00
Albrecht Schlosser
ea23ff1b63 Small documentation fixups.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 14:00:43 +00:00
Albrecht Schlosser
1aba94f136 New method Fl::scheme_is(const char *name).
This is a convenience method to support easier implementation of
scheme-specific code in draw() methods and elsewhere.

Also improved Fl::scheme(const char *name) documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 13:29:15 +00:00
Albrecht Schlosser
41b85d18a4 Fix strcasecmp() issues (again), see STR #2994.
This new temporary fix improves handling of strcasecmp() for
CMake-generated Makefiles (cmake -G "MSYS Makefiles" ..).

For some unknown reason (maybe other compiler flags?) this showed
lots of *warnings* again. A better fix (replacing direct calls to
strcasecmp() with fl_strcasecmp() or similar will follow later.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10074 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 11:07:43 +00:00
Manolo Gouy
c4576badb8 Mac OS: improved window printing when window title is longer than the window width.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 10:22:53 +00:00
Greg Ercolano
9ba8793018 Added missing non-const versions of find_clicked()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-21 03:59:45 +00:00
Greg Ercolano
abdc834705 o Added draw_item_content() to Fl_Tree_Item,
a volatile method that can be overridden by
  subclasses to take drawing control of tree item's content.

  This replaces the old "item_draw_callback()" technique
  added a few months ago as an ABI feature; turned out the
  new technique is a better way to go.

o The examples/tree-custom-draw-items.cxx demo adjusted
  accordingly.

o Added missing docs for some methods that had none,
  including label_[xywh]().

o Added related methods needed to implement this, including:
  	Fl_Tree_Item_Array::replace()
  	Fl_Tree_Item::replace()
	Fl_Tree::root(item)
        Fl_Tree::add() variations
	Fl_Tree_Item::drawbgcolor()/drawfgcolor()


o Carefully worked the FLTK_ABI_VERSION macros so as to be
  ABI compatible with 1.3.0.

o Verified 1.3.0 ABI compatibility with ABI Compliance Checker 1.99.8.5:
  http://ispras.linuxbase.org/index.php/ABI_compliance_checker




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10071 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-20 21:23:24 +00:00
Greg Ercolano
aa71c2f6e1 Implements STR#3031:
* Adds '!' (FL_META) and '@' (FL_COMMAND) modifiers to fl_old_shortcut()
    * Also adds more specific docs on how to properly use



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-20 04:23:41 +00:00
Manolo Gouy
9668cea28b It was incorrect to keep in the system menu pointers to menu items become items move around.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19 18:16:52 +00:00
Manolo Gouy
b4adb7c55d Mac OS: drawing to screen is now performed by direct drawing to windows (drawing was done to views before).
This eliminates the necessity to lock/unlock views that was tricky to do properly because of interaction with
undocumented system-performed locks.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-19 10:00:37 +00:00
Manolo Gouy
d7cc67d2f1 Mac OS: put idle processing under an alloc/release pair of an NSAutoreleasePool.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-18 16:28:59 +00:00
Manolo Gouy
f1bc3999d6 Two functions strcnt() with distinct prototypes where defined and only one was used,
causing a -Wunused-function warning. Also strcnt() is used in WIN32 only, so should not
belong to Fl_Native_File_Chooser_common.cxx that contains functions used across
platforms.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16 16:10:19 +00:00
Manolo Gouy
a170c95787 Better way to force linking of Fl_Gl_Device_Plugin.o whenever Fl_Gl_Window.o is linked,
that doesn't use the "volatile" attribute (suggested by Albrecht).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16 15:38:06 +00:00
Greg Ercolano
b849a1d2d9 ABI fixes.
These are problems "ABI Compliance Checker" found with the recent
Fl_Tree mods.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-16 00:58:58 +00:00
Manolo Gouy
9c6eb8be29 Mac OS: when computing a texture, save/restore the global fl_gc variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-15 21:47:37 +00:00
Manolo Gouy
fe1793f13b Stepping back from r.10030: when you close any window it stops the program!
Try with test/editor, opening several windows, and closing one.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-15 14:02:57 +00:00
Manolo Gouy
3001cc1ab3 Added the static attribute to the 2 new functions strcnt() because all functions here must be static.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-14 18:17:24 +00:00
Pierre Ossman
9d2da70d04 32-bit properties are always represented by a long. Using
unsigned causes us to read the wrong values on x86_64.
The length is also defined as the number of 32-bit values,
not the number of bytes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-14 15:57:45 +00:00
Manolo Gouy
452ce6e502 Added missing PMRelease() calls that match PMCreateXXX() calls (Mac OS before 10.5 only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-14 12:49:44 +00:00
Greg Ercolano
6beedf4c28 Fix small memleak in Fl_Tree::show_self() [used only for debugging anyway]
and convert from malloc/free -> new/delete



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-14 01:08:40 +00:00
Greg Ercolano
bffc6b36ae Fix small memleak in parse_path() if user tries to add() paths like "" or "/".
Also shrunk implementation code.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-13 14:41:23 +00:00
Manolo Gouy
bcfdbe35e7 To force linking of Fl_Gl_Device_Plugin.o when Fl_Gl_Window.o is linked, an additional volatile
seems necessary, at least on Mac OS with optimized compilation.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-10 17:49:07 +00:00
Manolo Gouy
70d97dd76d A redraw of the GL window may be necessary before printing, at least with the glpuzzle demo on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-10 16:50:55 +00:00
Manolo Gouy
97448d6bca Restored the statement removed at r.9992 because it's required so Fl_Gl_Device_Plugin.o is loaded,
and so printing of GL windows works.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-09 20:11:45 +00:00
Manolo Gouy
e543d2c763 Cleaner definition under Mac OS of the fl_default_cursor global variable that doesn't hide its type.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-07 15:31:28 +00:00
Albrecht Schlosser
56b7434dd0 Remove unused variable warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10047 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-07 01:28:43 +00:00
Greg Ercolano
70865d6c10 Fixes STR# 3025; string overflow with large filter()s.
Replaced fixed arrays with dynamic strings.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10046 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-06 17:52:06 +00:00
Greg Ercolano
8ecd7a1abb Fix mem leak with 'oldcwd' if user hits 'cancel' button in browser..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-06 01:01:52 +00:00
Albrecht Schlosser
738563f973 Fixed missing libdl dependency in CMake builds (STR #2977).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-03 16:42:21 +00:00
Albrecht Schlosser
642c475493 Fixed segfault in fl_set_fonts_xft.cxx when loading fonts not named
as expected (STR #2976).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-03 16:17:05 +00:00
Greg Ercolano
a4550ade99 * Fixes STR#3024 issue with Fl_Tree::find_item()
* Removes redundant const vs. non-const code
  using technique from Scott Meyers' book "Effective C++", 3rd Ed.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10038 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-28 22:26:22 +00:00
Manolo Gouy
c90f1904fa Mac OS text input: fixed minor problem when typing cmd-key while there's marked text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-20 18:29:02 +00:00
Greg Ercolano
d36882e67e Adds horizontal scrollbar to Fl_Tree as an ABI 1.3.3 feature.
***************************************************************
NOTE: You MUST uncomment the FLTK_ABI_VERSION in Enumerations.H
      to use these changes.
***************************************************************

Also: separated tree size calculation from draw() code,
so that one can cause the tree to recalculate immediately
after making modifications to the tree by calling Fl_Tree::calc_tree().

Numerous improvements to docs for the tree as well, enough
to create a rather large diff.

Large internal changes were needed to do this properly.
The following was added to the CHANGES file:

	- Fl_Tree: various related changes:
	    o Added horizontal scrollbar
	    o Separated draw() and tree size calculation
	    o Added new public methods:
	        > resize()           -- uses optimized dim calc, avoids tree recalc
		> next_item()        -- added parameters: direction, visibility
		> extend_selection() -- added parameters, improved algorithm
		> calc_dimensions()  -- calc tix/y/w/h, tox/y/w/h and scrollbars
		> calc_tree()        -- calc tree_w/tree_h
		> recalc_tree()      -- schedules calc_tree()
		> first_visible_item(), last_visible_item(), next_visible_item()
		> first_selected_item(), last_selected_item(), next_selected_item()
	    o Added protected variables:
	        > _tix/y/w/h      -- tree widget 'inner' dimension
		> _tox/y/w/h      -- tree widget 'outer' dimension
		> _tree_w,_tree_h -- entire tree hierarchy width/height
	    o Deprecated:
	        > item_clicked() -- use callback_item() instead
		> first_visible() -- use first_visible_item() instead
		> last_visible() -- use last_visible_item() instead

	- Fl_Tree_Item: various related changes:
	    o Added Fl_Tree ptr: needed for auto-recalc when item modified directly
	    o Added new methods tree(), recalc_tree()
	    o Added new ctor that accepts Fl_Tree*
	    o draw() parameters changed to include tree size calculations
	    o Deprecated:
	       > ctor using Fl_Tree_Prefs parameter (Fl_Tree* version better,
	         and must be used for 1.3.3 ABI features to work correctly)
	       > next_displayed() -- use next_visible() instead
	       > prev_displayed() -- use prev_visible() instead

	- test/tree: added tests for newly added features




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-15 18:59:02 +00:00
Manolo Gouy
34c69d3922 Fix for STR#3016: Fl_Input and Fl_Text_Editor have now the standard behavior when doing
drag-n-drop of text: if the dragged text is dropped in the widget it comes from, it's cut and pasted.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-13 16:28:38 +00:00
Pierre Ossman
f7e88141c3 Catch WM_QUIT and convert it to SIGTERM. This gives Windows
applications a convenient way to request termination, rather
than forcing it. And it does so in a way that mimics UNIX's
way, allowing code reuse.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-13 10:26:03 +00:00
Manolo Gouy
c65852122c Added informative comment to Fl_Paged_Device::print_window()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-11 14:31:27 +00:00
Manolo Gouy
0e8f2f786b Removed use of deprecated NSStringPboardType constant.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10025 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-10 12:07:09 +00:00
Manolo Gouy
b11af6e5e1 Simplified the code that supports application opening by dropping file onto icon.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-09 12:12:26 +00:00
Manolo Gouy
076de1c617 Improved window printing by using a vectorial font for the window title.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-12-08 16:16:24 +00:00
Manolo Gouy
1f6585c15a The FLView object is now released just after the setContentView message is sent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-30 21:50:00 +00:00
Manolo Gouy
05dd61d4ee Fix STR#3010: Program can crash under Mac OS when a dialog window is closed
if the opening of this dialog window made the previous window to be redrawn.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-29 18:14:49 +00:00
Manolo Gouy
8f34835c17 Explicit what unicode characters represent keyboard modifiers in menus on the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-25 10:05:05 +00:00
Manolo Gouy
6b67e50cbe Bracket calls to timer callbacks with fl_lock_function()/fl_unlock_function() as occurs under WIN32 and X11.
This was also missing in the FLTK 1.1 carbon version.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10019 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-13 15:49:48 +00:00
Greg Ercolano
88cea3c82d o Added Fl_Tree::item_draw_callback(), letting one define a custom draw function for Fl_Tree_Item's.
o Added examples/tree-custom-draw-items.cxx to demonstrate its use.
o Fixed small doc error for recent Fl_Tree::get_selected_items()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-10 04:33:44 +00:00
Greg Ercolano
33ab9cfed1 Fl_Tree:
o Added new method Fl_Tree::get_selected_items()
	o Modified Fl_Tree_Item_Array to usable in a general way (i.e. beyond Fl_Tree's internal use)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-06 20:44:47 +00:00
Greg Ercolano
52d395ad81 Fix problem with Fl_Tree::select_only() invoking select callbacks
before all other items have first been deselected.

Also: added some related demo code to tree-simple to demonstrate
'reselect' callbacks, where a callback can be invoked when an item
that's selected already is 're-selected'.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-11-06 20:12:08 +00:00
Manolo Gouy
2fd7086605 Improved the ordering of font names consistently grouping them by family (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10014 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-30 13:36:16 +00:00
Manolo Gouy
830f9eec89 Improved the ordering of font names consistently grouping them by family.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-30 12:03:49 +00:00
Manolo Gouy
8550d28608 After r.10011 that removed the q_name member from class Fl_Font_Descriptor, change in gl_font() was needed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-29 14:48:26 +00:00
Manolo Gouy
1ad6b09de7 Fix mac-specific STR#2999. Use PostScript font name to ask the system for a font, and full font name
to display a font name.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-29 12:46:51 +00:00
Manolo Gouy
4827a696df Modified Fl_Paged_Device::print_window() so it works with any kind of Fl_Paged_Device instance.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10007 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-23 14:39:14 +00:00
Manolo Gouy
49e2f6e9db Replaced one fopen() call by fl_fopen() to work correctly under MSWindows with non ASCII filenames.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10006 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-23 09:24:30 +00:00
Greg Ercolano
45d7ae0a4c Fixes STR#2991: prevents crash when file browser
encounters an image that can't be loaded.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10004 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-21 04:58:43 +00:00
Greg Ercolano
da187139bc STR #2991: No functionality changed.
Simplify used_colors[]: replace uchar array with rgb struct.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-21 03:39:53 +00:00
Greg Ercolano
fb16febf3c Fix brace indents, various code cosmetics/comments.
No functionality changed yet; preparation for STR #2991 mods.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10002 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-21 03:33:11 +00:00
Greg Ercolano
a40aa8311b While investigating STR#2991, noted (but did not remove) misleading comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10001 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-20 23:07:01 +00:00
Greg Ercolano
a5f2ef5ccd When reading XPMs, don't parse more than 2 hex digits
in \xff style escape sequences.

Also, 10000'th commit. :P



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-20 22:35:31 +00:00
Greg Ercolano
da737bb10b Avoid freeing NULL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-20 20:17:13 +00:00
Albrecht Schlosser
e77c0cd47c Small addition to fix for STR #2985 - see comment in source file.
Fixes a small potential of another leak.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9998 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-09 11:46:36 +00:00
Manolo Gouy
83e4329695 Added member function Fl_Sys_Menu_Bar::update().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9997 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-05 15:20:18 +00:00
Greg Ercolano
2fcb616831 Added note regarding Windows not always handling
file: uris with anchor suffixes properly.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-10-04 16:48:08 +00:00
Greg Ercolano
a8417b6eb8 Apply Michael Baeuerle's fix for NetBSD
(as per discussion on fltk.general Sep 24 2013, Subject: Potential problem in xutf8/utf8Wrap.c)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9994 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25 21:09:00 +00:00
Manolo Gouy
ce0e298a8a Removed some of the warnings mentioned in [fltk.coredev] New warnings with FLTK 1.3.x svn r9991
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9993 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-25 08:55:01 +00:00
Greg Ercolano
15367447cd Fix some warnings for IRIX 6.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9992 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 19:58:24 +00:00
Manolo Gouy
99f2010dce Remove errors with the Apple LLVM version 4.2 compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 16:25:29 +00:00
Manolo Gouy
1029debb66 Clarification of change in constant used for text-containing pasteboards across Mac OS versions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-24 08:27:10 +00:00
Manolo Gouy
3d7d2938c7 Fixes the copy/paste implementation to run on many Mac OS versions.
Checked on 10.3, 10.5, 10.6 and 10.8

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 19:00:15 +00:00
Manolo Gouy
cedcc3f52e Fixed implementation of paste with NSPasteboard that did not work well under Mac OS 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-23 15:01:54 +00:00
Greg Ercolano
25ff26df12 STR #2973: Removed old HP-UX dummy() code in favor of typedef;
Skunk confirms compiles on two HP-UX variants as well as Sun.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 17:20:48 +00:00
Greg Ercolano
81dfeab19e Fixed some odd/misleading code indent issues in this file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 03:22:41 +00:00
Greg Ercolano
5d4fed1ef9 STR #2860: Mods for full screen support.
Applied the fltk-1.3.x-screen_num.patch



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-22 02:33:17 +00:00