Commit Graph

720 Commits

Author SHA1 Message Date
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
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
Michael R Sweet
a7826cdc80 Updated the version numbers in spec and list files.
Added HP-UX shared library support in fltk.list.

Fixed error in documentation - Fl_Browser_ is derived from Fl_Group,
not Fl_Widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-06 13:59:46 +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
3988dbf8bd Fixes for hidden class members...
(Bill, please look at the Fl_Menu_Type.cxx code around line 171; the
previous code didn't initialize level before it was used; I hope I
captured the original intent...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-21 21:37:08 +00:00
Michael R Sweet
7d432ff92c Get rid of "member X hidden by variable X" warnings...
Fix strcasecmp() detection...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 19:02:20 +00:00
Michael R Sweet
a45a6308d0 strcasecmp() for FLUID under AIX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:44:19 +00:00
Michael R Sweet
0c6010abea Fix for Fl_Scroll redrawing background.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1335 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:30:54 +00:00
Michael R Sweet
4b2003e24a Configure script changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:12:39 +00:00
Michael R Sweet
d6353595a2 Put -c before $< for Sun PRO compilers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:10:00 +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
Michael R Sweet
e01a7a33d7 Commented out USE_ASYNC_SELECT since it doesn't seem to work...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 14:17:43 +00:00
Michael R Sweet
41df4bf0d1 Fl::below_mouse() was incorrectly clearing e_is_click; this prevented
any double-clicks from getting through...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 02:49:40 +00:00
Michael R Sweet
739e9411e7 Minor change for Sun C/C++ compilers (-xO3 instead of -O) for better
optimization.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-09 21:53:00 +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
710dcef237 Fl_Menu_::add() ignores '&' signs when comparing menu items, so you don't
have to make the shortcuts the same all the time.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:39:06 +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
65cbea2af3 CUA function keys, code submitted by George Yohng <yohng@drivex.dosware.8m.com>
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1314 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:23:42 +00:00
Bill Spitzak
b56f14d91c Fl::set_fonts() on WIN32 fixed to work before the first window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 07:03:41 +00:00
Bill Spitzak
a5d75b0fcd Fl_Tabs draws the background behind the tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:53:20 +00:00
Bill Spitzak
00cf38e1e3 Hack to fix the annoying "raise another application when a modal window
is closed" problem on WIN32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:40:53 +00:00
Bill Spitzak
c30c095d72 Fluid restores which tab in an Fl_Tabs was selected when loads .fl
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:33:59 +00:00
Bill Spitzak
77d42ecdd3 Menu titles and buttons in the menubar can be images (allows it to be used as a toolbar)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 08:21:52 +00:00
Bill Spitzak
59c2b2dd31 Fixed size of data written by gif images to .C files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 08:15:12 +00:00
Bill Spitzak
ec8ebc1ef7 Fixed bit-flipping patterns in WIN32 bitmap code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 07:33:39 +00:00
Bill Spitzak
88076bafd1 Reads selectBackground from the xrdb database to set the selection color.
Adding this to your .Xdefaults will make fltk and Motif programs look
much more Windoze-like:
*selectForeground:              white
*selectBackground:              #000080


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-19 07:53:55 +00:00
Bill Spitzak
33c5896a26 FL_WHEN_RELEASE on Fl_Input will now do the callback when the input
field is hidden, for instance when it is on a tab and the user switches
to another tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-19 07:21:19 +00:00
Bill Spitzak
1a5acb3782 Fl_Gl_Window with an overlay on X always resized any child windows even
if you turned resizable() off because it turned it back on to resize
the overlay window. This patch avoids changing resizable().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-15 07:52:51 +00:00
Bill Spitzak
9a602688e8 Fix so multiple Fl::add_idle() calls works
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1297 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-05 17:15:48 +00:00
Bill Spitzak
b786f11bc6 The input focus got messed up if you called Fl_Tabs::value(x) and there
was something that took focus on an earlier tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1296 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-30 05:51:39 +00:00
Bill Spitzak
d7b0d5b732 Removed ^M chars from Makefile.os2x
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-22 16:36:26 +00:00
Bill Spitzak
949479b5b2 Removed some (not all) of the warnings when compiled with -Wwrite-strings,
this should also get similar warnings Solaris produces.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-20 04:35:17 +00:00
Bill Spitzak
23689de7fb Changes & additions for OS/2 from Alexander Mai
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1290 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-19 19:03:46 +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