Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature Getting around to revisiting this. Unfortunately the changes suggested so far aren't in patch format, so it's hard to determine what changed to merge into current code. I'll see if I can recreate a diff from the latest code attached here, and attach that to this STR so we can see what can be merged into current. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature I'm also attaching a zip that contains Domingo's changes from a posting he made to fltk.dev on 03/08/2010 with the same files broken out: orig -- fltk's original src (based on svn id's from Domingo's files) new -- Domingo's files patch -- patch versions of the changes (diff -Naurw) So between these two zips, we can probably pull what we need to make a merge that includes the best of both. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature Attachment: http://www.fltk.org/strfiles/2634/mingodad--03-08-2010-Fl_Help_View-orig-vs-new-as-patches.zip ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature The file ourhelp.zip contains a modified version of Fl_Help_View from this STR and with the discount library for markdown syntax, and try to make something like http://markdownpad.com/ to make it easy and simple to create simple help files for applications created with fltk. I enclosed this modified Fl_Help_View on a namespace to allow compile it without need to substitute the original Fl_Hel_View and to amke easy debugging. Any sugestion/improvement are welcome ! Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature I was playing with this revamped Fl_Help_View and I works with nested tables very well and found a small mistke that prevents row background color to work. On line 3331 of Fl_Help_View.cxx: --- change this if (get_attr(attrptr, BGCOLOR, attr, sizeof(attr))) block-bgcolor = get_color(attr, rclr); +++ by this get_attr(attrptr, BGCOLOR, attr, sizeof(attr)); block-bgcolor = get_color(attr, rclr); It sometimes also doesn't break the words properly when formating text, but I didn't found the problem. Thanks for this big improvement. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
Domingo Alvarez Duarte wrote: Ideally I would prefer to have people from Dillo to jump in and contribute with their html engine that is a lot superior. I have my own `html engine' written on c++ but it is not optimized. Maybe in a future I'll deciding it (there're 5500 strings of code nearly in the 2 classes) and I'll offering to integrate the `engine' into FLTK OR yet something... ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
[fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current Hi, this is a major update to fl_help_view.cxx, see attached and post below for header. You can also get the 2 files here http://blitzmirror.ueuo.com/fl_help_view.zip I have been working on this since July 2008 and have been meaning to release it for the last 6 months but I got worn out by it so it got delayed. I have been developing it through the BlitzMax language but I got stuck trying to get it working with the fltk library again. I had problems with the make in Linux on my Dell Inspiron 1525 laptop, fluid won't link. I would be very grateful for a fix for this btw, see below for error. I finally got it working on my Macbook recently, that is with fl_help_dialog.cxx tested via test/help. I haven't tried Windows at all because I'm still confused by the install methods, any help? Also I found a bug in Mac (not sure if it happens in Linux/Windows) with getcwd() is always 'Users/username' so I had to put the documentation folder in Users to get test/help working. I do intend to keep working on this project so feel free to post bug reports here. This is the fluid error on Linux... mark@mark-laptop:~/fltk-1.3.x-r7677$ make === making jpeg === === making png === === making src === Compiling Fl_Help_View.cxx... /usr/bin/ar cr ../lib/libfltk.a ... === making fluid === Linking fluid... ../lib/libfltk.a(Fl_Double_Window.o): In function `Fl_Double_Window::resize(int, int, int, int)': Fl_Double_Window.cxx:(.text+0x118): undefined reference to `XdbeDeallocateBackBufferName' ../lib/libfltk.a(Fl_Double_Window.o): In function `can_xdbe()': Fl_Double_Window.cxx:(.text+0x186): undefined reference to `XdbeQueryExtension' Fl_Double_Window.cxx:(.text+0x1bd): undefined reference to `XdbeGetVisualInfo' Fl_Double_Window.cxx:(.text+0x1fa): undefined reference to `XdbeFreeVisualInfo' ../lib/libfltk.a(Fl_Double_Window.o): In function `Fl_Double_Window::flush(int)': Fl_Double_Window.cxx:(.text+0x346): undefined reference to `XdbeAllocateBackBufferName' Fl_Double_Window.cxx:(.text+0x432): undefined reference to `XdbeSwapBuffers' ../lib/libfltk.a(Fl_visual.o): In function `test_visual(XVisualInfo, int)': Fl_visual.cxx:(.text+0x7f): undefined reference to `XdbeQueryExtension' Fl_visual.cxx:(.text+0xb6): undefined reference to `XdbeGetVisualInfo' collect2: ld returned 1 exit status make[1]: *** [fluid] Error 1 make: *** [all] Error 1 Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current Attachment: http://www.fltk.org/strfiles/2634/Fl_Help_View.cxx ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current Attached file Fl_Help_View.H... Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current// // $Id: Fl_Help_View.H 5991 2007-12-15 16:08:23Z mike $ // // Help Viewer widget definitions. // // Copyright 1997-2005 by Easy Software Products. // Image support donated by Matthias Melcher, Copyright 2000. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as published by the Free Software Foundation; either // version 2 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // // You should have received a copy of the GNU Library General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 // USA. // // Please report all bugs and problems on the following page: // // http://www.fltk.org/str.php // // Inline: // // Fl_Help_View::directory() - Get the directory string. // Fl_Help_View::filename() - Get the filename string. // Fl_Help_View::link() - Set the link callback. // Fl_Help_View::size() - Get the total document length. // Fl_Help_View::size() - Set the document width and height. // Fl_Help_View::textcolor() - Set the default text color. // Fl_Help_View::textcolor() - Get the default text color. // Fl_Help_View::textsize() - Set the default font size. // Fl_Help_View::textsize() - Get the default font size. // Fl_Help_View::title() - Get the title string. // Fl_Help_View::topline()- Get the top line in document. // Fl_Help_View::leftline() - Get the left line position. // Fl_Help_View::value() - Get the HTML text value. // Fl_Help_View::monofont() - Set the default mono font. // Fl_Help_View::monofont() - Get the default mono font. // Fl_Help_View::reformat() - Format the help text. // Fl_Help_View::sansfont() - Set the default sans font. // Fl_Help_View::sansfont() - Get the default sans font. // Fl_Help_View::serifont() - Set the default serif font. // Fl_Help_View::serifont() - Get the default serif font. // #ifndef Fl_Help_View_H # define Fl_Help_View_H // // Include necessary header files... // # include stdio.h # include Fl.H # include Fl_Group.H # include Fl_Scrollbar.H # include fl_draw.H # include Fl_Shared_Image.H // // Fl_Help_Func type - link callback function for files... // typedef const char *(Fl_Help_Func)(Fl_Widget *, const char *); // // Fl_Help_Block structure // // note: we can change private structs accessed by pointers struct Fl_Help_Block { const char *start, // Start of text *end; // End of text unsigned char border; // Draw border? Fl_Color bgcolor; // Background color int x, // Indentation/starting X coordinate y, // Starting Y coordinate w, // Width h; // Height // new fields, removed int line[32]; unsigned char fsize; // current font size int font, // current font maxh, // max image height imgy, // image y position pre, // pre text flag type, // blockquote/ol/ul/li type parameter tag, // tag/element fourcc int line, // Left starting position for each line cbi; // current block index }; // // Fl_Help_Link structure // struct Fl_Help_Link { char filename[192], // Link reference filename name[32]; // Link target name, blank if none int x, // X offset of link text y, // Y offset of link text w, // Width of link text h; // Height of link text }; // // Fl_Help_Target structure // // note: hijacking this lets us add new data members via the d-pointer struct Fl_Help_Target { // new fields, removed char name[32]; int y; Fl_Help_Link *targets, // Targets *linkp; // Currently clicked link unsigned char ispush, // link is pushed islink, // link clicked resized, // window resized ispath, // is path used nstyle, // navigation style flag isnew, // is new page pad7, // pad8; // int top, // current topline ltop, // last topline isnav, // is nav link rwidth, // resize width cssurllen, // css url length csswordlen, // css word length *cssword; // css word value long rtime, // resize time rsec, // resize seconds rmil, // resize millisecs csstextlen; // css text length char *csstext, // css text value *cssurl, // css url value path[1024], // current file path lpath[1024]; // last file path int nfonts, // number of fonts in stack fonts[100][2]; // font stack }; // // Fl_Help_View class... // class FL_EXPORT
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current See above for header, my mistake I thought you could only post one file per topic. Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current Here is my worklog for fl_help_view rev 27 - fixed compiler errors to get it building with fltk-1.3.x make - fixed seemingly random fonts appearing on Mac, required changes to header - fixed font list not being read properly on PPC Mac - fixed no spaces between words on PPC Mac rev 26 - changed scope of handle() to public - added css functions: load_css(), parse_css(), get_css_value(), get_font_size() - added css properties: background-color, font-family/weight/style/size - added recognition system for css shorthand properties: font, background - fixed table without /tr breaking next row alignment - fixed table without tr not being drawn - added nearest font match to font_face() rev 25 - removed getcwd for init with relative path, need to init with full path. - fixed format_table crash if td colspan width too thin. - added page topline position history, required changes to header/fltkgui. - added javascript:history.back/forward/go support, required changes to fltkgui. - added openurl support for user navigation style, required changes to fltkgui. rev 24 - fixed some more misc bugs. - added new function: setstyle, required changes to header and fltkgui. - added default user navigation style. - added print error page instead of null link. - added getcwd for initializing with a relative path. rev 23 - fixed a few misc bugs. - removed font_find function, not necessary, required changes to header. - fixed build_faces and font_face functions to work with anti-aliased fonts. rev 22 - fixed /a sometimes not working bug, style spilling into next td. - added new methods: filepath and fileislink, for link targets fix. - fixed link targets not stored in link history, required changes to header and fltkgui. rev 21 - removed support for drawing new char refs via Symbol font, not compatible with FLTK 1.3. rev 20 - added new method reformat, for calls to format. - replaced add_block, format_table functions with extended argument versions. - added d-pointer by hijacking Fl_Help_Target, required changes to header. - replaced compare_targets function with cmp_targets, due to d-pointer. - replaced textfont_ and textsize_ with global statics. - moved local statics to d-pointer struct. - fixed links with target values not setting position on new page. rev 19 - changed vertical scroll size, now moves double the amount. - added new methods sansfont, monofont. - added new function font_find, used for new default fonts. - added new functions build_faces, font_face and font_style. - added full support for font face attribute, required changes to header. - fixed bold/italic not working with many fonts. - removed inconsistent resizing tweak in format. rev 18 - fixed nested table overwriting cell heights. - fixed nested table drawn below row height. - improved format speed to 30% less time, required changes to header. - fixed cell width not reset before/after nested table. - fixed nested table popping cell margin. - fixed pre text in tables not increasing cell width. - improved pre tabs width, miscalculated in tables. - added CHR() and MIL() macros. - fixed tables not popping last font. - fixed divide by zero error if table cells empty. - renamed variables and reordered functions alphabetically. rev 17 - fixed mouse over horizontal scrollbar showing active link/hand icon. - fixed last line in td misaligned, caused by new block per line system. - fixed empty td on end of row affecting next row y position. - fixed wrong line gaps before and after a table. - fixed nested tables overwriting table and tr 'bgcolor'. - improved color lookup, no hash needed for hex value. rev 16 - improved block system, every line is now in it's own block. - removed line[32] field to drop memory usage to about 30%, required changes to header. - tidied up code comments. rev 15 - improved hr and h1-6 line spacing. - fixed font size not updating line y positions, required changes to header. - fixed nested tables overwriting subsequent tr and td cell data, required changes to header. rev 14 - added skipping of script to prevent drawing of Javascript code, etc. - finished fixes to ul and li code. - fixed hr line spacing miscalculations and added a shadow line. rev 13 - fixed br directly after another br not taking a new line. - added li 'type' support and drawing of circle and square bullets. - fixed li bullets on left margin not visible because of no default indent. - added all the missing character references (quote chars) listed in HTML 4. - added support for drawing most of the new char refs via the Symbol font. - fixed control characters not drawing correctly because of null widths. rev 12 - fixed hang caused by resizing window on a big page, included forms.H for timer code. - fixed words longer than window width taking an extra line. - added skipping format below drawing area during
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current Wow, sounds great.. and a lot of work! It's surely going to get bumped to 1.4, as we're in final release stages for 1.3. Regarding the Xdbe errors, sounds like a partial install of the X11 dev environment. Make sure you have libXext installed on your machine (eg. /usr/lib/libXext*) as I believe that's what supplies the Xdbe functions. What version of linux are you using? For ubuntu 8.x I used the following commands to setup my X11 dev environment: apt-get install libx11-dev apt-get install libxt-dev apt-get install libxft-dev Link: http://www.fltk.org/str.php?L2634 Version: 1.3-current ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature @markcw: I'm temporarily bumping this to 1.4 for now, so we can push ahead with the 1.3.0 release cycle. Don't take that the wrong way though - we'll come back to this. In particular, can you post in fltk.general your questions (e.g. about getcwd() on OSX and building on win32 hosts) and we can give you a few tips and pointers to keep you going! Thanks for the input. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature Attached file fl_Help_View.zip... Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature Attachment: http://www.fltk.org/strfiles/2634/fl_Help_View.zip ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature Greg, thanks for the help, I got the make working in Linux, I have ubuntu 9.10, I didn't have libxext-dev installed. Ian, ok I will post my questions to fltk.general then. Thanks for the advice. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs
Re: [fltk.bugs] [HIGH] STR #2634: fl_help_view bug fixes and new features
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature I did posted my Fl_Help_View working version too, I did it in the past but it was not accepted. I removed basically all static variable, recoded the parser, and removed a lot of duplicated code. I use Fl_Help_view as a page formatter for reporting purposes without showing it on screen. Also still there is a lot of inefficient code on the block format calculation, something like what was used on Fl_Text_Editor/Fl_Text_Buffer on wich Manolo did a rewrite to make it faster and less cpu expensive, the same could be applied here. When I have time and patience I'll try to see what I can use from this new contribution. Ideally I would prefer to have people from Dillo to jump in and contribute with their html engine that is a lot superior. Link: http://www.fltk.org/str.php?L2634 Version: 1.4-feature ___ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs