Commit Graph

170 Commits

Author SHA1 Message Date
Bill Spitzak
a28b483177 Small fixes suggested by Guillaume Nodet
git-svn-id: file:///fltk/svn/fltk/trunk@377 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 06:46:36 +00:00
Carl E. Thompson
e42ff9a65c This adds support for the Fl_Dial::angles() method. This seems to work
correctly, but it is likely that someone who remembers their high school
math could make it _much_ more efficient (I just hacked away 'till it
worked).

-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-08 21:44:32 +00:00
Michael R Sweet
1f2b1e5470 Added (unsigned) cast to isxyz() calls to get rid of compiler warnings.
git-svn-id: file:///fltk/svn/fltk/trunk@375 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-08 14:53:44 +00:00
Bill Spitzak
51d37642ba Contributed code for more accurate item_height() in Fl_Browser.
Fixed display of Fl_Choice yet again
Tried to remove warning egcs warning messages from Fl_Color_Chooser
Fl_Value_Input updates without user having to type Enter


git-svn-id: file:///fltk/svn/fltk/trunk@374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-07 08:51:44 +00:00
Bill Spitzak
6c793587e3 I hope this is a fix for vsnprintf on HPUX. It declares it but does
not define it, so it should link in the C one that hpux has.


git-svn-id: file:///fltk/svn/fltk/trunk@373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-05 05:55:27 +00:00
Bill Spitzak
8be248edbc check() calls flush() after processing events, as requested. This should
make no differece and is I think a safe change for 1.0 and we want this
behavior to be consistent for later versions.


git-svn-id: file:///fltk/svn/fltk/trunk@372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-05 05:52:42 +00:00
Michael R Sweet
9fdae51b8c Added #define for WM_SYNCPAINT if needed.
WM_NCPAINT doesn't do the trick - need to use WM_SYNCPAINT...


git-svn-id: file:///fltk/svn/fltk/trunk@370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 21:20:55 +00:00
Michael R Sweet
acd6cece37 Fixed WM_SYNCPAINT patch - should be WM_NCPAINT...
git-svn-id: file:///fltk/svn/fltk/trunk@366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 19:01:48 +00:00
Michael R Sweet
75964566a2 Added memset() to Fl_Menu_::insert() after allocating and copying the
old menu data - otherwise new menu items could contain junk.


git-svn-id: file:///fltk/svn/fltk/trunk@364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:43:04 +00:00
Michael R Sweet
e9dd6127e2 WIN32 fixes from Dmitry Potapov:
- Added WM_SYNCPAINT message support to get rid of redraw bugs.
    - Changed extra LineTo's to SetPixel's and associated fixes so
      that lines are drawn consistently between X and WIN32.


git-svn-id: file:///fltk/svn/fltk/trunk@363 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:32:14 +00:00
Michael R Sweet
e3eaeb0f5c Put fl_elapsed() call before loop in Fl::add_timeout().
git-svn-id: file:///fltk/svn/fltk/trunk@362 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:24:44 +00:00
Michael R Sweet
516ed80d97 Added "buffer=0" in constructor to avoid purify errors.
git-svn-id: file:///fltk/svn/fltk/trunk@359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:09:18 +00:00
Michael R Sweet
20cba9fc64 Fixed menubar button bug - wasn't doing a redraw...
git-svn-id: file:///fltk/svn/fltk/trunk@358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 17:36:08 +00:00
Michael R Sweet
681ff11d8e Updated DSO install commands - now remove the symlink before remaking it.
git-svn-id: file:///fltk/svn/fltk/trunk@356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 14:54:18 +00:00
Bill Spitzak
c599778795 Fix for browser horizontally scrolling.
This produces some odd (but maybe not broken) behavior for centered and
right-justified lines, so maybe it is not such a great fix.


git-svn-id: file:///fltk/svn/fltk/trunk@353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 07:34:04 +00:00
Bill Spitzak
b32f322c12 Much better and smaller fix for the lost move events after Fl::grab()
git-svn-id: file:///fltk/svn/fltk/trunk@352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:47:22 +00:00
Bill Spitzak
fe4f5ef72c Generates FL_ENTER after grab() is released for whatever widget the
mouse is over.


