Commit Graph

3450 Commits

Author SHA1 Message Date
Albrecht Schlosser
eaf604b4ed Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 17:15:26 +00:00
Albrecht Schlosser
2bd4572918 Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 17:01:55 +00:00
Albrecht Schlosser
357ad96233 Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 16:16:11 +00:00
Albrecht Schlosser
b856328f1f Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 15:46:43 +00:00
Albrecht Schlosser
e9aa104676 Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6559 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 15:00:44 +00:00
Albrecht Schlosser
8a6a945505 Fixed typos and amended doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 14:48:11 +00:00
Albrecht Schlosser
609f519533 Fixed documentation dependencies and changed Doxybook (for latex/pdf gen.)
to _not_ generate the html files.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 13:35:10 +00:00
Albrecht Schlosser
a96dec61e1 Correct previous mod. of index.dox (function ref. was okay).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 13:01:51 +00:00
Albrecht Schlosser
c1a9019f1c Fixed some typos in src/fl_rect.cxx (doxygen comments).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 12:22:39 +00:00
Albrecht Schlosser
9d67f8a624 Fixed broken (html) links on documentation index page.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 11:45:25 +00:00
Albrecht Schlosser
fbe92ea113 Fixed a problem with TrackMouseEvent() (Windows only) that would
generate wrong FL_LEAVE events with subwindows. TrackMouseEvent
is now enabled by default (it was disabled for GNU compilers).
It can be disabled by defining NO_TRACK_MOUSE.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-07 10:53:07 +00:00
Albrecht Schlosser
fbea5019fb Replaced all occurrences of the deprecated fl_clip() function by
fl_push_clip().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 14:59:52 +00:00
Albrecht Schlosser
e907ce4a11 STR 2079, part 1: Improved test/subwindow.cxx
- removed confusing character output (define DEBUG_POS for testing)
- included FL/names.h instead of hand-made eventnames array
- added more input widgets for better dnd and focus testing


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 13:02:49 +00:00
Fabien Costantini
0906d230ed STR#2030 increment 3: moved not up-to-date ms vc 2003 project filesto ide/unsupported subdir, added a README.MS file explaining what to do if we find a developer to update them.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6549 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 11:32:32 +00:00
Fabien Costantini
2472d11234 STR#2030 increment 2: moved not up-to-date borland ide files to ide/unsupported, added a README.BC file explaining what to do if we find a brave developer to update them.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6548 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 11:19:08 +00:00
Fabien Costantini
242d8740db Reverted other STR fix as it is not fully working yet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 11:04:37 +00:00
Fabien Costantini
59b32aa684 STR#2030 first increment: Added an unsupported directory to ide dir.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-06 11:02:03 +00:00
Fabien Costantini
655f7c41a2 Added functionalities to the radio (Button) test program so that we can use it as a more complete test case:
+ Added shortcuts
  + Added Tooltips to help user understand what differs in each example
  + Added a button callback and a text output to visualize it in the demo
  + Added a Normal button with a changed state as we did not test that before
This is going to be immediately useful for STR#2026 review and fix.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-05 14:59:10 +00:00
Albrecht Schlosser
abfba16040 STR 2101: Temporary fix to prevent crash. Also corrected code indentation.
ToDo: The correct fix would need more code changes and is under investigation.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6543 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-05 13:48:26 +00:00
Fabien Costantini
60335167b2 + Fixed non standard fltk utf8 files headers.
Kept original author and copyright.
  Added standard fltk LGPL header notice

+ Added missing comment to fl_width() related to latest utf8 STR#2086 related fix in r6539 and r6540.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-04 20:20:30 +00:00
Fabien Costantini
5182f58f01 STR#2086: one line was missing from latest fix, so hWnd was always null, sorry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6541 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-04 17:45:50 +00:00
Fabien Costantini
899184656a STR#2086 related Fixes :
This one was really tough to track, understand:
In fact, 
the problem was comming from the misplacement of the menu window,
which itself came from invalid measurement,
which itself came from invalid fl_witdh() measurement,
but only when fl_gc is not valid because fl_width() relies on Win32 on the call
of GetTextExtentPoint32W which can't succeed if the HDC(here fl_gc) is not valid !

Now the fix:
A best-effort algorithm has been furthered to supply a valid fltk hdc if we can have one or a screen hdc if no fltk window is found by fl::first_window().

Note that when fl_gc is NULL inside fl_width() call, it can happen that Fl_Window::current() is not null but invalid (already deleted).
Finally, in the case of the buggy menu window observed here, this  fl_gc was set to NULL just after an Fl_Menu_Window deletion and re-creation in Fl_Menu_Item::pulldown().

Also added a comment to describe the new fl_width() behavior.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6540 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-04 17:33:30 +00:00
Fabien Costantini
73a2fa5b99 Doxygen documentation:
- Fixed recent documentation update problems in fl_draw.cxx : \ and @ char must be doubled otherwise interpreted as doxygen keywords
- Fixed some doxygenized parameters problems in Fl_Preferences.cxx
- Added the treeview mode, now featuring a vertical left tree browser in html doc
- Splitted html configuration file from pdf configuration file, now a new Doxybook config file permits to customize independtly both html and pdf modes without risking side effects and also without assuming an fltk user will have the Tex tools installed to generate the html doc. Now only pdf generation will need LaTex tools.
- Updated the doxygen based documentation to revison 9 and added new significant contributors to index.dox in alphabetical order.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-03 01:02:10 +00:00
Fabien Costantini
ceda51cc79 - Added a README.IDE file under the ide subdirectory describing what project dir to start from depending on the ide product.
Supported up-to-date ide environments should be placed under the ide directory,
other broken ide should be moved to an ide/unsupported subdir at least for now.

