Commit Graph

3450 Commits

Author SHA1 Message Date
yuri
f13defde28 add fl_draw(int angle, const char* ... functions for rotated text drawing
STR#1840 closed, STR#207 not closed because non-xft functions not implemented 

drawing of N Utf8 characters need correction for rotated and not rotated fl_draw functions not solved!


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6779 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-24 09:28:30 +00:00
yuri
ca3984892f fix generated manpages cleaning
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6778 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-24 09:20:17 +00:00
Matthias Melcher
813d295e8a Fixed Fl_Input_::index(int) to return a UCS4 character instead of a byte.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6777 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-23 15:32:19 +00:00
Greg Ercolano
a8fdff552b Added some needed comments to Fl_Help_View::format()
to help this developer get his bearings..



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-22 09:02:13 +00:00
Greg Ercolano
27a9be5f70 Applied patch from STR# 2144 to solve hotspot problem
with links inside <pre> text.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-22 08:45:15 +00:00
Greg Ercolano
6de77851fe unittests modified for Fl_Double_Window to prevent flicker.
Extension of r6772.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-22 07:57:35 +00:00
Albrecht Schlosser
eb70e46d2a Fixed gray scale w/alpha image drawing for Mac OS with Quartz (FLTK 1.1
with Quickdraw worked) in src/Fl_Images.cxx.

Changed test/unittest_images.cxx to use Fl_RGB_Image::draw() to draw images
with alpha channel, because  the current version of fl_draw_image()
supports alpha channels only on Mac. Tested on Windows[1], Linux, and Mac.

[1] Windows with GDI drawing doesn't work yet for gray+alpha (STR 2105).

To do: Check, if fl_draw_image() should support alpha channel images
on all platforms or not at all. The current documentation mentions only
RGB and gray scale images. IMHO the behavior is undefined for values of
abs(d) == 2 and abs(d) > 3. See also fl_draw_image_mono().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21 09:25:22 +00:00
Greg Ercolano
b475babf17 Most test demos converted to use Fl_Double_Window
to prevent flicker when new users run test/demo programs.

For details, see fltk.development thread started 04/16/09,
"Subject: browser demo flicker".




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-21 09:09:37 +00:00
Matthias Melcher
03ec459eb0 Removed extra \\c from the Doxygen documentation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6771 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-19 12:47:36 +00:00
Matthias Melcher
b1ba38da60 Updated doxygen docs for Fl_Input_ to get a greater insight into the code. I'll try to get full Unicode support in soon. The current code uses some interesting solutions ;-).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6770 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-18 18:52:59 +00:00
engelsman
78da588135 grouped similar functions and added summary information in unicode.dox
corrected mismatched parameter names and typos on fl_utf8.h and fl_utf8.cxx



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6769 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-18 11:51:32 +00:00
engelsman
982f297d33 added doxygen one-liners for more UTF-8 routines in fl_utf*.[hc]*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6768 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-17 17:03:49 +00:00
Albrecht Schlosser
28ddf2c341 STR 2185: Uncommented "// XCloseIM(xim_im); FIXME", as discussed in
STR 2185 and in fltk.development to prevent memory leak. The removed comment
about a crash in XFree86: _XlcCreateDefaultCharSet() appears to be outdated
(probably from 2005/2006).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6767 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-16 22:23:36 +00:00
engelsman
9029199cd8 added list of unicode and utf8 related functions to unicode.dox
this is the first stage in putting tutorial type info together.
next stage is to put the functions into related groups for explanation.

corrected minor typo in Fl.H



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-16 21:10:49 +00:00
Matthias Melcher
d3206f01ec More Fl_Input keyboard fixes / OS X transparency for RGBA data / some utf8 reorganisation
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-15 08:35:28 +00:00
Matthias Melcher
b214cef3a8 Implemented the full OS X navigation support for Fl_Input minus scrolling. Improved navigation on other systems (word fwd, backwd).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6764 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-14 08:18:52 +00:00
Albrecht Schlosser
32714c502c Modified fix for STR #2150, as discussed, and added Fl::pushed(0) in
innards() to prevent multiple popup dialogs from callbacks when dragging
valuators (STR #2159).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6763 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-13 22:47:21 +00:00
Matthias Melcher
90d4e65767 Added an arrow-key function lookup table for MSWindows vs. OS X to Fl_Text_Editor, waiting for implementation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-13 18:53:24 +00:00
Albrecht Schlosser
47b348850a Fixed make install for Windows/Cygwin with --enable-x11 (no symlinks)
(STR #2183).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6761 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-13 17:30:19 +00:00
Matthias Melcher
615b86bffc Boldly going where noone has gone before: I added utf8 in comments in the source code. Let's see how long that will survive ;-)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6760 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-13 11:32:58 +00:00
Matthias Melcher
c2e3704d6b Little rearrangement for readibility
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6758 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-13 07:32:01 +00:00
Matthias Melcher
ead9c2ce24 Avoiding crashes for recrsive common dialogs (this does not fix the issue at hand yet) (STR #1986, 2150) / Added menu shortcut alignment for OS X / Fixed bad system menu hadling in OS X (STR #2153) / Fixed File Input mouse pointer dragging (STR #2181)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6757 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-12 20:00:45 +00:00
Matthias Melcher
afe1b90dd0 Reorganized Unittest / fixed and improved OS X keybord support and alternative input methods / fixed OS X utf8 DnD
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6755 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-12 13:48:03 +00:00
Albrecht Schlosser
fcfe41ee05 Removed Fl_Clock::update() declaration, because there was no implementation.
There was no documentation for Fl_Clock::update() in FLTK 1.1.

FL/Fl_Clock.H:
  removed Fl_Clock::update() declaration and comments.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6754 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-12 11:32:22 +00:00
Albrecht Schlosser
d056119310 Reworded description of calling the virtual draw() method for embedded
widgets in FL/Fl_Widget.H, as discussed in fltk.development, with an
additional hint that draw() is virtual.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6753 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-12 09:40:59 +00:00
engelsman
d1593df45b fleshed out the background information in unicode.dox
added more info and links on the Unicode Standard, ISO 10646, and UTF-8.
added bullet points about what FLTK will and won't do.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6752 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-11 20:46:06 +00:00
engelsman
01a6e197c2 removed dead html anchors, and minor rewording, in advanced.dox
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6751 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-11 08:23:23 +00:00
engelsman
94a0f57bfa removed dead html anchors from, and improved layout of, fluid.dox
added a lot of \par commands to get indented paragraphs for the
reference section, basically because the paragraph titles stand
out more than the \subsection titles. Do we need to rethink this?



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6750 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-10 19:28:55 +00:00
engelsman
20775caf08 converted html tags to doxygen commands in opengl.dox
also corrected function signatures in opengl.dox
added doxygen comments to FL/gl.h, src/gl_start.cxx, src/gl_draw.cxx



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6749 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-09 20:44:31 +00:00
engelsman
8dd0abe3f2 converted more html tags to doxygen commands in subclassing.dox
removed a lot of old html name anchors (unused, or superseded by \ref)
added draw_childred() text
corrected signatures for draw_child(), draw_outside_label(), update_child()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-09 19:00:16 +00:00
engelsman
08d9455858 suppress spurious doxygen hyperlink to file:// in events.dox
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-09 17:25:55 +00:00
Albrecht Schlosser
fee0004a53 fix documentation of draw().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-09 07:56:47 +00:00
Albrecht Schlosser
c1def658ed another update for image handling in Fl_Help_View
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-07 18:33:47 +00:00
Albrecht Schlosser
20132902af Fix image handling in Fl_Help_View (STR #2163 and STR #2004).
src/Fl_Help_View.cxx:

This fix is the first step and compatible with FLTK 1.1 (keeping the ABI).
The next step should be to manage the loaded images in an own structure,
because we must know exactly, when to release() the images. The previous
version would release images too many times and could release shared
images that had been loaded by another part of the program (maybe even
another Fl_Help_View widget).

FL/Fl_Help_View.H:

Doxygen comments improved.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6743 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-07 17:33:22 +00:00
Albrecht Schlosser
6534c6675a STR #2184: bug in Fl_Help_Viewer font stack
src/Fl_Help_View.cxx:
  removed double pushfont() for color changes

FL/Fl_Help_View.H:
  fixed Fl_Help_Font_Stack::pop() to set the correct font


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-03 07:31:51 +00:00
Greg Ercolano
37c833ba1f Fl_Help_View mods for scrollbar sizing
1) Introduced new scrollbar_size() methods with global fallback behavior
	2) Added int scrollbar_size_ 
	3) Mods to code to make use of the above
	4) Doxygen docs for the above



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02 22:02:19 +00:00
Greg Ercolano
efdf1c1774 Undoing changes made in r6738.. someone checked in my code for me ;)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6739 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02 08:53:39 +00:00
Greg Ercolano
dc0b3af663 Rework of the unittests.cxx program, as per discussions
in fltk.dev:

	Subject: New unittest app suggestion -- RFC



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6738 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02 08:18:24 +00:00
Greg Ercolano
bb20a128f2 Fl_Browser mods for scrollbar sizing
1) Moved Fl::scrollbar_size() implementation from Fl_Browser_ to Fl::

	2) Modified Fl_Browser as per fltk.dev discussions:

		* Deprecate Fl_Browser scrollbar_width() method
		* Introduce Fl_Browser scrollbar_size() method with global fallback behavior
		* Docs for above

