Commit Graph

1958 Commits

Author SHA1 Message Date
Michael R Sweet 2321fdd181 Use explicit keyword for pixmap constructors...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1464 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-06-06 19:42:56 +00:00
Bill Spitzak eb734da4ac Added const to help Borland compiler
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1463 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-30 16:18:33 +00:00
Michael R Sweet 9c19542bd2 Changes for AIX (still have menu problems)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-11 18:37:08 +00:00
Michael R Sweet e95d56f19b Update to cover both SGI C++ and GCC 2.8.x.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1439 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-24 19:35:38 +00:00
Michael R Sweet e40edefbbc Add additional constructors for old IRIX compiler; might be needed for
old GCC, too...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1438 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-23 20:52:52 +00:00
Michael R Sweet 5389d20133 Pass 0 instead of false for integer parameter, since not all C++ compilers
support bool type or conversion to int...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-18 15:45:48 +00:00
Michael R Sweet b8a8c98f04 Eliminate all compiler warnings (string constants, const'ness, hiding of
class members, empty fl_call_main.c)

Update pixmap functions to accept const * const * or * const * pointers.
(confused? :)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 19:07:40 +00:00
Bill Spitzak 97234fb3e2 Replaced remaining _WIN32 symbols with WIN32
Stuff from work:

Removed reference to unused GL/glu.h header file, which is missing on
some Linux systems.

Fl_Gl_Window has a new method to allow you to get and set the context:

  void Fl_Gl_Window::context(void*, int destroy = 0)
  void* Fl_Gl_Window::context() const;

  Return or set a pointer to the GLContext that this window is
  using. This is a system-dependent structure, but it is portable to
  copy the context from one window to another. You can also set it to
  NULL, which will force FLTK to recreate the context the next time
  make_current() is called, this is useful for getting around bugs in
  OpenGL implementations.

  If destroy_flag is true the context will be destroyed by fltk when
  the window is destroyed, or when the mode() is changed, or the next
  time context(x) is called.

Some cleanup of Fl_Gl_Choice to move most of the system dependent
#ifdefs into Fl_Gl_Choice.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-14 17:20:02 +00:00
Michael R Sweet 94788c4628 Copyright 2001.
FLTK 1.0.11.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-22 15:13:41 +00:00
Bill Spitzak f5375b6ab6 Fl_Gl_Window does not set drawbuffer(BACKBUFFER) for single-buffered
windows.

Fl_Input::replace(...) correctly updates the display if the replaced
region does not include the mark, point, or selected region.

Added Fl::add_check(...), Fl::remove_check, and Fl::has_check. These
are similar to idle callbacks but are only called just before it waits
for new events. They can be used to watch for changes in global state
and respond to them.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-12 08:57:30 +00:00
Michael R Sweet d244d063ff APIENTRY doesn't need to be used for the font pointers in glut.H
APIENTRY should appear between the return type and function name.

WIN32 is defined by MSVC++, not _WIN32.  Updated the sources to work
with both.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-06 15:45:13 +00:00
Bill Spitzak 45c06ba2c4 One more try to fix the APIENTRY stuff in glut.h. The file gl.h now
defines APIENTRY in all cases.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1339 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-28 15:32:07 +00:00
Michael R Sweet 26ce73d012 Doco and header updates for 1.0.10.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 14:53:52 +00:00
Bill Spitzak 2cbf4041b3 Does not clear Fl::keysym on every event, this makes better back compatability and fixes Win2000
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-21 20:01:56 +00:00
Bill Spitzak 12af974293 Another attempt to get glut.h to work on WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:30:22 +00:00
Bill Spitzak a10d8f201a Made Fl_Browser not hide the Fl_Widget::show() method
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-19 17:10:47 +00:00
Bill Spitzak 9bfbc26899 Added missing FL_EXPORT for format()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1266 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-29 23:52:04 +00:00
Bill Spitzak 1150141ead Changed the name of the new function from "add_interval_timeout" to
"repeat_timeout", which is shorter and more accurately describes what
it does.

