Commit Graph

715 Commits

Author SHA1 Message Date
Michael R Sweet
4b341bc95a Added Rick's hack for initializing fl_display.
fl_call_main() and WinMain are now only compiled in for non-GNU compilers
under WIN32 (not needed for Cygwin and friends).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-24 14:03:47 +00:00
Bill Spitzak
c951750611 Fl_Value_Input did not update if the value was changed from inside the
callback for another Fl_Value_Input.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-20 18:01:41 +00:00
Bill Spitzak
8abc94ba07 Added Solaris switches suggested by Carlos O'Ryan (coryan@cs.wustl.edu)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-19 19:07:15 +00:00
Michael R Sweet
7fad9c354b Fixed WIN32 selection bug - wasn't checking to see if the
WM_DESTROYCLIPBOARD message from coming from our own
window.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-15 14:31:32 +00:00
Bill Spitzak
9324cc741c Shortened the option string for IRIX a bit by combining the two -woff's
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-14 09:08:05 +00:00
Bill Spitzak
ce68c7386c Colors in cmap changed to use 0xFF instead of 0xF4.
Drawing of scrollbars altered somewhat so that the box (if any) goes
around the buttons, this seems to match the design that other toolkits
use.  Hope everybody likes this...  This required internal changes
to the Fl_Slider and Fl_Value_Slider as well but they should draw
exactly the same.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-14 09:07:09 +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
Michael R Sweet
d4bcbf5be3 fl_wait() didn't handle the case when timeout == 0 and nfds > 0.
As a result, you had to wiggle the mouse in order for fds to be
polled on a regular basis.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-09 14:49:14 +00:00
Michael R Sweet
7f48da7bfd Fixed bug in WIN32 fl_elapsed() function - didn't initialize
prevclock to valid value [now use GetClockTicks()], and
didn't check for newclock < prevclock (which would be
the case if no messages have been processed yet).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-07 16:17:49 +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
c025851f83 Fixed another flwm crash in Fl_x.cxx (the send_motion pointer must
be ignored if the fl_xmousewin is deleted).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-06 06:20:47 +00:00
Carl E. Thompson
72a313292c Checking in Guillaume Nodet's fix for Fl_Menu_::copy() again. I checked it
in on April 8, but it seems to have disappeared from the CVS.

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-06 01:17:49 +00:00
Michael R Sweet
2f942e1c4a Updated version numbers to 1.0.3.
Fixed browser bug in item_width() - would read past the end of the string
under certain circumstances.

Fixed browser resize bug - wasn't updating bounding box during check, so
it could get in an infinite loop.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@567 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-01 15:08:22 +00:00
gustavo
5c3e88c386 Properly handling the "return outermost widget" case now.
Function returns same class as the outermost widget.
Couldn't figure out how/whether to include files and
class forward declarations, though.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-30 16:29:40 +00:00
Bill Spitzak
84e4e91a3c Made XDBE work on all versions of Irix that have it
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-30 06:41:11 +00:00
Michael R Sweet
3f47369dbc Changed $(DSONAME) target to "libfltk.so.1 libfltk.sl.1"...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-26 12:36:17 +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
Michael R Sweet
e46a0be2b5 Updated packages files for 1.0.2.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 20:27:27 +00:00
Michael R Sweet
6c25ba6d73 Added fl_add_idle.cxx to project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 19:42:44 +00:00
Michael R Sweet
5f3e768cd0 Added CHANGES file with list of changes between releases.
Updated README for 1.0.2.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 19:32:33 +00:00
Bill Spitzak
349f047032 Keypad should produce correct symbols on Brazilian (and any other)
keyboard when NumLock is on.  Also added some explanatory comments to
the source code.
Some pointers were not being turned off when widgets were deleted, this
caused flwm to crash.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-23 06:55:53 +00:00
Bill Spitzak
2f22abf4e2 Compose for Icelandic thorn character is "TH" or "th". Also fixed the
comments in Fl_Input.cxx and fixed the documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-20 04:43:24 +00:00
Michael R Sweet
df8016354c Updated documentation version & edition.
FLUID makefile referenced LDFLAGS, but we only define CFLAGS and CXXFLAGS.

Fl_Browser::item_height() didn't handle blank lines (returned 2 for the
height).  Also, didn't use textfont() when figuring out text height.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-19 14:01:23 +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
Michael R Sweet
405f8fba3a Changed exit callback in FLUID to moe standard "Save Changes?"
with yes, no, and cancel.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 23:43:42 +00:00
Michael R Sweet
816393d2d4 Updated patch version to 2 (1.0.2)
Fixed missing fdsets variable in Fl_win32.cxx