Todo: Make similar changes to other scrollbar oriented widgets



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6737 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02 06:44:34 +00:00
Greg Ercolano
eb6b632b0a Brace and indent mods for readability..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6736 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-02 01:19:25 +00:00
engelsman
8bb63644d2 converted more html tags to doxygen commands in drawing.dox
most of the function names used as indented paragraph titles
are now recognised properly and are shown as links. However,
I was forced to "downgrade" many function() references in the
text so that the unwary user isn't unexpectedly teleported off
the tutorial pages. It reduces the link spaghetti a lot,

tweaked Enumerations.H and fl_draw.cxx to get doxygen to recognise
more function names used in drawing.dox. only fl_scroll(...)
and the offscreen drawing functions still needed for drawing.dox



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6735 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-01 22:11:57 +00:00
engelsman
c34d7585ee minor formatting tweaks to documentation/src/editor.dox
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6734 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-01 16:24:51 +00:00
Albrecht Schlosser
509ac7e176 Reverted removal of #include <stdio.h>, because it _is_ needed.
It was removed in r 6682 (STR #2173).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-01 14:10:58 +00:00
Albrecht Schlosser
f4de1317c3 Added "Rendering and measuring of non-utf8-conforming text"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6732 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-01 07:21:34 +00:00
Greg Ercolano
345501a1dd Added Mike's suggestion for more const correctness;
const char * -> const char * const



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6731 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-31 22:41:10 +00:00
Greg Ercolano
b6cf0250b6 Made the char* arrays 'const' to prevent compiler warnings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6730 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-31 17:00:35 +00:00
engelsman
12318a5d25 started changing html href calls to doxygen \ref commands
in basics.dox, common.dox and drawing.dox, and other cleaning up



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6729 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-30 20:41:22 +00:00
engelsman
165eed565c updated document conventions for doxygen recognised entities,
removed links to class/function reference from index/preface



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-28 16:40:06 +00:00
engelsman
88a23466e3 fluid: fix erroneous declaration of user-defined static function (STR #2011)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-27 20:05:03 +00:00
Greg Ercolano
f91d962536 Doxgen mods for Fl_Browser*:
o Added \see for all methods that seemed to need it
	o Fix to has_scroll() enum docs as per Albrecht's comments
	o Other small doc tweaks



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6726 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-27 16:52:31 +00:00