git-svn-id: file:///fltk/svn/fltk/trunk@351 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:40:18 +00:00
Bill Spitzak
b47973f560 Patch from Dr. Tom Holroyd for fill sliders, seems good to me!
git-svn-id: file:///fltk/svn/fltk/trunk@350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-03 07:21:28 +00:00
Bill Spitzak
4df7511b18 Didn't like yesterday's fix, I changed it so that zero-length selections
are allowed.  Warning: untested on WIN32 (although it seems likely that
it will work).


git-svn-id: file:///fltk/svn/fltk/trunk@349 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-02 07:03:15 +00:00
Bill Spitzak
32291ad0d5 Made secret input more secretive (word-select does not work and
it sets X selection to '*' instead of leaving it unchanged)


git-svn-id: file:///fltk/svn/fltk/trunk@348 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-01 03:44:30 +00:00
Bill Spitzak
f19b6ee3e4 Fixed editor demo redraw bug (actually same fix as somebody else made).
Highlight is cleared if any other widget makes an X selection.


git-svn-id: file:///fltk/svn/fltk/trunk@345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-26 07:07:56 +00:00
Carl E. Thompson
bdbc0b8b2e Fix for redraw bug in editor demo. Fl_Input_::position() didn't seem to
want to properly update the position if the input didn't have the focus.
This works, but I'm not sure if this is the most efficient solution.  Could
someone who really understands the position() and minimal_update() routines
double-check this?

-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 22:34:12 +00:00
Bill Spitzak
f89b5d0cf6 Fixed glpuzzle so you can move the pieces.
Added commented-out line to fl_input that could maybe fix highlight confusion


git-svn-id: file:///fltk/svn/fltk/trunk@343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 20:05:30 +00:00
Bill Spitzak
82877b2eb6 Fix for Curtis so that the height of a title of a popup menu is not
affected by the height of the Fl_Menu_Button.


git-svn-id: file:///fltk/svn/fltk/trunk@340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 19:09:11 +00:00
Michael R Sweet
209f38157b Added shell commands to create symbolic links for all .H header files in
the FL directory.  This allows any combination of Fl/FL and .H/.h.


git-svn-id: file:///fltk/svn/fltk/trunk@332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 15:37:19 +00:00
Michael R Sweet
39b84309f0 Fix from Bill - Fl_Choice didn't handle NULL menu items.
git-svn-id: file:///fltk/svn/fltk/trunk@329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 14:01:17 +00:00
Michael R Sweet
6139e446a6 Removed old fl_draw_returnarrow() code that wasn't getting used.
git-svn-id: file:///fltk/svn/fltk/trunk@325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 22:09:17 +00:00
Michael R Sweet
f32ecc47ba fl_elapsed() needs to be called before fl_timeout[] is initialized.
git-svn-id: file:///fltk/svn/fltk/trunk@319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:19:19 +00:00
Michael R Sweet
767cad1311 Workaround for VC++ 4.0 bug - can't initialize a pointer to a function
in the declaration...


