Commit Graph

1322 Commits

Author SHA1 Message Date
Michael R Sweet
ed0ce675d1 Add missing Gimp source image for block images.
Add blocks.* to the ignore list...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5373 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-28 11:55:49 +00:00
Michael R Sweet
8bec5ff1e0 Don't accept clicks when paused.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-26 20:25:37 +00:00
Michael R Sweet
e01c0e8079 Tweak the blocks game some more, and fix the coding style to conform to the
FLTK coding standards.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-26 20:01:24 +00:00
Michael R Sweet
f3088c4f8d Workaround HP-UX compiler bug by making Blocks and Columns structures public.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-26 13:14:24 +00:00
Michael R Sweet
73232e0b20 Make all XPM files use const char * arrays...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-26 13:06:15 +00:00
Michael R Sweet
9c045681c5 Fix <FL/glu.h> includes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 16:12:13 +00:00
Matthias Melcher
78547a5267 Added Blocks to the VC6 project file and set dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5366 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 10:12:33 +00:00
Matthias Melcher
8cd9871d19 Added unversal header for OpenGL's GLu library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 10:05:20 +00:00
Matthias Melcher
6545100e74 Fixed installation of pixmap s to reflect new pixmaps directory.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 09:19:58 +00:00
Michael R Sweet
f27180b7cd Do some rearranging of image and desktop support files.
Add new Block Attack! game...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-25 06:58:33 +00:00
Michael R Sweet
f5cbdbb1b5 Add wording and tweak difficulty levels so that the Easy and
Normal levels always generate "valid" Sudoku puzzles while Hard
and Impossible are free to make Sudoku puzzles more
fun/challenging (STR #1361)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-24 18:09:44 +00:00
Matthias Melcher
74b91fe371 Fixed Fl_Positioner callback when released (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 12:57:42 +00:00
Matthias Melcher
05cd337c05 Fixed WIN32 zero size window issue (STR #1387)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 11:47:58 +00:00
Matthias Melcher
b179cc108a Fixed Sudoku window positioning (STR #1398)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5344 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-23 11:34:36 +00:00
Matthias Melcher
555f776077 Fixed uninitialized data in OS X and WIN32 timout functions (STR #1374).
Fixed silly but in preferences test (that was unrelated to Fl_Preferences).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5341 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-21 15:03:02 +00:00
Matthias Melcher
0ac4a4d33b Restored original "hello.cxx"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 07:29:46 +00:00
Matthias Melcher
972624d613 STR #1381: added optional "precision" argument when writing floats or doubles to a Preferences file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-18 07:29:09 +00:00
Matthias Melcher
51d67574ec New context_changed() function for OpenGL windows allowing efficient texture loading (str #1372)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5322 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-17 09:49:43 +00:00
Matthias Melcher
26be719a4a Modified boxtype demo to show somewhat experimental, yet nice round plastic boxes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-08-14 22:42:46 +00:00
Michael R Sweet
d9eecaf4ab Fix problems with new FLUID output, add common to closing braces to show
what widget is being closed, and bump the version number to 1.1.8 in the
repo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5271 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-27 19:26:11 +00:00
Michael R Sweet
58699112db Fix use of LDFLAGS and make install depend on all target...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-07-25 19:06:56 +00:00
Matthias Melcher
05bd3ade18 Added support for floating point Fl_Spinner
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-22 07:35:39 +00:00
Michael R Sweet
eea2b38b34 Add --with-archflags option to configure script, and use it in the right
places.

Update changes file.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 18:29:31 +00:00
Matthias Melcher
11de032d6d If the value field for scrollbars was not zero, Fluid would generate code that accesses the hidden function Fl_Scrollbar::value(double), causing a compile time error. The fix circumevents the hidden function by calling Fl_Slider::value. It would be better to change the entire Fluid interface to reflect the Scrollbar interface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5214 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-19 08:34:19 +00:00
Matthias Melcher
c468a521b0 STR #1321: Calling Fl_Window::show() will exit from the current Fl_Tooltip. Changing window order or creating a new window is a pretty major action, so temporarily disabeling Tooltips seems beneficial. This avoids Tooltips interfering with popup menus.
Of course, poping up a tooltip window does *not* disable further tooltips... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5200 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-14 10:48:36 +00:00
Matthias Melcher
9c0a2c0a0f OS X Quartz: fixed issues with creating a gray image map. Fluid problems still appear.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5176 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-05 11:59:09 +00:00
Matthias Melcher
60ece00315 OS X Quartz: one pretty essential fix to the call order in Quartz context change which fixed a lot of warnings. I also added a file that helps tremondously to debug Core Graphics calls. This file is not compiled into the source tree by default, but the annotations in "src/cgdebug.h" explain the usage.
In regard to CG Text drawing vs. the new ATSU Text drawing: I now remember why I did not ATSU in the beginning: STDU does not use the CG clipping area or text pen settings. So, if you plan on using the current SVN with --enable-quartz, please be aware that you will not have any text clipping or any other text color than black.

Finally, I added code to FLTK on OS X that retreives the selection color from the system instead of assuming dark blue. I am not entirely confident about this change as it may require OS X 10.4 . Feedback appreciiated.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5173 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-06-04 10:21:45 +00:00
Michael R Sweet
ed251b5ca2 Remove executable bit from source files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-31 18:33:05 +00:00
Matthias Melcher
987d9e05f2 Fixed shortcut and default focus for message dialogs (STR #1298).
Default focus is now on the button that also reacts to the 'Enter' key. This should avoid confusion about Enter triggering the button1 or button 0.

Also, I changed the shortcut call to the new convention which works on MSWindows. I don't have a Linux system right now for testing... .

Fixed focus issues (STR #1286, STR #1289, STR #1296)

fl_xfocus was not always updated, making widgets or even whole windows loose focus when any focus changes were not accompanied by a click into the same window. Also, Fl_Tabs would not redraw correctly if focus returned to the active tab.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5165 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-30 09:38:19 +00:00
Matthias Melcher
b9e4886cfe Tabs now show the correct tooltip (STR #1282)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-21 09:41:47 +00:00
Matthias Melcher
20ad7d23fa STR #1282: added tooltips to the 'tabs' demo so we can test and fix this bug.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-21 08:59:40 +00:00
Matthias Melcher
93cb7b5487 STR 1264: Editor uses "delete" instead of the required "delete_widget"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5081 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-05-05 13:38:47 +00:00
Matthias Melcher
4e038ef82b STR #1169: Fixed 'make distclean' to remove binaries inside MacOS app packages
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-28 01:10:00 +00:00
Matthias Melcher
570e3f850b Fixed previous commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-04 12:24:36 +00:00
Matthias Melcher
fe9b1fce28 STR 1195: caret key lookup entry was missing on Mac OS X
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-04-04 11:44:20 +00:00
Michael R Sweet
7d8d1883d5 Don't increment read-only cells on a multiple-click.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4795 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-02-22 15:29:10 +00:00
Matthias Melcher
42a6245bdd STR #1109 re-fix: when fixing 1109, I accidentally enabled clicking on grayed out menu items. This commit should fix that an make the menu ignore grayed out items altogether.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-16 23:22:32 +00:00
Michael R Sweet
1a12cf01d2 Update Linux desktop files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 20:44:00 +00:00
Michael R Sweet
6607a6b436 Update OSX icons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 19:12:08 +00:00
Michael R Sweet
115d539691 More packaging fun.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4756 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 18:36:16 +00:00
Michael R Sweet
61b86ce0e5 More packaging fun (games package to "advertise" FLTK...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 18:02:44 +00:00
Michael R Sweet
f7305675c4 More copyright updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-15 02:26:54 +00:00
Michael R Sweet
c78a31ce34 Fix compile error.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-13 22:46:30 +00:00
Michael R Sweet
21a8aed499 Fix bugs in Sudoku demo:
1. "Check Game" now flags subgrids with duplicate numbers.
    2. "Restart Game" now starts a new game if the current game
       has been solved.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-13 18:53:38 +00:00
Michael R Sweet
328d25219d Make sure that threads.o depends on threads.h - it wasn't included in the
dependencies since threading was not enabled when "make depend" was last
run...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4742 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-08 15:50:01 +00:00
Michael R Sweet
3cda5da0b8 Oops...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-08 01:31:26 +00:00
Michael R Sweet
741322a01a The threads demo would display negative prime numbers
on MacOS X; this appears to be a MacOS X bug, but we
added a workaround to "fix" this (STR #1138)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-06 16:53:04 +00:00
Matthias Melcher
f5a571fc83 Fixed "Pixmap" demo to not pop up a dialog if an image (or other file or even directory) is not readable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4735 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-01-02 20:18:23 +00:00
Matthias Melcher
d3db965083 Fixed a few memory faults found by Valgrind (yes, I finally got my Linux
machine up and running again)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4723 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-30 10:13:17 +00:00
Michael R Sweet
31d3e28bba Use 0 instead of NULL in waveOutOpen() call...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4710 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:59:59 +00:00
Michael R Sweet
4ba1119822 Workaround Solaris make problems...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-14 02:23:01 +00:00
Michael R Sweet
b398e8422b Fix "restart game" - we aren't saving the seed, and even so we don't get
the same sequence on Linux anyways.

Also, multiple clicks in a cell sets/increments the value.

Finally, use alternate background color to produce checkerboard-like
pattern.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-12 04:23:05 +00:00
Michael R Sweet
0ce3c4c6f1 Add WIN32 audio support, and protect against accidental restarts
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-09 18:31:34 +00:00
Michael R Sweet
a6e6888a2d Add OSX audio support to Sudoku (THANK YOU IAN!)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-08 03:51:21 +00:00
Michael R Sweet
bed8043ef2 Add sound design notes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 18:59:21 +00:00
Michael R Sweet
887698cb85 Use <FL/math.h> since Windows doesn't define M_PI.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 04:35:04 +00:00
Michael R Sweet
9a52731601 More sound effects, drop solution dialog (green tiles mean solved...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-06 03:55:45 +00:00
Michael R Sweet
11349b0c63 Ignore keypresses with FL_CTRL modifier so that menubar can process them.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-05 02:14:25 +00:00
Michael R Sweet
2f40b8b80b Start adding support for sound in Sudoku via ALSA.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4684 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-05 00:55:01 +00:00
Michael R Sweet
29a41762fb When checking a solution, ignore readonly cells and set color of correct
cells.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-04 01:43:22 +00:00
Michael R Sweet
0bacb8e624 Separate WIN32 and normal build rules so we can create a resource object
file to link into the executable.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-04 00:32:31 +00:00
Michael R Sweet
0c91e35748 Add "restart game" item and save random number seed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 14:57:39 +00:00
Michael R Sweet
fc81090d3e Fix help (no more subgrid highlighting)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:25:10 +00:00
Michael R Sweet
3a7fac2981 Use CAPS LOCK as shift lock.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 02:19:58 +00:00
Michael R Sweet
912f6acf1f Allow multiple solutions to solve the puzzle.
Don't show solved grids - not compatible with new code anyways, and made
the game too easy.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-12-02 01:34:25 +00:00
Michael R Sweet
528ba0a584 Add missing icon for sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 22:03:39 +00:00
Michael R Sweet
fc54087151 Update help and add support for keypad numbers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-29 09:49:02 +00:00
Matthias Melcher
1370a6b268 STR #1082: mad the "fullscreen" demo add and remove the window decoration by using the hide/show combo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-28 15:35:18 +00:00
Michael R Sweet
f3182417c0 Update dependencies.
Eliminate compiler warnings in Fl_GIF_Image.cxx.

Add X11 icon code to sudoku example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 15:05:50 +00:00
Michael R Sweet
e321cb37bf VC++ 2005 Support, drop old files, add icons for Sudoku
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 14:45:48 +00:00
Michael R Sweet
f9f2de3572 Fix a resize issue with X11.
Add missing Id keywords to input_choice.

Add sudoku to demo program.

Add on-line help to sudoku game, and put all of the cells in the main
window so that the keyboard navigation is sane.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 05:15:47 +00:00
Michael R Sweet
0ca7b126e7 More improvements to game board generator.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-27 01:56:57 +00:00
Michael R Sweet
fd9a51e43b Fix up new game code to expose at least one of every number in each axis
so puzzles are solvable with a unique solution.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 14:25:01 +00:00
Michael R Sweet
4a12c536fd Better game generation, fix test slot usage.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 06:23:13 +00:00
Michael R Sweet
65727ba06b Support up to 8 test slots and check for solution after every change
in a cell.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 02:17:04 +00:00
Michael R Sweet
ae6ea393c0 Mousewheel fixes.
src/Fl_mac.cxx:
    - Disable MightyMouse code for the moment - it is crashing on
      my PowerBook...

src/Fl_Scrollbar.cxx:
    - Fl_Scrollbar::handle() should only return 1 for mousewheel
      events that it uses.

test/sudoku.cxx:
    - More tweaking.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-26 00:47:45 +00:00
Michael R Sweet
f2019a54cb Add "test" numbers in the corners and add more levels of difficulty.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 22:43:33 +00:00
Michael R Sweet
9e8a88e66c Fix mousewheel handler bug (using wrong variable in initial check)
Add sudoku game app (fun for the holidays! :)

Use "-Os -g" as the default optimization settings.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-25 20:40:16 +00:00
Matthias Melcher
2a4b713497 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 2005-11-18 10:08:13 +00:00
Matthias Melcher
8bcfae7b11 Undid previous test change.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-06 09:55:36 +00:00
Matthias Melcher
4663981310 STR #1061: fixed Fl_Window::cursor for subwindows and GL windows on WIN32
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-04 08:23:20 +00:00
Matthias Melcher
8979617990 STR #1052: updated color handling in test programs. If you are planning on creating labels based on foreground or background color, you should load the colors *before* creating the user interface. This is done by calling:
Fl::args(arc, argv);
Fl::set_system_colors();

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 13:57:56 +00:00
Michael R Sweet
ebddf5bf94 Change int to long in unittests callback, and add the standard FLTK
header/footer text.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-11-02 12:52:44 +00:00
Matthias Melcher
77484a4e2d FLUID writes RGB and Bitmap image data as an array of decimal numbers instead of a string since "a certain compiler by a large operating system vendor which shall remain unnamed" can not handle long strings and produces heap overflows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-10-26 09:08:01 +00:00
Matthias Melcher
eefa09e632 STR #1023: some more test programs did not load the OS default colors
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-15 10:16:08 +00:00
Matthias Melcher
49fb8bc5c0 Fonts test program now starts using the correct color scheme
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-09-14 14:32:48 +00:00
Matthias Melcher
16719ceb8c Reverted to the correct version.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4537 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 14:14:32 +00:00
Matthias Melcher
74fe8ccdf2 Typos
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-08-24 13:47:48 +00:00
Matthias Melcher
d1808c6165 'demo -s' would crash due to a missing argument on Fl::fatal()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-18 13:08:09 +00:00
Matthias Melcher
651bf8d275 Fixed unescaped '@' in fonts demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-16 07:57:14 +00:00
Matthias Melcher
88bb4a58d3 Fixed static allocation of 1000 font information units in fonts.cxx.
Although this fixes the crash, the font enumerator in FLTK should never return a number larger than 255 (which unfortunatly is the maximum number of fonts supported by FLTK 1 for binary compatibility)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:46:15 +00:00
Matthias Melcher
22986c92c4 STR #915: fixed hang on corrupt jpegs by giving a maximum of 10 chances for jpeg lib to clean up on damaged file reads.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-07-11 20:31:59 +00:00
Matthias Melcher
d523a9cc68 Documented the '00360' rotation feature in symbols
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 20:10:53 +00:00
Matthias Melcher
090eb71a26 OK, I admit that I am nuts. But since the code was mostly there anyways adding only a few bytes to the library in total, I added the symbols 'refresh' (formerly known as 'recycle'), 'reload', 'undo', and 'redo', and flags to flip symbols horizontaly '$', and verticaly '%'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 20:05:49 +00:00
Matthias Melcher
daa8f53397 Added a symbol named 'recycle' that can be used to refresh directory listings, etc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4390 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-06-01 13:41:01 +00:00
Matthias Melcher
900034ee65 Fixed the Round Plastic buttons to actually draw nice and riund, just
like the original scheme buttons. This is relatively slow, but worth
the effort, I beleive. Just use double buffered windows... .

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-27 11:33:34 +00:00
Michael R Sweet
067d8d2d16 Fix eol-style in Watcom files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 16:07:13 +00:00
Michael R Sweet
296efbe092 Update Fl_Tabs to draw selected tabs using labelcolor() of the Fl_Tabs
widget instead of using fl_contrast.

Draw round plastic buttons round...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-19 12:13:35 +00:00
Matthias Melcher
6f946ecfc5 Fixed the silly gcc 4.0 warning about ~0 being negative 1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-17 20:03:29 +00:00
Michael R Sweet
fa986f559d Added the standard rgb.txt file from X11 to the test directory,
allowing all platforms to try the colbrowser demo (STR #843)



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 20:03:59 +00:00
Michael R Sweet
b4a0827881 Resizing of OpenGL subwindows was broken on OSX (STR #804)
Added a FPS indicator to the fractals demo for testing purposes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-05-12 19:16:27 +00:00
Michael R Sweet
28d2c320c9 Add filenew, fileopen, filesave, filesaveas, and fileprint symbols.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4302 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-30 03:02:04 +00:00
Michael R Sweet
671ef36117 Fix MacOS X 10.4 compile issues.
configure.in:
    - 10.4 doesn't include libsupc++.a, so we need to use g++ when compiling.

src/Fl_Help_View.cxx:
    - Fl_Help_View::format_table(): missing initialization of font and fsize.

src/Fl_Text_Buffer.cxx:
    - Fl_Text_Buffer::remove_rectangle(): missing initialization of endOffset.

src/Fl_Gl_Window.cxx:
    - Fl_Gl_Window::flush(): use 0xff instead of ~0 for clear_damage() call.

test/keyboard.cxx:
    - Apparently unnamed structs are not supported by Apple's GCC 4.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-28 17:48:04 +00:00
Michael R Sweet
dd0503576d Fix compiler warnings.
Add demo.menu and all xbm and xpm files in test directory to install
list.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4292 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-18 20:23:29 +00:00
Michael R Sweet
1c399af444 Update source file headers with STR web page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4288 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:13:17 +00:00
Michael R Sweet
b41cf28662 Update "clean" targets to properly handle core files, remove backup files,
etc.

Add "install" target to test directory which installs the example programs.

Install the config.h file in the examples directory.

Make sure the example programs compile outside the FLTK source dir.

Add example programs to fltk.list.in.

Fix missing redraw() in x_cb() in FLUID...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4287 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-16 00:01:49 +00:00
Michael R Sweet
217f77c9ef Eliminate compiler warnings on Solaris...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4282 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-14 12:29:51 +00:00
Matthias Melcher
e72630762d Remove all warnings for Mac buidl with gcc (except one)
- some warnings about using char for indexing
- some warnings about using signed int in strncmp
- some warnings about deprecated fl_ask (replaced with fl_choice)
The on warning not removed is the strftime("%c") in fluid since
I don't know anything about PS and I don't know if a different
data format would break PS. Mike?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4270 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-11 07:35:33 +00:00
Michael R Sweet
5b20fbdce4 Fixed symbol demo label bug (STR #777)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-10 21:53:03 +00:00
Matthias Melcher
147b403013 STR #792: 'preferences' test app lost the 'radio' flags on the shoe positioning buttons.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-04-08 18:18:26 +00:00
Michael R Sweet
325dc85b2c Fix syntax highlighting bug in the editor demo, and port changes to the
CodeEditor widget in FLUID.

Use the CodeEditor widget for the other code windows.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4163 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-23 03:13:31 +00:00
Michael R Sweet
e747c49422 Use copy_label() instead of strdup() for button labels.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4102 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-10 11:44:19 +00:00
Michael R Sweet
ec7b060957 Fix Fl_Input_Choice in FLUID, and make sure that we expose enough of the
text and box stuff for use in FLUID.

Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-03-06 00:32:11 +00:00
Michael R Sweet
add37faa25 Copyright updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4052 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:55:12 +00:00
Michael R Sweet
2df3459457 Added Greg Ercolano's simple Fl_Input_Choice widget which is a
combination of the Fl_Input and Fl_Menu_Button widgets (STR
#650)

FL/Fl_Input_Choice.H:


documentation/Fl_Input_Choice.html:
    - Added.

documentation/fltk.book:
    - Added Fl_Input_Choice.html + --no-embedfonts option.

documentation/index.html:
    - Update version number and revision.

documentation/input_choice.jpg:
    - Added.

documentation/preface.html:
    - Update version number and revision.

documentation/widgets.html:
    - Add Fl_Input_Choice to lists.

fluid/Fl_Menu_Type.cxx:
    - Add Fl_Input_Choice_Type class and instance.

fluid/Fl_Type.h:
    - Add Fl_Input_Choice_Type class and instance.

fluid/factory.cxx:
    - Add Fl_Input_Choice menu item.

test/Makefile:
    - Add input_choice example.

test/input_choice.cxx:
    - Added.

test/demo.menu:
    - Add input_choice example.




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-24 21:14:22 +00:00
Michael R Sweet
1f2456132e Cmake updates (STR #645)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4026 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-06 00:17:50 +00:00
Michael R Sweet
3124794f1f Fl_File_Chooser was slow with large directories (STR #654)
FL/Fl_File_Browser.H:
    - Don't reload the directory view unless asked to.

FL/Fl_File_Chooser.H:
    - Rebuilt using current FLUID.

src/Fl_File_Browser.cxx:
    - Don't reload the directory view unless asked to.

src/Fl_File_Chooser.cxx:
    - Fl_File_Chooser::show() calls rescan().

src/Fl_File_Chooser.fl:
    - Fl_File_Chooser::show() calls rescan().

src/Fl_File_Chooser2.cxx:
    - Only call rescan() when chooser is shown.

src/Fl_File_Icon.cxx:
    - Add optimization for Windows - filenames with trailing slash are
      directories.

test/file_chooser.cxx:
    - Only call show() once...



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4010 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2005-02-05 18:26:21 +00:00
Michael R Sweet
de226bac0a Add missing Watcom makefile...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-29 14:57:23 +00:00
Michael R Sweet
fc8d065cd7 The configure script did not support --disable-localfoo to
completely disable image file support (STR #582)

The Visual C++ 6.0 project files still listed the old JPEG, PNG,
and ZLIB library names (STR #577)

Fixed the scandir() conditional code for HP-UX 11i (STR #585)

Fl_Text_Display didn't support CTRL/CMD-A/C (STR #601)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3898 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 03:44:18 +00:00
Michael R Sweet
23bb059065 Watcom fixes (STR #584, STR #594, STR #595)
Fixed library include order when building DSOs on MacOS X (STR
#596)

fl_xid() could cause a WIN32 application to crash (STR #560, STR
#576, STR #618)

Fl_Browser::remove_() removed the item from the list before
computing the item height, which caused problems with some
programs (STR #613)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-11-20 03:19:59 +00:00
Michael R Sweet
ca005c4067 Documentation updates (STR #568)
More CMake updates (STR #499)

The Watcom C++ compiler needed a small change (STR #567)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-10-18 20:29:58 +00:00
Michael R Sweet
6a45728c7a Add unittests to .cvsignore.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-13 02:14:01 +00:00
Michael R Sweet
1ca225e19d Added (unsupported) CMake files (STR #499)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3829 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-13 02:12:41 +00:00
Matthias Melcher
b90f593ae6 News from FLTK1.1 and Quartz
- listing fonts using ATS instead of QD
- made bold and italic fonts work
- returning correct font metrics
One problem came up though: Quartz renders fonts at subpixel positions,
which is great for the overall look, but unfortunatly 'fl_draw' supports
only integer coordinates for printing. As a result, marking a line of text
makes the rest of the line jump by a fractional pixel. Any suggestions to
solve this problem are greatly appreciated!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-09-09 00:55:41 +00:00
Matthias Melcher
57193e52c0 Quartz for FLTK 1.1:
- added pixmap drawing (no masking yet)
- added bitmap drawing
- added line styles (complete)
todo:
- missing refresh (double test, fluid, others)
- missing pixmap mask
- color_chooser has alignment issues
- images scale instead of beeing scissored
- fonts


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3798 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-31 00:27:40 +00:00
Matthias Melcher
93798e2f83 FLTK1.1 Quartz:
- fixed fl_arc and fl_pie
Check out test/boxtype: it looks really sweet in antialised mode!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-27 00:22:28 +00:00
Matthias Melcher
c29b4b5e16 FLTK1.1 Quartz support:
- added a 'test/unittests' which wil check for identical drawing on all
  platforms. This was desperatly needed to fix tremendous problems in
  getting the Quartz drawing routines right
- disabled anti-aliasing for functions that draw straight lines at integer
  coordinates


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-26 22:24:24 +00:00
Matthias Melcher
522f98d523 Str #490: fixed little bug in Symbol test code
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-08-09 21:05:45 +00:00
Michael R Sweet
a529510e5b More documentation updates...
Fl_File_Chooser did not handle some cases for filename
completion (STR #376)

Fl_Help_View didn't properly compute the default maximum width
of the page properly, resulting in non-wrapped text in table
cells (STR #464)

Fl_Text_Editor no longer tries to emulate the Emacs CTRL-A
shortcut to move to the first column, since there is a key for
that and the widget does not emulate any other Emacs keys (STR
#421)

Fl_File_Chooser always disabled the OK button when the user
pressed DELETE or BACKSPACE (STR #397)

Added Fl_Browser::swap() methods (STR #459)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-07-26 20:52:52 +00:00
Matthias Melcher
47276e733d In order to make the whitte text field at the bottom left of the
Help Dialog clearer, I added a magnifying glass in front of the
field sybolising "search".

I made the scaleable magnifying glass available as a symbol via
"@search"

I added yet another symbol that draw a vectorized version of
the FLTK logo. Available via "@FLTK".

Lastly, I changed the 'symbol' test program to show the additional
symbols, and added a slider to changae the relative symbol size.

I hope the new symbols look good enough on other platforms, too. I
tested only OS X.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-07-04 06:49:34 +00:00
Michael R Sweet
a3d0905c9e Copyright updates and prep for 1.1.5rc1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3391 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-11 04:39:01 +00:00
Michael R Sweet
317105381d VC++.NET support
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2004-04-07 20:06:17 +00:00
Michael R Sweet
6abb22c005 Dump the shiny demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-09-05 12:25:01 +00:00
Michael R Sweet
7363c4bdd6 Dump the non-working shiny demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3091 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-09-05 12:24:31 +00:00
Michael R Sweet
101fa5b640 Fix mapping of Apple keys to CTRL keys on OSX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3022 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-06-05 21:14:19 +00:00
Michael R Sweet
8a2aa0a0d1 Add thin up box with plastic style.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-05-18 22:12:24 +00:00
Michael R Sweet
00cb676e11 Copyright update for 1.1.3 release (not quite yet, but soon...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-30 21:46:07 +00:00
Michael R Sweet
9f67d66c3a Fix size_range() bug under OSX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2905 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-14 21:30:55 +00:00
Michael R Sweet
56b465073b Update dependencies and the change log.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-10 19:54:44 +00:00
Michael R Sweet
85c952004a Remove the obsolete browserop.cxx test program, which wasn't being built
anyways and is causing confusion.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2003-01-02 21:39:58 +00:00
Michael R Sweet
5f5d68561f Fl_File_Input::value("") didn't work.
The window close callback also needed to set the filename to "".


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2851 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-20 15:49:24 +00:00
Matthias Melcher
66dabdb8f5 Added callbacks to Fl_Text_Editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-11-05 06:45:41 +00:00
Michael R Sweet
9e0efc1e88 First fixes for 1.1.2 - Fl_Scrollbar shouldn't take keyboard focus,
move Fl_Slider focus stuff to main handle() method, use Fl_Light_Button
in scroll demo.

Bump version numbers to 1.1.2.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-10-24 12:53:41 +00:00
Michael R Sweet
5d33456506 Comment out debug statements...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-27 18:01:30 +00:00
Michael R Sweet
7ef44a5266 Fix editor syntax highlighting (bug #613089)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-26 20:43:03 +00:00
Michael R Sweet
e04a3734e7 Apply patch from George Garvey to make Fl_Text_Display/Buffer based on
NEdit 5.3...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-20 19:59:45 +00:00
Michael R Sweet
11bf9b28da Move Fl_Help_Dialog to fltk_images library.
Add "Additional Libraries" section to docos as needed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-16 01:35:34 +00:00
Matthias Melcher
6698be1be8 Mac OS X: modified Fl_Preferences::Node::search to correctly handle groups
inside the root group and to allow for relative and absolute path names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-05 20:44:36 +00:00
Michael R Sweet
b700c8c088 Fix Fl_Menu_Button focus problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-09-01 22:39:33 +00:00
Michael R Sweet
ec494401c1 Make sure all strings can be localized in the dialogs.
Move the "preview" button over so there is room for localization.

Fix the order of buttons in convenience dialogs.

Update "ask" to use the fl_input function.

Fix 4-bit BMP file loading.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2608 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-30 16:58:16 +00:00
Michael R Sweet
ad29f94f86 Use double-buffered window for CubeView...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-20 17:40:37 +00:00
Michael R Sweet
5ab5efff11 Add tooltips to the output widgets to see if we can figure out why
tooltips don't work for a user...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2598 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-20 16:15:29 +00:00
Bill Spitzak
019f933251 Fixed tabs.fl
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-13 22:47:35 +00:00
Michael R Sweet
0c6c69ffbc Add missing header to tabs program.
Fix dependency for help demo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2573 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-12 02:11:03 +00:00
Michael R Sweet
42bfef91a7 Put new modal test in the right source file...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-12 00:43:12 +00:00
Bill Spitzak
4c1997b416 Added test for modal window
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-10 16:27:46 +00:00
Michael R Sweet
b2e9308751 More shadowed variables in FLUID, plus use snprintf, strlcpy, and strlcat.
Don't use extra warning flags for normal compiles.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2568 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-09 22:57:00 +00:00
Michael R Sweet
063d67de86 Add image() methods to Fl_Menu_Item.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-08-01 02:02:03 +00:00
Michael R Sweet
d453884e0f Add wrap() method and bit for Fl_Input_, and make word wrap dependent
on this (wrap margin is the width of the widget less box borders)

Don't select the text in value() for a readonly() (output) field.

Display a caret instead of a vertical bar for the cursor in output fields.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-23 16:28:19 +00:00
Michael R Sweet
c48c20c49c Fix path for default document (Matthias, did you change this? If so,
just include your own copy of demo.menu which includes the different
path when running from CW...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-15 23:39:22 +00:00
Michael R Sweet
d0f18c45b5 Boy, aren't WIN32 compilers *so* much fun.
Fix more export problems, make some more static inline methods regular
functions, don't use FL_NORMAL_SIZE in a static initializer since BC++
doesn't seem to support it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 21:25:39 +00:00
Michael R Sweet
8025bf7251 Fl_File_Chooser::value("foo") now checks if the pathname is a directory
and doesn't strip the trailing one if so.

Fl_File_Chooser::value(n) now returns a directory name without the
trailing slash.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2527 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 18:19:00 +00:00
Michael R Sweet
1be87f0798 Ignore fluid-shared and all exe files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-14 17:04:30 +00:00
Matthias Melcher
319c89ab3c minor changes to make FLTK compile as a DLL in CodeWarrior
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 22:43:53 +00:00
Matthias Melcher
7dc80d17b0 MacOS: wait(0) would not handle all pending events.
The OpenGL demos were showing a significant delay in handling UI events.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-07-11 01:10:15 +00:00
Matthias Melcher
2d30a9e6fa Small changes to make Metrowerks CodeWarrior for Windows work.
See seperate posting with CodeWarrior project file.


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


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2332 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:19:42 +00:00
Michael R Sweet
8efe8dcc23 Don't need to manually register image formats in these programs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2330 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:10:20 +00:00
Michael R Sweet
6a6e4ab66c Separate the extra image functions into fltk_images.
Add new fl_register_images() function to register the extra file formats
with Fl_Shared_Image.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-28 21:04:37 +00:00
Matthias Melcher
9c29ecde90 MacOS:
Pixmap Draw fix: pixmap would always draw from 0, 0
gl_font implemented
FL_FOCUS fix: would not send FL_FOCUS when window activated
window classes fixed: modal() and non_modal() should work much better
glut fix: uninitialised 'display' callback made glpuzzle crash

Please send bug reports


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-27 04:29:39 +00:00
Matthias Melcher
e9f34465e0 Remired CR/LF pairs :-/
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-26 03:36:57 +00:00
Matthias Melcher
2967d781d7 Added gl_font calls to Cube demo for gl_font implementation on MacOS (later).
Renamed variable 'todo' in preferences.fl to 'tasks' to make global search for Todo items easier.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2319 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-26 02:01:33 +00:00
Michael R Sweet
04f6fbbe03 Make sure DIRECTORY is undef'd for BC++.
Try to get rid of flickering in CubeView demo...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 19:36:01 +00:00
Michael R Sweet
91aa5847ba Bug fixes from Sebastien.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-13 18:18:33 +00:00
Michael R Sweet
ddd6ab5d83 Fix some editor problems; still have a few bugs that need to be resolved
before 1.1.0...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-10 21:04:20 +00:00
Michael R Sweet
c3cde61e98 Add documentation for using styles in text editor.
Add placeholder for style attributes - hidden + underlined - for
future use.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 18:28:49 +00:00
Michael R Sweet
13ae564f03 Add color definitions for "dark red", etc.
Change "text" and "selecion" methods to return char *, not const char *,
since they return a changeable copy of the text.

Add range checking to style lookup in Fl_Text_Display.

Add syntax hilighting to editor example.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-09 13:35:49 +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
25defef499 Tweek the order of -o foo and foo.o in the test makefile, since putting
the .o files first might be causing problems on some systems.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-06-03 12:32:57 +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
1d542c28c1 Ignore more generated files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2249 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 20:01:12 +00:00
Michael R Sweet
0104b4abc5 Add preferences program to .cvsignore...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2245 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-21 02:04:39 +00:00
Matthias Melcher
dc5fa8454c Fl_Preferences: fixed delete/free confusion, updated docu and sample on buffer size issue (buffer needs to allow for additional byte for trailing zero)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2242 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-17 21:17:05 +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
83c0e840ba Update dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2233 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-15 23:33:49 +00:00
Bill Spitzak
80465e4bff Backported the fltk2.0 tooltips. This may be somewhat binary incompatable
as Fl_Widget::tooltip(x) is no longer an inline (though the previous version
will work if there is at least one call to the new one). It may be better
to just enable tooltips all the time. Also Fl_Tooltip::enable() is changed,
but few programs call that.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-13 05:05:11 +00:00
Michael R Sweet
a35c5a6a2e Fix tooltips on some of the valuators...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-12 11:12:56 +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
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
6298f9a0d8 Fix include for preferences example.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-02 19:57:24 +00:00
Matthias Melcher
f060b88fe6 Added preferences.fl, removed preferences.cxx and .h
Updated VisualC project to handle .fl files and fluid dependencies
Updated test/Makefile (someone please test it...)
Removed all CRs :-)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2162 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 15:55:07 +00:00
Michael R Sweet
45f8282135 Don't try to use itoa(), which isn't available on most systems. Instead,
use sprintf().

getUserdataPath() call in test/preferences.cxx reverted to old 1 argument
version.  We only provide the 2-arg version (pointer + length) to enforce
safe programming.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-05-01 00:03:36 +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
80c5b70c43 Add preferences demo.
Change all reference to matthiasmm.com to fltk.org.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 21:04:13 +00:00
Michael R Sweet
782b3d639a Updated credits file.
Update test program dependencies on fluid - need to make the .fl
rules dependent on fluid, and the .cxx files dependent on the .fl
files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2127 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-04-29 14:32:13 +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
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
96d4075b52 OS/2 update from Alexander Mai.
Add $(EXEEXT) to test program makefile dependencies on FLUID...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2035 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-26 00:05:18 +00:00
Michael R Sweet
c33486c904 Fix spelling error in spelling check message...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2032 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-25 21:55:41 +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
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
cab1dedbd1 Fix non-Xft build.
Add "--disable-xft" option to configure script.

Update dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-03-06 19:42:30 +00:00
Michael R Sweet
a235545e42 Fix prototypes for fl_input() and fl_password().
Change how tabs are colored, and update the tabs demo to show it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1951 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-30 13:38:15 +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
a33a9e34d4 Remove unused and obsolete JPEG image demo.
Fix GLUT include in fracviewer.cxx.

Add explicit dependencies on .o files for each demo program; this allows
FLTK to be compiled with older (broken) make programs that don't support
multi-step dependencies.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1928 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-13 18:38:24 +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
de9f676353 Fix OpenGL and button problems in shiny demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1909 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-04 18:22:27 +00:00
Michael R Sweet
81be28e2dd Fixup fractals demo so it doesn't get way ahead of display - some Linux
OpenGL implementations can queue dozens of frames...

Also fix controls in "flying" mode - the Y axis was reversed.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1907 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-03 14:08:08 +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
f9770db21f Use rint() for some more rounding of vertices.
Add fl_parse_color() to X11 version, too, and use it instead of XParseColor
in the image handling code.

Move the default color stuff in the plastic scheme to the MacOS
get_system_colors(), and apply the background color to the tile image.

More fixes for test makefile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1901 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2002-01-01 13:11:29 +00:00
Michael R Sweet
988bc9d95f Fix build problems in test directory - no more recursive dependencies for
demos that are partially built using FLUID.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1900 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-30 05:16:10 +00:00
Michael R Sweet
6be2be6d43 Demo updates (so they all will use the default scheme)
Added show(argc, argv) method to Fl_Help_Dialog.

Don't clear tab area in Fl_Tabs...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1896 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-23 03:40:51 +00:00
Matthias Melcher
d0bdfe300d - MacOS: more keyboard handler fixes, mainly mapping of Mac specific
keys and iBook keys, several fixes to keyboard focus.

Happy Holidays!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1894 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-22 07:16:12 +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
707972408b Get rid of CR's in some files...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-21 14:35:34 +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
5dd7625092 Remove Fl_Mutex and Fl_Signal_Mutex from threads.h - not portable, and
not used...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1861 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-17 14:52:27 +00:00
Michael R Sweet
4ef0817b83 Disable threading by default.
Remove 2.0 FL_API defines from threads.h, since that header is not part
of the library.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 21:02:24 +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
5c3b2f74bc More tweeking of plastic boxtypes.
Redraw parent if child button loses focus and is using FL_NO_BOX.

Fix test/Makefile to build mandelbrot and shiny demos right.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-14 16:48:13 +00:00
Michael R Sweet
cd9639c212 Update documentation screenshots (still have some to go...)
Cleanup some demos and the color chooser.

Restore code in Fl_Window::hotspot() to keep the window on the screen.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1837 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-12 21:33:34 +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
3f6ff88fa5 Some files still had the old "fltk-bugs@easysw.com" address...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-09 12:52:13 +00:00
Michael R Sweet
64f2cc0635 Fix threading test.
Add threading demo from 2.0, with minor improvements to make the
prime number generation faster/more realistic.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-08 16:23:51 +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
Matthias Melcher
e07200c4e8 Implemeted 95% of all Mac OS X support. Makefiles still need modifications.
Almost all test applications run out of the box (->Makefile). See more
information in README.mac .

Changes:
- message handling
- access to opaque port structures
- image, bitmap, pixmap support
- most OpenGL stuff
- window styles


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1812 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-06 00:17:47 +00:00
Matthias Melcher
1977f13908 Updated Win32 MS-VisualC Workspace to run FLTK "out of the box":
Donload the archive, unpack, start VisualC and press F5 to compile
and run the demo and all other test programs... .

browser: wouldn't find sample file
CubeView: calls fluid in custom build step, unintialised position
fast_slow: build calls fluid
forms: added plastic buttons (cute)
inactive: build calls fluid
keyboard: build calls fluid, added mousewheel
mandelbrot: build calls fluid
resize: build calls fluid
radio: build calls fluid
shiny: build calls fluid
tabs: build calls fluid
valuators: build calls fluid, tiny scrollbar bug
demo: debug on VC finds correct menu file


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-12-01 01:54:30 +00:00
Michael R Sweet
83df36c2de Clean all GL demos with a "make clean".
Don't need -lgdi32 anymore for CygWin.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 22:22:08 +00:00
Michael R Sweet
249f06e077 Require autoconf 2.13 or newer.
Remove unnecessary .fl -> .exe rule (was commented out)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1790 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 21:50:05 +00:00
Michael R Sweet
28ac8f1c6c Add cast for Fl_Pixmap constructor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1789 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 21:49:00 +00:00
Michael R Sweet
bc925b34c3 Tweek makeinclude.in so that we build from .o files instead of .cxx -> .exe
Same for .fl -> .exe in test/Makefile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 21:24:49 +00:00
Michael R Sweet
09daf20b81 Documentation updates galore (up to chapter 7, still need to do chapter
8 and 9, tweek the appendices, and recapture the screenshots...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 19:24:00 +00:00
Michael R Sweet
b105ab8b7f Update tile image...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1784 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 01:59:48 +00:00
Michael R Sweet
4b23d4c6d5 VC++ fixes, plus add new tiled_image project file.
Use the plastic box type for the tiled_image demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1783 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-29 00:24:43 +00:00
Michael R Sweet
79d6a32be9 Add new plastic box types (kindof a shiny translucent box type...)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 21:37:35 +00:00
Michael R Sweet
313a2430ea Add tiled_image demo to menu file.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 21:08:07 +00:00
Michael R Sweet
691e338071 Add check for window callback getting called...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-28 13:46:34 +00:00
Michael R Sweet
2b85bf8168 Preliminary commit of my MacOS X work.
**** THIS CODE COMPILES BUT DOES NOT WORK. ****

TODO: fix event handling - getting blank windows, etc.
TODO: re-port OpenGL code.
TODO: add support for images with alpha.
TODO: add support for more then just beeps in fl_beep().
TODO: other stuff I'm sure...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-27 17:44:08 +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
b650366d80 Added XBM, XPM, and PNM image file classes.
The pixmap_browser demo now supports all image formats via Fl_Shared_Image.

Dropped image file stuff from image demo.

Added Fl_Tiled_Image class, which tiles an Fl_Image, useful for tiling a
background image in groups.

Added tiled_image demo.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-24 18:07:58 +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
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
1acc39c5d8 OK, lots of changes to the Fl_Image, Fl_Bitmap, Fl_Pixmap, and Fl_RGB_Image
classes: new copy(), copy(w,h), desaturate(), color_average(), and
inactive() methods, alloc_xyz member for copied data, etc.

Updated test programs to use inactive() and copy() methods to create
inactive images for the test buttons, plus the inactive button to toggle
it...

Added start of separate image classes, a la 2.0, for various image formats.
FLUID will also be updated for it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1703 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-19 01:06:45 +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
ab1e093308 Don't use -lsupc++ with gcc 2.96; just tried it on RH 7.2 and that
library isn't present or needed.

PNG image support updates for Fl_Help_View and Fl_File_Icon; didn't
handle transparency properly.

Support KDE 2.x icons.

Separate image/load_system_icons code from main Fl_File_Icon sources,
so that apps that don't use load_system_icons() won't need the image
libraries...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-17 15:27:15 +00:00
Michael R Sweet
18caedc1c5 Removed the "Microsoft" button from the menu demo.
Added a number check for the browser demo, and changed the input field
to an Int_Input widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1675 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-11-02 20:38: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
a00b52a676 Wasn't quoting @label stuff...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-27 16:38:36 +00:00
Michael R Sweet
a6ffe9abc0 Fix the editor demo and associated documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-10-18 19:21:45 +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
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
9a528400f0 Doco updates.
Add directory-only support to Fl_FileBrowser.

Update button and menu drawing code for check and radio buttons.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-04 13:13:29 +00:00
Michael R Sweet
bc3de1ec15 Fix label/image problems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-09-02 11:23:27 +00:00
Michael R Sweet
45010ee2fe Include config.h in Fl_FileBrowser.cxx.
Remove Fl::enable_symbols() from resizebox.cxx.

Update fl_draw() to support symbols at the beginning and end of the
label (for double symbols on either end, e.g. "@< Bla@>")

Update fl_measure() to understand symbols and add them to the
measurement.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-06 15:19:20 +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
208cf399a6 OpenGL demos didn't get built because the "include" was after the
"all" target...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-05 16:28:03 +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
03b112773d File chooser cleanup (use fl_ok and fl_cancel for translated label
strings)

Remove fl_file_chooser_cb() function, which is not needed with the
new Fl_FileChooser dialog and related widgets.

List directories first, in boldface.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-03 18:46:57 +00:00
Michael R Sweet
0771e7cc7d Update WIN32 projects and config file.
Fix sign of Fl::e_dy to match screen coordinate directions under WIN32.

Note: tooltips not working under WIN32...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-03 02:28:32 +00:00
Michael R Sweet
85533d11be Fix mouse wheel stuff for browser and helpview widgets (move 3 lines at
a time...)

Fl_Group::handle() now sends unknown events to the focus widget first,
then to any other child that will take it...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 21:11:43 +00:00
Michael R Sweet
2d3fd88eeb More mouse wheel stuff (as compatible as possible with the 2.0 code...)
Updated the makefile to use config.status --recheck before calling
config.status (why they can't provide one that does both, I don't
know...)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 20:09:25 +00:00
Michael R Sweet
9d81d971f7 Fl_HelpDialog and Fl_HelpView widgets.
"help" demo.

Minor doco updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 19:43:49 +00:00
Michael R Sweet
58b0f306be Don't build OpenGL demos if OpenGL is not available or disabled.
Fix depend rule for src directory (wasn't doing OpenGL files)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-02 18:15:44 +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
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
bd06913057 First bunch of changes for the 1.1 branch - tooltips.
NOTE: looking into a problem with the tooltip not going away when
you ESCape a window (close it)...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-01 21:24:49 +00:00
No Author
3cb5ebe0e8 This commit was manufactured by cvs2svn to create branch 'branch-1.1'.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-08-01 21:24:49 +00:00
Bill Spitzak
38c947bd09 Compiling with -DBOXX_BUGS will work around some problems with the newest
X drivers that BoXX delivers, the problems all affect use of Overlays for
normal X drawing and OpenGL drawing. Normal compilation is unchanged.

The file chooser buttons use user_data() rather than the label to decide
what to do, allowing the label to be somewhat cleaner.

Selection color on X changed to blue, to match what happens on Windows now.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-05-05 23:39:01 +00:00
Michael R Sweet
09f987eeb1 Separate test for GLU and GL...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1449 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-30 17:17:01 +00:00
Michael R Sweet
d3afe9c10a Don't use GCC c++ or g++ compiler to build programs, use gcc instead.
Some more anti-warning stuff...

Added --disable-gl option to disable OpenGL support + check.

Added code to stop the configuration if X11 could not be found.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-25 13:34:43 +00:00
Michael R Sweet
804317fd5e OS/2 fix, mirror from 2.0 tree.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-04-24 19:43:18 +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
Bill Spitzak
1ede363769 The fractals & glpuzzle demos needed glu.h.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-14 17:35:47 +00:00
Bill Spitzak
97234fb3e2 Replaced remaining _WIN32 symbols with WIN32
Stuff from work:

Removed reference to unused GL/glu.h header file, which is missing on
some Linux systems.

Fl_Gl_Window has a new method to allow you to get and set the context:

  void Fl_Gl_Window::context(void*, int destroy = 0)
  void* Fl_Gl_Window::context() const;

  Return or set a pointer to the GLContext that this window is
  using. This is a system-dependent structure, but it is portable to
  copy the context from one window to another. You can also set it to
  NULL, which will force FLTK to recreate the context the next time
  make_current() is called, this is useful for getting around bugs in
  OpenGL implementations.

  If destroy_flag is true the context will be destroyed by fltk when
  the window is destroyed, or when the mode() is changed, or the next
  time context(x) is called.

Some cleanup of Fl_Gl_Choice to move most of the system dependent
#ifdefs into Fl_Gl_Choice.cxx.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2001-03-14 17:20:02 +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
Michael R Sweet
0d0b066230 Added tests to browser to test top/bottom/middle/make_visible methods.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-12-08 15:44:24 +00:00
Bill Spitzak
2cbf4041b3 Does not clear Fl::keysym on every event, this makes better back compatability and fixes Win2000
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-10-21 20:01:56 +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
797d78d86c Shortcuts for "buttons" in a Fl_Menu_Bar work again.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-30 00:31:44 +00:00
Bill Spitzak
ba1d83cf47 Shortcuts for submenu titles in a menubar pop up the submenu (rather than calling the callback)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-07-11 05:36:39 +00:00
Michael R Sweet
6051ce753a Updates for Mingw and Cygnus builds.
Added README.win32 file for WIN32-specific issues.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-13 20:33:36 +00:00
Bill Spitzak
483c894a32 Added return type to main() in line_style.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1181 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-08 07:50:23 +00:00
Michael R Sweet
f87393aaa1 OK, now version 1.0.9
Updated email addresses to point to fltk.org domain...

Updated README and CHANGES files accordingly.

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

documentation/Makefile wasn't including makeinclude.

Updated FLUID about window to show version 1.0.9.


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


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-06-03 12:04:12 +00:00
Bill Spitzak
d5b47034a7 Added Fl::first_window(window) to change which window is at the top of
the window list.  This window is used as the "parent" of any modal
windows you create so it is a good idea to be able to change it.
Normally it is whatever window got the last event.

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

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

Fixed the documentation for these changes.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1117 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-05-13 20:03:20 +00:00
Michael R Sweet
5d7d40fd35 Dropped use of -fomit-frame-pointer, as I've just discovered that it
prevents the use of libsafe.  Also, the code size savings are negligable
(96 bytes for FLUID)

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

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


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-27 00:17:54 +00:00
Michael R Sweet
4b561b6e90 Updated copyright notices for all of the 1.0.x files.
Updated the configure script for *BSD and GCC 2.95 (-fno-exceptions)

Added install rule to documentation directory.

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

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

Whew!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-25 22:17:00 +00:00
Bill Spitzak
ffd26dfc45 I made FL_NORMAL_SIZE into a public int variable. You can now change it
before any widgets are created, in order to change the default size of
the fonts used.  The most useful thing that can be done is to set it to
12 so that the default font size matches Win32.

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

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

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


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1062 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-11 08:11:56 +00:00
Bill Spitzak
328a8f8f0d Fixes for Cygwin POSIX emulation layer from Norman Vine.
Requires the symbol __CYGWIN__ to be defined, appears to disable the
special meaning of backslash and colon in file names.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1056 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-04-04 17:57:05 +00:00
Bill Spitzak
fafc3286cd Pageup/down by correct amount in scrollbar
Handles minimum size of slider in scrollbar when deciding whether to
page up/dwon.

Code from Matt Morrise so that shift+click extends the selection in
the browser (ctrl+click remains for toggling the current item).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@990 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-20 06:14:34 +00:00
Bill Spitzak
685d58c497 Buttons on scrollbars draw pushed in (fix from barrero@irit.fr)
Fl_Menu_::remove(int i) will remove an entire submenu if i is the
index of the menu title.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@985 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-16 04:30:39 +00:00
Bill Spitzak
d43eac1e38 Programs can now resize() their windows even if they are not resizable()
on X (this already worked on Win32).
Changed the resize demo program to test this.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@981 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2000-01-11 08:20:02 +00:00
Bill Spitzak
a7904da09a I fixed Fl_Tabs so that child tabs can be added/removed without any
concern if they are selected, it uses the first visible() child to
indicate the selected tab.

Fixed up rather bogus fix for selecting entire text field when you click
on it.  This new version does not do it for multi-line and does not
mess up the middle-mouse paste action.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-10-15 09:01:48 +00:00
Michael R Sweet
eed1f2a359 Fixed compile error with gcc 2.95 - the "d" string needed to be cast to
(void *) in both menus...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-08-09 14:38:40 +00:00
Bill Spitzak
f7e0e7627f Can draw xpm pixmaps with spaces in the color names (such as the ones in
/usr/X11/include/X11/icons).
Esc closes the modal window, not the window the cursor is in, if a modal
window is up.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-27 17:24:14 +00:00
Bill Spitzak
df045b0e36 FL_KEYBOARD events have the correct x/y when sent to child X windows.
Notice that if you worked around this bug by adjusting the x/y yourself
you will have to change your code.

In addition all events have the correct x/y when sent to the grab()
widget.  And the code to do all this was simplified a lot.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-07-22 21:37:04 +00:00
Bill Spitzak
f7c57a3730 Replaced remaining malloc.h's with stdlib.h
Added ctype.h to win32 file
Patch for Fl_Browser_ looping indefinately


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-06-07 07:03:34 +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
Bill Spitzak
7becff3f2c Redid Carl's fix to fast_slow (making it be output widgets rather
than inactive).  Not sure why his patch did not take...


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-05-06 06:21:53 +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
Bill Spitzak
add808d7c2 Changes to Fl_Menu_::add() so that you should be able to add to any menu,
including one that was set with menu().  It copies the static menu if
necessary and keeps track of the size of the menu so it can reallocate
the array exactly when necessary.

This should make modifying the items in a menu much more predictable and
usefule.

I don't know if these changes will go cleanly into 2.0.  Probably not.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-19 07:01:24 +00:00
Bill Spitzak
0e29799dda Fl::add_fd() structures are dynamically allocated so you can listen to
as many connections as you want (up to the maximum number handled by
select()).

Fl::remove_fd(fd, when) added.  This allows you to remove the read,
write, and error callbacks individually.  Fl::remove_fd(fd) does
Fl::remove_fd(fd,-1).

Fl::add_fd() calls Fl::remove_fd(), so it can be used safely to
replace callbacks with new ones for the same file descriptor.

Fl::add_timeout() also dynamically allocates it's array so there is no
limit on the number of pending timeouts.

I cut/pasted the changes into the Windoze version but this is
UNTESTED!  Somebody please do a test compile.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-17 01:02:30 +00:00
Carl E. Thompson
69302ebb67 Fixes this demo (got broken somewhere...)
-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-04-08 19:20:49 +00:00
Bill Spitzak
db2a9d49ce Changed the valuators demo so only one copy of the callback code is
generated.  This also demonstrates a second function put into fluid.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-26 08:42:00 +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
Michael R Sweet
7b19ba41ae Added gluDeleteQuadric() call to avoid memory leak.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-25 13:37:00 +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
Michael R Sweet
2b4b055204 Updated not to use v3f() macro.
No longer use glColor4ub(), as 1) Sun's compilers have trouble with their
own headers with this (glColor4ub is a macro, a VERY bad thing to do!), and
2) it's an OpenGL 1.1 feature, and not all platforms support it.

Also optimized the QUAD and LINE primitives.


git-svn-id: file:///fltk/svn/fltk/trunk@404 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 16:40:19 +00:00
Bill Spitzak
b6115887c8 Changes to dial so that counter-clockwise motion is supported if you
set angle2 < angle1.  Deleted the unimplemented direction() control.
Fixed the documentation, this new code allows any 2 values for the
angles as long as abs(a-b)<=360.


git-svn-id: file:///fltk/svn/fltk/trunk@399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 08:17:43 +00:00
Carl E. Thompson
f7e1ff7742 Changes Fl_Dial to use XForms defaults for angles
-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@397 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-10 00:13:52 +00:00
Carl E. Thompson
e42ff9a65c This adds support for the Fl_Dial::angles() method. This seems to work
correctly, but it is likely that someone who remembers their high school
math could make it _much_ more efficient (I just hacked away 'till it
worked).

-Carl


git-svn-id: file:///fltk/svn/fltk/trunk@376 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-08 21:44:32 +00:00
Michael R Sweet
9ae933d004 Fixed OpenGL checks (#if HAVE_GL, not #ifdef...), plus added message
that OpenGL is required...


git-svn-id: file:///fltk/svn/fltk/trunk@369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 20:26:00 +00:00
Michael R Sweet
474e82bd95 Added HAVE_GL check to CubeView demo code.
git-svn-id: file:///fltk/svn/fltk/trunk@368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 20:11:49 +00:00
Michael R Sweet
70dd4ee71e Missing "int" on main()...
git-svn-id: file:///fltk/svn/fltk/trunk@354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-03-04 13:39:41 +00:00
Bill Spitzak
f89b5d0cf6 Fixed glpuzzle so you can move the pieces.
Added commented-out line to fl_input that could maybe fix highlight confusion


git-svn-id: file:///fltk/svn/fltk/trunk@343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 20:05:30 +00:00
Bill Spitzak
82877b2eb6 Fix for Curtis so that the height of a title of a popup menu is not
affected by the height of the Fl_Menu_Button.


git-svn-id: file:///fltk/svn/fltk/trunk@340 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-25 19:09:11 +00:00
Michael R Sweet
6f61d8f239 Missing dependencies...
git-svn-id: file:///fltk/svn/fltk/trunk@324 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:52:17 +00:00
Michael R Sweet
fea9a2db45 Makefile didn't have a .cxx to .o rule.
git-svn-id: file:///fltk/svn/fltk/trunk@323 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:50:16 +00:00
Michael R Sweet
636b6de26d Added CubeView source files.
Added CubeView to the makefile and demo.menu.


git-svn-id: file:///fltk/svn/fltk/trunk@321 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:33:55 +00:00
Michael R Sweet
30e8153ef2 Updated dist to initialize to INT_MAX (2^31 - 1) instead of UINT_MAX
(2^32-1).


git-svn-id: file:///fltk/svn/fltk/trunk@317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:11:25 +00:00
Michael R Sweet
1bc5accffe Updated demo program to append d.exe or .exe to end of command name and
not the options...


git-svn-id: file:///fltk/svn/fltk/trunk@316 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-22 21:09:13 +00:00
Bill Spitzak
8009fef12c Put Fl::grab() into it's own source file. Rewritten as suggested so that
it takes a window pointer, and grab(0) releases.  You can now call grab
repeatedly with the same or different values without it failing.  The old
Fl::grab() and Fl::release() are emulated in inline functions in Fl.H

Added Fl_Menu_::copy(Fl_Menu_Item*), which will be useful for fluid, although
that use is nyi.

Fixes and cleanup to the code for Fl_Menu_::add(...).


git-svn-id: file:///fltk/svn/fltk/trunk@268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-02-03 08:43:35 +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
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
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
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
5ca8c1473d Removed demod.menu, added editor arguments...
git-svn-id: file:///fltk/svn/fltk/trunk@196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 17:24:37 +00:00
Michael R Sweet
8a535a2f5b Get rid of those damned DOS lines!
git-svn-id: file:///fltk/svn/fltk/trunk@195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 17:22:38 +00:00
Michael R Sweet
268771388c Dammit, who put that DOS file in here...
git-svn-id: file:///fltk/svn/fltk/trunk@193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-07 16:58:26 +00:00
Michael R Sweet
b148ef28d5 Fix from Bill - updated fonts demo to handle >255 fonts.
git-svn-id: file:///fltk/svn/fltk/trunk@182 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:27:48 +00:00
Michael R Sweet
b95db33f2c Lots of changes:
- Added #defines for Visual C++ to speed up compiles.
    - Added FLTK.DLL project to visualc directory.
    - Added editor project to visualc directory.
    - Added icon() method to Fl_Window class.
    - Implemented xclass() method for WIN32.
    - Fixed extern declaration of fl_send_extra_move in Fl_Menu_Window.cxx.
    - scandir_win32.c needed to include <stdlib.h>.
    - Added fix from Bill for fl_width() bug.
    - Updated fix for Fl_Input to default to FL_DOWN_BOX.
    - Added visible() check for children of Fl_Pack.
    - Added WinMain() function to library.
    - Now show console window in debug mode.
    - Fixed demo.menu and demo.cxx to work under WIN32.


git-svn-id: file:///fltk/svn/fltk/trunk@180 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1999-01-04 19:25:40 +00:00
Michael R Sweet
cbd4a28132 Update glpuzzle demo to work with two button mice.
git-svn-id: file:///fltk/svn/fltk/trunk@169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-29 13:34:35 +00:00
Michael R Sweet
06113fb95e Added new editor example application.
git-svn-id: file:///fltk/svn/fltk/trunk@168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-23 20:04:31 +00:00
Michael R Sweet
5e2f2d6c51 Mandelbrot demo fix from Bill - was crashing when the Julia set was opened.
git-svn-id: file:///fltk/svn/fltk/trunk@153 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:06:54 +00:00
Michael R Sweet
d3fb66b4dd OpenGL patches from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@152 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-08 21:04:40 +00:00
Michael R Sweet
1f4f3b00b1 OS/2 changes.
git-svn-id: file:///fltk/svn/fltk/trunk@142 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:41:56 +00:00
Michael R Sweet
88559817dd Updated Fluid files for new extensions.
git-svn-id: file:///fltk/svn/fltk/trunk@138 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-07 13:22:00 +00:00
Michael R Sweet
e449a77e75 More filename changes...
git-svn-id: file:///fltk/svn/fltk/trunk@137 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:57:05 +00:00
Michael R Sweet
f68b51a3f7 Fixed an #include...
git-svn-id: file:///fltk/svn/fltk/trunk@134 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-06 15:46:13 +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
e4c69fd44a Updated demo menu file (no more style demo).
git-svn-id: file:///fltk/svn/fltk/trunk@120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 18:24:50 +00:00
Michael R Sweet
fade037edb Fixed color - 2000 instead of 200.
git-svn-id: file:///fltk/svn/fltk/trunk@119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 17:35:59 +00:00
Michael R Sweet
892664ca26 WIN32 RGB color fixes from Vincent.
git-svn-id: file:///fltk/svn/fltk/trunk@115 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 16:04:03 +00:00
Michael R Sweet
2af9c8eba6 Fix for demo program to replace extension instead of append (from Bill).
git-svn-id: file:///fltk/svn/fltk/trunk@110 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:52:41 +00:00
Michael R Sweet
849e11623e Changes from Carl to get rid of default_ variables...
git-svn-id: file:///fltk/svn/fltk/trunk@106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-12-02 15:39:39 +00:00
Michael R Sweet
6af4ec1d7c Navigation demo has two "i" variables - fix from Hughes Talbot.
git-svn-id: file:///fltk/svn/fltk/trunk@88 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-12 14:17:48 +00:00
Michael R Sweet
a90ca2d60a Patches from Bill:
- Box type problems with 2-pixel boxes (wrong colors)
  - Fl_Pixmap fix (uchar instead of char)
  - Style demo fixes for Windows.
  - HPUX comparison function prototype wrong.
  - Spelling errors...


git-svn-id: file:///fltk/svn/fltk/trunk@70 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-11-08 15:05:48 +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
60399e3945 Fixed install targets...
git-svn-id: file:///fltk/svn/fltk/trunk@51 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 22:03:53 +00:00
Michael R Sweet
2f72d490c7 Added .fl to .exe rule...
git-svn-id: file:///fltk/svn/fltk/trunk@44 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 20:10:23 +00:00
Michael R Sweet
994243bfdd Converted all {} to ()...
git-svn-id: file:///fltk/svn/fltk/trunk@43 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 18:15:03 +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
23a2b82ace Updated makefile to build all fluid files as needed...
git-svn-id: file:///fltk/svn/fltk/trunk@36 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 17:15:44 +00:00
Michael R Sweet
f09acb16ff Updated depend command to use demo source files only.
git-svn-id: file:///fltk/svn/fltk/trunk@35 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 16:53:14 +00:00
Michael R Sweet
129726b91e Added depend rule to makefile.
git-svn-id: file:///fltk/svn/fltk/trunk@32 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 16:46:07 +00:00
Michael R Sweet
c839b0fd30 Added new version of mandelbrot demo from Bill Spitzak.
git-svn-id: file:///fltk/svn/fltk/trunk@31 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-21 16:35:18 +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
8606d7508c Added common heading and footer to all source files.
Updated README file.


git-svn-id: file:///fltk/svn/fltk/trunk@22 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-20 13:25:25 +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
45bb73a9bf Commited WIN32 patches from Bill Spitzak and Gustavo Hime.
git-svn-id: file:///fltk/svn/fltk/trunk@11 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-15 14:06:16 +00:00
Michael R Sweet
8b880adac6 Applied patches from Bill Spitzak.
Fixed line termination (lots-o-Windows CR+LF mixed in...)


git-svn-id: file:///fltk/svn/fltk/trunk@9 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
1998-10-06 19:18: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