Removed unused maxfd variable in Fl_win32.cxx

FLUID now outputs the window constructor with x,y arguments if
the class name is Fl_Group (this allows you to setup classes
using FLUID)  Add extra code after all the widgets to move them
to the desired offset within the window.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 19:17:03 +00:00
gustavo
923aa16100 Changes so that "extra code" goes before o->end() and close bracket.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 14:10:55 +00:00
Bill Spitzak
c319bcae89 Submenu titles did not always get the FL_SUBMENU bit turned on when
the menu array was built.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17 01:33:27 +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
Bill Spitzak
6776041873 fluid outputs symbolic names for align() and when() to the C++ code
file.  Suggested by Luis Ibanez.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-10 09:14:34 +00:00
Bill Spitzak
fa29bbdc0f 1. ~Fl_Widget(), Fl_Widget::hide(), and Fl_Widget::deactivate() no longer send
FL_LEAVE, FL_RELEASE, or FL_UNFOCUS events to the widget.  This seems to
be desirable behavior and fixes a crash in flwm.
2. After you show() a window, Fl::damage() should be true and remain true
until the window is actually drawn and up to date.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-10 08:09:39 +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
Carl E. Thompson
4605f0f635 Guillaume's fix for Fl_Menu_::copy()
-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-08 19:13:02 +00:00
gustavo
761adb89f5 Missing header guards in FL/math.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-07 14:22:21 +00:00
gustavo
4a9596d9da Broken link in docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-05 18:11:57 +00:00
Carl E. Thompson
4435aed5ca textstuff() methods no longer inline to work around a bug in a compiler.
Don not merge into 2.0 tree!  Already done!

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-03 15:51:39 +00:00
Carl E. Thompson
d19b50423c Updated 1.0 Borland C++ files.
This should NOT be merged with the 2.0 tree!

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-01 20:24:43 +00:00
No Author
b3f489116a This commit was manufactured by cvs2svn to create branch 'branch-1.0'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-01 20:24:43 +00:00
Michael R Sweet
4cb0fad70f Applied Gustavo's WIN32 timer patch to the 1.0.x branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-01 14:45:47 +00:00
Carl E. Thompson
cd6f7adfe0 Bugfix. FLUID now compiles under UNIX! ;->
-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-30 23:11:26 +00:00
Carl E. Thompson
81c7d9b215 Changes needed to get FLTK to compile on Borland C++ 5 under Windows. I
compiled this on BC++ 5.0 upgraded to 5.0B via the two monster patches.
I didn't turn on optimization because my version of BC++ doesn't seem to
do much in the way of optimization (FLUID was only 1k smaller when
optimized for size).  VC++ generates smaller code.

The examples that use OpenGL don't work because Borland's linker can't find
"wglShareLists".  I'm sure this is a simple problem, but I don't know how
to fix it.

Borland's C++ compiler won't allow you to call main() from C++, so I had
to add a c function in "fl_call_main.c" to call it so that you don't have
to do that WinMain crap.  However, when I added this file to the Visual C++
project it converted the whole thing from 5.0 format to 6.0 format.  The
files look the nearly identical so I don't think this should be a problem
for 5.0 users, but if it is then you can revert them back to the previous
version and just add this one source file.

Borland really doesn't suck that bad.  It doesn't look as polished as VC++
and it refused to supress some warnings for no reason, but I forgot how
much I liked the feel of Borlands compilers...  Much more intuitive then
MS VC++.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-29 17:39:46 +00:00
Michael R Sweet
617a7ee619 Makefile didn't clean DSO...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-26 12:46:25 +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
Bill Spitzak
cf2a058806 consistent use of $(LIBRARY) rather than $(LIBNAME)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-26 07:28:39 +00:00
Michael R Sweet
cb63ab17d8 The HAVE_SYS_SELECT_H define was wrong in configin.h and friends.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 22:19:31 +00:00
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
95c20c07a8 Fixed stupid bug in IRIX distribution (fluid not executable...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 16:22:09 +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
18aeef78c6 Forgot to change documentation from /usr/info to /usr/doc/fltk-1.0.1...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@462 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 16:05:40 +00:00
Michael R Sweet
0872167f48 Update install docos to 1.0.1 and fixed typos in IRIX and Linux package
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@461 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 15:57:50 +00:00