Commit Graph

1260 Commits

Author SHA1 Message Date
Michael R Sweet
a48e1cac3f Port 2.0 drawing optimizations for Fl_Input_ - this provides a more
efficient fix for anti-aliased text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2118 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 19:20:50 +00:00
Michael R Sweet
469ba78d90 Fix font enumeration bug reported by Paul Sydney.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:37:15 +00:00
Michael R Sweet
a0021b31ef Add unlock icon for public stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:34:11 +00:00
Michael R Sweet
c9013cf892 Change lock icon color to red.
Fix Widget_Browser::handle() method - wasn't offseting the mouse position
for the lock icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:08:46 +00:00
Michael R Sweet
eff01c14e5 AIX always needs the image libraries, since the AIX linker sucks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 12:45:16 +00:00
Michael R Sweet
14b93c034b Add +z option with HP-UX compilers when compiling shared libraries.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 12:39:32 +00:00
Michael R Sweet
da9edc35a5 Add lock icon next to static/private elements in FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2111 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 11:51:54 +00:00
Michael R Sweet
ee5fdc99ce Images in menu items...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 11:32:37 +00:00
Michael R Sweet
b3f01efb17 Add note about images in menu items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2108 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-26 10:33:03 +00:00
Michael R Sweet
7b99f66d03 Add check for libpng/png.h as well as png.h, and include the appropriate
one as needed...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 18:29:06 +00:00
Michael R Sweet
f87f7a7b14 Added set_override() call in Fl_Tooltip_Window constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2105 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:30:00 +00:00
Michael R Sweet
a89ca324a4 Fix a recursion bug in the tooltip code - didn't need to grab(), but
might need to add the set_override() method to the 1.1 window classes...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:20:36 +00:00
Michael R Sweet
c90c981570 Add -g option to fltk-config.
Fix NULL filename bug in fl_file_chooser().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-24 12:14:57 +00:00
Michael R Sweet
8d187b30e5 Actually use the MEDIA option when generating PS and PDF docos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-20 21:07:18 +00:00
Michael R Sweet
74942d0537 Fix links in docos...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-19 11:53:40 +00:00
Michael R Sweet
c75938c4eb Don't use the returned font sizes, as they yield too much space...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 21:07:53 +00:00
Michael R Sweet
7e8ec10e6d Add missing docos for Fl_Progress.
Add Fl_File_Chooser::directory_label, filename_label, and filter_label
static string pointers for labels (allows for I18N of the file chooser).

Fix typos in other docos.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2098 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 20:37:29 +00:00
Michael R Sweet
9ca9171e7a Fl_Text_Buffer docos.
Reformat function reference (still need to add rest of drawing
functions...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-18 19:10:56 +00:00
Michael R Sweet
c2521c01da Bump version info to 1.1.0rc1.
Force full redraw in Fl_Input when using Xft or OSX anti-aliased text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 17:11:11 +00:00
Michael R Sweet
8964212393 OSX threading support - a little buggy right now, but hopefully we'll be
able to work out the kinks without too much effort.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 15:49:06 +00:00
Michael R Sweet
dca53e213a Implement file system list for file chooser on OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 14:50:10 +00:00
Michael R Sweet
989b0cd372 Update changelog.
Add missing methods to Fl_Valuator docos.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 12:14:27 +00:00
Bill Spitzak
772b36810d Win32 version stores all the info passed to WndProc into fl_msg so an
add_hander method can see it.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-16 07:47:31 +00:00
Michael R Sweet
20adf5e2c6 Add credits file for 1.1.x branch.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-15 20:52:26 +00:00
Michael R Sweet
60a1ae1786 Make sure that hotspotted windows stay on the screen under MacOS X.
Hide any tooltip when showing a window under MacOS (window manager
strangeness...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-15 20:30:06 +00:00
Michael R Sweet
bcb2033a96 Fix transparency stuff for MacOS X; currently it appears that CopyDeepMask
does not work with an 8-bit mask image, so we can't provide true alpha
blending just yet... (just the screen-door transparency provided on X11
and WIN32...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-15 17:18:48 +00:00
Michael R Sweet
e1828d045f Change fl_create_deepmask() to fl_create_alphamask().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-15 12:19:01 +00:00
Michael R Sweet
0c396a615b Added fl_create_deepmask() method for creating alpha blend masks.
Implemented Fl_RGB_Image alpha blending for MacOS X - others still
get 1-bit screen-door transparency...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-14 21:26:06 +00:00
Michael R Sweet
0f61132a75 Remove unnecessary tooltip handle code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-14 20:49:06 +00:00
Michael R Sweet
b530634804 Add Cygwin drive code.
Fix typos.

Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-14 12:51:56 +00:00
Michael R Sweet
8e3cdc0ac1 Propagate events from the tooltip window to the widget we are tooltipping
for...

Add "tooltips" resource for default state of tooltips.

Fix another tooltip cycling problem.

Fix default help and argument processing (didn't have the right min
chars for matching, and didn't list new options)

Update docos to list new tooltip resource and list of standard arguments.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-14 02:43:48 +00:00
Michael R Sweet
dc355ebb54 Add Fl::dnd_text_ops() methods.
Fl_Input now conditionally supports DND out via run-time option.

Fl_Input now clears selection if you click inside the selection when
DND is turned on.

Added support for scheme, dndTextOps, and visibleFocus resources under
X11.

Documented all X resources supported under X11...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-13 22:17:46 +00:00
Michael R Sweet
7f0c218c1c Fix case problems in include filenames...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-13 20:28:51 +00:00
Michael R Sweet
9e2f362016 Move ENTER/LEAVE handling to Fl_Box so that the default event handler
in Fl_Widget doesn't interfere with existing widgets.

Remove unnecessary strcasecmp defines.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-12 20:16:07 +00:00
Michael R Sweet
aab290b503 Remove Fl_Output.cxx from VC++ project files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-12 18:17:35 +00:00
Michael R Sweet
7482426735 Make Fl_Output a subclass of Fl_Input, and add input_type and readonly
methods/constants to support Fl_Output as a special case of Fl_Input
(you can do everything but change the text in Fl_Output...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-11 11:52:43 +00:00
Michael R Sweet
ef36be385e Redefine FL_ color values to use the color cube.
Add FL_BACKGROUND_COLOR, FL_BACKGROUND2_COLOR, and FL_FOREGROUND_COLOR,
and use them instead of FL_GRAY, FL_WHITE, and FL_BLACK, respectively.
(FL_GRAY defined to FL_BACKGROUND_COLOR for back-compatibility)

Add fl_rgb_color(uchar g) inline method to map 8-bit grayscale to
24-bit RGB color.

Doco updates for all of this...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-11 10:46:19 +00:00
Michael R Sweet
a9b5c825a4 Do not use false and true in 1.1.x code...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2070 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 19:22:45 +00:00
Michael R Sweet
9a1728905c Remove yet another use of "true" in 1.1.x code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2069 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 18:51:22 +00:00
Michael R Sweet
f574287616 Update dependencies...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 16:27:16 +00:00
Michael R Sweet
126def8800 Update docos for all configure options.
Bump version numbers to 1.1.0b13.

Need to include <config.h> (via "flstring.h") in src/Fl.cxx to
get Fl_Window::hide() to call fl_destroy_xft_draw()...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2066 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 16:26:33 +00:00
Michael R Sweet
06a23813f8 Wrap remaining DnD includes and code for WIN32 (Cygwin with GCC 2.x
won't work)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 15:01:22 +00:00
Michael R Sweet
a84320659b Fix enter/leave on windows to properly handle tooltip focus...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 01:32:03 +00:00
Michael R Sweet
bab08d8347 Hopefully fix the WIN32 resize on move bug.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 21:17:01 +00:00
Michael R Sweet
77a3b80dff OK, back out -fvtable-thunks and add conditional compile for WIN32
DnD code for Cygwin...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 20:36:28 +00:00
Michael R Sweet
921f66e3e6 Add "-fvtable-thunks" to OPTIM when compiling with Cygwin.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 18:18:25 +00:00
Michael R Sweet
4586bf0fcc Tooltip fixes: ignore keyboard events, immediately disable new tooltips,
show tooltips for box widgets.

Add docos for Fl_Widget::tooltip() methods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2060 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 17:20:24 +00:00
Michael R Sweet
17374b20bb Update fl_beep() to use the PC speaker for FL_BEEP_DEFAULT.
Add docos for fl_beep...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 09:38:15 +00:00
Michael R Sweet
d7b371bfe6 Move -mwindows and -DWIN32 back to C*FLAGS and LDFLAGS for Cygwin builds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-09 09:22:15 +00:00
Michael R Sweet
84950c0af7 Fl_Output didn't grab input focus, and so was unable to handle CTRL-C
to copy selected text, and wouldn't know when to redraw itself when
it lost focus...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-08 18:32:16 +00:00