Commit Graph

323 Commits

Author SHA1 Message Date
Michael R Sweet
43519f1264 Add Cygwin check for scandir(); fix from Ken Yarnall.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-19 18:11:24 +00:00
Michael R Sweet
dff050d64f Changelog update...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2593 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-17 21:34:25 +00:00
Michael R Sweet
ab53ef9a44 Fix FLUID image problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-16 20:10:21 +00:00
Michael R Sweet
a2c193c777 One more browser redraw fix from Ken.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-16 19:51:31 +00:00
Michael R Sweet
f9a0613202 Fl_Help_View didn't support HTML comments.
Fl_Help_View didn't add the cellpadding when doing colspan's...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-15 19:38:53 +00:00
Michael R Sweet
6c3f9a03d1 Resize the text display widget when the buffer is changed.
Don't stop a resize if we are not visible (holdover from 2.0 code...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-15 17:26:46 +00:00
Michael R Sweet
f0ea022d0e Use box function to redraw Fl_Browser_, Fl_Input_, and Fl_Slider.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2580 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-13 15:42:44 +00:00
Michael R Sweet
5ecf5cde98 Fix modal() handling of FL_RELEASE events.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-12 20:45:28 +00:00
Michael R Sweet
1860641362 Fix more compile errors.
Redraw Fl_Input_ background using the box() function + clipping.

Bump to 1.1.0rc6.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-12 19:42:55 +00:00
Michael R Sweet
a6b935289e Move the rest of the image file formats (except for XBM and XPM) to
the fltk_images library; saves about 16k in the FLTK core library on my
Intel system.

Fix a memory leak bug in most of the fl_set_fonts*.cxx implementations;
as a result, the Fl_Fontdesc structure now has a fontname member to old
the human-readable font name.

Lots of fixes for shadowed variables, etc.

Use snprintf, strlcpy, and strlcat in more places.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-09 01:09:49 +00:00
Michael R Sweet
27a54dc22b Fl_Text_Display::resize() should be public...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-05 18:03:58 +00:00
Michael R Sweet
a11a31ff78 Range check Fl_Text_Buffer::search_forward().
Don't use png_read_destroy() - it doesn't free all memory.

Add uncache() method to image classes.

Memory/initialization bugs in Fl_File_Chooser (valgrind)

Make sure both Fl_Window constructors have default cursor initialization
code...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-05 17:50:25 +00:00
Michael R Sweet
685100b122 Add default cursor as data the Fl_Window tracks individually (with the
default being the original global default...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-01 02:15:43 +00:00
Michael R Sweet
7038a9eeae Send FL_LEAVE events before FL_ENTER events.
Only change the cursor when the widget is activated.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 18:40:50 +00:00
Michael R Sweet
9456baab50 Fix some problems with the filename field and handling selections in the
root directory (Fl_File_Chooser).

Add documentation for the fl_cursor() function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 18:33:49 +00:00
Michael R Sweet
1cea00ad00 Don't paste if there is no data to paste.
Change the cursor in Fl_File_Input based on the location in the field.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 18:10:03 +00:00
Michael R Sweet
7bde142766 Fl_Input_ and Fl_Text_Display now change the mouse pointer to the I beam
when the mouse enters them...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 15:10:32 +00:00
Michael R Sweet
35308e5c22 Added Fl::get_boxtype() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-30 14:57:02 +00:00
Michael R Sweet
a5110a375d Don't allow paste inside readonly() input widgets.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-29 22:55:33 +00:00
Michael R Sweet
1cfc6385dd BMP image loader fixes.
JPEG with Cygwin fix.

Make sure that all generated files are removed with a "make distclean".

Make sure we remove the autoconf cache directory when building the
source distribution.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-26 14:22:02 +00:00
Michael R Sweet
d240b98ff6 Add missing color function documentation.
Fix Fl_Tabs document WRT coloring of the tabs and pane.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-25 12:46:12 +00:00
Michael R Sweet
827bf4dc51 Use better looking check mark from Albrecht Schlosser.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-24 12:15:25 +00:00
Michael R Sweet
d453884e0f Add wrap() method and bit for Fl_Input_, and make word wrap dependent
on this (wrap margin is the width of the widget less box borders)

Don't select the text in value() for a readonly() (output) field.

Display a caret instead of a vertical bar for the cursor in output fields.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 16:28:19 +00:00
Michael R Sweet
745cd4204a Make newButton and previewButton public, so that you can hide/disable them
as desired.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 15:14:17 +00:00
Michael R Sweet
57cef6a4bd Remove extra 3 pixel offset when the size is below a certain amount;
instead, use a constant +1 offset.

Add another bit to flags_, VISIBLE_FOCUS, which provides
per-widget keyboard focus control.  The default is for all
widgets to participate in keyboard focus navigation.  Use the
set_visible_focus(), clear_visible_focus(), and visible_focus()
methods on Fl_Widget to control this.

Clean up the Fl_Widget documentation and add missing stuff.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 15:07:33 +00:00
Michael R Sweet
c22732b9e0 OK, we'll do one more rc release since so many of the build things have
changed...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-20 23:39:08 +00:00
Michael R Sweet
667eb3ef6c Remove 3 pixel X border in input fields.
Don't quote chars 0x80 to 0x9f in input fields (labels didn't...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-20 05:56:44 +00:00
Michael R Sweet
66f06dae9e Fl_Browser_::display() speedup patch from Stephen Davies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-18 15:43:48 +00:00
Michael R Sweet
d7055f4c36 Fl_Help_View fixes from Szasz Pal.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-18 15:27:21 +00:00
Matthias Melcher
dfefc7b244 First steps in CodeWarrior on OS_X support.
(Praise the day when I finally stop screwing up cvs ;-/  )


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-17 06:09:26 +00:00
Michael R Sweet
d0f18c45b5 Boy, aren't WIN32 compilers *so* much fun.
Fix more export problems, make some more static inline methods regular
functions, don't use FL_NORMAL_SIZE in a static initializer since BC++
doesn't seem to support it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 21:25:39 +00:00
Michael R Sweet
aa837b09da More FL_EXPORT stuff for WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 19:08:25 +00:00
Michael R Sweet
1d56e20d19 Fix a bug in the filename completion.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 18:26:54 +00:00
Michael R Sweet
8025bf7251 Fl_File_Chooser::value("foo") now checks if the pathname is a directory
and doesn't strip the trailing one if so.

Fl_File_Chooser::value(n) now returns a directory name without the
trailing slash.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 18:19:00 +00:00
Michael R Sweet
3346a9fee7 Change the Fl_Group current, add, and remove methods so they are no longer
inline; this should make shared libraries work better on all platforms.

Link FLUID against shared libraries, too, so that the installed fluid is
also using shared libraries (still make a statically linked fluid for the
build)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 17:03:31 +00:00
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