Commit Graph

78 Commits

Author SHA1 Message Date
Michael R Sweet
4b561b6e90 Updated copyright notices for all of the 1.0.x files.
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions)

Added install rule to documentation directory.

Dumped old packages directory; added traditional RPM spec file and EPM
list file (that replace all of the packages stuff)

The FLUID man page is now "fluid.1" for the formatted page and "fluid.man"
for the non-formatted page, since only IRIX uses pack'd formatted man pages.

Whew!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 22:17:00 +00:00
Bill Spitzak
ffd26dfc45 I made FL_NORMAL_SIZE into a public int variable. You can now change it
before any widgets are created, in order to change the default size of
the fonts used.  The most useful thing that can be done is to set it to
12 so that the default font size matches Win32.

I also fixed the menubar drawing a bit so that a menubar with a FL_FLAT_BOX
draws correctly.

It should also be documented that "Fl::set_color(Fl_Color(15),0,0,128);"
can be used to get Win32-style highlighting of menus and text items.  This
is not portable to fltk 2.0.

With these changes it should be easier to get fltk to look just like Win32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-11 08:11:56 +00:00
Bill Spitzak
328a8f8f0d Fixes for Cygwin POSIX emulation layer from Norman Vine.
Requires the symbol __CYGWIN__ to be defined, appears to disable the
special meaning of backslash and colon in file names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:57:05 +00:00
Bill Spitzak
fafc3286cd Pageup/down by correct amount in scrollbar
Handles minimum size of slider in scrollbar when deciding whether to
page up/dwon.

Code from Matt Morrise so that shift+click extends the selection in
the browser (ctrl+click remains for toggling the current item).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-20 06:14:34 +00:00
Bill Spitzak
685d58c497 Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)
Fl_Menu_::remove(int i) will remove an entire submenu if i is the
index of the menu title.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-16 04:30:39 +00:00
Bill Spitzak
d43eac1e38 Programs can now resize() their windows even if they are not resizable()
on X (this already worked on Win32).
Changed the resize demo program to test this.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-11 08:20:02 +00:00
Bill Spitzak
a7904da09a I fixed Fl_Tabs so that child tabs can be added/removed without any
concern if they are selected, it uses the first visible() child to
indicate the selected tab.

Fixed up rather bogus fix for selecting entire text field when you click
on it.  This new version does not do it for multi-line and does not
mess up the middle-mouse paste action.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-15 09:01:48 +00:00
Michael R Sweet
eed1f2a359 Fixed compile error with gcc 2.95 - the "d" string needed to be cast to
(void *) in both menus...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-09 14:38:40 +00:00
Bill Spitzak
f7e0e7627f Can draw xpm pixmaps with spaces in the color names (such as the ones in
/usr/X11/include/X11/icons).
Esc closes the modal window, not the window the cursor is in, if a modal
window is up.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-27 17:24:14 +00:00
Bill Spitzak
df045b0e36 FL_KEYBOARD events have the correct x/y when sent to child X windows.
Notice that if you worked around this bug by adjusting the x/y yourself
you will have to change your code.

In addition all events have the correct x/y when sent to the grab()
widget.  And the code to do all this was simplified a lot.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22 21:37:04 +00:00
Bill Spitzak
f7c57a3730 Replaced remaining malloc.h's with stdlib.h
Added ctype.h to win32 file
Patch for Fl_Browser_ looping indefinately


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-07 07:03:34 +00:00
Bill Spitzak
4e66f93769 Missing header files and FL_EXTERNs that prevented DLL's from compiling
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-11 09:39:31 +00:00
Bill Spitzak
7becff3f2c Redid Carl's fix to fast_slow (making it be output widgets rather
than inactive).  Not sure why his patch did not take...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-06 06:21:53 +00:00
Bill Spitzak
5bf457ac24 Tab, space, backtab, and backspace can be used to navigate through menus.
They act like up/down arrows except they circulate around at the end.

Fixed a typo in fluid that made it not write when() correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-26 06:45:29 +00:00
Bill Spitzak
add808d7c2 Changes to Fl_Menu_::add() so that you should be able to add to any menu,
including one that was set with menu().  It copies the static menu if
necessary and keeps track of the size of the menu so it can reallocate
the array exactly when necessary.

This should make modifying the items in a menu much more predictable and
usefule.

I don't know if these changes will go cleanly into 2.0.  Probably not.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-19 07:01:24 +00:00
Bill Spitzak
0e29799dda Fl::add_fd() structures are dynamically allocated so you can listen to
as many connections as you want (up to the maximum number handled by
select()).

Fl::remove_fd(fd, when) added.  This allows you to remove the read,
write, and error callbacks individually.  Fl::remove_fd(fd) does
Fl::remove_fd(fd,-1).

Fl::add_fd() calls Fl::remove_fd(), so it can be used safely to
replace callbacks with new ones for the same file descriptor.

Fl::add_timeout() also dynamically allocates it's array so there is no
limit on the number of pending timeouts.

I cut/pasted the changes into the Windoze version but this is
UNTESTED!  Somebody please do a test compile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17 01:02:30 +00:00
Carl E. Thompson
69302ebb67 Fixes this demo (got broken somewhere...)
-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-08 19:20:49 +00:00
Bill Spitzak
db2a9d49ce Changed the valuators demo so only one copy of the callback code is
generated.  This also demonstrates a second function put into fluid.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-26 08:42:00 +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
7b19ba41ae Added gluDeleteQuadric() call to avoid memory leak.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 13:37:00 +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
Michael R Sweet
2b4b055204 Updated not to use v3f() macro.
No longer use glColor4ub(), as 1) Sun's compilers have trouble with their
own headers with this (glColor4ub is a macro, a VERY bad thing to do!), and
2) it's an OpenGL 1.1 feature, and not all platforms support it.

