Commit Graph

179 Commits

Author SHA1 Message Date
Matthias Melcher 0215c7986c fixed iBook keyboard bug.
all message handling now in Carbon.
mouse capture support added.
timer support added.
overlay support added.

getting there...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-20 05:27:14 +00:00
Michael R Sweet 329b4127f6 Multiple bug fixes from Sebastien:
- Fl_GIF_Image and Fl_PNG_Image didn't close the file before
      calling Fl::error().
    - Fl_Help_View didn't clear the line array in Fl_Help_Block,
      and Fl_Help_Block::font and ::size were not used.
    - Fl_Shared_Image::get() didn't return NULL if the image
      could not be loaded.
    - Switched to more efficient code for
      Fl_Tiled_Image::color_average() and ::desaturate().
    - Don't delete children in Fl_Text_Display since the group
      will do it.
    - Fixes to filename_isdir(), filename_absolute(), and
      filename_relative().
    - Was using numbers instead of define constants for some
      OpenGL stuff under WIN32.
    - Wasn't exporting threading functions under WIN32.
    - The Fl_Widget destructor now removes from the parent to
      avoid a Purify error since the old widget would be
      referenced by the parent when it was destroyed; this has
      no apparent performance impact since Fl_Group::clear()
      sets children_ to 0, making Fl_Group::remove() very
      fast...
    - WIN32 font enumeration datatype fixes...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1878 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 18:15:34 +00:00
Matthias Melcher b6b4e1ec20 - Mac: greatly improved OpenGL support, some window management,
soem little bugs, better source comments


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-18 11:00:09 +00:00
Michael R Sweet 9ed48bd74a Fix other widgets to use Fl::focus() instead of take_focus().
Add keyboard nav to Fl_Color_Chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1853 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-16 16:41:48 +00:00
Michael R Sweet 6c3a9ec36a Add "shown()" method to Fl_File_Chooser.
Use "while shown" instead of "while visible" in chooser functions,
since a desktop switch will make FLTK think the window is not visible
and prematurely return whatever file you have selected.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1849 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-15 15:20:54 +00:00
Michael R Sweet 4982fb29a0 Clean up default menu for FLTK applications - don't need "About FLTK".
Add "--post program" option to fltk-config so that MacOS apps can bind
the resources.  Also binds resources with --compile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 19:34:30 +00:00
Michael R Sweet 5c3b2f74bc More tweeking of plastic boxtypes.
Redraw parent if child button loses focus and is using FL_NO_BOX.

Fix test/Makefile to build mandelbrot and shiny demos right.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 16:48:13 +00:00
Michael R Sweet fdcdc8fd46 Multiple fixes from Sebastien.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1833 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-11 16:03:13 +00:00
Michael R Sweet ba2be02ab2 FLTK 2.0 threading support under FLTK 1.1. Needs porting to OSX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 22:16:49 +00:00
Michael R Sweet 2c8bc31971 Run $(RANLIB) on installed static libraries, since some OS's (i.e. Darwin)
compare the file modification time against the symbol table time...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1815 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 18:23:29 +00:00
Matthias Melcher e07200c4e8 Implemeted 95% of all Mac OS X support. Makefiles still need modifications.
Almost all test applications run out of the box (->Makefile). See more
information in README.mac .

Changes:
- message handling
- access to opaque port structures
- image, bitmap, pixmap support
- most OpenGL stuff
- window styles


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 00:17:47 +00:00
Matthias Melcher 1d06051e8c FLTK for Mac:
Reversed to outdated (but working) event handling.
 Added README.mac
 Added mac.r minimal resource fork
 Still lots of bugs, but initial rendering works


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-04 03:03:17 +00:00
Michael R Sweet bb2ac233c6 My bad... Remove autoconf-generated Enumerations.H - it's only
needed for updating the version numbers automatically, and I've
gotten update conflicts on several occasions.

The other files (fltk-config, etc.) are still generated by
autoconf.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1800 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-03 18:57:45 +00:00
Michael R Sweet 3a0fe79164 Bug fixes and doco updates care of Sebastian.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-03 18:29:49 +00:00
Michael R Sweet d7f311e25c Fix Fl_Tabs to use boxtypes exclusively for drawing the tabs. This results
in boxier tabs, but you can customize as desired.

Fix plastic box types when drawing larger boxes that would default to
the color (without any adjustment).

Don't need to build fluid files anymore for source distro - visual C
projects now create them as needed.

