Commit Graph

1009 Commits

Author SHA1 Message Date
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
3a904f07b7 Bump version numbers to 1.1.0b9.
Default exec_prefix to ${prefix} instead of prefix value.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-30 04:45:34 +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
1eb5acf22e Casts to make old IRIX 5.3 C++ compiler happy...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1892 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 20:45:43 +00:00
Michael R Sweet
b51af0f1bf More OS/2 fixes from Alexander...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 18:16:50 +00:00
Michael R Sweet
b7be2be5e6 Assign broken image when Fl_Shared_Image::get() returns NULL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 15:50:49 +00:00
Michael R Sweet
b7c23bc5e1 CVS ignore files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 15:37:39 +00:00
Michael R Sweet
707972408b Get rid of CR's in some files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 14:35:34 +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
Matthias Melcher
e9bf41eb09 MacOS: fixed iBook keycodes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1885 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-20 22:02:25 +00:00
Michael R Sweet
3e8a710093 WIN32 fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-20 19:43:17 +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
da5a6c383b FLTK not fltk...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 18:40:13 +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
Michael R Sweet
def18b8e0c Reset left scroll position when following a link.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1876 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 15:57:32 +00:00
Michael R Sweet
b9663d5e14 Allow any child widget to be resizable in Fl_Pack.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1875 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 15:49:39 +00:00
Matthias Melcher
1fceb8ac2c MacOS: added opaque window resizing,
all events except Mac menus are now handled using Carbon,
window activation fixed,
GL_SWAP_TYPE default changed to make gl_overlay work.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1874 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-19 09:10:00 +00:00
Michael R Sweet
fe6b3acf0f Resize horizontal scrollbar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1873 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-18 17:18:03 +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
Matthias Melcher
6642c677ca Mac: now lists all available fonts (some have unicode names
and look funny in 'fonts' test, some start with a '.' and
should probably not be listed?!)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-18 04:58:43 +00:00
Matthias Melcher
5028752522 Mac:
- Swapped cursor hotspot coordinates to ( y, x )
- clipping problem with images (Bug 43393)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1870 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-18 00:24:01 +00:00
Michael R Sweet
0542106cc2 Fl_File_Chooser wasn't calling Fl_Window::hotspot() prior to showing, so
you got the chooser centered where the mouse pointer was when your
application first created it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 18:40:44 +00:00
Michael R Sweet
a5c9bdac5d Update the VC++ workspace for the threading demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1868 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 16:14:20 +00:00
Michael R Sweet
b1d00ce478 Add missing project file for threads demo under VC++.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 15:40:08 +00:00
Michael R Sweet
75a3206b79 Check for *BSD -pthread option.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1865 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 15:36:28 +00:00
Michael R Sweet
b5a99aa156 Only use clipping box if it is valid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1862 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 15:01:38 +00:00
Michael R Sweet
5dd7625092 Remove Fl_Mutex and Fl_Signal_Mutex from threads.h - not portable, and
not used...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 14:52:27 +00:00
Michael R Sweet
8408e863de Fl_Help_View now ignores links when the link callback returns NULL, and
displays a sensible error message when the URI scheme isn't handled.

Fl_File_Icon no longer tries to load icon files that don't exist.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1860 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 14:27:03 +00:00
Michael R Sweet
6d4bda28b5 FLUID didn't support the plastic boxtypes.
Move Fl_Tooltip::enter(0) to the end of Fl_Window::hide(); otherwise
we get nasty recursion problems...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1859 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 13:48:59 +00:00
Michael R Sweet
073701ce96 Hide tooltips when hiding a window.
Fix box borders for FL_PLASTIC_DOWN_BOX.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 01:16:48 +00:00
Michael R Sweet
12e9d23bc3 Don't append a semicolon to callback function code when the last line
is blank or is a preprocessor directive.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1856 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 01:02:16 +00:00
Michael R Sweet
d7ee0df84c Fix radio button fix (was changing d and W, but they are used below;
now use copies of d and W...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1854 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-16 16:43:41 +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
fc008c96c3 Update the radio button circle drawing code to take the boxtype borders
into account.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1852 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-16 13:05:39 +00:00
Michael R Sweet
10df511f73 Better UNFOCUS redraw() fix for Fl_Button.
Adjust plastic boxtype borders.

Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-16 12:37:03 +00:00
Michael R Sweet
59842c6181 OK, more tweeking of the plastic boxtypes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-16 02:32:41 +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
4ef0817b83 Disable threading by default.
Remove 2.0 FL_API defines from threads.h, since that header is not part
of the library.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 21:02:24 +00:00
Michael R Sweet
40750fb352 Documentation makefile should be using --batch option, not list all
HTML files on a single line.

Fl_Wizard.html still had a title and background color.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1847 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 20:13:36 +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
67bbab358f Implement Fl::set_font(Fl_Font, Fl_Font)...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1845 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 16:54:31 +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
ce129e1620 Get rid of CR's in file - need to make sure we don't insert CR's when
editing text on PCs or Macs...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1843 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 03:45:37 +00:00