Commit Graph

903 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
Bill Spitzak
07656afb7d Fl_Menu_add of a menu item with the same name as an existing submenu
title would mess up by replacing that menu title, it now adds a new
item.

Fl_Menu::add() of text starting with '/' to a menu is assummed to be a
filename. So "/foo/bar" creates a single menu item. You can also put
filenames into submenus by doing "submenu//foo/bar", this will create
a submenu called "submenu" with an item "/foo/bar". Menu items
starting with "\_" will insert an item starting with '_' rather than a
divider line. These changes make the menus compatable with fltk 2.0.

Another little fix for the BoXX OpenGL overlays.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1460 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-19 21:30:23 +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
eb474956cc Forgot to update RPM spec and EPM list files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-07 14:51:10 +00:00
Michael R Sweet
f50ac7f22e Fix Mesa test in configure script.
Update changelog.

Update revision number for manual.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-07 14:34:22 +00:00
Michael R Sweet
336996c7ab Update documentation files to eliminate most of the warnings
and errors reported by HTML Tidy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-06 16:25:05 +00:00
Michael R Sweet
ecfb817427 OS/2 updates from Alexander Mai.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1453 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-06 13:32:48 +00:00
Bill Spitzak
38c947bd09 Compiling with -DBOXX_BUGS will work around some problems with the newest
X drivers that BoXX delivers, the problems all affect use of Overlays for
normal X drawing and OpenGL drawing. Normal compilation is unchanged.

The file chooser buttons use user_data() rather than the label to decide
what to do, allowing the label to be somewhat cleaner.

Selection color on X changed to blue, to match what happens on Windows now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-05 23:39:01 +00:00
Michael R Sweet
325c0838f4 Add new text to license agreement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-05 00:36:08 +00:00
Michael R Sweet
09f987eeb1 Separate test for GLU and GL...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-30 17:17:01 +00:00
Michael R Sweet
f2d2d347e9 Fix configure script and configh.in...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 17:00:23 +00:00
Michael R Sweet
a1236f0900 One more keyboard fix for good measure - still need to address "stuck"
meta key in keyboard demo, but that is because we don't get the "keyup"
event because Windows takes our focus away...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1447 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 15:43:38 +00:00
Michael R Sweet
aa949a24f0 Fixing lock/meta key handling...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1446 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 15:21:33 +00:00
Michael R Sweet
c7615943db Mask low bit of key state for all keys.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1445 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 14:55:33 +00:00
Michael R Sweet
ff3295f036 Handle WM_ACTIVATEAPP message under WIN32, using GetAsyncKeyState() for
all of the key and button states in FLTK.

