Commit Graph

615 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
Greg Ercolano
f414a50dd2 o Major mods to Fl_Browser_.{cxx.H}'s doxygen docs
o Small mods to Fl_Browser.{cxx,H}'s doxygen docs
	o FL_SORT_ASC/DESC -> FL_SORT_ASCENDING/DESCENDING (includes necessary mod to test/browser.cxx demo)

	TODO: Fl_Browser needs new '\see Related methods: ' that was initiated in Fl_Browser_



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6720 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-25 23:09:04 +00:00
Fabien Costantini
15489bda1b Major documentation update including: now html doc API is sorted, navigation problems/side effects fixed, html tags replaced by proper doxygen commands, parameters command switched from a to p. Includes a pdf update.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-24 01:40:44 +00:00
engelsman
ced863d334 converted html tags to doxygen commands in documentation/src/subclassing.dox
this also required tweaking parameter names and doxygen comments in
Fl_Widget.H, Fl_Group.H, Fl_Widget.cxx and fl_boxtype.cxx 




git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6705 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-21 17:08:23 +00:00
engelsman
39c83e370e converted html tags to doxygen commands in documentation/src/events.dox
required adding \anchor to FL/Fl_Input.H as well



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6699 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-18 22:58:12 +00:00
Greg Ercolano
498dcb05ae Fl_Browser documenation improvements/additions.
- Standardized all methods + parameter names
    - Strengthened descriptions
    - added \code examples



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-17 03:29:58 +00:00
engelsman
acef469350 doxygen comments for fl_box(), fl_down(), fl_frame() and converted html tags
FL/Enumerations.H: doxygen comments for fl_box(), fl_down(), fl_frame()
documentation/src/common.dox: converted html tags to doxyge commands
documentation/src/preface.dox: corrected footer link
documentation/src/index.dox: corrected footer link



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6694 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-16 22:38:32 +00:00
Albrecht Schlosser
52c0cd3d9a more documentation updates for Fl_Help_View.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 21:28:50 +00:00
engelsman
6eb194ae48 added doxygen comments for remaining functions in fl_draw.H
Fl/fl_draw.H: \todo for fl_set_status(), fl_set_spot(), fl_reset_spot()
src/fl_symbols.cxx: fl_add_symbol(), fl_draw_symbol()



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 21:24:43 +00:00
Albrecht Schlosser
023b77a1ab Fixed some comments and removed obsolete
#define getcwd _getcwd[2]

because FLTK 1.3 now uses fl_getcwd().


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 21:16:34 +00:00
engelsman
4bcf3e5311 added doxygen comments for more functions in fl_draw.H
FL/fl_draw.H: see below
src/fl_cursor.cxx: fl_cursor()
src/fl_scroll_area.cxx: fl_scroll()
src/fl_overlay.cxx: fl_overlay_clear(), fl_overlay_rect()
documentation/src/drawing.dox: updated paragraph tag links



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 20:52:46 +00:00
engelsman
3c56a23ba1 added doxygen coments for more routines in fl_draw.H
FL/fl_draw.H: fl_rectf(), fl_read_image()
src/fl_draw_pixmap.cxx: fl_draw_pixmap(), fl_measure_pixmap()
documentation/src/drawing.dox: corrected paragraph link tags



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 19:38:13 +00:00
engelsman
9a7185384a doxygen comments for fl_draw_image(), fl_latin1_to_local() and friends
updated FL/fl_draw.H to avoid triplication in src/fl_draw_image*.cxx
and duplication in src/fl_encoding_latin1.cxx
rationalized some parameter names to match existing docs