GLUT_STROKE_*_ROMAN in glut.h are defined as 0,1 on WIN32 to match the
glut header files there.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-21 17:36:36 +00:00
Bill Spitzak 823b1f8460 Fixes to WORDWRAP modification to Fl_Input based on work done by
Alexander Rabi Beels.  This will not affect things much because WORDWRAP
is normally disabled.  However it fixes a few bugs with word+line selection
and with up/down arrows working when there are tabs or control characters
in the text.  I modified his patches so no changes are needed to the
header files to enable wordwrap and so that very long words scroll
horizontally rather than break between letters.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20 07:56:09 +00:00
Bill Spitzak f7e4caec25 Whoops, I screwed up the timeout callbacks a bit.
add_timeout will now do the callback at time t after the call to
add_timeout, like before.

add_interval_timeout is a new call that measures time from when the
last timeout was called.  This has slightly less overhead and allows
accurate spacing of timeouts.

Patch from Stuart Levy so the *last* widget in an Fl_Pack may be
resizable.  This should be compatable because resizable didn't do
anything before so there was no reason to set it.

Makefiles for no-cygwin from Paul Baxter (see README.win32 for info).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-20 05:47:38 +00:00
Bill Spitzak 4dd096e7b5 Added has_timeout() and has_idle() calls as suggested by Eric Sven Ristad.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-16 07:28:03 +00:00
Bill Spitzak 4ab82443bd Added a bunch of missing FL_EXTERN's to glut.h (I have not really
tested this, but I believe this is why I keep getting mail about glut
not linking on win32.  If anybody can check this please do so!)

Fix for sliders so that clicking on one with a small (or zero)
slider_size will not move the slider.

I put Fl_Button.H in fl_shortcut.cxx so that it gets the FL_EXTERN for
fl_old_shortcut() (and also assures the declarations match).

Fixed xpaint link in the documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-15 05:37:40 +00:00
Carl E. Thompson b3d9c227bc Made sure all draw()s were protected and all handle()s were public. (Most
were already.)

Looks like I forgot to commit those changes to eliminate Mesa dependancy in
the code.  Here it is.

Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-10 19:30:01 +00:00
Michael R Sweet f87393aaa1 OK, now version 1.0.9
Updated email addresses to point to fltk.org domain...

Updated README and CHANGES files accordingly.

Updated makeinclude and Makefile files to put -L../lib before the
LDFLAGS/GLDFLAGS to avoid problem reported by Alexander.

documentation/Makefile wasn't including makeinclude.

Updated FLUID about window to show version 1.0.9.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:21:24 +00:00
Bill Spitzak b0cdb25d3c Fixes for 1.0.8 I found:
Fixed hardware overlays.  The problem was the new fl_clipped() code,
which tests against the current window size.  The hardware overlay
code did not set the current window when drawing the overlay.  I
needed hardware overlay for DD's code, I'm not sure if these fixes are
good enough to enable this in our general release.  Hardware overlay
still only works on SGI Irix.

Some patches to turn off the MSVC++ -Oa (assumme no aliasing)
optimization flag.  Suprisingly this only broke a few parts of fltk,
or at least these are the only ones I found.

Does not unmap child windows when the main window is iconized.  This
reduces flashing when the window is deiconized.

Fl::key() is set to zero by all events except key down/up.  This will
allow you to reliably test if an event or callback was produced by a
keystroke.  Fixes the bug posted about stopping Escape from closing
the window.

User defined cursors on OpenGL windows slowed down NT a *LOT*.  Some
attempts to fix this by turning off the cursor while drawing the
window.

Filename completion in the file chooser works better on NT.  Typing
TAB fixes the case of everything you typed to match the shortest name
that can be completed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 08:37:09 +00:00
Bill Spitzak d5b47034a7 Added Fl::first_window(window) to change which window is at the top of
the window list.  This window is used as the "parent" of any modal
windows you create so it is a good idea to be able to change it.
Normally it is whatever window got the last event.

Fixed Fl_Menu::global handler to use first_window so if a modal window
pops up in response it is parented to the window containing the
menubar rather than the current top window.  This was an annoying bug!

Copied fl_line_style() and the line_style demo over from fltk 2.0
because I am tired of mailing this code to people.  Better to advertise this
as "added fl_line_style() function to set line thickness, dash patterns,
and end caps".