SunOS 4.x changes (check for <sys/stdtypes.h> and don't rely on
realloc(NULL, size) working - this doesn't work on a lot of platforms!)

Fix nesting of #ifdefs in vsnprintf.c - the C++ wrapper stuff wasn't
being included outside the checks for the individual functions...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-27 14:39:27 +00:00
Bill Spitzak
36b469928e Fixed makeinclude.os2x from Alexander Mai
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-26 07:11:58 +00:00
Michael R Sweet
d3afe9c10a Don't use GCC c++ or g++ compiler to build programs, use gcc instead.
Some more anti-warning stuff...

Added --disable-gl option to disable OpenGL support + check.

Added code to stop the configuration if X11 could not be found.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-25 13:34:43 +00:00
Michael R Sweet
804317fd5e OS/2 fix, mirror from 2.0 tree.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-24 19:43:18 +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
Bill Spitzak
5f96ece638 Another fix for WM_SYNCPAINT from Matt
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-22 16:54:23 +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
8626976d99 Document that fl_line_style() must be called after fl_color() on WIN32
systems (at least) since fl_color() will destroy the extended pen
created by fl_line_style().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-15 23:22:31 +00:00
Michael R Sweet
e2aa3e17f7 Add CPPFLAGS to makeinclude.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-14 11:11:43 +00:00
Michael R Sweet
0ee742ec64 Write pixmap strings as const char *[] instead of char *[].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 19:34:03 +00:00
Michael R Sweet
022ba3679f AIX changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1430 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 19:13:14 +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
bb86f132eb Restored WM_SYNCPAINT handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 17:30:21 +00:00
Bill Spitzak
7b7ca88b49 Fl_has_idle only tested N-1 callbacks and missed one
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 17:22:43 +00:00
Bill Spitzak
339b9cd8a0 can_do_overlay was missing from WIN32 version
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-20 18:02:52 +00:00
Michael R Sweet
3a9d945d07 Use the Multithreaded DLL runtime model for all projects - I haven't found
a system yet that this doesn't work on, and you get smaller executables...

FLUID source needs Windows headers for GetTempPath and MAX_PATH definitions.

Visual C++ complained about the "char **/*argv*/" in CubeMain; added a space
so that */ is not seen.

Include <stdlib.h> to get argc/argv definitions rather than hardcoding
the declarations.  This seems to work in all modes.

Add can_do_overlay() method for WIN32 (seems to work on my TNT card at least)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-15 22:39:57 +00:00
Bill Spitzak
1ede363769 The fractals & glpuzzle demos needed glu.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-14 17:35:47 +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
Bill Spitzak
8470c05b58 Fl_Gl_Window leaked memory for damage regions
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-26 00:19:02 +00:00
Michael R Sweet
3af11190f8 Check for the <GL/gl.h> header file before looking for the OpenGL or
Mesa libraries.  This should eliminate all of the reports we're getting
about missing header files...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1379 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-21 21:37:30 +00:00
Michael R Sweet
5cade5e89a Added HP compiler option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-16 13:35:28 +00:00
Michael R Sweet
f27086d068 Make sure menu item array is cleared to avoid uninitialized memory
accesses...

Fixes for manpage rules...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-12 15:34:37 +00:00
Michael R Sweet
86b5507486 Configure script changes to support man pages, HTMLDOC, AIX/QNX with
strings.h, etc.

Add check for strings.h in fluid/factory.cxx.

Add directories and man page rules to makeinclude.in

Rename man page sources; these are formatted to the correct extensions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-12 15:12:14 +00:00
Michael R Sweet
7eae5f4f87 Use GetTempPath() under WIN32 for the clipboard file location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-01 17:30:28 +00:00
Bill Spitzak
4fb627c3d8 fl_curve uses a much better algorithim to figure out how many pieces
to cut the curve into.

Right-ctrl does not delete selected text in Fl_Input, until you type a
composed character.

Added simple fltk.3 and fluid.1 manual pages and "make install" in the
documentation directory installs them.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-28 06:57:33 +00:00
Michael R Sweet
ffe92796d8 Add call to GdiFlush() under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-26 13:31:51 +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
b88f1b2609 Fixed the write-menu bug introduced in .10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-21 07:36:45 +00:00
Bill Spitzak
b7496f2c59 "accu-timer": some changes to repeat_timeout that seem to make it accurate
on Unix and Win32 at speeds up to 500000 timeouts/second (and 700000 on
Linux), and within about .001% as accurate as the system clock.

Fix to Fl_Valuator::step() by Guillermo Andrade.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-21 06:00:59 +00:00
Bill Spitzak
3a0c70d82e Added parenthesis to turn off gcc warning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1353 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-15 23:51:37 +00:00
Michael R Sweet
421fd3985f Fix to allow Fl.cxx to compile with older C++ compilers (no variable
declaration in while() constructs...)

"cp" doesn't always support "-f".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-21 18:15:14 +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
0d0b066230 Added tests to browser to test top/bottom/middle/make_visible methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-08 15:44:24 +00:00
Michael R Sweet
b230781ddc Specify portable architecture options for HP-UX compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-06 21:09:59 +00:00