updated documentation/src/drawing.dox to have section headers in order
and to enable paragraph tags to link to fl_draw_image*()
(can't work out how to link Fl_Draw_Image_Cb as paragraph tag :-( )



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-15 11:27:56 +00:00
engelsman
26c355b6a0 updated Fl_Slider and Fl_Scrollbar documentation (STR #2156 - part 2)
converted html tags to doxygen
rationalised doxygen comments
renamed Fl_Slider::scrollvalue() and Fl_Scrollbar::value() parameters



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6683 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14 11:46:43 +00:00
Albrecht Schlosser
039a9be3f5 Fl_Preferences.H now doesn't include windows.h any more
(Windows only, STR #2173).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14 10:23:05 +00:00
Greg Ercolano
50a92455fe Fixes for SGI builds (STR#2174)
1) C++ style comments in C files converted to /* */
   2) #warning's had to be #ifdef'ed out (#if !defined(sgi)..)
With these mods, 1.3.x compiles on IRIX 6.5 with no failures.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6680 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-14 02:11:31 +00:00
Greg Ercolano
923479622f More LGPL compliance for utf8 files.. some were hiding outside of xutf8 (STR#2085 cont'd)
This will close STR#2085.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-13 23:42:32 +00:00
Albrecht Schlosser
878b91d6b2 Removed unused member variable ext_managed from Fl_File_Chooser
and fixed a comment.

src/Fl_File_Chooser.fl:
	Removed unused member variable ext_managed

M    src/Fl_File_Chooser2.cxx:
	Fixed comment.

M    FL/Fl_File_Chooser.H:
	Removed unused member variable ext_managed (generated by fluid)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6678 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-13 23:36:09 +00:00
engelsman
97f5e51ed8 updated Fl_Scrollbar::value() description (STR #2156 - part 1)
further rework needed on Fl_Slider::scrollvalue() description



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6674 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-03-11 22:15:14 +00:00
Albrecht Schlosser
9656a22192 Documentation updates for Fl_Widget.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-28 09:56:41 +00:00
Albrecht Schlosser
d060bcbdfd Fixed some typos.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6666 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-20 08:24:32 +00:00
Albrecht Schlosser
354701c6f6 Documentation updates for STR #2142 (protected draw methods).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-20 08:15:32 +00:00
Albrecht Schlosser
5e9a5f3023 Modified all public widget draw methods to be protected.
ToDo: Documentation updates.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-18 09:27:54 +00:00
Ian MacArthur
d106068911 Attempt to add doygen comments to the description of fl_text_extents to clarify its usage, as suggested by Greg
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-15 22:20:50 +00:00
Albrecht Schlosser
e94b388899 renamed class Fl_Watch to Fl_Widget_Tracker, as discussed in fltk.development.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-15 13:49:34 +00:00
Albrecht Schlosser
4ac63b788a Improved image layout in Fl_Group::resizable() docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-09 11:41:56 +00:00
Albrecht Schlosser
3ebc315ad2 Documentation updates, in parts concerning changes done for STR #1894.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-08 17:26:02 +00:00
Albrecht Schlosser
9f1eeaee19 Added the helper class Fl_Watch to simplify safe handling of widget deletion
in callbacks. This is used e.g. in Fl_Widget::do_callback() to prevent 
accessing widgets after deletion in the callback.

Documentation adjusted, Fl_Menu_Button.cxx changed to use Fl_Watch instead
of Fl::watch_widget_pointer.

Fl::watch_widget_pointer() and Fl::release_widget_pointer() have been
modified to use an array without "holes" (NULL pointers) for storing the
widget pointers for faster access: Fl::release_widget_pointer() now shifts
pointers to close gaps of freed pointers.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-02-08 14:44:15 +00:00
Fabien Costantini
ecf26b1d12 Doxygen documentation corrected a typo in new module entry name.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-20 12:04:13 +00:00
Fabien Costantini
b00d2bfa42 Doxygen documentation
+ Added a new Module section named : File names and URI utility funtions
+ updated the pdf file adequately



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-20 11:10:29 +00:00
Fabien Costantini
49ed3ac908 STR#890 non-lazy fix: as suggested, replaced the one level color attribute saving by a better font style stack including the color in its font style elements.
Took this opportunity to remove the separated font stack (font and size) tables by an opaque and dedicated font stack object implementation. This permits i.e to change easily the stack size or even impl. (like a linked list impl.) without impacting the widget code.



git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6633 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-14 17:59:49 +00:00
Albrecht Schlosser
eec7f80e94 Widgets now remove themselves from their parent group (if any), when destroyed
(STR #1894). Fl_Group::clear() removes widget by widget (one at a time) to
allow widgets to remove other related widgets from the same group, when they
are deleted.
Also fixed a bug in Fl_Value_Input (added a destructor), because it used
a non-Fl_Group widget as parent of another widget.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-08 17:12:34 +00:00
Matthias Melcher
c15fc3e71a Added flexible gap size for text buffer (STR #2046)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 21:54:10 +00:00
Matthias Melcher
3c38aa5331 STR 1342: Added somewhat missing Fl_Scrollbar::value(int)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01 21:35:37 +00:00