Commit Graph

194 Commits

Author SHA1 Message Date
Michael R Sweet
963f225ab5 Changed hard references to libfltk.a and friends to $(LIBRARY) and
$(DSONAME)...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@466 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 22:15:53 +00:00
Michael R Sweet
edab1ef055 Can't use chmod -R on header directory...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 16:09:54 +00:00
Michael R Sweet
08a3198886 Fixed install rule for DSOs - was copying the wrong file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 15:47:11 +00:00
Michael R Sweet
a5778a1864 Updated README and distribution packages to use v1.0.1.
Updated makefiles and makeincludes to use DSONAME and GLDLIBS.

Updated configure.in to use DSONAME instead of LIBNAME.

Updated editor example code in documentation.

Added ANSI C++ changes to make things compile with the latest EGCS
compiler.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 15:26:44 +00:00
Michael R Sweet
5df541f4f8 Applied Dmitry's timeout patch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 13:32:52 +00:00
Bill Spitzak
2eafe965c9 Changes from Luis Ibanez to make it compile under Borland.
Includes a real bug that was in Fl_Gl_Window.c (#if WIN32)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-18 20:04:13 +00:00
Bill Spitzak
4163d5b5ad Added clipping suggested by Dmitry Potapov
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-16 08:51:02 +00:00
Bill Spitzak
860eda9df2 Clears value() when you clear the menu()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-16 08:44:48 +00:00
Bill Spitzak
8b80ea35fe Fixes for os2x by Alexander Mai
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-15 07:06:46 +00:00
Bill Spitzak
cb3e368539 Fixed alignment of Fl_Choice label with the text in the pop-up menu
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@425 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:45:20 +00:00
Bill Spitzak
05c916d353 DOH! Fixed even more typos in my fix for Fl_Browser::item_height.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:35:33 +00:00
Bill Spitzak
f34388f29a fixed typo that I managed to check in last time...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:25:09 +00:00
Bill Spitzak
0f64401722 Fixed Fl_Browser::item_height, I believe this will fix Adrian Miranda's
problems with it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:20:37 +00:00
Bill Spitzak
2316172e5f Fixed fluid bug that caused styles patch to crash when you delete menu item.
Changed a comment in Fl.cxx
Changed valuators demo to remove code to set value() on some widgets and
put the value into the gui box instead.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:07:21 +00:00
Carl E. Thompson
fcaa42485f Fix return value of Fl::check(). This fixes the "cube" demo and possibly
other programs.

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-12 19:17:53 +00:00
Michael R Sweet
ce193d0ec5 Fix from Dmitry - wasn't copying data when replacing the text value of a
list item.


git-svn-id: file:///fltk/svn/fltk/trunk@414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 20:06:37 +00:00
Bill Spitzak
b6115887c8 Changes to dial so that counter-clockwise motion is supported if you
set angle2 < angle1.  Deleted the unimplemented direction() control.
Fixed the documentation, this new code allows any 2 values for the
angles as long as abs(a-b)<=360.


git-svn-id: file:///fltk/svn/fltk/trunk@399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 08:17:43 +00:00
Carl E. Thompson
f7e1ff7742 Changes Fl_Dial to use XForms defaults for angles
-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 00:13:52 +00:00
Michael R Sweet
72d1391dbb scandir.c used a variable named "new", which is valid ANSI C but
apparently not accepted by EGCS (EGCS BUG!)...


git-svn-id: file:///fltk/svn/fltk/trunk@396 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 20:56:54 +00:00
Michael R Sweet
47e91e6c26 Added libfltk.a to install rules, so both the shared and static libraries
will get installed.


git-svn-id: file:///fltk/svn/fltk/trunk@388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 18:33:46 +00:00
Michael R Sweet
022e5d90f1 Updated Linux DSO rules.
Changed configure.in, makeinclude, and src/Makefile to use DSOCOMMAND
instead of replacing LIBCOMMAND.

src/Makefile now creates both static and shared libraries if
--enable-shared is requested.

fluid/Makefile always uses the static library so that a CVS build will
always work, even if libfltk.so.1 isn't installed (problem for Solaris
and Linux, which don't support LD_LIBRARY_PATH).


git-svn-id: file:///fltk/svn/fltk/trunk@387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 18:32:44 +00:00
Michael R Sweet
aa5c3060ca Added #ifdef for backspace hack - is this really necessary? I've never
used a keyboard without a backspace key?!?


git-svn-id: file:///fltk/svn/fltk/trunk@381 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 17:08:35 +00:00
Bill Spitzak
84ad113a5b Fixes for FL_FILL_DIAL
git-svn-id: file:///fltk/svn/fltk/trunk@380 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 07:51:10 +00:00
Bill Spitzak
92ff32aa80 Fixes to Fl_Dial so it stops moving when you drag to ends of region.
git-svn-id: file:///fltk/svn/fltk/trunk@379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 07:26:28 +00:00
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