summaryrefslogtreecommitdiff
path: root/src/Fl_Help_View.cxx
AgeCommit message (Collapse)Author
2016-05-31Polishing conversions between char- and int-typed variables.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11760 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-22Fix compiler warnings.Albrecht Schlosser
FL/platform_types.h: C++ style comments are not allowed in ISO C90. src/Fl_Help_View.cxx: type qualifiers ignored on function return type. src/Fl_Image_Surface.cxx: (Linux) converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null] Line #70: In member function ‘Fl_Offscreen Fl_Image_Surface::offscreen()’ git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-19Fix handing of html entities in copied text by Fl_Help_View widget.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-17Fix Fl_Help_View buffer overflow (STR #3275).Albrecht Schlosser
This version works much better than the previous one: - fixed buffer overflow ("stack corruption") - fixed potential long text truncation - fixed tab formatting at line start or any offset divisible by 8 - better handling of HTML entities (aka quoted characters) - code simplifications, e.g. HV_Edit_Buffer::cmp() + width() Todo: - improve and standardize handling of HTML entities - more tests Missing features and known bugs: - strike out text (not implemented) - table and horizontal line formatting issues (STR #3227) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13Remove useless platform-specific #include directives from Fl_Help_View.cxxManolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11592 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25Remove a bunch of useless #include <FL/x.H> directives.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27Fix compiler warnings (STR #2988) - final commit.Albrecht Schlosser
This commit includes all fixes from branch-1.3 (svn r 11243) and additional fixes for warnings that crept in during the porting efforts, particularly C++ ("//") comments in C and included header files, and some more. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-14Fix HTML entities in Fl_Help_View.Albrecht Schlosser
Removed obsolete ENC() macro, fixed some encodings that were still Windows CP-1252: converted to correct Unicode values. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-03-10Fixes STR#3207, issue with ^C not working when numlock or capslock is on.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21Sprinkle some more const on internal arrays. STR #3110Lauri Kasanen
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-08-21Constify an internal table in Fl_Help_View. STR #3109Lauri Kasanen
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-07-19Modifications to all LGPL headers for STR #2685.Greg Ercolano
(to clarify static exception LGPL by changing license references) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8864 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2011-06-26Mac OS: use cmd-A and cmd-C to select all and copy (instead of ctrl-A and ↵Manolo Gouy
ctrl-C). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8842 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-12-19Changed all fixed filename buffers (that I could find) to use FL_PATH_MX ↵Matthias Melcher
instead. Raised FL_PATH_MX from skipy 256 characters to 2048, which corresponds with modern file systems. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8063 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-11-28Fixed Copyright to 2010.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7903 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2010-10-28Fixed a bunch of warnings from gcc 4.4.5 . Most of these are parenthesis ↵Matthias Melcher
missing to make the precedence of && over || obvious. Ah well, why not... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-22Added some needed comments to Fl_Help_View::format()Greg Ercolano
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-22Applied patch from STR# 2144 to solve hotspot problem Greg Ercolano
with links inside <pre> text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6775 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-07another update for image handling in Fl_Help_ViewAlbrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6744 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-04-07Fix image handling in Fl_Help_View (STR #2163 and STR #2004).Albrecht Schlosser
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-03STR #2184: bug in Fl_Help_Viewer font stackAlbrecht Schlosser
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-02Fl_Help_View mods for scrollbar sizingGreg Ercolano
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-03-15Fixed some comments and removed obsoleteAlbrecht Schlosser
#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-15Surrounded all #warning's with #if defined(__GNUC__)Greg Ercolano
to prevent compiling problems on non-gnu compilers. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-29STR#2127:Fabien Costantini
- Applied third version of greg patch adding new external link functionality. - Corrected it so that it can compile under linux (minor include problem) - Corrected old documentation link to new one (toc.hmmtl is now index.html) Tested succesfully on linux and mac os x 10.5 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-14STR#890 non-lazy fix: as suggested, replaced the one level color attribute ↵Fabien Costantini
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-12STR#890 fix attempt: correct imbricated font color handling.Fabien Costantini
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2009-01-01Changed Copyright in 'src' directoryMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-19Updating fl_utf8.h references. Fixing copyright date in .fl files.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-18Doxygen documentation: Fixed most important warnings for the Fl_Widget, ↵Fabien Costantini
Fl_Window, Fl_Valuator classes that should be now a 100% documented. For the rest I drastically reduced the undocumented APIs, but many others (less important) remains. It looks and feels pretty good now :-) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6299 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-14Doxygen Documentation WP6 Done, Also completed the documentation of ↵Fabien Costantini
Help_View, Help_Dialog and cleaned up Preferences from ugly stars in comments and also removed redundant get/set text from methods doc. In this increment, we don't bother with the old dox format (comments in header). We have better things to do with our time (like about 40 mores files to doxyfy :-). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6243 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-09-10Merging the UTF8 patch, consisting of O'ksi'd s original 1.1.6 patch and ↵Matthias Melcher
additions by Ian. PLEASE BE AWARE that the patch in its current incarnation is a regression in many aspects and further work is required before we can announce Unicode support. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26included the broken_image test in the free() method of Fl_Help_View for ↵Fabien Costantini
Win32, now also fixes heap error on exit git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6169 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-26STR #2004 fix: got inspired from suggested modifications but limited their ↵Fabien Costantini
impact for broken_image test because it is not needed for osx and win32 platforms. thanks Mark and Sebastian. Works great in X11 now. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6168 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-08-15Rename type Fl_Font_Size into Fl_Fontsize to comply with other naming in FLTK.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6161 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-23First attempt at consistently using Fl_Font as a type for the font index and ↵Matthias Melcher
Fl_Font_Size as a type to measure font height (or rather size). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-04-12Updated 1.3 with changes from 1.1.9Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2008-02-20STR #1868: fixed horizontal scrolbar in help view thanks to wavexxMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-16Fix infinite loop bug...Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6000 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-12-15Fl_Help_View did not release the images it used (STR #1817)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5991 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-11-19STR #1805: removed hard-coded scroll bar widths.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5977 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-05-01Added static icon, text selection, and HTML formatting to fl_message etc. ↵Matthias Melcher
(STR #1626) Fixed selection of first word in Fl_Help_View git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08Fix flickering of Fl_Help_View - turns out we were drawing to theMichael R Sweet
window every time we checked for extension of the selection. The new code draws to a 1x1 off-screen buffer, which eliminates the flickering and runs much faster! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08Fix text alignment (STR #1589)Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-08Fix hoving over links (STR #1588)Michael R Sweet
Use blue as the default link color, not magenta. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-02-07Fix default link color.Michael R Sweet
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2007-01-28Fix indentation of elements (STR #1549)Michael R Sweet
Update layout of help dialog to look like other help dialogs. Drop resource fork stuff from fltk-config (no more --post, it is a no-op) Use a single table for the header on the documentation page. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-16Merge all of the scrollbar sizes into a single API callMichael R Sweet
(Fl::scrollbar_size()) rather than a bunch of separate APIs and hardcoded values (STR #1800) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2006-11-15Fix text alignment - wasn't resetting the default alignment afterMichael R Sweet
closing a table cell... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5545 ea41ed52-d2ee-0310-a9c1-e6b18d33e121