Commit Graph

882 Commits

Author SHA1 Message Date
Michael R Sweet 4323f46e2c Add EM and STRONG support to Fl_HelpView.
Fix --disable-cygwin configure option, and use AC_SEARCH_LIBS for
math library.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1711 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-22 13:56:10 +00:00
Michael R Sweet 85f3c6a3db Don't use -lm unless required.
Add --disable-cygwin option.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-20 20:10:59 +00:00
Michael R Sweet aeefaca66b GIF loading code from FLUID.
Remove old WIN32 mask code that is no longer needed.

Fix "compressed" colormap code in Fl_Pixmap.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-20 05:13:23 +00:00
Michael R Sweet 84e38d4d91 Move header installs to new FL/Makefile, which is generated by
configure.

Comment out symlink stuff for Cygwin, and (hopefully) soon for OSX, too.

Add uninstall targets where needed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1707 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 21:25:35 +00:00
Michael R Sweet 13e7d76397 WIN32 fixes for the new image stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 20:59:59 +00:00
Michael R Sweet fb4fe5642a Don't send FL_RELEASE events for buttons 4 and 5 (mouse wheel)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1704 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 18:28:55 +00:00
Michael R Sweet 1acc39c5d8 OK, lots of changes to the Fl_Image, Fl_Bitmap, Fl_Pixmap, and Fl_RGB_Image
classes: new copy(), copy(w,h), desaturate(), color_average(), and
inactive() methods, alloc_xyz member for copied data, etc.

Updated test programs to use inactive() and copy() methods to create
inactive images for the test buttons, plus the inactive button to toggle
it...

Added start of separate image classes, a la 2.0, for various image formats.
FLUID will also be updated for it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 01:06:45 +00:00
Michael R Sweet 681ded73c2 Add Fl_Bitmask type, fl_create_bitmask() and fl_delete_bitmask() functions
for common mask generation stuff (need to test under WIN32!)

Add alpha channel support to Fl_RGB_Image class; currently uses "screen
door" transparency.

Update image demo to draw an RGBA image to show alpha channel.

Comment out debug printf in tooltip code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-18 20:52:28 +00:00
Michael R Sweet 8b5a03d3a2 More CygWin stuff, and a fix for WIN32 with the new fl_beep() function.
Add a new "migration" appendix to the FLTK manual.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-18 12:48:38 +00:00
Michael R Sweet f21f8f8993 Always use PIXELFORMAT cast for WIN32 OpenGL stuff.
Send FL_MOUSEWHEEL events to the focus widget first, then to others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 18:29:05 +00:00
Michael R Sweet 3f68395e83 Keep tooltip windows on the screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 18:20:09 +00:00
Michael R Sweet c63083837f Limit width of drop-down button in Fl_Choice widgets.
Fix tooltip bug where the wrong tooltip would be shown.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 18:18:53 +00:00
Michael R Sweet e5db11fd43 Make paste logic smarter for int and float fields.
Replace existing text when pasting into an int or float input field.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 17:00:22 +00:00
Michael R Sweet 45658d7c0f Add fl_beep() function.
Don't allow non-int/float text to be pasted into an Fl_Int_Input or
Fl_Float_Input widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 16:37:48 +00:00
Michael R Sweet efbe74758f Pass pointers to pp and info when calling the new
png_destroy_read_struct() function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 15:59:53 +00:00
Michael R Sweet 406404de72 Update configure script to support non-X platforms; currently just
CygWin, soon OSX too...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 15:55:36 +00:00
Michael R Sweet ab1e093308 Don't use -lsupc++ with gcc 2.96; just tried it on RH 7.2 and that
library isn't present or needed.

PNG image support updates for Fl_Help_View and Fl_File_Icon; didn't
handle transparency properly.

Support KDE 2.x icons.