git-svn-id: file:///fltk/svn/fltk/trunk@315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:01:59 +00:00
Michael R Sweet
28d2778032 Added missing Fl_Color casts.
git-svn-id: file:///fltk/svn/fltk/trunk@314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:01:03 +00:00
Michael R Sweet
e23a5718ae Call to atan2() needs (float) cast for arguments because HP overloads
atan2() [isn't that a violation of ANSI C/C++???]


git-svn-id: file:///fltk/svn/fltk/trunk@313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 20:58:23 +00:00
Michael R Sweet
63c0b655bb Updated ifdef to be __hpux instead of hpux...
git-svn-id: file:///fltk/svn/fltk/trunk@312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 20:54:44 +00:00
Michael R Sweet
74ea22b252 Added ln -s for DSOs - must have gotten dropped in a previous update?
git-svn-id: file:///fltk/svn/fltk/trunk@310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 18:05:20 +00:00
Michael R Sweet
1a135b0424 Updated Fl::x(), ::y(), ::w(), and ::h() to account for WIN32 trays.
Updated menu code to account for tray locations.


git-svn-id: file:///fltk/svn/fltk/trunk@307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 15:34:09 +00:00
Michael R Sweet
34caa8250d Added fix from Tom Holroyd to call fl_elapsed() in Fl::add_timeout().
git-svn-id: file:///fltk/svn/fltk/trunk@302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 14:26:30 +00:00
Michael R Sweet
ae5a281a39 Updated install rules to install files with write permission for the
owner.  This isn't necessary for root installs, but is for user-level
installs.


git-svn-id: file:///fltk/svn/fltk/trunk@298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:10:20 +00:00
Michael R Sweet
8136dfe6b5 Patch from Alexander Mai - Linux needs prototype hack just like AIX and
Unicos.


git-svn-id: file:///fltk/svn/fltk/trunk@297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:07:40 +00:00
Michael R Sweet
bf870685d4 Removed extra "events" target from enumerations.html.
Added missing #include <FL/Enumerations.H> to Fl_XColor.H.


git-svn-id: file:///fltk/svn/fltk/trunk@279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 22:27:52 +00:00
Michael R Sweet
ca41e69c27 Updated headers to support WIN32 and OS/2 DLLs.
Updated VC++ project files.

Removed dummymain.c (no longer needed).


git-svn-id: file:///fltk/svn/fltk/trunk@278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 22:00:04 +00:00
Michael R Sweet
18312d3c1f Updated Fl_Dial to use atan2() to avoid possible math errors and reduce
code size.


git-svn-id: file:///fltk/svn/fltk/trunk@277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 17:23:55 +00:00
Michael R Sweet
7b82bc3509 Patch from Bill - not freeing bitmap array?
git-svn-id: file:///fltk/svn/fltk/trunk@276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 15:10:53 +00:00
Michael R Sweet
d59ce3cc34 Removed fl_line_style.cxx from makefile...
git-svn-id: file:///fltk/svn/fltk/trunk@274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 14:01:46 +00:00
Michael R Sweet
3204e098af Patch from Jim Hourihan that adds symbol support to Fl_Choice.
git-svn-id: file:///fltk/svn/fltk/trunk@271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 13:48:04 +00:00
Bill Spitzak
8009fef12c Put Fl::grab() into it's own source file. Rewritten as suggested so that
it takes a window pointer, and grab(0) releases.  You can now call grab
repeatedly with the same or different values without it failing.  The old
Fl::grab() and Fl::release() are emulated in inline functions in Fl.H

Added Fl_Menu_::copy(Fl_Menu_Item*), which will be useful for fluid, although
that use is nyi.

Fixes and cleanup to the code for Fl_Menu_::add(...).


git-svn-id: file:///fltk/svn/fltk/trunk@268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-03 08:43:35 +00:00
Michael R Sweet
0434a826d5 Fl_abort.cxx didn't include <config.h>, and didn't conditionally declare
a prototype for vsnprintf().  This caused problems with CodeWarrier.


git-svn-id: file:///fltk/svn/fltk/trunk@267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-02 14:55:59 +00:00
Michael R Sweet
45950c18df OS/2 XFree86 changes from Alexander Mai.
git-svn-id: file:///fltk/svn/fltk/trunk@264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 20:27:16 +00:00
Michael R Sweet
6882323172 Updated Fl_Chart to allocate entries dynamically. The previous "scrolling"
behavior can be restored by calling Fl_Chart::maxsize(), otherwise entries
can be added until you run out of memory.


git-svn-id: file:///fltk/svn/fltk/trunk@262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 20:15:00 +00:00
Michael R Sweet
0e4b539ae3 Fixed fl_line() bugs in for WIN32 - the documentation says
that the LineTo() function will draw up to but not including
the end point.  "It's a feature!"


git-svn-id: file:///fltk/svn/fltk/trunk@260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-01 01:59:13 +00:00
Bill Spitzak
4c53a5d8f4 Added optimization for SGI builds (mike: please run autoconf before making
a distribution).
Documentation fixes.


git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-31 07:43:16 +00:00
Carl E. Thompson
620d03ee7d Adds Fl_Browser::middleline(int) and Fl_Browser::bottomline(int).
git-svn-id: file:///fltk/svn/fltk/trunk@257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-30 00:39:28 +00:00