Commit Graph

338 Commits

Author SHA1 Message Date
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
Michael R Sweet df01cba124 Public/private status was not honored for menu items.
git-svn-id: file:///fltk/svn/fltk/trunk@320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:20:30 +00:00
Michael R Sweet b737731013 Fixed array_name() bug - now correctly handles arrays in different classes
with the same name.


git-svn-id: file:///fltk/svn/fltk/trunk@308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 16:21:50 +00:00
Michael R Sweet e232a9b094 Changed "include_H_from_C" to default to 1 instead of 0.
git-svn-id: file:///fltk/svn/fltk/trunk@305 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 15:03:26 +00:00
Michael R Sweet 3702edc89d Added comment parsing in _c_check().
git-svn-id: file:///fltk/svn/fltk/trunk@304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 14:53:04 +00:00
Michael R Sweet 9b0162e212 Added modified patch from Tom Holroyd to support class "chaining".
git-svn-id: file:///fltk/svn/fltk/trunk@303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 14:33:22 +00:00
Michael R Sweet 45e7f3f99e Fixed bug in write_static() method - when getting the menu_name() and
index we need to use the current menu item (q) and not the current menu.


git-svn-id: file:///fltk/svn/fltk/trunk@301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 14:23:23 +00:00
Michael R Sweet ae5a281a39 Updated install rules to install files with write permission for the
owner.  This isn't necessary for root installs, but is for user-level
installs.


git-svn-id: file:///fltk/svn/fltk/trunk@298 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-19 13:10:20 +00:00
Michael R Sweet c8dbb60e80 Fix from Bill for infinite loop problem when moving groups of widgets.
git-svn-id: file:///fltk/svn/fltk/trunk@281 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-17 16:31:47 +00:00
Michael R Sweet 334494d068 Patch from Bill that adds virtual method support.
git-svn-id: file:///fltk/svn/fltk/trunk@280 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-17 16:24:45 +00:00
Michael R Sweet fc5e6cb0b6 Whoops - missed a closing bracket...
git-svn-id: file:///fltk/svn/fltk/trunk@273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 14:01:10 +00:00
Michael R Sweet b43ba93bdb Menu item numbering bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@272 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-16 13:55:06 +00:00
Bill Spitzak 4c53a5d8f4 Added optimization for SGI builds (mike: please run autoconf before making
a distribution).
Documentation fixes.


git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-31 07:43:16 +00:00
Michael R Sweet 7e0bd92469 The about dialog was too small.
git-svn-id: file:///fltk/svn/fltk/trunk@248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 22:19:33 +00:00
Michael R Sweet b8d34c3d4b Lots of little GUI tweeks, capitalization changes, copyright update, etc.
git-svn-id: file:///fltk/svn/fltk/trunk@247 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 21:59:41 +00:00
Michael R Sweet c3a31ce44a Updated WIN32 clipboard file to be in the root directory to allow for
shared cut/paste.


git-svn-id: file:///fltk/svn/fltk/trunk@246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 21:40:28 +00:00
Michael R Sweet 43a4c224ef Commented out Help/Manual menu item since Help isn't implemented yet.
git-svn-id: file:///fltk/svn/fltk/trunk@243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-26 15:58:25 +00:00
Michael R Sweet c53f76f6b4 Updated copyright notice in FLUID.
Switched File/Open and Edit/Overlay shortcuts.


git-svn-id: file:///fltk/svn/fltk/trunk@242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-25 22:05:38 +00:00
Michael R Sweet d592f1c4aa Forgot the leading * on the pointer name for menu items.
git-svn-id: file:///fltk/svn/fltk/trunk@234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:24:32 +00:00
Michael R Sweet 576f02c063 Fixes from Bill:
- Fluid fixes for menu item numbering and adding of #define stuff to
  include file to prevent multiple inclusion.
