Commit Graph

1320 Commits

Author SHA1 Message Date
Michael R Sweet
3a117a899c Get rid of as many compiler warnings as possible.
Add missing offbits seek when reading BMP files.

Add -OPT:Olimit=4000 to SGI compiler options (for keyboard_ui)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:19:19 +00:00
Michael R Sweet
262321f5e6 Fix cancel bug in file chooser with multiple-selection mode.
Allow all resizes in the file chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:02:56 +00:00
Michael R Sweet
fc7facb5e9 Changelog and cleanup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-23 16:47:41 +00:00
Michael R Sweet
4775381658 Fix WIN32 redraw problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-23 16:42:22 +00:00
Michael R Sweet
1d542c28c1 Ignore more generated files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 20:01:12 +00:00
Michael R Sweet
25d0f44ddd Fix MingW config header (undef instead of define 0)
Mirror some of those changes into OS/2 config header, too.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 18:13:32 +00:00
Michael R Sweet
dc560e83e3 Use floor() instead of trunc() when checking if step() is an integer
(it is equivalent to trunc() for positive numbers)

Fix order of subtraction so that the test actually works right.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2247 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 16:50:48 +00:00
Michael R Sweet
23cfc372a0 Fix links inside PRE
Make style data const in Fl_Text_Display.

Use INT input only when step() is an integral value.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 11:14:59 +00:00
Michael R Sweet
0104b4abc5 Add preferences program to .cvsignore...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 02:04:39 +00:00
Michael R Sweet
6fb964c36e Add -sgi_version,sgi1.1 to the IRIX DSO command.
Add Fl_Shared_Image.html to the list of HTML files to install.

Change C++ command to C in src/flstring.h.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-19 17:44:56 +00:00
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