Fixed the documentation for these changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13 20:03:20 +00:00
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 bf34ed8ca7 Forgot to fix this file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 18:00:50 +00:00
Bill Spitzak 6f42bc1a58 Fl_Value_Input callback can call value() or destructor on the Fl_Value_Input
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:05:59 +00:00
Carl E. Thompson af5190b95f Fix to compile on GCC 2.95.
Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-08 16:02:25 +00:00
Bill Spitzak a32453e680 Moved FL_LEFT_MOUSE, FL_MIDDLE_MOUSE, and FL_RIGHT_MOUSE from forms.h to
Enumerations.H so they are available to any fltk programs.

More fixes to the fake-overlay code in Fl_Gl_Window (it did not work on
Win32 when there were 2 different-sized windows)

Fix to Fl_compose to not quote the Delete key fixed to allow the right-
control key to still be the compose prefix and to allow it to quote
control characters.

OSF1 used the same parameters for scandir as SGI and unlike Linux and
apparently most other Unix's

fl_ask, message, etc windows are resizable, which is useful if you use
them to display arbitrary output from a program.

On Win32 non_modal (but not modal) windows have close and size boxes, as per
popular demand at Digital Domain.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-05 06:51:07 +00:00
Michael R Sweet aee4def606 Updated version to 1.0.8.
Applied colors patch.

Updated doco makefile for current version of HTMLDOC.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-25 03:44:22 +00:00
Bill Spitzak 42ebf79306 New X function: fl_open_display(Display*) lets you run fltk on an
already-created X connection.  This should help with interoperability
with Xt or other toolkits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23 09:23:53 +00:00
Bill Spitzak b583a643de Forgot to commit the header files and fixed documentation!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-21 10:45:59 +00:00
Bill Spitzak 49b8502b83 Added Fl.H required by an inline function if Fl_Repeat_Button.H
Fl_add_idle adds new functions to the end of the queue ring, rather than the
start, so they are executed in the order added, and a callback that adds
itself does not prevent others from being called.

Fluid lets you type in code that starts with '#' for cpp directives.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-05 03:17:28 +00:00
Michael R Sweet 9186cf6ce9 Updated to 1.0.7.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@955 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-17 18:51:23 +00:00
Bill Spitzak 9ce13e4fff Changes requested by Jeff Meininger
1. Browser responds to FL_KEYBOARD as well as FL_SHORTCUT.  If you subclass
it to accept focus then keyboard navigation will work.  I could not do his full
patch as it broke the file chooser's tab completion and perhaps other programs.

2. Fl_Tile and Fl_Tabs do their callback when the user changes their display.

3. Made some of the private methods of Fl_Browser protected.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-11-16 07:39:59 +00:00
Bill Spitzak 2e58f174f7 Changed the sgi -woff pragma to the new #define suggested by Michael Sweet.
Cast in draw_pixmap that produced an error in the OSF1 compiler fixed.

Error in emulation of GLUT_KEY_F?()


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-16 19:58:22 +00:00
Bill Spitzak 1d5fcfd080 Forgot to check in the header file changes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-14 04:58:13 +00:00
Michael R Sweet 4ccf6b4b37 Changes for 1.0.6 release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-09-27 18:16:36 +00:00
Michael R Sweet fbe24c3b80 Updated for FLTK 1.0.5.
Added EPM distribution list file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@721 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-09-15 17:05:50 +00:00
Bill Spitzak 7f60ccd9ad Added missing FL_EXPORT to Fl_Window::resize()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-27 08:27:42 +00:00
Bill Spitzak 1706466f04 Added inline function make_visible(n) to scroll it to show line n.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-20 07:54:36 +00:00
Michael R Sweet 1e4abdc8d0 Dropped #pragma from x.H - first, it isn't supported by the 5.3 compilers,
and second, we have (I thought) a check in the configure script for this
anyways...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-09 13:53:21 +00:00
Bill Spitzak 7508ce1e31 It crashed when a group with exactly 1 child was deleted.
Overlay on a single buffered Fl_Gl_Window is faked more accurately when
there is no overlay hardware.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-09 06:19:33 +00:00
Bill Spitzak 0bb590c832 Pragma added around xlib.h to shut up the IRIX compiler warnings
Fluid writes "class foo;" to the header and c file without prepending
"extern" or "static".  This patch also does this to "class foo bar;"
which is wrong...