- Fixed contrast function (again).
- Fixed fractals demo (not using glutMainLoop()...


git-svn-id: file:///fltk/svn/fltk/trunk@232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-19 19:10:39 +00:00
Michael R Sweet de114a8257 The text color button in Fluid didn't pop up with the correct color
preselected.


git-svn-id: file:///fltk/svn/fltk/trunk@212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:53:57 +00:00
Michael R Sweet e41c045fe5 Fixed problem with empty submenus not getting the right offsets.
git-svn-id: file:///fltk/svn/fltk/trunk@211 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:51:51 +00:00
Michael R Sweet ab5771b62f Fixes from Bill:
- Fl_Clock now uses the Fl_Clock_Output base class to get the
      system time.
    - Fl_Window::iconize() and Fl_Window::icon() now coexist
      peacefully with all X window managers.
    - Minor fixes to mandelbrot and shape demos.
    - Menu code cleanup.


git-svn-id: file:///fltk/svn/fltk/trunk@209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-13 15:45:50 +00:00
Michael R Sweet 75e439ebbf A better static method patch from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 21:21:20 +00:00
Michael R Sweet 0a36d98420 Yay, change all copyright notices to be 1998-1999.
git-svn-id: file:///fltk/svn/fltk/trunk@201 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 19:18:01 +00:00
Michael R Sweet e5ce4ae66e Updated makefile.
Now remove static declarations.


git-svn-id: file:///fltk/svn/fltk/trunk@198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 18:49:36 +00:00
Michael R Sweet 57a983ea83 Menu items were being initialized static... Dropped the "static" from
the initializer.


git-svn-id: file:///fltk/svn/fltk/trunk@155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:09:59 +00:00
Michael R Sweet 5a632f4926 More #include and .C to .cxx changes...
git-svn-id: file:///fltk/svn/fltk/trunk@136 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:52:17 +00:00
Michael R Sweet 3924b60442 Fixed another #include...
git-svn-id: file:///fltk/svn/fltk/trunk@135 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:49:29 +00:00
Michael R Sweet 80bbaf21aa Fixed a couple stray #include's...
git-svn-id: file:///fltk/svn/fltk/trunk@132 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:18:39 +00:00
Michael R Sweet 213ec5476e Missed a #include...
git-svn-id: file:///fltk/svn/fltk/trunk@131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:16:23 +00:00
Michael R Sweet fd90251c29 More changes for .C and .H to .cxx and .h...
git-svn-id: file:///fltk/svn/fltk/trunk@129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:09:22 +00:00
Michael R Sweet 16252e5faf Changes for .C == .cxx and .H == .h.
git-svn-id: file:///fltk/svn/fltk/trunk@128 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 14:59:14 +00:00
Michael R Sweet c4c164a707 Fluid paste bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:59:47 +00:00
Michael R Sweet d9ed48be5c Fix for fluid - increases MAXSIZE to 2048 and added overflow check.
git-svn-id: file:///fltk/svn/fltk/trunk@112 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:58:10 +00:00
Michael R Sweet 92402e682a Fix for numericsort(), and drawing of some box types.
git-svn-id: file:///fltk/svn/fltk/trunk@107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:47:30 +00:00
Michael R Sweet db1205b420 Added check for arrays in initialization - if so, use {(Fl_xyz *)0}...
git-svn-id: file:///fltk/svn/fltk/trunk@104 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-25 16:59:05 +00:00
Michael R Sweet a7d3bafa5a Changed from hexadecimal escapes to octal, since hex might be causing
problems...


git-svn-id: file:///fltk/svn/fltk/trunk@103 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-25 15:54:43 +00:00
Michael R Sweet df0ec23603 Added class/return value fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@101 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-25 13:18:47 +00:00
Michael R Sweet c69a1f7382 Fixed class menu item code writing - now generate static variables and
initializers.


git-svn-id: file:///fltk/svn/fltk/trunk@99 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-23 22:14:06 +00:00
Michael R Sweet 1ae8964fc9 Tab resize bug fix from Gustavo.
git-svn-id: file:///fltk/svn/fltk/trunk@96 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 18:40:44 +00:00
Michael R Sweet ed4cdc51da Fluid fix from Gustavo.
git-svn-id: file:///fltk/svn/fltk/trunk@95 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-18 18:40:09 +00:00
Michael R Sweet 48688d493d Added (unsigned char *) cast for Pixmap strings.
git-svn-id: file:///fltk/svn/fltk/trunk@89 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-12 15:01:48 +00:00
Michael R Sweet cd99974e51 Incorporate SUBMENU_POINTER patch from Thomas Wey.
git-svn-id: file:///fltk/svn/fltk/trunk@84 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-10 14:44:43 +00:00
Michael R Sweet b6f52dec88 Widget variables we not being initialized to NULL.
git-svn-id: file:///fltk/svn/fltk/trunk@79 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-09 14:06:25 +00:00
Michael R Sweet 80b1529ef4 Multiple patches from Bill:
- Double-buffered window fixes.
  - Tabs fixes.
  - X/WIN32 fixes.
  - Fl_Input fixes.
  - Support for vsnprintf and friends.
  - Support for printf-style arguments in utility functions.


git-svn-id: file:///fltk/svn/fltk/trunk@52 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-05 16:04:53 +00:00
Michael R Sweet 2bc3c94ce5 Rebuilt using 1.0 beta 19981021 tree.
git-svn-id: file:///fltk/svn/fltk/trunk@50 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 22:00:10 +00:00
Michael R Sweet 386d9b4a36 Removed more old files.
git-svn-id: file:///fltk/svn/fltk/trunk@40 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:29:26 +00:00
Michael R Sweet c024a43be8 Changed the version number to 1.0.
git-svn-id: file:///fltk/svn/fltk/trunk@39 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:28:27 +00:00
Michael R Sweet 862aa02d59 Removed a few other old files.
Added "rebuild" target to rebuild source files from .fl files.


git-svn-id: file:///fltk/svn/fltk/trunk@38 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:24:51 +00:00
Michael R Sweet 3b8193c002 Removed demo source files that are generated via Fluid.
Added fluid build rule to test Makefile.
Removed fluid build rules from fluid Makefile.


git-svn-id: file:///fltk/svn/fltk/trunk@37 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:20:18 +00:00
Michael R Sweet b2172ee88a Added common headings & CVS tags.
Added "unsigned char" fix from Darren Humphrey.


git-svn-id: file:///fltk/svn/fltk/trunk@30 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 16:29:01 +00:00
Michael R Sweet eada39df34 Added fluid patch from Bill Spitzak; this moves the callback code down
before the widgets that use them so that include files will get included
properly.


git-svn-id: file:///fltk/svn/fltk/trunk@29 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 15:42:05 +00:00
Michael R Sweet 7657a2e4a5 Fixed all the frigging file headings - was missing a $ in the Id string.
Applied some damage bit fixes from Bill Spitzak.


git-svn-id: file:///fltk/svn/fltk/trunk@28 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 14:21:44 +00:00
Michael R Sweet 74858f12e3 Updated makefiles for new heading and new top-level makefile.
git-svn-id: file:///fltk/svn/fltk/trunk@25 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-20 21:06:19 +00:00
Michael R Sweet 90e8eb7a45 More changes from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@20 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 21:00:26 +00:00
Michael R Sweet 512332670a Added Gustavo's damage() update - now use symbolic constants for all values!
git-svn-id: file:///fltk/svn/fltk/trunk@18 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-19 17:53:09 +00:00
Michael R Sweet 9922616d2c Removed mystery source files penne.C and penne.H...
git-svn-id: file:///fltk/svn/fltk/trunk@15 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:46:44 +00:00
Michael R Sweet 434e0ae458 Minor fix to Vincent's patch - bool isn't a standard type with all C++
compilers yet, so just use an int.


git-svn-id: file:///fltk/svn/fltk/trunk@14 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:44:26 +00:00
Michael R Sweet 255e7fb39b Fluid fixes from Vincent PENNE.
git-svn-id: file:///fltk/svn/fltk/trunk@12 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:19:34 +00:00
Michael R Sweet f9039b2ae2 Initial revision
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 18:21:25 +00:00