Commit Graph

1260 Commits

Author SHA1 Message Date
Michael R Sweet
b7c2c08f1e Tweek OS/2 config header...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-19 14:19:10 +00:00
Matthias Melcher
dc5fa8454c Fl_Preferences: fixed delete/free confusion, updated docu and sample on buffer size issue (buffer needs to allow for additional byte for trailing zero)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-17 21:17:05 +00:00
Michael R Sweet
6a726f5087 Fix redraw area for focus box on buttons with no box.
Typo in comments for new string functions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-17 11:31:09 +00:00
Matthias Melcher
8b3472fa1f Fixed Fl_Preferences: access() needs to include
<io.h> for Win32


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 20:53:22 +00:00
Michael R Sweet
88d54cd78b Massive update to use strlcpy() and strlcat() instead of strncpy()
and strncat() in almost all places (there are still a few strncpy's
that need to be used...)

Added configure check for strlcat() and strlcpy().

Added emulation code for strlcat() and strlcpy().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 12:47:44 +00:00
Bill Spitzak
3654682476 Small fix so it compiles on OS/X (Darwin), access() needed header file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2237 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 08:01:12 +00:00
Bill Spitzak
8fd4b107da Slight change to menu fix so that events only go to the grab() widget.
Changed Win32 dnd slightly so a [+] cursor is used instead of the link one.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 07:43:59 +00:00
Michael R Sweet
af1ec00483 More color fixes for Xft (fl_color_ wasn't always set)
Fix plastic boxtype (1 pixel too high)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 02:16:17 +00:00
Michael R Sweet
83c0e840ba Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:33:49 +00:00
Michael R Sweet
6592f0919b Fix widget width tooltip and default parameter handling code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:32:25 +00:00
Michael R Sweet
edb2118098 Fixed drawing of antialiased text - uchar color value * 0x0101 was
getting truncated to a uchar, so we cast r, g, and b to int first...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:20:51 +00:00
Michael R Sweet
1f39ef0323 Fixed menu problem - FL_MOVE/DRAG processing stopped before sending the
events when pushed() was set...

Also allow FL_MOVE and FL_DRAG in menu handler()...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2230 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:12:30 +00:00
Michael R Sweet
8b6acd43eb Fix tooltip documentation (too much & quoting... :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 21:05:14 +00:00
Michael R Sweet
cc89f57ccf Use access() instead of stat() to determine if the directory exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 19:45:38 +00:00
Michael R Sweet
33f05fa72a Fix loading of old BMP files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 19:42:34 +00:00
Michael R Sweet
e217ac0564 Optimize redraw of focus stuff in radio/check buttons and tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 16:50:27 +00:00
Bill Spitzak
786e3ed0a8 More fixes for tooltips blinking.
Tooltips do not appear unless you move the mouse across the border of
a widget (previous version would pop up the tooltip after the timeout
after any movement).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2224 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 16:37:06 +00:00
Michael R Sweet
6f84fa1caa Changelog update...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 01:49:23 +00:00
Bill Spitzak
d07b6f0ecb Another change to tooltips noticed when making the 2.0 version.
It appears that Fl::remove_timeout() may be broken in 1.1.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-14 15:55:20 +00:00
Bill Spitzak
76b185b33e Clicking on tooltips makes them go away and they don't reappear.
Tooltips do not appear when widgets are entered for reasons other
than the mouse moving (ie like when an overlaying window disappears)

Possible fix for WIN32 titlebar color when tooltip is instantly
displayed for a new widget (untested).

Recursion problem in DnD fixed (caused a drag inside the same program
to paste many times into where you dropped). Tested only on X but
this bug may be X-only.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-14 15:24:03 +00:00
Michael R Sweet
7a455a05c6 WIN32 compile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 20:54:49 +00:00
Michael R Sweet
fe1d700e5c Fix click-on-tooltip bug.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 17:23:10 +00:00
Michael R Sweet
7ea7823c82 Expand menu item fix for all menu widgets (menu bar, menu button, choice,
submenu, etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 15:51:47 +00:00
Michael R Sweet
f953ffc27d Change _WIN32 to WIN32 for 1.1.x tree.
Cleanup recent tooltip changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 15:43:10 +00:00
Bill Spitzak
80d05eb962 Updated tooltip documentation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 14:01:38 +00:00
Bill Spitzak
2e7f053e2b Removed 2.0 destroy() call from WIN32 code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 14:00:46 +00:00
Bill Spitzak
80465e4bff Backported the fltk2.0 tooltips. This may be somewhat binary incompatable
as Fl_Widget::tooltip(x) is no longer an inline (though the previous version
will work if there is at least one call to the new one). It may be better
to just enable tooltips all the time. Also Fl_Tooltip::enable() is changed,
but few programs call that.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 05:05:11 +00:00
Michael R Sweet
a35c5a6a2e Fix tooltips on some of the valuators...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 11:12:56 +00:00
Michael R Sweet
a34e8e40f6 Fix FLUID menu drawing bug reported by Paul Sydney (didn't rebuild the
menu after reading the last attribute in a menu item...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 02:19:18 +00:00
Michael R Sweet
a04c2e28e7 Default argument patch from Fabien Constantini.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 01:02:17 +00:00
Michael R Sweet
e2084610ad Fix link errors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2206 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-10 15:42:44 +00:00
Michael R Sweet
ad9546204c Use 16x16 KDE icon images by default.
Tweek plastic boxtypes (didn't draw to the edge of the bounding box)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-10 00:18:37 +00:00
Michael R Sweet
c56bb65a97 Add documentation for readonly() and input_type().
Fix "make distclean" so that it removes all of the library files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-08 12:44:52 +00:00
Michael R Sweet
84bccaf8e7 Add #include <X11/Xlib.h> to Xdbe check...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2202 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-07 00:55:48 +00:00
Michael R Sweet
bde72ca8ce Change "typedef enum {} type" to "enum type {}"...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-07 00:43:20 +00:00
Michael R Sweet
d37c6483ab Get rid of a potential divide-by-zero in new arc code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-07 00:17:07 +00:00
Michael R Sweet
c2aa513a5a Merge WIN32 ValidateRgn() fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 21:15:48 +00:00
Michael R Sweet
78569947b0 Don't insert text in an Fl_Multiline_Output widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 04:15:21 +00:00
Michael R Sweet
070a4044eb Clip text in file list properly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 04:11:50 +00:00
Michael R Sweet
10351f0254 Make dirent.h include only in non-WIN32 or Cygwin modes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 18:41:55 +00:00
Michael R Sweet
251ec79d40 Restore window label (title) after drawing the group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 12:49:31 +00:00
Michael R Sweet
e1c5328477 Fix scandir dirent stuff under WIN32.
Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 12:37:41 +00:00
Michael R Sweet
dc1155a116 Add FL_EXPORT as a declaration-only prefix like extern.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 05:28:11 +00:00
Michael R Sweet
fbf099f11e Fix portability problems with Solaris Forte C++ compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 20:30:19 +00:00
Michael R Sweet
35d50f14a9 Add Jim to the credits file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2190 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 19:34:06 +00:00
Michael R Sweet
c20f422141 Use new arc drawing code from Jim Wilson that we are also using in
2.0.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 19:33:39 +00:00
Michael R Sweet
9cc064677c Add Albrecht's radio circle drawing fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:59:31 +00:00
Michael R Sweet
2f9a58d608 Don't open the display to load a .fl file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:33:00 +00:00
Michael R Sweet
5122f3b6f3 Removed extra definition of file chooser functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2186 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:21:32 +00:00
Michael R Sweet
e2f9b55715 Remove debug statement in arc code..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 12:49:36 +00:00