Commit Graph

438 Commits

Author SHA1 Message Date
Matthias Melcher
d7fd2d77a0 reenabled and improved support for Fl_Sys_Menu_Bar which is a subclass
of Fl_Menu_Bar and allows restricted access to the Apple typical top
menu bar.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 04:11:41 +00:00
Matthias Melcher
7dc80d17b0 MacOS: wait(0) would not handle all pending events.
The OpenGL demos were showing a significant delay in handling UI events.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 01:10:15 +00:00
Michael R Sweet
b125958b07 Add support for MingW with GCC 3.1.x.
Some copyright/comment cleanup in various files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-09 17:41:24 +00:00
Michael R Sweet
0cca48696f Range check input to Fl_Choice::value(n).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-09 17:18:45 +00:00
Michael R Sweet
81d431ccf5 Update MingW and OS/2 makeinclude files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 20:14:07 +00:00
Michael R Sweet
087440e768 Don't forget to scroll the Fl_Text_Display/Editor widget when dragging
text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 17:15:35 +00:00
Michael R Sweet
16046bf4dd Add Fl::remove_handler() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 15:14:38 +00:00
Michael R Sweet
46148181bd BC++ changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 14:58:49 +00:00
Michael R Sweet
6733d0a646 Those changes were for 1.1.0rc4, not 1.1.0... :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-02 15:11:13 +00:00
Michael R Sweet
031fef8635 File chooser updates - ../ and ./ map properly, now show ".." in the
directory list, added custom filter stuff, added filter_value() methods.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 21:14:20 +00:00
Michael R Sweet
dbf471bfbd Add Borland C++ Builder project files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 20:26:07 +00:00
Michael R Sweet
526e94341d Some patches from Ori Berger to plug some resource leaks and use a
different WIN32 message for threading under Windows.
(didn't include the cleanup or release changes)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 20:14:08 +00:00
Michael R Sweet
6a6e4ab66c Separate the extra image functions into fltk_images.
Add new fl_register_images() function to register the extra file formats
with Fl_Shared_Image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:04:37 +00:00
Michael R Sweet
96094e5617 Increase size of header buffer to 64 bytes.
Fix XBM file loader.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2327 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 15:23:03 +00:00
Matthias Melcher
a4e0a9adb5 Added Greg Ercolanos filedescripter support
Fixed Text Width bug.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-27 23:18:12 +00:00
Michael R Sweet
cdc15f49a6 Fix math header for nocygwin mode.
Revert focus check in fl_fix_focus().

Don't click the click count in Fl_Browser_::select().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-27 20:52:44 +00:00
Matthias Melcher
9c29ecde90 MacOS:
Pixmap Draw fix: pixmap would always draw from 0, 0
gl_font implemented
FL_FOCUS fix: would not send FL_FOCUS when window activated
window classes fixed: modal() and non_modal() should work much better
glut fix: uninitialised 'display' callback made glpuzzle crash

Please send bug reports


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-27 04:29:39 +00:00
Michael R Sweet
4a6299fbcc Add FLTK_1_0_COMPAT symbol for 1.0.x compatible names.
Document this in the migration appendix, and add a section on keyboard
focus.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-24 15:22:57 +00:00
Michael R Sweet
bb056f7805 Update GCC test in configure script.
Add range checking to BMP loader, and fix colormap + 4-bit BMP file
loading.

Copy 2.0 window position fix for XFree86 4.x and others.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-24 02:04:54 +00:00
Michael R Sweet
04f6fbbe03 Make sure DIRECTORY is undef'd for BC++.
Try to get rid of flickering in CubeView demo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 19:36:01 +00:00
Michael R Sweet
91aa5847ba Bug fixes from Sebastien.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 18:18:33 +00:00
Michael R Sweet
34e35db71f Prefer fl_push_clip() over fl_clip().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 20:58:12 +00:00
Michael R Sweet
2bd57beb70 Try some changes to fix MacOS threading support and fl_wait()
implementation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-11 16:17:41 +00:00
Michael R Sweet
13ae564f03 Add color definitions for "dark red", etc.
Change "text" and "selecion" methods to return char *, not const char *,
since they return a changeable copy of the text.

Add range checking to style lookup in Fl_Text_Display.

Add syntax hilighting to editor example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 13:35:49 +00:00
Michael R Sweet
a2cd4c80b1 Declare fl_size_ and fl_font_.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2294 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 19:55:44 +00:00
Michael R Sweet
861ad9769b New file chooser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2286 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-07 15:06:32 +00:00
Michael R Sweet
16de7b6048 The button width/height arrays were not properly initialized before
calling fl_measure()...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 14:22:05 +00:00
Michael R Sweet
a4cd699340 Fl_Text_Display::draw_vline() needed to check nVisLine >= num lines.
Fl_Menu_::remove() added 1 to the size() value, but it didn't need to.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 14:04:53 +00:00
Michael R Sweet
9c4a8a4ed2 Fix uninitialized memory bugs in Fl_Help_View.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-06 13:40:49 +00:00
Michael R Sweet
839dfca778 Redraw fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-02 17:52:36 +00:00
Michael R Sweet
9671c04290 Changelog.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2275 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-31 19:28:47 +00:00
Michael R Sweet
d5541b5cd6 fl_read_image() - not implemented for WIN32 or OSX yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-30 15:09:03 +00:00
Michael R Sweet
7b33f84121 Don't use %g when step == 1.0.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-27 21:54:11 +00:00
Michael R Sweet
3e74cc34ec Add support for TT element.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-27 21:16:47 +00:00
Michael R Sweet
acd6bd5cc8 Clean up string includes.
Fix Fl_Shared_Image::add_handler() and friends.

Fix Fl_PNM_Image loader.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 13:38:25 +00:00
Michael R Sweet
f79c2375da Tag image data as allocated so that we don't waste memory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 02:56:59 +00:00
Michael R Sweet
30b57935f9 Mark loaded images as allocated so that they get deleted.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2256 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-25 02:27:20 +00:00
Michael R Sweet
d1a1367fea MingW updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:50:20 +00:00
Michael R Sweet
e0a7046b80 Always redraw the directory buttons if the base class handled the
event.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:25:04 +00:00
Michael R Sweet
262321f5e6 Fix cancel bug in file chooser with multiple-selection mode.
Allow all resizes in the file chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2252 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:02:56 +00:00
Michael R Sweet
fc7facb5e9 Changelog and cleanup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2251 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-23 16:47:41 +00:00
Michael R Sweet
25d0f44ddd Fix MingW config header (undef instead of define 0)
Mirror some of those changes into OS/2 config header, too.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 18:13:32 +00:00
Michael R Sweet
23cfc372a0 Fix links inside PRE
Make style data const in Fl_Text_Display.

Use INT input only when step() is an integral value.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 11:14:59 +00:00
Michael R Sweet
6fb964c36e Add -sgi_version,sgi1.1 to the IRIX DSO command.
Add Fl_Shared_Image.html to the list of HTML files to install.

Change C++ command to C in src/flstring.h.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-19 17:44:56 +00:00
Michael R Sweet
88d54cd78b Massive update to use strlcpy() and strlcat() instead of strncpy()
and strncat() in almost all places (there are still a few strncpy's
that need to be used...)

Added configure check for strlcat() and strlcpy().

Added emulation code for strlcat() and strlcpy().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2239 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-16 12:47:44 +00:00
Michael R Sweet
6592f0919b Fix widget width tooltip and default parameter handling code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:32:25 +00:00
Michael R Sweet
edb2118098 Fixed drawing of antialiased text - uchar color value * 0x0101 was
getting truncated to a uchar, so we cast r, g, and b to int first...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:20:51 +00:00
Michael R Sweet
cc89f57ccf Use access() instead of stat() to determine if the directory exists.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2228 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 19:45:38 +00:00
Michael R Sweet
33f05fa72a Fix loading of old BMP files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2227 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 19:42:34 +00:00
Michael R Sweet
e217ac0564 Optimize redraw of focus stuff in radio/check buttons and tabs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2226 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 16:50:27 +00:00
Michael R Sweet
6f84fa1caa Changelog update...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 01:49:23 +00:00
Michael R Sweet
f953ffc27d Change _WIN32 to WIN32 for 1.1.x tree.
Cleanup recent tooltip changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2215 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 15:43:10 +00:00
Michael R Sweet
a35c5a6a2e Fix tooltips on some of the valuators...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 11:12:56 +00:00
Michael R Sweet
a34e8e40f6 Fix FLUID menu drawing bug reported by Paul Sydney (didn't rebuild the
menu after reading the last attribute in a menu item...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2208 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 02:19:18 +00:00
Michael R Sweet
a04c2e28e7 Default argument patch from Fabien Constantini.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 01:02:17 +00:00
Michael R Sweet
c2aa513a5a Merge WIN32 ValidateRgn() fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 21:15:48 +00:00
Michael R Sweet
78569947b0 Don't insert text in an Fl_Multiline_Output widget.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 04:15:21 +00:00
Michael R Sweet
070a4044eb Clip text in file list properly.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-06 04:11:50 +00:00
Michael R Sweet
251ec79d40 Restore window label (title) after drawing the group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 12:49:31 +00:00
Michael R Sweet
e1c5328477 Fix scandir dirent stuff under WIN32.
Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 12:37:41 +00:00
Michael R Sweet
fbf099f11e Fix portability problems with Solaris Forte C++ compiler.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 20:30:19 +00:00
Michael R Sweet
9cc064677c Add Albrecht's radio circle drawing fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:59:31 +00:00
Michael R Sweet
2f9a58d608 Don't open the display to load a .fl file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 14:33:00 +00:00
Michael R Sweet
c3dd2a48ad Fix teeth on wide arcs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-03 01:18:15 +00:00
Michael R Sweet
94a9fb879f Fix backspace "bug" in file chooser - now treat delete and backspace the
same, eliminating any filename completion value.

Added relative argument to fl_file_chooser() and fl_dir_chooser(); both
default to 0 (return absolute paths)

Give focus to the filename field in the chooser when show() is called.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 12:41:21 +00:00
Michael R Sweet
39a823b5e6 Add shell command support to FLUID.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 10:36:08 +00:00
Matthias Melcher
288f3e8c7a Fixed VisualC projects for Fl_File_Input.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2147 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 23:23:44 +00:00
Michael R Sweet
8972642109 New Fl_File_Input widget, courtesy of Curtis Edwards old Fl_Input_File
widget (Fl_File_Input is much lighter-weight, and is simpler in function.)

Update file chooser dialog to use new Fl_File_Input widget and always
display absolute path.

Still need to do docos, new screenshots, and update FLUID to support the
new widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2145 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 21:50:16 +00:00
Michael R Sweet
1f5448409b Fl_Preferences::getUserdataPath() and getPath() methods now require a
length parameter for the string.

Added GUI preferences and file history to FLUID, using Fl_Preferences.

FLUID now uses getUserdataPath() for the cut buffer location.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2141 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 18:11:49 +00:00
Michael R Sweet
c8aebffa88 Flag menu and tooltip windows as WS_EX_TOOLWINDOW so they don't appear in
the task bar...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 20:18:01 +00:00
Michael R Sweet
e845bebc6f Modify WIN32 scandir() function so that directories get a trailing
slash.

Modify Fl_File_Browser::load() to check for trailing slash on WIN32.
This should fix performance problems when loading large remote
directories.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2130 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 19:40:51 +00:00
Michael R Sweet
44bb5f60de Add Fl_Preferences class to base library.
Add FLTK_DATADIR definition to config.h for system-wide configuration
data.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 16:41:17 +00:00
Michael R Sweet
11fccec026 Fix which icon is shown in FLUID (had it backwards)
Set pattern, type, etc. before setting value in file chooser.  Otherwise
the filename wouldn't get highlighted the second time it was shown.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 08:42:33 +00:00
Michael R Sweet
9f5d6a0ecb Fix rendering of Fl_Light_Button with the plastic scheme.
The "none" and "base" schemes map to no scheme (standard FLTK look-n-feel)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 19:35:18 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
cd9639c212 Update documentation screenshots (still have some to go...)
Cleanup some demos and the color chooser.

Restore code in Fl_Window::hotspot() to keep the window on the screen.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-12 21:33:34 +00:00
Matthias Melcher
0ee1fb7b1b Added Carbon event handling for Mac OS X gaining support for the
Mose Wheel, Key Modifiers, etc. .
Added some documentation (please check: English is not my native
language)
Changed line pattern to look a little nicer.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1835 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-12 07:50:37 +00:00
Michael R Sweet
96d499704a Update paragraph 4 of the FLTK license exemptions; basically, justify/
explain the reason for specifying a program uses FLTK, and drop the
requirement for include the FLTK license...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1834 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-12 02:20:15 +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
6905f61c2c "make uninstall" didn't uninstall the OpenGL library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1831 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-10 14:46:04 +00:00
Matthias Melcher
633555bb42 Mac: Added missing Cursor Shapes for Mac version
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-09 23:45:22 +00:00
Michael R Sweet
ef96c53019 Fix infinite loop problem in Fl_Text_Editor - was resizing before we
updated the number of lines in the buffer.

Carl, please make sure this fix gets added to 2.0 CVS, if necessary.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-08 20:46:33 +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
7710dc14a8 Don't pop up the message box for warnings under WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1818 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 19:56:21 +00:00
Michael R Sweet
9c75838011 Use FL_NO_BOX for check button and round button.
Clip Fl_Tiled_Image to the bounding box.

Draw Fl_Progress using the box.

Draw plastic box types right for narrow (but horizontal buttons)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1814 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 18:12:35 +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
Michael R Sweet
a8f3f02214 Add support for 2-byte XPM files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-05 00:19:26 +00:00
Michael R Sweet
2fbee9c150 Segfault fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1809 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-05 00:06:41 +00:00
Matthias Melcher
731b29bf85 updated CHANGES file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-04 04:22:02 +00:00
Michael R Sweet
9e6b78b5ca Make Fl_Text_Display use the same defaults for the selection and background
colors as Fl_Input_, and use fl_contrast to get an appropriate text color.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1801 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-03 20:14:30 +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
ca83eb11a1 Fix infinite loop bug with WIDTH=100% in Fl_Help_View widget.
Fix handling of WM_SYNCPAINT message.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-30 16:10:08 +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
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
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
2b826b0f31 Redo Fluid_Image class to use Fl_Shared_Image instead of its own subclasses
to read files...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-25 22:51:34 +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
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
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
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
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