Commit Graph

310 Commits

Author SHA1 Message Date
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 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 23972703f4 Some C++ compilers can't handle char& and int& versions of methods, so
for now just remove the char (boolean) methods since the integer methods
can also be used for the same thing.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-31 19:27:56 +00:00
Michael R Sweet 3a117a899c Get rid of as many compiler warnings as possible.
Add missing offbits seek when reading BMP files.

Add -OPT:Olimit=4000 to SGI compiler options (for keyboard_ui)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-24 14:19:19 +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 7a455a05c6 WIN32 compile fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 20:54:49 +00:00
Michael R Sweet 7ea7823c82 Expand menu item fix for all menu widgets (menu bar, menu button, choice,
submenu, etc.)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 15:51:47 +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 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 dc1155a116 Add FL_EXPORT as a declaration-only prefix like extern.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2192 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-04 05:28:11 +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 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 540739e6d7 Fix filename handling; this should take care of every scenario...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 10:08:44 +00:00
Matthias Melcher 508a9abbc8 Update some FLUID documentation, no snapshots though.
Tiny bug in fluid.cxx that would still show the wrong
message if it was unable to load a file from the history.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 04:23:33 +00:00
Michael R Sweet d55d0ead70 Need to call set_filename() before reading FLUID file, since otherwise
images aren't loaded from the right directory...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2170 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 23:08:35 +00:00
Matthias Melcher d5b98e56c0 Fixed 'Open Previuos' bug in FLUID.
'set_filename' in 'open_histroy_cb' would change the filename
before the file was opened, hence opening the file one up in the list.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 21:41:59 +00:00
Michael R Sweet 30b61c9e03 Run "fltk-config --post" after installing and stripping fluid; otherwise
the resource fork will be lost.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:35:53 +00:00
Michael R Sweet 683b32002b Break grid and GUI settings into separate dialogs.
Use tabs on all of the settings windows, even when there is only one
tab.

Set the size_range() settings to use the grid values.

Add accelerator keys in all of the menus.

Rename alignment_window, etc. to project_window, etc.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 19:17:24 +00:00
Matthias Melcher 81e13dc96d Added layout menu to FLUID. The menu contains
many items th align and resize groups of selected
widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2164 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 17:35:30 +00:00
Michael R Sweet 3a33fc7d81 WIN32 doesn't support popen(), but Cygwin does.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2156 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 10:44:55 +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
Michael R Sweet b338c743b4 Fix FLUID so that open_cb() and open_history_cb() set the filename
before reading the file so that images are loaded properly.

Return NULL if no file is selected in the file chooser.

Add Fl_File_Input to FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 08:51:59 +00:00
Matthias Melcher adb6fc4eeb added binary support and procedural names to
Fl_Preferences, updated FLUID, update documentation.

