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
Fabien Costantini
a6def7d9de
UTF8 nbsp detection before string expansion fixed: as explained, now the fl_expand_txt() main loop is utf8 multibyte char aware and should not confuse nbsp chars with utf8, even mixed with other CP125x code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-06 22:30:14 +00:00
Matthias Melcher
ebbb485040
Reverted to old Mac Keyboard handling until new code is functional on allMac versions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-06 20:19:00 +00:00
Fabien Costantini
c6b9818f4a
Got inspired from manolo STR#2067 proposal to fix OSX window title not utf8 aware, but generalized it so that all Fl_mac.cxx calls the same new q_set_window_title() function(). Now OSX Window shows UTF8 title correctly. old code is still present but factorized in the new q_set_window_title() function(BTW the Str255 truncation was omitted in one part of the old code), please review so that we can remove that old non-UTF8 aware code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6498 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-05 12:54:39 +00:00
Fabien Costantini
8094043bcb
Added fast utf8 string detection routine fl_is_valid_utf8(). Solves the drawing problem in #2080 related fl_expand_text() use. The particularity of this routine is that the complete scan is cached so that it executes 0 to 1 time in the fl_expand_text() loop. Now chinese example in str 2080 seems to works perfectly here. Still, incorrect windows title in Win32 need to be adressed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-05 01:55:17 +00:00
Albrecht Schlosser
a26fe4d320
Re-applying change to Makefile reverted by Fabien (STR 2063).
...
Although this may look strange for somebody, it is the correct fix for
the _current_ Makefile implementation, as discussed in fltk.development.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6496 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-04 08:16:50 +00:00
Fabien Costantini
28688e9b7b
corrected non cairo build targets and also fast_slow project not loading problem.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6495 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-03 00:21:15 +00:00
Fabien Costantini
28553f266f
Reverted las Makefile changes. This is not acceptable because any modification tyo xutf8 file must be achieved in corresponding xutf Makefile. So Instead of cleaning the file generated by xutf Makefile by src makefile, you have to do that in the xutf8 Makefile instead.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-02 11:25:51 +00:00
Albrecht Schlosser
962f924d04
make clean (and make distclean) now delete src/xutf/*.o
...
STR #2063
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6493 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-11-01 17:33:38 +00:00
Matthias Melcher
d67cb76d5a
Typo
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-31 16:47:01 +00:00
Matthias Melcher
2ecabfa676
Moved Fl_Preferences documentation to the correct places.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6490 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-31 16:30:07 +00:00
engelsman
13267ea186
added doxygen comments for more font/text functions in fl_draw.{H,cxx}
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-28 20:58:44 +00:00
engelsman
642d8e63fb
added more minor doxygen comments for fl_color.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-27 22:58:49 +00:00
Fabien Costantini
b2deb4b6f4
Fixed one typoe in configure.in, changed LINKFLTKCAIRO parameter passing in LINKSHARED.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-10-25 21:06:31 +00:00