Commit Graph

845 Commits

Author SHA1 Message Date
Bill Spitzak
4ab82443bd Added a bunch of missing FL_EXTERN's to glut.h (I have not really
tested this, but I believe this is why I keep getting mail about glut
not linking on win32.  If anybody can check this please do so!)

Fix for sliders so that clicking on one with a small (or zero)
slider_size will not move the slider.

I put Fl_Button.H in fl_shortcut.cxx so that it gets the FL_EXTERN for
fl_old_shortcut() (and also assures the declarations match).

Fixed xpaint link in the documentation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-15 05:37:40 +00:00
Michael R Sweet
43b5617c47 Updated changelog for second snapshot...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-14 20:05:30 +00:00
Michael R Sweet
a2880d753d Added declaration for fl_old_shortcut for DLL.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-14 19:57:20 +00:00
Michael R Sweet
6051ce753a Updates for Mingw and Cygnus builds.
Added README.win32 file for WIN32-specific issues.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-13 20:33:36 +00:00
Carl E. Thompson
3fbd80d166 BC5 project file update.
Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-11 06:56:25 +00:00
Bill Spitzak
abcd0b4488 You can no longer insert ^J,^K,^L,^M into Fl_Int/Float_Input.
Fixed bug noticed by Alexander Rabi Beels, if you are in point-to-type
and move the cursor to a different window with a multiline input and
type up/down, the saved up/down horizontal position from the previous
multiline input was used.  It now resets this on any focus change,
fixing this.

Some code cleanup in Fl_Input.cxx, removed unneeded calls to Fl::compose_reset.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-10 21:31:00 +00:00
Carl E. Thompson
b3d9c227bc Made sure all draw()s were protected and all handle()s were public. (Most
were already.)

Looks like I forgot to commit those changes to eliminate Mesa dependancy in
the code.  Here it is.

Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-10 19:30:01 +00:00
Bill Spitzak
8e5c8b50d3 More fixes to the OpenGL overlay code on win32. This now seems to
work quite reliably on several different pieces of hardware.
Apparently doing SetLayerPaletteEntries with a palette larger than the
overlay size caused the drivers to screw up in unpredictable ways.
Also SwapBuffers swapped both the overlay and main window, which is
not what fltk's interface wanted, this was easy to fix however.

Patch for full scrollbars so that clicking on them does not move
anything.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1188 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-10 18:24:31 +00:00
Michael R Sweet
7a17c343cc Added initializers to WIN32 version of XParseGeometry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 12:30:36 +00:00
Bill Spitzak
76e434bd57 Patch from Jacques Tremblay so fluid -cs writes out the I18N string file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1183 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 08:26:45 +00:00
Bill Spitzak
dc846eaa29 Put the Win32 fix inside #ifdef WIN32
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 08:12:38 +00:00
Bill Spitzak
483c894a32 Added return type to main() in line_style.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 07:50:23 +00:00
Bill Spitzak
b95dc9dde2 Fixed include files for subclasses of Fl_Input
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 07:45:20 +00:00
Bill Spitzak
56347777a1 Better horizontal scrolling of Fl_Input when cursor is near end of line, restored the selection of all text when Fl_Input::value(x) is done
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1179 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 07:38:29 +00:00
Michael R Sweet
aa9f41e7d8 Hopefully the last of the easysw.com -> fltk.org changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1178 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-07 12:11:53 +00:00
Michael R Sweet
7bf3c4e2eb Fixed bug where Fl_Output and Fl_Multiline_Output would scroll to the
end of the value() text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-06 18:42:08 +00:00
Michael R Sweet
f4fff52828 Fix for filename_isdir() under Winbloze. Strip trailing backslash for
stat() call (don't we need the trailing slash for filename_list()???)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1174 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-06 15:25:20 +00:00
Michael R Sweet
ec770b7f4a Reenabled overlay code - seems to work great now, Bill!
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-06 14:48:17 +00:00
Michael R Sweet
e641d6eb49 Forgot to add fl_compose.cxx to DLL project.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:28:39 +00:00
Michael R Sweet
f87393aaa1 OK, now version 1.0.9
Updated email addresses to point to fltk.org domain...

Updated README and CHANGES files accordingly.

Updated makeinclude and Makefile files to put -L../lib before the
LDFLAGS/GLDFLAGS to avoid problem reported by Alexander.

documentation/Makefile wasn't including makeinclude.

Updated FLUID about window to show version 1.0.9.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:21:24 +00:00
Michael R Sweet
a6abbc5462 Added line_style project to FLTK workspace.
Updated demo project dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:12:28 +00:00
Michael R Sweet
41e05ef76c Added project file for line_style demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-05 21:10:12 +00:00
Michael R Sweet
b61e94a207 Makefile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-04 20:57:34 +00:00
Michael R Sweet
a2b37021e2 Updated spec file to work right...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-04 20:54:56 +00:00
Michael R Sweet
63f88fb5f2 Dropped use of -fno-rtti since this causes problems with apps that don't
use -fno-rtti.  Increases size of FLUID about 19k on my PC.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 13:21:13 +00:00
Michael R Sweet
e461926261 Moved .fl building rules to test/Makefile.
Added compiling rules to makefiles/makeinclude.*


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 12:04:12 +00:00
Bill Spitzak
b0cdb25d3c Fixes for 1.0.8 I found:
Fixed hardware overlays.  The problem was the new fl_clipped() code,
which tests against the current window size.  The hardware overlay
code did not set the current window when drawing the overlay.  I
needed hardware overlay for DD's code, I'm not sure if these fixes are
good enough to enable this in our general release.  Hardware overlay
still only works on SGI Irix.

Some patches to turn off the MSVC++ -Oa (assumme no aliasing)
optimization flag.  Suprisingly this only broke a few parts of fltk,
or at least these are the only ones I found.

Does not unmap child windows when the main window is iconized.  This
reduces flashing when the window is deiconized.

Fl::key() is set to zero by all events except key down/up.  This will
allow you to reliably test if an event or callback was produced by a
keystroke.  Fixes the bug posted about stopping Escape from closing
the window.

User defined cursors on OpenGL windows slowed down NT a *LOT*.  Some
attempts to fix this by turning off the cursor while drawing the
window.

Filename completion in the file chooser works better on NT.  Typing
TAB fixes the case of everything you typed to match the shortest name
that can be completed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1158 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 08:37:09 +00:00
Michael R Sweet
fa364dc13e Updates for README and CHANGES files.
(1.0.8 release)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1149 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-31 20:36:35 +00:00
Bill Spitzak
1422995c2d Fl_Double_Window is saved in .fl file
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-26 08:46:17 +00:00
Michael R Sweet
d7f026e02e fl_line_style() used "." instead of "->" for setting the pen.
Added fl_line_style.cxx to the static and DLL library projects.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-17 21:16:42 +00:00
Bill Spitzak
9743763c7f Small patch to remove a compiler warning from gcc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-17 07:09:26 +00:00
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