Attempted to strip all Win32 CR.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2146 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-30 22:25:18 +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 081d369c11 Support "using" keyword.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2122 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 11:40:26 +00:00
Michael R Sweet 47b57655a0 Make code dialog wider.
Make menubar only 25 pixels high to match current defaults.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2121 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-28 10:12:41 +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 a0021b31ef Add unlock icon for public stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2116 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:34:11 +00:00
Michael R Sweet c9013cf892 Change lock icon color to red.
Fix Widget_Browser::handle() method - wasn't offseting the mouse position
for the lock icon.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2114 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-27 18:08:46 +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 7482426735 Make Fl_Output a subclass of Fl_Input, and add input_type and readonly
methods/constants to support Fl_Output as a special case of Fl_Input
(you can do everything but change the text in Fl_Output...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-11 11:52:43 +00:00
Michael R Sweet f574287616 Update dependencies...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2067 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-10 16:27:16 +00:00
Michael R Sweet c747d63cff FLUID code that uses snprintf() needs to include src/flstring.h...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-01 16:19:32 +00:00
Michael R Sweet 9fcec7788d Test makefile didn't include makedepend file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-28 13:20:11 +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 158ca81620 Remove old GIF reading code that isn't used anymore...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2021 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 20:09:12 +00:00
Michael R Sweet e07da88179 Doco updates for 1.1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-24 17:26:00 +00:00
Michael R Sweet f230500ffc Re-add dependency files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-07 19:56:32 +00:00
Bill Spitzak 5f55e1cd63 Back-ported cut & paste code from fltk2.0.
This code splits the cut & paste into two buffers. The "SELECTION" is
used for the currently highlighted text and for middle-mouse paste and
(if possible) for handling drag & drop. The "CLIPBOARD" is for Ctrl+C
and Ctrl+V style cut & paste.

This matches how Motif, GTK, and KDE 3.0 work. But many older X
applications (including KDE 2) can only see SELECTION, this results in
cut & paste incompatability that is familiar to X users. However this
now moves fltk over to the majority camp.  On all systems this
eliminates the annoying inability to select a region and replace it
with Ctrl+V.

On Mac and Win32 the SELECTION is local to the application, so
middle-mouse paste only works between fields in the application. There
may be tricks (special clipboard data types? use drag & drop?) to make
it communicate, but unless there are standards it would be fltk-only.

The file Fl_cutpaste.cxx has been deleted, so update the IDE files!
The Win32 and Mac versions have NOT BEEN TESTED! I tried to be careful
editing them but they may need some work.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1989 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-07 19:22:58 +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 71f9afb6cb Use +O2 for compiler on HP-UX.
Show where we are installing.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1961 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-02-15 18:15:46 +00:00
Michael R Sweet 5856a11146 Use CXXFLAGS when linking fluid...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-15 23:22:03 +00:00
Michael R Sweet 312ac39603 Strip fluid after the copy to bindir.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-15 01:34:44 +00:00
Michael R Sweet d246217383 Unixware fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1931 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-15 01:33:16 +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 2d6a98560e Doco and dist file updates.
Add fltk-config man page.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1911 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-06 13:40:32 +00:00
Michael R Sweet 64b4177ef4 Copyright updates...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 15:11:33 +00:00
Michael R Sweet b51af0f1bf More OS/2 fixes from Alexander...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1891 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 18:16:50 +00:00
Michael R Sweet b7c23bc5e1 CVS ignore files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1889 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 15:37:39 +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 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 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 4982fb29a0 Clean up default menu for FLTK applications - don't need "About FLTK".
Add "--post program" option to fltk-config so that MacOS apps can bind
the resources.  Also binds resources with --compile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1846 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 19:34:30 +00:00
Michael R Sweet 100f78de3f CygWin threading fixes from Teun.
Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1828 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-09 20:26:24 +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
Matthias Melcher ab896c6d5f FLTK 1.1.0 for Mac "Out Of The Box Experience": type 'make' and watch...
- updated configure.in and Makefiles to support Darwin (Mac OS X BSD
  environment)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1813 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 02:20:36 +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 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 f525840495 Fix all references to '.C' files (now .cxx)
Update Fl_Image() class to track depth and data, so FLUID will be
able to use it as the base class.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-22 15:35:02 +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 681ded73c2 Add Fl_Bitmask type, fl_create_bitmask() and fl_delete_bitmask() functions
for common mask generation stuff (need to test under WIN32!)

Add alpha channel support to Fl_RGB_Image class; currently uses "screen
door" transparency.

Update image demo to draw an RGBA image to show alpha channel.

Comment out debug printf in tooltip code.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-18 20:52:28 +00:00
Michael R Sweet 8b5a03d3a2 More CygWin stuff, and a fix for WIN32 with the new fl_beep() function.
Add a new "migration" appendix to the FLTK manual.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-18 12:48:38 +00:00
Michael R Sweet d2896be34a FLUID didn't write static data for the deimage() image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-30 21:56:15 +00:00
Michael R Sweet 85a8a15560 Fix shortcut button bug - wasn't calling callback when changed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-30 17:40:02 +00:00
Michael R Sweet a1944b77ab Cygwin fixes...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 21:59:15 +00:00
Michael R Sweet 079082ef7c 32-bit color (RGB0 or 000I), a la FLTK 2.0, including fl_rgb_color()
function to generate an RGB Fl_Color value.

Sort button names in FLUID.

Fix focus and scroll problems in Fl_Text_Display/Editor.

Fix radio/button demo.

Removed D2 menubar.H header...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-29 03:44:33 +00:00
Michael R Sweet 7593a59e87 FLUID: can't use "i->image(o)" if "i" is NULL... :)
Fl_Help_View: Don't need "if (!orig) free(img->data);" - that condition
can never occur...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-01 19:38:28 +00:00
Michael R Sweet aa3657817c Update dependencies.
Update install rules.

Update EPM list file and RPM spec file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-30 17:54:45 +00:00
Michael R Sweet 74bb2305cb Fl_File_Chooser.H and fl_file_chooser.H need to be the same...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1622 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-30 17:37:06 +00:00
Michael R Sweet 72b56edc29 Tooltips, and more tooltips.
Fl_Browser_, Fl_Choice, and Fl_Input_ did not do the tooltip stuff.

Fix write_properties so it writes tooltips properly from FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 22:59:45 +00:00
Michael R Sweet 6a4714ce12 Fl_FileXYZ -> Fl_File_XYZ
Fl_HelpXYZ -> Fl_Help_XYZ

Fl_File_Chooser now supports directory choosing.

Added fl_dir_chooser() function.

Now set FLTK_DOCDIR env var in test/demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 14:38:59 +00:00
Michael R Sweet 4c97599917 Enable all of the new FLUID stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 06:20:15 +00:00
Michael R Sweet 50fc2f4806 Widget panel update with tabs (a la 2.0) with new tooltip, image, and
position/size widgets.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1589 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-29 03:36:27 +00:00
Michael R Sweet 91b72d0918 Update VC++ project files.
Add support for FLTK_DOCDIR env var. to FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-23 13:08:03 +00:00
Michael R Sweet 5aa3ce735e Fix menu shortcuts.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-13 18:21:40 +00:00
Michael R Sweet 743cd4f95d HelpView/HelpDialog updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-10 03:09:43 +00:00
Michael R Sweet 00ef77c267 Add new widgets to FLUID.
Add on-line help to FLUID.

Change ALT shortcuts to CTRL shortcuts.

Update config script to set documentation directory in config.h.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-11 16:09:26 +00:00
Michael R Sweet 7ebaf77cdc Image labels!
image() method to set active image, deimage() method to set inactive image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-05 23:58:54 +00:00
Michael R Sweet f6ea21e2fb Keyboard nav for tabs.
Define MAX_PATH for Cygwin.

Update configure script to add *BSD DSO generation rules and X include
directory for Xdbe.h and OpenGL headers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-05 15:34:28 +00:00
Michael R Sweet 2636d6fcd2 Hide and show overlapping buttons as needed for widgets and windows.
(otherwise keyboard nav goes to "hidden" buttons...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-04 16:56:02 +00:00
Michael R Sweet e4727142d4 Fl_Text* widgets backported to 1.1 (Carl, please confirm that I haven't
goofed with the layout->resize conversion.  Also check fix for mMaxSize
being 0 so I set it to textsize())

contrast,inactive -> fl_contrast, fl_inactive, with defines for old names.

fl_rect() and fl_rectf() with color args.
fl_height, etc. with font,size args.

Send FL_RELEASE and FL_DRAG events to the pushed() widget by default.

Fix file chooser so it doesn't automatically change dirs if the only
matching name is a dir.

Updated Fl_Browser_ and Fl_Scrollbar for better mouse wheel support.

Moved DLL definitions to new Fl_Export.H.

Restore callback functionality in file chooser.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-04 12:21:34 +00:00
Michael R Sweet bff75e491a OpenGL stuff is now in libfltkgl.*
Added support for shared libraries under AIX.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 18:08:36 +00:00
Michael R Sweet 75b6b221ce FileIcon, FileBrowser, FileChooser stuff.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1517 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 16:17:04 +00:00
Michael R Sweet 836d2fac26 Fix tooltips a la 2.0.
Update 1.1 tooltip interface to be identical to the 2.0 interface for
most things (no enter_area function right now...)

Add localized makedepend files (no system include files, just ../FL/bla.h)
so that builds recompile as necessary.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 15:32:00 +00:00
Michael R Sweet 0ee742ec64 Write pixmap strings as const char *[] instead of char *[].
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 19:34:03 +00:00
Michael R Sweet b8a8c98f04 Eliminate all compiler warnings (string constants, const'ness, hiding of
class members, empty fl_call_main.c)

Update pixmap functions to accept const * const * or * const * pointers.
(confused? :)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1429 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-13 19:07:40 +00:00
Michael R Sweet 3a9d945d07 Use the Multithreaded DLL runtime model for all projects - I haven't found
a system yet that this doesn't work on, and you get smaller executables...

FLUID source needs Windows headers for GetTempPath and MAX_PATH definitions.

Visual C++ complained about the "char **/*argv*/" in CubeMain; added a space
so that */ is not seen.

Include <stdlib.h> to get argc/argv definitions rather than hardcoding
the declarations.  This seems to work in all modes.

Add can_do_overlay() method for WIN32 (seems to work on my TNT card at least)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-15 22:39:57 +00:00
Michael R Sweet 86b5507486 Configure script changes to support man pages, HTMLDOC, AIX/QNX with
strings.h, etc.

Add check for strings.h in fluid/factory.cxx.

Add directories and man page rules to makeinclude.in

Rename man page sources; these are formatted to the correct extensions.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-12 15:12:14 +00:00
Michael R Sweet 7eae5f4f87 Use GetTempPath() under WIN32 for the clipboard file location.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-02-01 17:30:28 +00:00
Bill Spitzak 4fb627c3d8 fl_curve uses a much better algorithim to figure out how many pieces
to cut the curve into.

Right-ctrl does not delete selected text in Fl_Input, until you type a
composed character.

Added simple fltk.3 and fluid.1 manual pages and "make install" in the
documentation directory installs them.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-28 06:57:33 +00:00
Michael R Sweet 94788c4628 Copyright 2001.
FLTK 1.0.11.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-22 15:13:41 +00:00
Bill Spitzak b88f1b2609 Fixed the write-menu bug introduced in .10
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1355 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-01-21 07:36:45 +00:00
Michael R Sweet 3988dbf8bd Fixes for hidden class members...
(Bill, please look at the Fl_Menu_Type.cxx code around line 171; the
previous code didn't initialize level before it was used; I hope I
captured the original intent...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1338 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-21 21:37:08 +00:00
Michael R Sweet a45a6308d0 strcasecmp() for FLUID under AIX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-11-20 15:44:19 +00:00
Bill Spitzak c30c095d72 Fluid restores which tab in an Fl_Tabs was selected when loads .fl
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-17 06:33:59 +00:00
Bill Spitzak 59c2b2dd31 Fixed size of data written by gif images to .C files
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-09-23 08:15:12 +00:00
Bill Spitzak 949479b5b2 Removed some (not all) of the warnings when compiled with -Wwrite-strings,
this should also get similar warnings Solaris produces.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-08-20 04:35:17 +00:00
Bill Spitzak 7badf7c216 Buttons with box(FL_NO_BOX) did not draw. Apparently they did in
older versions of fltk, I restored this. (bug 108771)

Removed 8-bit colormap drawing code that was not doing anything in
fl_draw_image due to Mike's changes.  I also made fl_color(r,g,b)
actually allocate the requested color rather than the nearest fltk
color-cube color (this is only done for the first color that maps to a
given entry in the fltk color cube), the result is that pixmaps with a
small number of colors are drawn much more accurately. The resulting
code seems to produce better images and is a good deal smaller!

Fixed makeinclude.in so CFLAGS are used for c source code instead of
CXXFLAGS. (bug 108694)

Better fix for gif files suggested by pauly (bug 108770)

Performance of Fl_Gl_Window may be improved on some types of OpenGL
  implementations, in particular MESA or other software emulators, by
  setting the GL_SWAP_TYPE environment variable.  This variable
  declares what is in the back buffer after you do a swapbuffers.

  setenv GL_SWAP_TYPE COPY

    This indicates that the back buffer is copied to the front buffer,
    and still contains it's old data. This is true of many hardware
    implementations.  Setting this will speed up emulation of
    overlays, and widgets that can do partial update can take
    advantage of this as damage() will not be cleared to -1.

  setenv GL_SWAP_TYPE NODAMAGE

    This indicates that nothing changes the back buffer except drawing
    into it.  This is true of MESA and Win32 software emulation and
    perhaps some hardware emulation on systems with lots of memory.

  All other values for GL_SWAP_TYPE, and not setting the variable,
  cause fltk to assumme that the back buffer must be completely
  redrawn after a swap.

  This is easily tested by running the gl_overlay demo program and
  seeing if the display is correct when you drag another window over
  it or if you drag the window off the screen and back on. You have to
  exit and run the program again for it to see any changes to the
  environment variable.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-07 08:38:58 +00:00
Bill Spitzak e2e44bfcd5 Fixed .gif files in fluid, they were broken by the fix for large .xpm
files in version 1.0.9.

Fix for OpenGL hardware overlays with the transparent index != 0.
Tested on the brand new HP Linux Workstations, this is the only bug
encountered.  Both X and OpenGL hardware overlay works perfectly on
these, though configue may not enable it by default...)

Fl_Choice and all other Fl_Menu_ subclasses draw the items using
textcolor() as the default color of the text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1244 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-29 07:23:56 +00:00
Bill Spitzak 084b19e305 Patch from Dmitry Potapov for fluid to not crash on (I think)
identifiers with trailing whitespace.

Fluid can now read in .xpm files with more than 2048 lines in them.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-16 07:08:16 +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
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
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 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 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
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 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
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
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
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 7482800177 Produces correct destructor for nested classes, patch from Alexandr Shevtsow
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@999 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-02-05 09:20:46 +00:00
Bill Spitzak 49b8502b83 Added Fl.H required by an inline function if Fl_Repeat_Button.H
Fl_add_idle adds new functions to the end of the queue ring, rather than the
start, so they are executed in the order added, and a callback that adds
itself does not prevent others from being called.

Fluid lets you type in code that starts with '#' for cpp directives.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@969 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-05 03:17:28 +00:00
Bill Spitzak b101ac281d Patch from Clemens Hintze to allow declaratons of "typedef" to work.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@954 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-12-17 18:35:00 +00:00
Bill Spitzak ec8a580634 Running with -c on a file with browsers in it does not require X
DISPLAY to be set.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-11-20 09:17:21 +00:00
Bill Spitzak 54a6bda767 The arrow patch is in!
Slightly modified version of the second version submitted.
It reuses the resizing code for the mouse drag and does not turn on the overlay
if it has been toggled off.  Also cleaned up some very hard to understand
code for handling FL_KEYBOARD.

Arrows move the selected widgets by 1 pixel
Shift moves the right+bottom edge of the selected region
Ctrl moves by the current grid step

Also typing the letter 'o' in a window is a shortcut to toggle the overlay
on and off.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@712 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-09-10 16:40:17 +00:00
Bill Spitzak 820654ccd6 Does not write "extern foo *bar" declarations twice.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-09-08 06:05:00 +00:00
Bill Spitzak 6b07587d74 Now correctly draws XPM files with 16-bit color indexes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-25 05:37:40 +00:00
Bill Spitzak fb52f23826 You can make virtual destructors
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-17 05:33:12 +00:00
Michael R Sweet 81241af1cf Don't need ::write_declare, just write_declare...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-09 13:53:55 +00:00
Bill Spitzak 467e73ed0b Added Chrisophe Kalt's patch to add "extern "C"" to functions
if desired.

Added Chrisophe Kalt's patch to let you create Fl_Pack.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-05 09:01:25 +00:00
Bill Spitzak 16a999efd0 Fixed so that a public declaration like #include "Foo" is written to the
header file in the correct order, before anything written by an later
object in the fl file.  It used to write the extern callback definitions
first, this would fail if they used a type that was in the header file.
This also simplified the (still messy) code by getting rid of the
write_declare() virtual function.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-05 08:01:40 +00:00
Bill Spitzak a7ae9b3c49 String output (for images in the C code) does not produce trigraphs
(the ??x sequences) by accident.  It also should produce somewhat
shorter output by using only 1 or 2 digits in some \oct characters
and using string constant pasting ("") to shorten some sequences.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-31 08:00:09 +00:00
Bill Spitzak 0bb590c832 Pragma added around xlib.h to shut up the IRIX compiler warnings
Fluid writes "class foo;" to the header and c file without prepending
"extern" or "static".  This patch also does this to "class foo bar;"
which is wrong...

Tabs draw very short labels.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22 07:27:12 +00:00
Michael R Sweet 52cd3040d1 Fl_Decl_Type::write_code1() didn't work for class destructors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@621 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-09 15:04:47 +00:00
Michael R Sweet f3980ef211 Fixed subclass (Class::Member) output bug reported by Jim Hourihan.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-12 12:59:06 +00:00
Bill Spitzak 4e66f93769 Missing header files and FL_EXTERNs that prevented DLL's from compiling
under BCC.
Fluid will output A::B::C names for nested classes.
Fl_Browser::lineposition(n, BOTTOM) will align the bottom of the line
rather than the top with the bottom of the browser.
The connect program does wait() so that it does not leave a zombie for
every one of your ppp connections.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@584 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-11 09:39:31 +00:00
gustavo 5c3e88c386 Properly handling the "return outermost widget" case now.
Function returns same class as the outermost widget.
Couldn't figure out how/whether to include files and
class forward declarations, though.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-30 16:29:40 +00:00
Bill Spitzak 5bf457ac24 Tab, space, backtab, and backspace can be used to navigate through menus.
They act like up/down arrows except they circulate around at the end.

Fixed a typo in fluid that made it not write when() correctly.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-26 06:45:29 +00:00
Michael R Sweet df8016354c Updated documentation version & edition.
FLUID makefile referenced LDFLAGS, but we only define CFLAGS and CXXFLAGS.

Fl_Browser::item_height() didn't handle blank lines (returned 2 for the
height).  Also, didn't use textfont() when figuring out text height.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-19 14:01:23 +00:00
Michael R Sweet 405f8fba3a Changed exit callback in FLUID to moe standard "Save Changes?"
with yes, no, and cancel.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 23:43:42 +00:00
Michael R Sweet 816393d2d4 Updated patch version to 2 (1.0.2)
Fixed missing fdsets variable in Fl_win32.cxx

Removed unused maxfd variable in Fl_win32.cxx

FLUID now outputs the window constructor with x,y arguments if
the class name is Fl_Group (this allows you to setup classes
using FLUID)  Add extra code after all the widgets to move them
to the desired offset within the window.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 19:17:03 +00:00
gustavo 923aa16100 Changes so that "extra code" goes before o->end() and close bracket.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-18 14:10:55 +00:00
Bill Spitzak c319bcae89 Submenu titles did not always get the FL_SUBMENU bit turned on when
the menu array was built.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17 01:33:27 +00:00
Bill Spitzak 6776041873 fluid outputs symbolic names for align() and when() to the C++ code
file.  Suggested by Luis Ibanez.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-10 09:14:34 +00:00
Carl E. Thompson 4435aed5ca textstuff() methods no longer inline to work around a bug in a compiler.
Don not merge into 2.0 tree!  Already done!

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-03 15:51:39 +00:00
Carl E. Thompson cd6f7adfe0 Bugfix. FLUID now compiles under UNIX! ;->
-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-30 23:11:26 +00:00
Carl E. Thompson 81c7d9b215 Changes needed to get FLTK to compile on Borland C++ 5 under Windows. I
compiled this on BC++ 5.0 upgraded to 5.0B via the two monster patches.
I didn't turn on optimization because my version of BC++ doesn't seem to
do much in the way of optimization (FLUID was only 1k smaller when
optimized for size).  VC++ generates smaller code.

The examples that use OpenGL don't work because Borland's linker can't find
"wglShareLists".  I'm sure this is a simple problem, but I don't know how
to fix it.

Borland's C++ compiler won't allow you to call main() from C++, so I had
to add a c function in "fl_call_main.c" to call it so that you don't have
to do that WinMain crap.  However, when I added this file to the Visual C++
project it converted the whole thing from 5.0 format to 6.0 format.  The
files look the nearly identical so I don't think this should be a problem
for 5.0 users, but if it is then you can revert them back to the previous
version and just add this one source file.

Borland really doesn't suck that bad.  It doesn't look as polished as VC++
and it refused to supress some warnings for no reason, but I forgot how
much I liked the feel of Borlands compilers...  Much more intuitive then
MS VC++.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@475 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-29 17:39:46 +00:00
Michael R Sweet a5778a1864 Updated README and distribution packages to use v1.0.1.
Updated makefiles and makeincludes to use DSONAME and GLDLIBS.

Updated configure.in to use DSONAME instead of LIBNAME.

Updated editor example code in documentation.

Added ANSI C++ changes to make things compile with the latest EGCS
compiler.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 15:26:44 +00:00
Bill Spitzak 2316172e5f Fixed fluid bug that caused styles patch to crash when you delete menu item.
Changed a comment in Fl.cxx
Changed valuators demo to remove code to set value() on some widgets and
put the value into the gui box instead.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-13 20:07:21 +00:00
Bill Spitzak 170c31cada Named callback function in a menu item inside a class prepended the
classname:: to the callback function name.  This was not consistent
with how it declares the callback or with normal widget's use of
callback names.  Fixed.


git-svn-id: file:///fltk/svn/fltk/trunk@398 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 08:00:45 +00:00
Michael R Sweet 022e5d90f1 Updated Linux DSO rules.
Changed configure.in, makeinclude, and src/Makefile to use DSOCOMMAND
instead of replacing LIBCOMMAND.

src/Makefile now creates both static and shared libraries if
--enable-shared is requested.

fluid/Makefile always uses the static library so that a CVS build will
always work, even if libfltk.so.1 isn't installed (problem for Solaris
and Linux, which don't support LD_LIBRARY_PATH).


git-svn-id: file:///fltk/svn/fltk/trunk@387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 18:32:44 +00:00
Bill Spitzak 95e27d43f1 Fix from Phil Nelson so that write-code menu item writes to the
directory the .fl file is in.


git-svn-id: file:///fltk/svn/fltk/trunk@378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-09 06:59:05 +00:00
Michael R Sweet ac66e4d72e Got rid of malloc.h include - should be using stdlib.h anyways...
git-svn-id: file:///fltk/svn/fltk/trunk@365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:45:31 +00:00
Michael R Sweet 2f0f075d4f Fixed FLUID bug - can now override code and header file names from the
command-line properly.


git-svn-id: file:///fltk/svn/fltk/trunk@360 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 18:10:01 +00:00