- Updated the README file consequently, also replaced the contributors list by a reference to the CREDITS file.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6538 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-02 23:52:57 +00:00
Fabien Costantini
9225a43f9f Corrected new documentation local (build) path so that index.html can be found in test programs when no env variable is set. Added svn:ignore filters to test and lib subdirs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-02 13:19:13 +00:00
Albrecht Schlosser
0f13d6eff2 Applying a correction requested by Ian:
"The problem is line 237, the "unsigned len" declaration is potentially
crossed by the preceeding goto (line 234) so some compilers don't like
that..."

Tested okay on cygwin with gcc 3.4.4.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-02 11:10:03 +00:00
Ian MacArthur
8d4bff7545 STR #2076 redux: Make the Win32 variant only load GetGlyphIndicesW at runtime, so that the fl_text_extents code will still work on WinNT and other early systems.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-12-01 21:01:58 +00:00
Ian MacArthur
cfc5853ae7 STR #2076 - fix typos in fl_font_x.cxx. Basically I am an idiot and had checked in the wrong version. Sorry.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-30 18:46:50 +00:00
Ian MacArthur
17e38137d8 STR #2093 - fix typo (name case) FCNTL.H should be fcntl.h, affecting some mingw builds
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6532 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-29 17:06:31 +00:00
Albrecht Schlosser
1d571c3054 STR 2096: Fixed a regression introduced by making Fl_Widget::hide()
virtual (svn -r 6502, STR #396): Windows closed, if minimized.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6531 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-28 09:06:08 +00:00
Ian MacArthur
994c1d82a2 STR #2097 - attempt to workaround fl_round_box not honouring colors passwed to it from fl_rgb_color(...) calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6530 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-27 20:43:27 +00:00
Ian MacArthur
865f3d8e61 STR 2076: experimental fl_text_extents patch applied. Please feedback comments.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-19 20:34:27 +00:00
Albrecht Schlosser
9c7af9b2cf Added missing dependency (COMCTRL32.LIB) to documentation/src/basics.dox
(reported in fltk.general).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-16 19:44:58 +00:00
Ian MacArthur
b04d48d2fa STR 2089: Adjust configure.in so that thread support defaults to ON in win32 configure, as it does for other platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6526 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-14 17:22:08 +00:00
Ian MacArthur
cbfba6feca STR 1948: fix glutIdleFunc so that it does not use the deprecated Fl::set_idle method, and does not interact harmfully with other Fl::add/remove_idle() functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6525 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-13 19:42:45 +00:00
Fabien Costantini
ba2ed82028 Removed configure.in comma at the end of -lz statement.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-12 23:48:01 +00:00
Fabien Costantini
61f3f77673 Removed configure.in comma at the end of -ljpeg statement causing pb under linux.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6523 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-12 23:43:48 +00:00
Fabien Costantini
3373fe3c7d Removed unnecessary jpeg flag in configure.in. Fixed erroneous jpeg.h by jpeglib.h
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-12 17:18:06 +00:00
Fabien Costantini
e458232cc1 Generalized latest PNG configuration configure code to jpeg and zilb. Also warning user now if he asked for system lib (jpeg,z,png) that is not found. Seems to work fine under OSX, please review.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6519 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-12 12:48:51 +00:00
Fabien Costantini
29ff9d8936 Reverted my own modified test/Makefile for more utf9 test because it is not finished yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 22:08:30 +00:00
Fabien Costantini
250090b3f0 More optimisation and cleanup for the PNG lib handling in configure.in. Also reordered the variables the same way in the main if test code so that differences now are obvious between the two modes
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6515 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 22:03:55 +00:00
Albrecht Schlosser
6c279f9909 Test the system png lib and headers only, if --enable-localpng is _not_ set.
Commented out an obsolete statement.
Added a check for png_get_valid, if using the system lib.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6513 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 21:05:22 +00:00
Fabien Costantini
9481db94d9 Now we finally can check as well if a correct PNG header was found, if it is not the case or the lib is not found, then syslib will be updated adequately. Reused latest Al AC_CHECK_HEADER() and included them from the begining in the syslib_ok test. Tested with default,disable,enable png.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 20:11:36 +00:00
Albrecht Schlosser
04f6740b35 Added header checks for png image library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 18:21:38 +00:00
Fabien Costantini
c2d5dd32b5 Fixes the configure problem when the png option is not specified.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6509 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-10 17:22:14 +00:00
Fabien Costantini
5dfe62a97b Fixed broken png image include.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-09 21:05:52 +00:00
Ian MacArthur
f61a8993d5 STR 1949 - revise configure.in to cerrectly detect png_set_tRNS_to_alpha
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-09 13:15:05 +00:00
Fabien Costantini
4ec0d5c005 Updated CHANGES for reflecting non polymorph behavior with hide() show(), fixes STR#396
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-06 23:32:16 +00:00
Fabien Costantini
383a1f5f22 Fixe #396 : non consistent hide and show behavior in Fl_Widget vs Fl_Window. As suggested by mike, now hide and show are virtual from Fl_Widget, as it breaks the abi, it has to be done before we release 1.3, last chance before 1.4 ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-06 23:24:38 +00:00
Fabien Costantini
8878c68256 Doxygenized fl_expand_text() comment, more minor code comment and debug printf cleanup.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-06 22:36:01 +00:00