Commit Graph

3399 Commits

Author SHA1 Message Date
Manolo Gouy
f300b70a99 Added missing #if FLTK_ABI_VERSION >= 10303, that prevented ABI-preserving compilation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-28 09:49:50 +00:00
Greg Ercolano
15b6c5f12a Explicitly document NULL is not a valid argument for Fl_Text_Display::linenumber_format().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27 20:01:41 +00:00
Greg Ercolano
78127ffdd5 Internally manage alloc'ed copy of linenumber_format().
(As per Alrecht's comment #9 in STR #2621)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27 19:47:12 +00:00
Albrecht Schlosser
6b6f375af0 Fix documentation of Fl_Input_::word_start() and word_end().
Documentation changes in svn r10383 (STR #3014) said that this would skip
"space-separated" words, which is not true.

Note: The set of word separators is currently not documented, it is
inconsistent with Fl_Text_Display/Fl_Text_Editor, and not UTF-8-aware.
Also, word selection and the above methods use different word delimiters.
This should be fixed in a later release (after 1.3.3).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-27 12:49:47 +00:00
Manolo Gouy
ffdc36dcb6 Print at high res with Fl_Paged_Device::print_window_part() when using a retina display
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-26 15:23:03 +00:00
Manolo Gouy
9d5fde73b6 Fixed uchar arguments of fl_rgb_color() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 13:25:55 +00:00
Albrecht Schlosser
8bc8a2fc34 Fix potential compiler warning, seen under MinGW with gcc 4.8.1.
In fact this warning is a false positive, but fixed anyway.
Warning was: x, y may be used uninitialized (or similar).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 11:33:43 +00:00
Manolo Gouy
4db77674c3 Removed compilation warnings in fl_rgb_color() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 11:08:16 +00:00
Manolo Gouy
69d5e00ce4 Fixed printing of window title bar buttons under Mac OS X 10.10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10389 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-23 09:04:30 +00:00
Manolo Gouy
a6878f94ef Fixed error in computation of when the window is not fully contained in the display.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-22 16:27:20 +00:00
Pierre Ossman
8592cddcfd We need to put the newly created window in our window list
as quickly as possible or we might miss important window
messages.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-20 15:14:12 +00:00
Albrecht Schlosser
92ff2e30bc Update docs related to buttons and update Fl_Check_Button.png.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-19 20:17:17 +00:00
Albrecht Schlosser
25cf93b4cb Improve and reorganize Fl_Tile's documentation and test/tile demo.
Moved docs from header file and enhanced docs, particularly about the
resizable() widget and the resize behavior in general.

Changed the tile demo program to use a resizable() with 20 pixels
border distance, so that border dragging is limited as described in the
docs. Updated the image file to reflect the current test/tile.cxx demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10385 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-19 14:17:47 +00:00
Albrecht Schlosser
4774c26182 Fix word select dragging bug in text input (STR #3014).
Thanks to Evan Laforge for spotting this and supplying a patch.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10383 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-16 12:15:12 +00:00
Ian MacArthur
68e6e95312 Adjust the Fl_Preferences method
char Fl_Preferences::RootNode::getPath( char *path, int pathlen )

so that it returns a (1), rather than a (-1) in the case that
RUNTIME preferences are being read.

This is for several reasons:

- On some platforms, char is unsigned, so a method that is spec'd to 
return a char type can not safely return (-1) as a value.

- It seems like (most?) other fltk methods that return 
char true/false results return 0 or 1, so this is more consistent.


Thanks to Michael Baeuerle for spotting this one.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-14 12:10:18 +00:00
Albrecht Schlosser
d24a6b2633 Move RGB image scaling algorithm methods in base class Fl_Image.
See also discussion in fltk.coredev of Sept 07, 2014 and later
with subject "Fixing the nearest-neighbour scaling".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-14 11:53:51 +00:00
Manolo Gouy
a3845fc51d Improved Fl_Paged_Device::print_window() when used on an Apple computer with a retina display:
the window tittle bar is printed at high resolution.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-11 14:33:43 +00:00
Manolo Gouy
6232a298f3 Fixed errors in fl_read_image() and Fl_Paged_Device::print_window_part()
when using Apple computers with retina displays.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-11 13:43:06 +00:00
Pierre Ossman
3e4af3cd8c Make sure we unregister for clipboard notifications on exit
on Windows. This is necessary because Windows doesn't implicitly
clean up when a process dies, and we cannot trust applications to
always explicitly unregister.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10367 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-09 12:52:05 +00:00
Pierre Ossman
933840f353 Start putting forward declarations early in the file in an
organised manner. Keeps things cleaner.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-09 11:52:43 +00:00
Pierre Ossman
6d06bb425d Make the retargeting of the Windows clipboard notification
more explicit. Otherwise we could end up with
Fl::remove_clipboard_notify() unregistering, just to have it
immediately re-register again.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-08 12:47:20 +00:00
Albrecht Schlosser
15de7c0600 Fix border padding for special cases (STR #3061), Windows only.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-08 11:57:43 +00:00
Albrecht Schlosser
d92be3f5f1 Reduce "deprecated function" compiler warnings (STR #2913).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 16:51:24 +00:00
Albrecht Schlosser
02b1646d0e Make image data 'const' for all image types in fluid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 11:56:06 +00:00
Albrecht Schlosser
386c2413f8 More 1.3.3 version updates and changes in src/*.fl.
There had been manual changes in fluid-generated files, so the .fl files
had to be adjusted and updated to fltk 1.3.3.

Note that fluid SHOULD generate 'const' data for embedded images, but
doesn't yet, so I had to re-edit src/Fl_File_Chooser.cxx to keep the
previous 'const' changes in this file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-10-05 11:28:29 +00:00
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