Commit Graph

764 Commits

Author SHA1 Message Date
Carl E. Thompson
59afeb1f94 If Fl_Menu_Item attributes are not set, derive menu item color from
Fl_Menu_::textcolor.

Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1126 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16 18:27:10 +00:00
Michael R Sweet
77272369dc Dropped extra #include <stdio.h> that wasn't needed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1125 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16 12:26:58 +00:00
Michael R Sweet
74198871a6 I18N didn't work right for menus - the messages numbers were wrong.
Added new "msgnum()" method to Fl_Type to handle computing the message
number on the fly.

Now initialize nl_catd and locale settings directly in the static
variables so that menu labels are correctly looked up. This hack shouldn't
be necessary in 2.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1124 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-16 12:26:07 +00:00
Michael R Sweet
3f177d70de Fixed release substition - using ${release} instead of %{release}...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-15 19:20:03 +00:00
Bill Spitzak
d5b47034a7 Added Fl::first_window(window) to change which window is at the top of
the window list.  This window is used as the "parent" of any modal
windows you create so it is a good idea to be able to change it.
Normally it is whatever window got the last event.

Fixed Fl_Menu::global handler to use first_window so if a modal window
pops up in response it is parented to the window containing the
menubar rather than the current top window.  This was an annoying bug!

Copied fl_line_style() and the line_style demo over from fltk 2.0
because I am tired of mailing this code to people.  Better to advertise this
as "added fl_line_style() function to set line thickness, dash patterns,
and end caps".

Fixed the documentation for these changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13 20:03:20 +00:00
Bill Spitzak
2d826eb564 Fl::wait() does not return immediately when no windows
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-11 21:58:09 +00:00
Bill Spitzak
eb63364311 XForms-compatable shortcut strings modified so that "0xabcd" can specify
an arbitrary key by hex code.  Lame but needed for some DD software...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-10 16:43:36 +00:00
Michael R Sweet
2099173761 Forgot to update revision number (lucky 13!)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-28 18:17:14 +00:00
Michael R Sweet
0e6e2393bf Typos reported by Alexander Mai
Fl_Browser_ docos finished.

Added Fl_Group::init_sizes() description.

Added links for common widgets in chapter 3 (?)

Fixed formatting problems in subclassing and FLUID chapters.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-28 18:15:26 +00:00
No Author
0f36c495f9 This commit was manufactured by cvs2svn to create branch 'branch-1.0'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-27 00:30:08 +00:00
Michael R Sweet
5d7d40fd35 Dropped use of -fomit-frame-pointer, as I've just discovered that it
prevents the use of libsafe.  Also, the code size savings are negligable
(96 bytes for FLUID)

Added I18N docos to FLUID chapter.  We probably need to expand discussion
a lot more in the 2.0 docos.

The EPM list installed the static FLTK library with execute permission,
which caused EPM to strip the library, making it impossible to link
against... :(


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-27 00:17:54 +00:00
Michael R Sweet
0ef73e50d6 Commented out enabling overlay support until we can get it working right.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-26 14:14:41 +00:00
Michael R Sweet
8fe1161d9f Fixed other occurrence of -fomit-stack-frame that should be
-fomit-frame-pointer.

Now check for -fpermissive under Solaris (should eliminate complaints of
compiles not working under Solaris with GCC 2.95.x :)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-26 12:55:29 +00:00
Bill Spitzak
1b529efa42 Fixed the -fno_exceptions test so it does not always fail.
I had a hard time figuring this out.  Autoconf will produce useless files
without producing an error message, and it does not like commas in any
of the fields.  I had to look at the generated script to get something
working.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-26 07:59:53 +00:00
Bill Spitzak
34e44c5206 Changed -omit-stack-frame to -omit-frame-pointer, hope this is correct
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-26 06:55:08 +00:00
Michael R Sweet
4b561b6e90 Updated copyright notices for all of the 1.0.x files.
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions)

Added install rule to documentation directory.

Dumped old packages directory; added traditional RPM spec file and EPM
list file (that replace all of the packages stuff)

