Commit Graph

187 Commits

Author SHA1 Message Date
Michael R Sweet
6fa4abfe54 Fix NULL argument to fl_filename_name()...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-07 18:31:55 +00:00
Michael R Sweet
d5c04e175f Fix minimum width of input field to 340 pixels...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-02 19:30:52 +00:00
Michael R Sweet
82f5d08fd6 Add cast for WIN32 font enumeration calls...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-01 15:42:17 +00:00
Michael R Sweet
b083119f50 Fix handling of filename matching - wasn't checking the basename of
the filename for a match.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-29 14:16:03 +00:00
Michael R Sweet
2deb2fdfc9 Add image handler to Fl_Shared_Image class to support additional file
formats.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-29 11:59:56 +00:00
Michael R Sweet
887fe14a2b Fix Fl_Choice drawing bugs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 22:11:52 +00:00
Michael R Sweet
5c360947ee Move forms code to fltk_forms library, a la 2.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2027 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 21:39:01 +00:00
Michael R Sweet
6c796f88c7 Rename all remaining functions that don't start with fl_ to
fl_foo. (filename_xyz becomes fl_filename_xyz, down becomes
fl_down, define_FL_PLASTIC_BOX becomes fl_define_FL_PLASTIC_BOX,
etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 21:08:42 +00:00
Michael R Sweet
98c9f2cc6b Stereo OpenGL patch from Stuart Levy...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2012 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 16:41:01 +00:00
Michael R Sweet
1d7aef987d Automatically resize the convenience dialogs as needed...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-23 15:35:08 +00:00
Michael R Sweet
16f67527bf Changelog update.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-07 19:58:54 +00:00
Michael R Sweet
e52b682a99 Add Xft support to 1.1.x.
TODO: Fl::set_fonts() should add all of the fonts returned by Xft;
right now it is a no-op.

BUG: Getting X messages like "XRequest.155: 202 0x260002b" for some
reason on my system.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1987 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-06 18:11:01 +00:00
Michael R Sweet
394286265a Fix rendering of background color in table cells.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-05 11:26:41 +00:00
Michael R Sweet
c2221d5552 Fix Fl_Browser item width problem when column_widths() is set.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-05 10:42:13 +00:00
Michael R Sweet
2d90deead9 Fix focus "bug" - Fl_Button didn't check to see if the widget would
accept keyboard focus before taking focus when clicked on.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-05 00:46:39 +00:00
Michael R Sweet
ddffcdf328 Fix from Greg - Fl_Help_View didn't preserve the target in a link when
following it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-04 21:48:50 +00:00
Matthias Melcher
9f3e38fb4d Updated OSIssues documentation for Mac
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-27 18:31:54 +00:00
Michael R Sweet
0d2f146f61 Changes to get DND to compile under X11; get a coredump when dragging
text between different input demo windows (sometimes the target gets it,
sometimes the target dumps core, too...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-26 05:25:11 +00:00
Matthias Melcher
7a6ed8c941 - added DDrag'N'Drop support for MacOS
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-26 00:34:55 +00:00
Michael R Sweet
0372675ee1 Always resize cells in table if set/max width not the same as the
column width.

Pass UNFOCUS events to parent groups, too (for Fl_Tabs)

Conditionally compile in support for TrackMouseEvent(), since support
for it is spotty at best.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-20 19:29:57 +00:00
Michael R Sweet
50274f8d85 Update copyright in FLUID "about" window.
Update fltk-config to support all C++ file extensions.

Make background of FLTK logo transparent.

Disable overlays if the scheme is set.

Fix table cell formatting in Fl_Help_View.  Still need to resolve an
issue with column widths vs. table widths.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-20 13:02:27 +00:00
Michael R Sweet
ca09c66686 Fix light/radio/check button drawing to use a consistent size and
offset.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-15 17:30:29 +00:00
Michael R Sweet
ab0949c1f7 File chooser fix from Kurt Konolige.
Mousewheel event propagation fix for Fl_Group.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1958 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-13 03:55:10 +00:00
Michael R Sweet
a235545e42 Fix prototypes for fl_input() and fl_password().
Change how tabs are colored, and update the tabs demo to show it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-30 13:38:15 +00:00
Michael R Sweet
81340639d9 Fix tab measurement for image-only labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1948 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-29 00:56:19 +00:00
Michael R Sweet
492b81c240 Return 0 after processing WM_PAINT message.
Fix clip test in fl_draw().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1944 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-23 16:58:01 +00:00
Michael R Sweet
c9b5b36906 Fix filename_relative().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1942 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-22 00:46:09 +00:00
Michael R Sweet
7a82535b93 Revise configure script and makeinclude file to use OPTIM variable,
and to provide new "--with-optim=flags" option.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-13 19:17:36 +00:00
Michael R Sweet
6eff9b3b14 First round of DND additions to 1.1 - just X11 code, and I haven't added
the support in widgets yet.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1925 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-09 21:50:02 +00:00
Michael R Sweet
45ff84b1f5 Update changelog...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1923 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-09 16:25:03 +00:00
Michael R Sweet
bccdafdaef Fixed from Teun.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1919 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-07 20:40:02 +00:00
Michael R Sweet
a55363086d Don't apply tile image to menu or overlay windows.
Add Fl_BMP_Image.H links to fltk.list.in.

Reset colors to standard FLTK ones in Fl::get_system_colors().

Don't clear button events when fixing focus.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1918 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-07 18:47:27 +00:00
Michael R Sweet
e0bfbbd558 Add Fl_BMP_Image class and docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-06 17:51:12 +00:00
Michael R Sweet
de9f676353 Fix OpenGL and button problems in shiny demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-04 18:22:27 +00:00
Michael R Sweet
8fe611b5cd Fix changing of schemes - otherwise Fl_Window::show() could cause a
reference to a non-existing tiled image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1908 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-03 18:28:37 +00:00
Michael R Sweet
81be28e2dd Fixup fractals demo so it doesn't get way ahead of display - some Linux
OpenGL implementations can queue dozens of frames...

Also fix controls in "flying" mode - the Y axis was reversed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-03 14:08:08 +00:00
Matthias Melcher
1775984dbe cleaned up src/Fl_mac.cxx, fixed Fl::wait(0.0), fixed Cmd-Q handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-03 08:08:21 +00:00
Michael R Sweet
e5a26965bf Add Teun's CygWin patch for select()...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1902 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 14:14:34 +00:00
Michael R Sweet
f9770db21f Use rint() for some more rounding of vertices.
Add fl_parse_color() to X11 version, too, and use it instead of XParseColor
in the image handling code.

Move the default color stuff in the plastic scheme to the MacOS
get_system_colors(), and apply the background color to the tile image.

More fixes for test makefile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 13:11:29 +00:00
Michael R Sweet
988bc9d95f Fix build problems in test directory - no more recursive dependencies for
demos that are partially built using FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-30 05:16:10 +00:00
Michael R Sweet
25e570865c Use rint() for rounding floating-point coordinates...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-28 21:57:41 +00:00
Michael R Sweet
6be2be6d43 Demo updates (so they all will use the default scheme)
Added show(argc, argv) method to Fl_Help_Dialog.

Don't clear tab area in Fl_Tabs...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-23 03:40:51 +00:00
Matthias Melcher
c868f3d886 MacOS: implemented cut/copy/past.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1895 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-22 09:30:07 +00:00
Matthias Melcher
d0bdfe300d - MacOS: more keyboard handler fixes, mainly mapping of Mac specific
keys and iBook keys, several fixes to keyboard focus.

Happy Holidays!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-22 07:16:12 +00:00
Michael R Sweet
128526fc28 Fixed browser @ symbol prefix handling...
OS/2 fixes (makeinclude update and filename_isdir needed
#include <sys/types.h>)

MingW fix (makeinclude update)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 14:17:00 +00:00
Michael R Sweet
df9acaafea Implement Fl::scheme() and Fl::reload_scheme() (this includes support
for new FLTK_SCHEME environment variable, which should get added to
FLTK 2.0 CVS, as well as the -scheme option...)

Revert Fl_Group/Fl_Widget destructor change - it doesn't work for
statically initialized widgets (like the widgets in a color chooser...)

Export fl_round_up_box() and fl_round_down_box() so they can be
restored in Fl::reload_scheme().

Use FL_DOWN_BOX and FL_ROUND_DOWN_BOX in menu drawing code.

Use a static string for the display environment variable in Fl::display().

Updated MacOS README file...

Added window tile image...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1883 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-20 14:41:44 +00:00
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
a2e149d132 "make clean" should not delete makedepend, since we now track this
in CVS (makedepend contains local dependencies, not <stdio.h> and
so forth)...

The configure script didn't add -fpermissive or -fno-exceptions to
the CFLAGS and CXXFLAGS variables.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 19:23:32 +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
Michael R Sweet
9f601ccb73 Reset horizontal position in value() method, too.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1877 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 15:59:51 +00:00