Also optimized the QUAD and LINE primitives.


git-svn-id: file:///fltk/svn/fltk/trunk@404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 16:40:19 +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
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
9ae933d004 Fixed OpenGL checks (#if HAVE_GL, not #ifdef...), plus added message
that OpenGL is required...


git-svn-id: file:///fltk/svn/fltk/trunk@369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 20:26:00 +00:00
Michael R Sweet
474e82bd95 Added HAVE_GL check to CubeView demo code.
git-svn-id: file:///fltk/svn/fltk/trunk@368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 20:11:49 +00:00
Michael R Sweet
70dd4ee71e Missing "int" on main()...
git-svn-id: file:///fltk/svn/fltk/trunk@354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 13:39:41 +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
6f61d8f239 Missing dependencies...
git-svn-id: file:///fltk/svn/fltk/trunk@324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:52:17 +00:00
Michael R Sweet
fea9a2db45 Makefile didn't have a .cxx to .o rule.
git-svn-id: file:///fltk/svn/fltk/trunk@323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:50:16 +00:00
Michael R Sweet
636b6de26d Added CubeView source files.
Added CubeView to the makefile and demo.menu.


git-svn-id: file:///fltk/svn/fltk/trunk@321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:33:55 +00:00
Michael R Sweet
30e8153ef2 Updated dist to initialize to INT_MAX (2^31 - 1) instead of UINT_MAX
(2^32-1).


git-svn-id: file:///fltk/svn/fltk/trunk@317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:11:25 +00:00
Michael R Sweet
1bc5accffe Updated demo program to append d.exe or .exe to end of command name and
not the options...


git-svn-id: file:///fltk/svn/fltk/trunk@316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:09:13 +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
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
Michael R Sweet
576f02c063 Fixes from Bill:
- Fluid fixes for menu item numbering and adding of #define stuff to
  include file to prevent multiple inclusion.
- Fixed contrast function (again).
- Fixed fractals demo (not using glutMainLoop()...


git-svn-id: file:///fltk/svn/fltk/trunk@232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:10:39 +00:00
Michael R Sweet
ab5771b62f Fixes from Bill:
- Fl_Clock now uses the Fl_Clock_Output base class to get the
      system time.
    - Fl_Window::iconize() and Fl_Window::icon() now coexist
      peacefully with all X window managers.
    - Minor fixes to mandelbrot and shape demos.
    - Menu code cleanup.


git-svn-id: file:///fltk/svn/fltk/trunk@209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:45:50 +00:00
Michael R Sweet
0a36d98420 Yay, change all copyright notices to be 1998-1999.
git-svn-id: file:///fltk/svn/fltk/trunk@201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 19:18:01 +00:00
Michael R Sweet
5ca8c1473d Removed demod.menu, added editor arguments...
git-svn-id: file:///fltk/svn/fltk/trunk@196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 17:24:37 +00:00
Michael R Sweet
8a535a2f5b Get rid of those damned DOS lines!
git-svn-id: file:///fltk/svn/fltk/trunk@195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 17:22:38 +00:00
Michael R Sweet
268771388c Dammit, who put that DOS file in here...
git-svn-id: file:///fltk/svn/fltk/trunk@193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:58:26 +00:00
Michael R Sweet
b148ef28d5 Fix from Bill - updated fonts demo to handle >255 fonts.
git-svn-id: file:///fltk/svn/fltk/trunk@182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:27:48 +00:00
Michael R Sweet
b95db33f2c Lots of changes:
- Added #defines for Visual C++ to speed up compiles.
    - Added FLTK.DLL project to visualc directory.
    - Added editor project to visualc directory.
    - Added icon() method to Fl_Window class.
    - Implemented xclass() method for WIN32.
    - Fixed extern declaration of fl_send_extra_move in Fl_Menu_Window.cxx.
    - scandir_win32.c needed to include <stdlib.h>.
    - Added fix from Bill for fl_width() bug.
    - Updated fix for Fl_Input to default to FL_DOWN_BOX.
    - Added visible() check for children of Fl_Pack.
    - Added WinMain() function to library.
    - Now show console window in debug mode.
    - Fixed demo.menu and demo.cxx to work under WIN32.


git-svn-id: file:///fltk/svn/fltk/trunk@180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:25:40 +00:00
Michael R Sweet
cbd4a28132 Update glpuzzle demo to work with two button mice.
git-svn-id: file:///fltk/svn/fltk/trunk@169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 13:34:35 +00:00
Michael R Sweet
06113fb95e Added new editor example application.
git-svn-id: file:///fltk/svn/fltk/trunk@168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-23 20:04:31 +00:00
Michael R Sweet
5e2f2d6c51 Mandelbrot demo fix from Bill - was crashing when the Julia set was opened.
git-svn-id: file:///fltk/svn/fltk/trunk@153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:06:54 +00:00
Michael R Sweet
d3fb66b4dd OpenGL patches from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:04:40 +00:00
Michael R Sweet
1f4f3b00b1 OS/2 changes.
git-svn-id: file:///fltk/svn/fltk/trunk@142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:41:56 +00:00