Commit Graph

3574 Commits

Author SHA1 Message Date
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
Greg Ercolano
2082d7e197 Fixes STR# 2973: collection of Sun compiler fixes.
Applied str_2973_r9979_sun-fix-warnings-7.patch (with small mods)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-21 16:41:23 +00:00
Greg Ercolano
2fc6c3a39b Fixes STR #2985: prevent memory leaks with XGetWindowProperty()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-20 03:36:02 +00:00
Greg Ercolano
67ed1a8da9 STR# #2973: applied patch str_2973_r9958_sun-fix-errors-5.patch verbatim.
src/Fl_Tree_Item.cxx -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    FL/Fl_Preferences.H  -- solve: "FL/Fl_Preferences.H", line 196: Error: Fl_Preferences::RootNode is not accessible from 0
    FL/Fl_Tree_Item.H    -- solve: "Fl_Tree_Item.cxx",    line 614: Error: Initializing int& requires an lvalue.
    test/unittests.cxx   -- solve: "unittests.cxx",        line 95: Error: The type "UnitTest*[]" is incomplete.
            


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 20:25:14 +00:00
Greg Ercolano
578310dd0f Fix Solaris warnings mentioned by Micha on fltk.coredev Sep 16 '13
in thread entitled "Re: STR 2636, clipboard notification".



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-16 12:02:40 +00:00
Manolo Gouy
3baf5e0d58 Implemented copy/paste with Cocoa's NSPasteboard instead of Core Foundation's Pasteboard Manager
which allows quite simpler code.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9975 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-12 12:21:57 +00:00
Pierre Ossman
1d6cc80d59 STR 2636. Add ability to get notifications whenever the
clipboard changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:54:40 +00:00
Pierre Ossman
f410352c7c Copy over NSInteger safety typedefs from Fl_cocoa.mm
so that we can continue to compile for OS X 10.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9973 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 12:06:03 +00:00
Pierre Ossman
9ce5d7c2ad Simplify clipboard handling on Windows by consolidating
it into one central function. 


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-11 11:11:22 +00:00
Manolo Gouy
65226e073e Fixed typo in comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06 09:24:28 +00:00
Manolo Gouy
1fa38347bb Fixed typo in Doxygen doc of Fl::compose(int&)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-06 09:03:22 +00:00
Manolo Gouy
bc17e8c6f9 Removed linkage with undocumented function CPSEnableForegroundOperation() used to support
Mac OS 10.2 or below. This made no sense because the Copy/Paste implementation requires Mac OS 10.3.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9964 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-05 09:12:35 +00:00
Manolo Gouy
cc68c2e43c Copy directly pasteboard data when pasting if it's UTF-8 encoded.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9962 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 14:39:59 +00:00
Manolo Gouy
0585de060c Added fl_lock/unlock_function() calls for extra caution in - (void)applicationDidChangeScreenParameters:
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9959 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-09-04 09:30:18 +00:00
Manolo Gouy
c450606e4e Fixed mac-specific minor error visible when typing forward-delete in keyboard demo program.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9952 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-07-23 16:02:44 +00:00
Manolo Gouy
86c9ef0c76 Fixed a PostScript error triggered when calling
Fl_PostScript_Graphics_Driver::arc(int x, int y, int w, int h, double a1, double a2)
with w == 1 or h == 1, as reported in 
http://www.fltk.org/newsgroups.php?s28125+gfltk.general+v28133


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-07-16 19:09:57 +00:00
Ian MacArthur
998020f758 Remove a header file I added during testing, but which is not required now...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-06 12:59:24 +00:00
Ian MacArthur
c9598ade18 Attempt to fix UTF8 encoding of WIN32 Native File Chooser BROWSE_DIRECTORY options
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-06-06 12:10:44 +00:00
Manolo Gouy
12fbd8b6b4 Mac OS X text input: stop sending the FL_PASTE event after character palette events;
send instead FL_KEYBOARD as for regular text input. Fl::event_key() will return 0 during
palette events.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-29 09:12:38 +00:00
Manolo Gouy
502280c097 It doesn't seem necessary to redraw a GL window before capturing its pixel content.
Calling Fl_Gl_Window::make_current() is enough.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9921 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-19 12:34:31 +00:00
Greg Ercolano
d31afde9d8 Fixes STR #2962: Applied patch from ossman
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9920 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-16 13:48:22 +00:00
Manolo Gouy
a22eba2b38 Fixes Fl_System_Printer::printable_rect() and Fl_System_Printer::margins() that did not work well
after calls to Fl_System_Printer::translate() under MSWindows.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-15 13:42:19 +00:00
Manolo Gouy
0d04ce9f58 Fixes a typo introduced at r.9915.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9916 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-15 10:50:10 +00:00
Manolo Gouy
75076f6a40 Fixes a MSWindows' specific bug where GL windows where not printed at their correct location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-13 16:53:59 +00:00
Manolo Gouy
110cd81b1e Call [NSWindow setRestorable:NO] for each FLTK window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9910 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-08 13:11:56 +00:00
Manolo Gouy
b62d3ae87b print_gl_window(): it's safer to memorize and restore the value of the fl_window global variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-05-04 21:14:31 +00:00
Manolo Gouy
a2d821cc2e Use the [NSimage initWithCGImage:size:] message when possible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-30 08:56:28 +00:00
Ian MacArthur
2e5c45aec7 Test of repo access - non-changing in terms of functionality!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26 16:00:36 +00:00
Manolo Gouy
076eb8679f Changed © (copyright) date to 2013.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-26 14:15:25 +00:00
Manolo Gouy
c4494a94a7 Cosmetic improvement of image used when dragging non-text data.
Minimum OS version has been verified.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-19 09:20:56 +00:00
Manolo Gouy
53e2e603d0 Cosmetic improvement of image used when dragging non-text data.
Minimum OS version still has to be verified.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-18 16:15:59 +00:00
Manolo Gouy
a758910517 Removed some unnecessary data duplication.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-17 12:06:04 +00:00
Manolo Gouy
702dd3b9ba Updated describing comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-17 07:45:31 +00:00
Manolo Gouy
5c513270f9 Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because objective-c code is used (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 14:11:21 +00:00
Manolo Gouy
6b69461ea9 Renamed src/Fl_Sys_Menu_Bar.cxx to src/Fl_Sys_Menu_Bar.mm because objective-c code is used.
Some code is transferred from Fl_cocoa.mm thus reducing somewhat this very large source file.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 14:02:42 +00:00
Ian MacArthur
b176f4d3f6 Apply the *nix file-chooser patches from STR #2935.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-16 12:02:23 +00:00
Manolo Gouy
850bda435b Removed processing of obsolete deadkey flag.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9882 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15 13:34:46 +00:00
Manolo Gouy
4c97f14e88 Reduced the usage of global variables.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-15 11:00:24 +00:00
Greg Ercolano
5fda885c03 Switched to const_cast<> for calling as_window().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-12 18:40:00 +00:00
Greg Ercolano
f04ff44f8c Small fixes to new top_window_offset() method as per discussion in STR #2948.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-12 16:46:35 +00:00
Ian MacArthur
55af432c2c fl_set_fonts_xft had a lower case, rather than upper case "S" in the switch so would not detect the SuperBold font style correctly.
Also, do a bit of defensive clipping of the generated font name, in case we run off the end of the name buffer (if the input font name is infeasibly long...!)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-12 09:52:31 +00:00
Greg Ercolano
9fc45db999 As per notes from STR#2948:
Moved top_window_offset() to being a member of Fl_Widget (was Fl_Window)
    and moved its code near implementations of top_window() and window().



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10 21:16:16 +00:00
Greg Ercolano
3fe3f24427 Solve STR#2948: Add new method Fl_Widget::top_window() to return the widget's top-level window.
Docs for existing Fl_Widget::window() revised to clarify the difference between these two methods.

Docs for window() also moved from .H -> .cxx as per CMP (docs should be where code implementation is).



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10 20:51:24 +00:00
Greg Ercolano
936f01be5c While suggesting a new top_window() method for STR#2948,
it's realized that for consistency, the recently added window_offset() method
(a few days ago) should be renamed to top_window_offset().



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10 20:13:12 +00:00
Greg Ercolano
386b12b770 Fix STR# 2772: remove dead code in fl_measure()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-09 20:11:28 +00:00
Greg Ercolano
6bcd9390f8 Solves STR #2939; adding when() support to Fl_Tabs.
Also added a general Fl_Tabs code example to the docs.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 20:18:40 +00:00
Greg Ercolano
d5404dea25 Fix for STR #2944 [2]: Fix Apple-specifc nested window problem for Fl_Gl_Window's.
Added new method Fl_Widget::window_offset(x,y)
		       to access the top-level window offset of the current widget.

		       Open to alternative names for the new method.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9866 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 18:24:17 +00:00
Greg Ercolano
2a5d5aab30 Fix STR# 2944 [1]: When an app uses overlays and gl_draw(),
gl_draw() would mess up the raster position
		   affecting the Mac overlay emulation in swapbuffer code.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-08 16:49:55 +00:00
Greg Ercolano
c3a84e475f Small comment mods regarding Fl_mac.cxx -> Fl_cocoa.mm
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:35:05 +00:00
Greg Ercolano
a1672828b5 Removing Fl_mac.cxx -- this code is no longer used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-06 16:31:35 +00:00
Manolo Gouy
a5ee07c420 File config.h is included with #include <config.h> in scandir.c as everywhere else.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-05 14:14:08 +00:00
Greg Ercolano
bbbde512e8 Code readability -- No logic was changed.
o Adjusted /*FALLTHROUGH*/ comments for clarity
    o Added /* NOTREACHED */ comment for clarity
    o Brace cosmetics



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9855 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 18:26:36 +00:00
Greg Ercolano
57df8e1b1a Document Fl_Tabs::value()'s integer return value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 04:36:51 +00:00
Greg Ercolano
ee0af8c6a7 Documenting the public methods Fl_Tabs::push()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-29 03:37:04 +00:00
Greg Ercolano
2aefc1f60c Added docs for undocumented public 'which()' method.
Added a \todo marker for undocumented public 'push()' method.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-26 01:55:01 +00:00
Greg Ercolano
4f24b4cc65 Default behavior of table /without/ ABI mods is to follow strict rule
where Tab and Shift-Tab navigate off the table widget.

This enables the Tab key to work properly with:

	o The test/table program; Tab can move focus to other input fields

	o With the foo_v2.cxx example code in STR#2862, Tab can navigate
	  to/from the Fl_Input field



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 09:25:27 +00:00
Greg Ercolano
81c20e30a4 o Added tab_cell_nav() method to control Tab/Shift-Tab navigation of table cells.
o Added move_cursor(R,C,shiftflag). Needed allow Shift-Tab not to create a reverse selection.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-23 07:55:09 +00:00
Greg Ercolano
6ab7797f63 Added examples for Fl::option() methods
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9836 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-17 05:24:58 +00:00
Ian MacArthur
97916ba84a Oops! Forgot to update the copyright date.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-06 22:17:44 +00:00
Ian MacArthur
8e789d61a3 This check-in brings in the simplified version of
Michael Baeuerle's patch to restore scandir like
operation on *nix like hosts that do not provide a
native scandir implementation, notably SunOS and
some others.

STR #2931 refers...

These changes are tested to have no effect on OSX,
Win32 or Linux systems, and indeed on any system that
has a working scandir implementation that configure
can detect.

Michael has released these changes to the fltk project,
and they are licensed under our usual conditons.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9832 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-03-06 22:15:01 +00:00
Albrecht Schlosser
618eb31b20 Update version number in src/Makefile (STR #2932).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-28 23:16:27 +00:00
Manolo Gouy
dbae4f68c7 Introduced new Fl_Native_File_Chooser option USE_FILTER_EXT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-19 15:25:17 +00:00
Manolo Gouy
3e7386137e Introduced new Fl_Native_File_Chooser option USE_FILTER_EXT.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-19 15:19:58 +00:00
Greg Ercolano
8f8c52939e Fixes STR#2930:
Applying Chris's patch to fix d+d of text selections from Firefox/Thunderbird -> FLTK.
    Also applied Greg's fix for d+d of utf8 text in same use case.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-14 18:40:04 +00:00
Manolo Gouy
9ba6dd4a59 Mac OS Fl_Native_File_Chooser: when saving with multiple filters, changing the file type changes
the output file extension in the dialog window.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9821 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-12 13:20:11 +00:00
Manolo Gouy
7f9e6ae829 Mac OS save file dialog: display extension of preset file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-11 12:11:30 +00:00
Manolo Gouy
42cc953b0b Mac OS text input: fixed processing of dead key followed by non-text key.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9817 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-09 13:54:58 +00:00
Manolo Gouy
914e7f9b09 Mac OS text input: removed the Fl::marked_text_length() function that's not necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-08 11:58:19 +00:00
Manolo Gouy
b22744aac0 Mac OS text input: a single FL_KEYBOARD event is now sent when processing dead keys.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-02-02 15:46:00 +00:00
Manolo Gouy
49f8a3cfc9 Fix STR#2928: alt+e on US keyboard not processed correctly as shortcut on Mac OS.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9811 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-28 21:05:29 +00:00
Manolo Gouy
834c714f26 Mac OS: added support for internationalization of the application menu.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-25 16:28:49 +00:00
Manolo Gouy
9dc0f6016c Fixed STR#2921 by adding 2 missing colons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-21 09:25:25 +00:00
Manolo Gouy
b5a9c5218a Mac OS: changed memory allocation style of static NSBitmapImageRep* rect_to_NSBitmapImageRep().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9805 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-20 16:54:23 +00:00
Manolo Gouy
161bdb8973 Mac OS: fixed a crash when printing window with OS 10.5
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 14:07:34 +00:00
Manolo Gouy
511c14e47d Mac OS: fixed processing of system menu shortcuts that had been partly damaged in r.9799,
and fixed application menu with OS <= 10.3 that was duplicated.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9803 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-19 09:49:33 +00:00
Manolo Gouy
b08f91e529 r.9800 was a bad move; going back.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 17:12:39 +00:00
Manolo Gouy
a0ef82b7dc Simplification of the - (BOOL)[FLView performKeyEquivalent:(NSEvent*)theEvent] method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-18 16:34:58 +00:00
Manolo Gouy
81da29ff12 Mac OS: reorganized the text input handling code. Added a detailed description of what the code does
for this rather complex issue in comments.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-17 17:40:53 +00:00
Manolo Gouy
e1ddb7952a Removed compilation warnings with old Mac OS SDKs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 15:25:39 +00:00
Manolo Gouy
6e880cee6a Allow compilation with early Mac OS versions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-16 08:45:35 +00:00
Manolo Gouy
9e67096dbb Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
some key opens a window with possible accented characters: added [NSView windowLevel] useful for
fullscreen windows.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-14 09:07:34 +00:00
Manolo Gouy
482c4a5e0a Mac OS: added support for the text input feature introduced in OS 10.7 "Lion" where pressing and holding
some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and
Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default
behavior is to not use it. Fl_Secret_Input turns it off, for example.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13 15:25:37 +00:00
Manolo Gouy
e042966ae7 About the fix for a problem apparent with the "cube" test program:
if the cube window is moved around rapidly, the GL pixels leak away from where they should be.
This problem no longer occurs with Mac OS 10.7 and above. The fix is thus made effective
only when OS < 10.7.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-10 08:57:19 +00:00
Manolo Gouy
57771e16fd Fix STR#2915 where subwindow stayed hidden after hide() and then show().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-08 21:06:29 +00:00
Manolo Gouy
31e49fcf12 Mac OS: divided the FLDelegate object in two objects, FLWindowDelegate and FLAppDelegate.
This might help mixing FLTK and other window-creating systems.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-07 15:56:14 +00:00
Manolo Gouy
0c6ad247dd Display the moving insertion point when doing drag&drop to an Fl_Text_Display widget from the widget itself.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-29 11:58:49 +00:00
Manolo Gouy
d879e4b2e8 Added support for JIS (Japanese) keyboards under Mac OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-26 19:44:56 +00:00
Manolo Gouy
28a85d27e9 Mac OS text input: corrected processing of arrow keys during character composition.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-26 14:02:59 +00:00
Manolo Gouy
a4c021e595 Repaired Fl_PostScript_Printer::start_job() that didn't work well when its 1st argument was 0
to indicate unknown number of pages.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-25 21:18:12 +00:00
Manolo Gouy
cf672dba0d Mac OS text input: defined a small API that user-defined text editing widgets can use to signal marked text.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-24 11:45:07 +00:00
Manolo Gouy
3c72b20458 Handle special case for multiline input with 'old tab behavior' where tab is entered as a character:
didn't work when selection had been done with ctrl-A.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-24 04:06:46 +00:00
Manolo Gouy
d7a5f3f04a Mac OS text input: corrected minor issue when text widget is in a subwindow (cont'd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20 16:00:04 +00:00
Manolo Gouy
4ab7e91c61 Mac OS text input: corrected minor issue when text widget is in a subwindow.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-20 15:12:32 +00:00
Manolo Gouy
7ab1a8b204 Mac OS text input: marked text is now underlined.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-19 08:50:34 +00:00
Manolo Gouy
81c98f228b Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18 16:06:56 +00:00
Manolo Gouy
fd2cc45334 Mac OS text input support: Last change in Fl_Text_Display useless because HIGHLIGHT_MASK
is not used anymore for marked text..

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18 14:54:08 +00:00
Manolo Gouy
a59ec3744d Mac OS text input support: use primary selection for marked text in Fl_Text_Display + some reformatting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-18 14:24:07 +00:00
Manolo Gouy
46abc078b4 Mac OS: improved text input support with visible display of marked text in text widgets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-17 17:44:15 +00:00
Manolo Gouy
3eb27ccf3e Mac OS text input: set marked text as selected in text widgets so user is aware of it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9759 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-16 16:04:02 +00:00
Manolo Gouy
558812966c Mac OS text input: handle modifier keys after dead key.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9758 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-16 10:19:49 +00:00
Manolo Gouy
05d20db147 Mac OS text input: Fl::compose_state is a number of bytes (not of characters).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-12-15 22:03:55 +00:00