Changelog update.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1797 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-01 13:59:50 +00:00
Michael R Sweet 62bc805daa Fix for makesrcdist script...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1791 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 22:05:55 +00:00
Michael R Sweet bc925b34c3 Tweek makeinclude.in so that we build from .o files instead of .cxx -> .exe
Same for .fl -> .exe in test/Makefile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 21:24:49 +00:00
Michael R Sweet 02d869450d Minor tweeks to the configure script for CygWin and Mesa.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1787 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 21:12:15 +00:00
Michael R Sweet b105ab8b7f Update tile image...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 01:59:48 +00:00
Michael R Sweet 4b23d4c6d5 VC++ fixes, plus add new tiled_image project file.
Use the plastic box type for the tiled_image demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 00:24:43 +00:00
Michael R Sweet 79d6a32be9 Add new plastic box types (kindof a shiny translucent box type...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 21:37:35 +00:00
Michael R Sweet 77e2314f2a Missing cast in Fl_Tooltip.cxx...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 20:48:49 +00:00
Michael R Sweet c78dcd55ec More doco updates.
Enable tooltips by default, and don't enable them when setting the
tooltip value, since that will negate any changes a program might
make when displaying the file chooser dialog, etc.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 20:43:44 +00:00
Michael R Sweet d211b12af7 Add Fl::version() and Fl::event() methods.
Doco updates (use <!-- NEW PAGE --> instead of <HR break>, plus more
Fl_Text_Buffer docos)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 18:00:17 +00:00
Michael R Sweet f10b778a56 Fix fltk-config --compile filename.cxx so it echos the command and
uses the right output filename.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 15:55:33 +00:00
Michael R Sweet 1a7bbc55c5 Configure script changes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-27 22:03:29 +00:00
Michael R Sweet 42df8c1288 Fix typos from OSX commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-27 17:48:16 +00:00
Michael R Sweet 2b85bf8168 Preliminary commit of my MacOS X work.
**** THIS CODE COMPILES BUT DOES NOT WORK. ****

TODO: fix event handling - getting blank windows, etc.
TODO: re-port OpenGL code.
TODO: add support for images with alpha.
TODO: add support for more then just beeps in fl_beep().
TODO: other stuff I'm sure...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-27 17:44:08 +00:00
Michael R Sweet ecd2c821be Doco updates.
Remove unneeded files from the makefiles directory.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1735 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-26 21:40:14 +00:00
Michael R Sweet eba128dcc0 New filename_relative() function, and use it from fl_file_chooser() and
fl_dir_chooser(), so that apps like FLUID won't get absolute paths all
the time...

Update filename_xyz() functions to take a destination size, and provide
inline methods for the old FL_PATH_MAX convention.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-26 00:15:06 +00:00
Michael R Sweet c147aca054 Add flstring.h header file to include string functions, strcasecmp
definitions, and (v)snprintf function declarations...

Fix Fl_File_Chooser so it always checks for an empty directory_ (so
that is doesn't add the leading slash to drive letters and mount
points)

Make Fl_File_Icon use Fl_Shared_Image, and look in all KDE icon
directories.

Fl::error() no longer exits by default; only Fl::fatal() does...

Wasn't doing callbacks in Fl_Tabs when the current tab was changed
via the keyboard.

FLUID wasn't writing the tooltips in message files, and didn't count
tooltips when computing the message number for catgets.

Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-25 16:38:11 +00:00
Michael R Sweet f6d88d2735 Forgot to add this file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-25 12:30:25 +00:00
Michael R Sweet b650366d80 Added XBM, XPM, and PNM image file classes.
The pixmap_browser demo now supports all image formats via Fl_Shared_Image.

Dropped image file stuff from image demo.

Added Fl_Tiled_Image class, which tiles an Fl_Image, useful for tiling a
background image in groups.

Added tiled_image demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-24 18:07:58 +00:00
Michael R Sweet e016a249b2 Add horizontal scrollbar to Fl_Help_View.
Tweek table "squeezing" code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1715 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-24 04:12:56 +00:00
Michael R Sweet 70abac1b8b Fix bugs in copy() methods.
Add Fl_Shared_Image class, with get() and release() methods.

Update Fl_Help_View to use Fl_Shared_Image class.

Update image demo to accept a filename, and to use the Fl_Shared_Image
class.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-24 02:46:19 +00:00
Michael R Sweet 4087b8cd9a Add code for PNG and JPEG images.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-23 12:06:36 +00:00
Michael R Sweet f525840495 Fix all references to '.C' files (now .cxx)
Update Fl_Image() class to track depth and data, so FLUID will be
able to use it as the base class.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-22 15:35:02 +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 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 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 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 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 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 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 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 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 9da85233f9 Fl::belowmouse() was resetting the tooltip, causing the flashing
in the FLUID window and havoc for the KDE 2.2 window manager...

Changed the default tooltip position to be +10, +10 from the
mouse pointer, and the default tooltip background color to a
pale yellow to match other toolkit defaults.

Update Fl_Widget::flags_ to be an integer, to support more flag
bits.

Update Fl_Window to support override() and set_override() methods.

The configure script did not set the default library path to
/usr/lib32 under IRIX 6.2 and higher when prefix is /usr.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-18 18:53:20 +00:00