Tabs draw very short labels.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22 07:27:12 +00:00
Michael R Sweet 38e5cf7db0 Added inline deactivate() method that calls Fl::remove_timeout()
for Fl_Repeat_Button.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-10 23:16:13 +00:00
Michael R Sweet 701141bcfe Added inline destructor that calls Fl_Browser::clear() method...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-20 14:38:12 +00:00
Michael R Sweet 0f3d0290ea Updated to 1.0.4...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@602 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-12 13:15:15 +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 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
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
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
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
Michael R Sweet 8fb6c44298 Updated patch version number to 1...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 13:35:37 +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
Michael R Sweet 51c3b154dd Removed unused "u32" type...
git-svn-id: file:///fltk/svn/fltk/trunk@403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 16:25:02 +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
Michael R Sweet 8a0c2ce373 Added missing FL_EXPORT stuff...
git-svn-id: file:///fltk/svn/fltk/trunk@386 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 18:16:45 +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 fc4b790f1f Oops - forgot that the OS/2 port doesn't use the WIN32 stuff - restored
the old inline functions for x() and y() under OS/2...


git-svn-id: file:///fltk/svn/fltk/trunk@338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 22:12:38 +00:00
Michael R Sweet 6bbeac5bd7 fl_ask.H didn't include Enumerations.H, so the DLL stuff wasn't defined.
git-svn-id: file:///fltk/svn/fltk/trunk@330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-23 14:03:26 +00:00
Michael R Sweet 20da6861f2 Removed unused "FL_IMPORT" definition.
git-svn-id: file:///fltk/svn/fltk/trunk@326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 22:10:14 +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 1bf7ee1dac Updated header files to only use FL_DLL stuff when compiled
with VC++.


git-svn-id: file:///fltk/svn/fltk/trunk@300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:52:33 +00:00
Michael R Sweet b3ef28260e Updated DLL stuff yet again... sigh...
git-svn-id: file:///fltk/svn/fltk/trunk@296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-18 22:07:40 +00:00
Michael R Sweet 40df358bdb Updated headers to only support DLLs under MSVC++.
Updated WIN32 Debug target to not change inlining option
from the default (causes an error with VC++ 6.0)


git-svn-id: file:///fltk/svn/fltk/trunk@292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-18 14:26:52 +00:00
Michael R Sweet a0157c5ba1 Fl_Window::icon() used a parameter named "i", which conflicted with the
"i" member.

