Commit Graph

1579 Commits

Author SHA1 Message Date
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
Michael R Sweet
458b4ef2d0 Try different check for libstdc++ that might work better with Cygwin.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-17 17:05:08 +00:00
Michael R Sweet
629f327382 Use parenthesis for "#if defined foo" -> "#if defined(foo)" - portability.
Use ANSI C comments in flstring.h, which is included from both C++ and
C code.

Move prototypes for OSX inside existing "C" wrapper in flstring.h.

Simplify M_PI and M_SQRT2 definitions in FL/math.h; no need to define
them twice...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-17 15:23:58 +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
c48c20c49c Fix path for default document (Matthias, did you change this? If so,
just include your own copy of demo.menu which includes the different
path when running from CW...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-15 23:39:22 +00:00
Michael R Sweet
f461331f0f Don't put LDFLAGS_MIPSPRO in makeinclude files (where the hell did they
come from?)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-15 23:38:11 +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
7c4010a106 Fix EPM list file shared library handling.
Add shared FLUID support to EPM list file.

Add post install resource assignment when installing on Darwin.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 19:24:36 +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
1be87f0798 Ignore fluid-shared and all exe files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 17:04:30 +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
Michael R Sweet
8e2ff29500 Use %{_mandir} instead of /usr/share/man.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-12 02:06:38 +00:00
Michael R Sweet
75b9c5a68f Reset version numbers to 1.1.0 (no rcN)
Add images library to list file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-12 02:04:53 +00:00
Matthias Melcher
f63e9a8ab4 Remove CW warning when starting App.
Sorry for all the chaos in adding and removing files. I am
not a 100% secure with CVS and I desperatly hope that I didn't
screw anything up!

At least my checkout works fine... .

Matthias


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2522 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 23:20:01 +00:00
Matthias Melcher
319c89ab3c minor changes to make FLTK compile as a DLL in CodeWarrior
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 22:43:53 +00:00
Matthias Melcher
cd9ae1abd5 Added Metrowerks CodeWarrior support for Windows (MacOS soon to come)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 22:40:11 +00:00
Michael R Sweet
9feef1e696 Don't add -lm to link line.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 10:37:49 +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
066fc7805c Only delete the line starts array if it is not NULL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-10 15:33:52 +00:00
Michael R Sweet
32fee075fb Support MSYS as well as Cygwin configure stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-10 02:47:14 +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
e8ccc2cf7c Fix bonehead typo and const issues with new remove_handler() method.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 19:19: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
619610e471 Remove autoconf cache directory and cvsignore files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 15:27:33 +00:00
Michael R Sweet
f7394e2fb1 Avoid VC++ bug with STL - "list" is a template class, but VC++ doesn't
properly distinguish between type names and variable names...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-08 15:20:57 +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
adc02c83a5 Don't remove BCB project files when making the source distro.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-01 20:26:50 +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
Matthias Melcher
2d30a9e6fa Small changes to make Metrowerks CodeWarrior for Windows work.
See seperate posting with CodeWarrior project file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2334 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-29 00:10:05 +00:00
Michael R Sweet
fb54e06306 VC++ project file updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:29:16 +00:00
Michael R Sweet
686aea65d4 Add missing file.
Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:19:42 +00:00
Michael R Sweet
8efe8dcc23 Don't need to manually register image formats in these programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:10:20 +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
cb49cb970e 2 typos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 00:28:09 +00:00