The FLUID man page is now "fluid.1" for the formatted page and "fluid.man"
for the non-formatted page, since only IRIX uses pack'd formatted man pages.

Whew!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 22:17:00 +00:00
Bill Spitzak
4edd134933 Fixed definition of glutBitmapWidth to match header file.
Does not turn visible() on when a window is iconized() or if a modal
window is shown and it's parent is iconized.  This allows the code
"while (w->visible() && w->damage()) Fl::check();" to reliably wait
for the window to be mapped and drawn the first time.

Some comments added to Fl_win32.cxx to explain how the WM_PAINT works.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1085 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 07:48:07 +00:00
Michael R Sweet
9e3610c75f Bug fixes where I was getting the value from the input field instead of
the global pointer (caused random crashes.)

Now default to no file variable for catgets() mode, and declare and
initialize (as needed) a static _catalog variable when a global file
variable is not provided.  The catalog name is the basename of the
fluid file (no .fl)...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1084 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 01:57:51 +00:00
Michael R Sweet
aa102a4595 Fixed bug in i18n_type_cb() - wasn't setting the i18n_xyz string variables
to the input field values, so weird things would happen (like empty text
fields, no gettext in front of the strings, etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1083 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 01:12:48 +00:00
Michael R Sweet
8ff6d1daf4 FLUID changes to support GNU gettext and POSIX catgets under FLTK 1.0;
will work on changes for 2.0 later this week...

(please let me know what you think...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-24 18:22:50 +00:00
Bill Spitzak
cd914369a6 Setting box(FL_NO_BOX) on a button makes it an invisible overlay
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1075 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-17 07:42:01 +00:00
Bill Spitzak
abdd8a1e23 Some more size adjustments so smaller fonts look better
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-14 09:08:14 +00:00
Bill Spitzak
e0118f6a16 Some adjustments so setting FL_NORMAL_SIZE to 12 looks better
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1065 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-12 04:32:05 +00:00
Bill Spitzak
ffd26dfc45 I made FL_NORMAL_SIZE into a public int variable. You can now change it
before any widgets are created, in order to change the default size of
the fonts used.  The most useful thing that can be done is to set it to
12 so that the default font size matches Win32.

I also fixed the menubar drawing a bit so that a menubar with a FL_FLAT_BOX
draws correctly.

It should also be documented that "Fl::set_color(Fl_Color(15),0,0,128);"
can be used to get Win32-style highlighting of menus and text items.  This
is not portable to fltk 2.0.

With these changes it should be easier to get fltk to look just like Win32.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-11 08:11:56 +00:00
Bill Spitzak
177e3cd076 More fixes to the NT OpenGL overlays
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1058 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-07 16:55:46 +00:00
Bill Spitzak
bf34ed8ca7 Forgot to fix this file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1057 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 18:00:50 +00:00
Bill Spitzak
328a8f8f0d Fixes for Cygwin POSIX emulation layer from Norman Vine.
Requires the symbol __CYGWIN__ to be defined, appears to disable the
special meaning of backslash and colon in file names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:57:05 +00:00
Bill Spitzak
6f42bc1a58 Fl_Value_Input callback can call value() or destructor on the Fl_Value_Input
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:05:59 +00:00
Bill Spitzak
b2f7871fb8 Yet another cut/paste fix for NT
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-28 05:10:17 +00:00
Bill Spitzak
bb39fe8be0 Removed more testing code from Fl_Gl_Overlay
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1051 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:55:34 +00:00
Bill Spitzak
9bd57e56b0 Removed debug printfs from overlay code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:48:40 +00:00
Bill Spitzak
eeaa7f7ae0 OpenGL overlays now work on NT. Tested on several different cards.
They work best on 8-bit overlays like the SGI 320 has.  On cards with
fewer bits you get only a few colors, really only FL_BLACK, FL_RED, and
FL_WHITE are guaranteed to work.  This could be improved but would mean
copying the ugly X colormap allocation code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1048 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-24 08:42:03 +00:00
Bill Spitzak
7851ae3252 OpenGL overlays now work on NT!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1044 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-18 10:04:18 +00:00
Bill Spitzak
ca15addad2 Fixed up the colors the browser draws when it is deactivated, it does not
change the background color, this fixes Jeff Meininger's demo.

Fl_Input allows ^I, ^J, ^L, and ^M to be typed as control characters and
inserted.

If you type ^H or ^? they act like backspace and delete.

Clicking on an input field no longer selects the whole thing, it inserts
the cursor.  My tests of Win32 to see what they did were wrong, this is
a better simulation and more user friendly, too.

Fixed divide-by-zer in the slider code?

Better osf code for filename_list from Alexander Mai


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1042 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-17 09:38:20 +00:00
Michael R Sweet
22418bb1e9 Compose table was too big to include in the key table - moved it to
a separate table...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1041 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-16 14:35:51 +00:00
Michael R Sweet
ca5f67d6b3 Always draw a box around the current browser selection.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-15 19:14:57 +00:00
Michael R Sweet
a73c7f58e6 Documentation updates for 1.0.8.
FLUID GUI tweeks (OK and Cancel use now consistent, spacing now consistent,
Courier font for code, etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1039 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-15 18:57:07 +00:00
Carl E. Thompson
af5190b95f Fix to compile on GCC 2.95.
Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1037 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-08 16:02:25 +00:00
Carl E. Thompson
d4d22e857c Fixes the BC5 project file so it gets the proper paths for includes and
libraries automatically.

Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-07 20:55:50 +00:00
Michael R Sweet
bf5f55c860 Updated the VC++ project file to include fl_compose.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-06 21:19:26 +00:00
Michael R Sweet
bd722a5d30 Fix from Assar Westerlund - missing include.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-06 14:45:54 +00:00
Bill Spitzak
a32453e680 Moved FL_LEFT_MOUSE, FL_MIDDLE_MOUSE, and FL_RIGHT_MOUSE from forms.h to
Enumerations.H so they are available to any fltk programs.

More fixes to the fake-overlay code in Fl_Gl_Window (it did not work on
Win32 when there were 2 different-sized windows)

Fix to Fl_compose to not quote the Delete key fixed to allow the right-
control key to still be the compose prefix and to allow it to quote
control characters.

OSF1 used the same parameters for scandir as SGI and unlike Linux and
apparently most other Unix's

fl_ask, message, etc windows are resizable, which is useful if you use
them to display arbitrary output from a program.

On Win32 non_modal (but not modal) windows have close and size boxes, as per
popular demand at Digital Domain.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-05 06:51:07 +00:00
Michael R Sweet
d6caf3aff8 Fl_Button and friends didn't honor FL_WHEN_NOT_CHANGED.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-03-02 19:10:49 +00:00
Michael R Sweet
443c4883cc Fl::compose() wasn't ignoring control chars (like Delete :)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-29 21:54:55 +00:00
Michael R Sweet
cd2d7cc7ee JPEG compression for PS manual.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-29 21:35:47 +00:00
Bill Spitzak
c2d2cf47fc Turned off XDBE for all platforms
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1016 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-29 06:42:12 +00:00
Michael R Sweet
aee4def606 Updated version to 1.0.8.
Applied colors patch.

Updated doco makefile for current version of HTMLDOC.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-25 03:44:22 +00:00
Bill Spitzak
42ebf79306 New X function: fl_open_display(Display*) lets you run fltk on an
already-created X connection.  This should help with interoperability
with Xt or other toolkits.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23 09:23:53 +00:00
Bill Spitzak
5752429ca9 fl_shortcut_label() on Win32 prints the same strings for function keys
like "Delete" and the arrows as it does on X (at least for all the common
keyboard keys).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1011 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-23 09:14:23 +00:00
Bill Spitzak
666d041224 Fixed the changes I made yesterday so that int/float input fields do not
eat Alt+letter key combinations.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-22 00:56:53 +00:00