fl_draw.H had line style definitions in it, but FLTK 1.0 doesn't have
line style support (that's for 1.1).


git-svn-id: file:///fltk/svn/fltk/trunk@288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-18 13:12:50 +00:00
Michael R Sweet 55d8e368d7 Updated DLL definitions for VC++ 6.0 - now define "FL_STATIC"
for static library to avoid warnings & errors.


git-svn-id: file:///fltk/svn/fltk/trunk@286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-18 03:20:32 +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 761a3b3d85 Fixed dirent.h compatibility file; was including fl_scandir.H instead of
filename.H...


git-svn-id: file:///fltk/svn/fltk/trunk@270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-09 13:41:11 +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 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
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
Michael R Sweet 53d39cc6c0 Applied a navigation bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 21:37:14 +00:00
Michael R Sweet 81eb3115e0 Patch from Carl - inactive and contrast functions.
git-svn-id: file:///fltk/svn/fltk/trunk@241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-25 20:43:05 +00:00
Michael R Sweet 500be2e8aa More color fixes from Bill - contrast function not right, and moved
fl_color_average() to be a non-public method.


git-svn-id: file:///fltk/svn/fltk/trunk@213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:56:23 +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 a64292cc5f Fix from Bill - handle() method needs to be public.
git-svn-id: file:///fltk/svn/fltk/trunk@208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:37:59 +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 651b2af829 More contrast updates from Carl.
git-svn-id: file:///fltk/svn/fltk/trunk@188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:40:58 +00:00
Michael R Sweet 41d027ebfb Fix from Carl - the inactive() function now works with all colors, and
all widgets now use it.


git-svn-id: file:///fltk/svn/fltk/trunk@185 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-05 17:57:49 +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 bc5737461d Added FL_FREE_BOXTYPE constant to Enumerations.H.
git-svn-id: file:///fltk/svn/fltk/trunk@167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-22 18:26:10 +00:00
Michael R Sweet 7d1cd94b72 Need "struct dirent" with C...
git-svn-id: file:///fltk/svn/fltk/trunk@148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 22:11:10 +00:00
Michael R Sweet 12e7a1cda4 Redraw speedup patch from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:38:40 +00:00
Michael R Sweet 5c85287f32 Fl_Pixmap bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@123 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 20:05:03 +00:00
Michael R Sweet beb210d4d4 Font changes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:51:38 +00:00
Michael R Sweet 849e11623e Changes from Carl to get rid of default_ variables...
git-svn-id: file:///fltk/svn/fltk/trunk@106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:39:39 +00:00
Michael R Sweet 90a6a06b7f Added floating point versions of gl_draw() functions.
git-svn-id: file:///fltk/svn/fltk/trunk@100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-24 13:18:34 +00:00
Michael R Sweet 2b769f5934 Backed out WIN32 color palette changes for OpenGL - caused too much
flashing...


git-svn-id: file:///fltk/svn/fltk/trunk@76 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 17:02:40 +00:00
Michael R Sweet e278c332b3 Fixed WIN32 bug - FL_GL_WINDOW needs to be defined in Fl_Window.H...
git-svn-id: file:///fltk/svn/fltk/trunk@75 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 16:47:44 +00:00
Michael R Sweet dfa8c05620 More OpenGL under Windows changes - now keep track of window type and
select the corresponding color palette...


git-svn-id: file:///fltk/svn/fltk/trunk@74 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 16:37:21 +00:00
Michael R Sweet a90ca2d60a Patches from Bill:
- Box type problems with 2-pixel boxes (wrong colors)
  - Fl_Pixmap fix (uchar instead of char)
  - Style demo fixes for Windows.
  - HPUX comparison function prototype wrong.
  - Spelling errors...


git-svn-id: file:///fltk/svn/fltk/trunk@70 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:05:48 +00:00
Michael R Sweet 37d1178c11 WIN32 fixes from Gustavo for fullscreen mode problems.
git-svn-id: file:///fltk/svn/fltk/trunk@68 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 14:36:56 +00:00
Michael R Sweet e95598d0df WIN32 full-screen fixes from Gustavo.
git-svn-id: file:///fltk/svn/fltk/trunk@55 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 16:27:24 +00:00
Michael R Sweet 80b1529ef4 Multiple patches from Bill:
- Double-buffered window fixes.
  - Tabs fixes.
  - X/WIN32 fixes.
  - Fl_Input fixes.
  - Support for vsnprintf and friends.
  - Support for printf-style arguments in utility functions.


git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 16:04:53 +00:00
Michael R Sweet 7657a2e4a5 Fixed all the frigging file headings - was missing a $ in the Id string.
Applied some damage bit fixes from Bill Spitzak.


git-svn-id: file:///fltk/svn/fltk/trunk@28 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 14:21:44 +00:00
Michael R Sweet 53fcfae9cb Updated autoconf files to support shared libraries and JPEG library.
Updated README files.
Removed old files.


git-svn-id: file:///fltk/svn/fltk/trunk@24 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-20 16:41:24 +00:00
Michael R Sweet af86963dfa Updated for new heading and CVS tags.
git-svn-id: file:///fltk/svn/fltk/trunk@21 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 21:39:29 +00:00
Michael R Sweet 90e8eb7a45 More changes from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 21:00:26 +00:00
Michael R Sweet 512332670a Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 17:53:09 +00:00
Michael R Sweet 67d2f102d9 More WIN32 fixes from Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@13 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:38:16 +00:00
Michael R Sweet 45bb73a9bf Commited WIN32 patches from Bill Spitzak and Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@11 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:06:16 +00:00
Michael R Sweet 725a11bce7 Applied patches from Bill Spitzak.
Fixed all source files with MS-DOS/Windows line termination (CR+LF) instead
of standard line termination (LF only).


git-svn-id: file:///fltk/svn/fltk/trunk@8 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 19:14:55 +00:00
Michael R Sweet e7d805a88c Commited Gustavo Hime's NT patches/fixes.
git-svn-id: file:///fltk/svn/fltk/trunk@7 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:46:47 +00:00
Michael R Sweet f9039b2ae2 Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:21:25 +00:00