Separate image/load_system_icons code from main Fl_File_Icon sources,
so that apps that don't use load_system_icons() won't need the image
libraries...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 15:27:15 +00:00
Michael R Sweet 74bff0b300 Doco updates (more to come)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-05 01:07:34 +00:00
Michael R Sweet 0884e2ba0d Update all non-text widgets that take keyboard focus to check
Fl::visible_focus() before taking or accepting focus; this allows
one to disable the new 1.1 keyboard focus stuff completely (not much
sense allowing focus if you can't see it...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-03 19:24:22 +00:00
Michael R Sweet d3acd6c475 Add Fl::visible_focus() method.
Add optional "draw_symbols" argument to fl_draw and fl_measure functions.

Fl_Repeat_Button didn't handle keyboard focus properly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-03 05:11:34 +00:00
Michael R Sweet 7495dff247 Range check input in Fl_Browser::make_visible()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-02 20:59:07 +00:00
Michael R Sweet 5338ba6d1e Add check for GCC 2.96, and add -lsupc++ to the link line if so...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-02 20:40:29 +00:00
Michael R Sweet 18caedc1c5 Removed the "Microsoft" button from the menu demo.
Added a number check for the browser demo, and changed the input field
to an Int_Input widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-02 20:38:15 +00:00
Michael R Sweet 28295ae0e9 Fixes for old C++ compilers (e.g. IRIX 5.3)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-01 18:53:46 +00:00
Michael R Sweet bf42e5023c Add "LIBS" to fltk-config --ldflags output (for -L/usr/X11R6/lib, for
example)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-01 17:28:36 +00:00
Michael R Sweet 6c202ba503 Fix uversion setup (only numbers please)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-01 16:55:12 +00:00
Michael R Sweet 52f21643d3 Fix "checking" messages...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-01 16:43:38 +00:00
Michael R Sweet 322d454659 Clean up configure script a little, update default man page
directory...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-01 14:54:06 +00:00
Michael R Sweet d2896be34a FLUID didn't write static data for the deimage() image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-30 21:56:15 +00:00
Michael R Sweet 85a8a15560 Fix shortcut button bug - wasn't calling callback when changed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-30 17:40:02 +00:00
Michael R Sweet a1944b77ab Cygwin fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 21:59:15 +00:00
Michael R Sweet 38fdf727f7 Fix infinite loop bug in Fl_File_Icon::draw() with 32-bit colors and
outline polygons...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 15:40:49 +00:00
Michael R Sweet 46aa6619e1 Update spec and list files for 1.1.0b5 release...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 14:54:52 +00:00
Michael R Sweet 079082ef7c 32-bit color (RGB0 or 000I), a la FLTK 2.0, including fl_rgb_color()
function to generate an RGB Fl_Color value.

Sort button names in FLUID.

Fix focus and scroll problems in Fl_Text_Display/Editor.

Fix radio/button demo.

Removed D2 menubar.H header...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 03:44:33 +00:00
Michael R Sweet a00b52a676 Wasn't quoting @label stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 16:38:36 +00:00
Michael R Sweet 831d7cde5b FL_KEYUP event support.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 03:45:29 +00:00
Michael R Sweet 06619abc5a Put "RM" back in makeincludes, so we can remove the library archive
before building (helps when you remove old sources, but the object
file lives on in the archive...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 03:33:25 +00:00
Michael R Sweet 68fb9f7910 Don't allow extra boxtypes to override user-defined boxtypes.
Change the help link function to get both the widget and pathname.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 03:29:25 +00:00
Michael R Sweet d2bfebbb4b Check for both functions in PNG loader...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-26 21:18:30 +00:00
Michael R Sweet d2df17ac31 Draw check and radio buttons with a white background.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-26 20:30:05 +00:00
Michael R Sweet 4625fdf7a5 Only add x_includes to path if it is not empty.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-25 17:25:11 +00:00
Michael R Sweet d5e60a4f2b Keep using ${prefix} with mandir, so that RPM builds are easier.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-25 17:13:26 +00:00
Michael R Sweet f4c1454765 Put Linux man pages in /usr/share/man.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-25 17:12:03 +00:00
Michael R Sweet d1605088ae "alldocs" target to build everything, including HTML...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-24 17:04:30 +00:00
Michael R Sweet 2d559beaad Check for GCC 3.0.x...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-23 11:42:23 +00:00
Michael R Sweet 19518ebe35 Make Fl_Widget::parent() work with Fl_Group pointers...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-22 21:15:11 +00:00
Michael R Sweet 29476d08b8 Only use GEOMETRIC line styles under Windows...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1644 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-19 17:02:57 +00:00
Michael R Sweet 875fc93bc1 Add missing comment blocks to top and bottom of file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-19 16:36:00 +00:00
Michael R Sweet f31fe66f8c Put all OpenGL stuff back in FLTKDLL; no separate shared
libraries under WIN32 since WIN32 is so braindead about
export/import crap anyways...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-19 16:26:51 +00:00
Michael R Sweet 461002c3ad Check for png_read_destroy(), since newer versions of libpng do not
provide (or export) this function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-19 14:04:08 +00:00