├── .gitignore ├── AUTHORS ├── COPYING ├── ChangeLog ├── Doxyfile ├── INSTALL ├── Makefile ├── Makefile.am ├── Makefile.in ├── NEWS ├── README ├── aclocal.m4 ├── config.guess ├── config.h ├── config.h.in ├── config.log ├── config.status ├── config.sub ├── configure ├── configure.in ├── d_size.h ├── debian ├── NEWS ├── README.Debian ├── changelog ├── compat ├── control ├── copyright ├── dillo.desktop ├── dillo.png ├── dillo.xpm ├── docs ├── menu ├── postinst ├── prerm ├── rules ├── source │ ├── format │ ├── include-binaries │ └── local-options └── watch ├── depcomp ├── dillorc ├── dlib ├── .deps │ └── dlib.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── dlib.c ├── dlib.h ├── dlib.o └── libDlib.a ├── doc ├── Cache.txt ├── Cookies.txt ├── Dillo.txt ├── Dpid.txt ├── Dw.txt ├── HtmlParser.txt ├── IO.txt ├── Images.txt ├── Imgbuf.txt ├── Makefile ├── Makefile.am ├── Makefile.in ├── NC_design.txt ├── README ├── Selection.txt ├── dillo.1 ├── dw-changes.doc ├── dw-example-screenshot.png ├── dw-images-and-backgrounds.doc ├── dw-layout-views.doc ├── dw-layout-widgets.doc ├── dw-map.doc ├── dw-overview.doc ├── dw-size-of-widget.png ├── dw-style-box-model.png ├── dw-style-length-absolute.png ├── dw-style-length-percentage.png ├── dw-style-length-relative.png ├── dw-textblock-collapsing-spaces-1-1.png ├── dw-textblock-collapsing-spaces-1-2.png ├── dw-textblock-collapsing-spaces-2-1.png ├── dw-textblock-collapsing-spaces-2-2.png ├── dw-usage.doc ├── dw-viewport-with-scrollbar.png ├── dw-viewport-without-scrollbar.png ├── dw-widget-sizes.doc ├── fltk-problems.doc ├── index.doc ├── lout.doc ├── rounding-errors.doc ├── uml-legend.doc └── user_help.html ├── dpi ├── .deps │ ├── bookmarks.Po │ ├── cookies.Po │ ├── datauri.Po │ ├── downloads_dpi-downloads.Po │ ├── dpiutil.Po │ ├── file.Po │ ├── ftp.Po │ ├── hello.Po │ ├── https.Po │ └── vsource.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── bookmarks.c ├── bookmarks.dpi ├── bookmarks.o ├── cookies.c ├── cookies.dpi ├── cookies.o ├── datauri.c ├── datauri.filter.dpi ├── datauri.o ├── downloads.cc ├── downloads.dpi ├── downloads_dpi-downloads.o ├── dpiutil.c ├── dpiutil.h ├── dpiutil.o ├── file.c ├── file.dpi ├── file.o ├── ftp.c ├── ftp.filter.dpi ├── ftp.o ├── hello.c ├── hello.filter.dpi ├── hello.o ├── https.c ├── https.filter.dpi ├── https.o ├── vsource.c ├── vsource.filter.dpi └── vsource.o ├── dpid ├── .deps │ ├── dpi.Po │ ├── dpi_socket_dir.Po │ ├── dpid.Po │ ├── dpid_common.Po │ ├── dpidc.Po │ ├── main.Po │ └── misc_new.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── TODO ├── dpi.c ├── dpi.h ├── dpi.o ├── dpi_socket_dir.c ├── dpi_socket_dir.h ├── dpi_socket_dir.o ├── dpid ├── dpid.c ├── dpid.h ├── dpid.o ├── dpid_common.c ├── dpid_common.h ├── dpid_common.o ├── dpidc ├── dpidc.c ├── dpidc.o ├── dpidrc ├── dpidrc.in ├── main.c ├── main.o ├── misc_new.c ├── misc_new.h └── misc_new.o ├── dpip ├── .deps │ └── dpip.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── dpip.c ├── dpip.h ├── dpip.o └── libDpip.a ├── dw ├── .deps │ ├── alignedtextblock.Po │ ├── bullet.Po │ ├── findtext.Po │ ├── image.Po │ ├── iterator.Po │ ├── layout.Po │ ├── libDw_fltk_a-fltkcomplexbutton.Po │ ├── libDw_fltk_a-fltkflatview.Po │ ├── libDw_fltk_a-fltkimgbuf.Po │ ├── libDw_fltk_a-fltkmisc.Po │ ├── libDw_fltk_a-fltkplatform.Po │ ├── libDw_fltk_a-fltkpreview.Po │ ├── libDw_fltk_a-fltkui.Po │ ├── libDw_fltk_a-fltkviewbase.Po │ ├── libDw_fltk_a-fltkviewport.Po │ ├── listitem.Po │ ├── ruler.Po │ ├── selection.Po │ ├── style.Po │ ├── table.Po │ ├── tablecell.Po │ ├── textblock.Po │ ├── types.Po │ ├── ui.Po │ └── widget.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── alignedtextblock.cc ├── alignedtextblock.hh ├── alignedtextblock.o ├── bullet.cc ├── bullet.hh ├── bullet.o ├── core.hh ├── events.hh ├── findtext.cc ├── findtext.hh ├── findtext.o ├── fltkcomplexbutton.cc ├── fltkcomplexbutton.hh ├── fltkcore.hh ├── fltkflatview.cc ├── fltkflatview.hh ├── fltkimgbuf.cc ├── fltkimgbuf.hh ├── fltkmisc.cc ├── fltkmisc.hh ├── fltkplatform.cc ├── fltkplatform.hh ├── fltkpreview.cc ├── fltkpreview.hh ├── fltkui.cc ├── fltkui.hh ├── fltkviewbase.cc ├── fltkviewbase.hh ├── fltkviewport.cc ├── fltkviewport.hh ├── image.cc ├── image.hh ├── image.o ├── imgbuf.hh ├── iterator.cc ├── iterator.hh ├── iterator.o ├── layout.cc ├── layout.hh ├── layout.o ├── libDw-core.a ├── libDw-fltk.a ├── libDw-widgets.a ├── libDw_fltk_a-fltkcomplexbutton.o ├── libDw_fltk_a-fltkflatview.o ├── libDw_fltk_a-fltkimgbuf.o ├── libDw_fltk_a-fltkmisc.o ├── libDw_fltk_a-fltkplatform.o ├── libDw_fltk_a-fltkpreview.o ├── libDw_fltk_a-fltkui.o ├── libDw_fltk_a-fltkviewbase.o ├── libDw_fltk_a-fltkviewport.o ├── listitem.cc ├── listitem.hh ├── listitem.o ├── platform.hh ├── preview.xbm ├── ruler.cc ├── ruler.hh ├── ruler.o ├── selection.cc ├── selection.hh ├── selection.o ├── style.cc ├── style.hh ├── style.o ├── table.cc ├── table.hh ├── table.o ├── tablecell.cc ├── tablecell.hh ├── tablecell.o ├── textblock.cc ├── textblock.hh ├── textblock.o ├── types.cc ├── types.hh ├── types.o ├── ui.cc ├── ui.hh ├── ui.o ├── view.hh ├── widget.cc ├── widget.hh └── widget.o ├── install-dpi-local ├── install-sh ├── lout ├── .deps │ ├── container.Po │ ├── identity.Po │ ├── misc.Po │ ├── object.Po │ └── signal.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── container.cc ├── container.hh ├── container.o ├── debug.hh ├── identity.cc ├── identity.hh ├── identity.o ├── liblout.a ├── misc.cc ├── misc.hh ├── misc.o ├── msg.h ├── object.cc ├── object.hh ├── object.o ├── signal.cc ├── signal.hh └── signal.o ├── missing ├── myconfig.sh ├── options ├── src ├── .deps │ ├── auth.Po │ ├── bitvec.Po │ ├── bookmark.Po │ ├── bw.Po │ ├── cache.Po │ ├── capi.Po │ ├── chain.Po │ ├── colors.Po │ ├── cookies.Po │ ├── css.Po │ ├── cssparser.Po │ ├── decode.Po │ ├── dialog.Po │ ├── dicache.Po │ ├── digest.Po │ ├── dillo.Po │ ├── dns.Po │ ├── dpiapi.Po │ ├── findbar.Po │ ├── form.Po │ ├── gif.Po │ ├── history.Po │ ├── html.Po │ ├── image.Po │ ├── imgbuf.Po │ ├── jpeg.Po │ ├── keys.Po │ ├── klist.Po │ ├── md5.Po │ ├── menu.Po │ ├── misc.Po │ ├── nav.Po │ ├── paths.Po │ ├── plain.Po │ ├── png.Po │ ├── prefs.Po │ ├── prefsparser.Po │ ├── styleengine.Po │ ├── table.Po │ ├── timeout.Po │ ├── ui.Po │ ├── uicmd.Po │ ├── url.Po │ ├── utf8.Po │ ├── web.Po │ └── xembed.Po ├── IO │ ├── .deps │ │ ├── IO.Po │ │ ├── about.Po │ │ ├── dpi.Po │ │ ├── http.Po │ │ ├── iowatch.Po │ │ └── mime.Po │ ├── IO.c │ ├── IO.h │ ├── IO.o │ ├── Makefile │ ├── Makefile.am │ ├── Makefile.in │ ├── Url.h │ ├── about.c │ ├── about.o │ ├── dpi.c │ ├── dpi.o │ ├── http.c │ ├── http.o │ ├── iowatch.cc │ ├── iowatch.hh │ ├── iowatch.o │ ├── libDiof.a │ ├── mime.c │ ├── mime.h │ └── mime.o ├── Makefile ├── Makefile.am ├── Makefile.in ├── auth.c ├── auth.h ├── auth.o ├── binaryconst.h ├── bitvec.c ├── bitvec.h ├── bitvec.o ├── bookmark.c ├── bookmark.h ├── bookmark.o ├── bw.c ├── bw.h ├── bw.o ├── cache.c ├── cache.h ├── cache.o ├── capi.c ├── capi.h ├── capi.o ├── chain.c ├── chain.h ├── chain.o ├── chg ├── colors.c ├── colors.h ├── colors.o ├── cookies.c ├── cookies.h ├── cookies.o ├── css.cc ├── css.hh ├── css.o ├── cssparser.cc ├── cssparser.hh ├── cssparser.o ├── decode.c ├── decode.h ├── decode.o ├── dgif.h ├── dialog.cc ├── dialog.hh ├── dialog.o ├── dicache.c ├── dicache.h ├── dicache.o ├── digest.c ├── digest.h ├── digest.o ├── dillo ├── dillo.cc ├── dillo.o ├── djpeg.h ├── dns.c ├── dns.h ├── dns.o ├── doctree.hh ├── dpiapi.c ├── dpiapi.h ├── dpiapi.o ├── dpng.h ├── findbar.cc ├── findbar.hh ├── findbar.o ├── form.cc ├── form.hh ├── form.o ├── gif.c ├── gif.o ├── history.c ├── history.h ├── history.o ├── html.cc ├── html.hh ├── html.o ├── html_common.hh ├── image.cc ├── image.hh ├── image.o ├── imgbuf.cc ├── imgbuf.hh ├── imgbuf.o ├── jpeg.c ├── jpeg.o ├── keys.cc ├── keys.hh ├── keys.o ├── keysrc ├── klist.c ├── klist.h ├── klist.o ├── list.h ├── md5.c ├── md5.h ├── md5.o ├── menu.cc ├── menu.hh ├── menu.o ├── misc.c ├── misc.h ├── misc.o ├── msg.h ├── nav.c ├── nav.h ├── nav.o ├── paths.cc ├── paths.hh ├── paths.o ├── pixmaps.h ├── plain.cc ├── plain.o ├── png.c ├── png.o ├── prefs.c ├── prefs.h ├── prefs.o ├── prefsparser.cc ├── prefsparser.hh ├── prefsparser.o ├── srch ├── styleengine.cc ├── styleengine.hh ├── styleengine.o ├── table.cc ├── table.hh ├── table.o ├── timeout.cc ├── timeout.hh ├── timeout.o ├── ui.cc ├── ui.hh ├── ui.o ├── uicmd.cc ├── uicmd.hh ├── uicmd.o ├── url.c ├── url.h ├── url.o ├── utf8.cc ├── utf8.hh ├── utf8.o ├── web.cc ├── web.hh ├── web.o ├── xembed.cc ├── xembed.hh └── xembed.o ├── stamp-h1 └── test ├── .deps ├── cookies.Po ├── dw_anchors_test.Po ├── dw_border_test.Po ├── dw_example.Po ├── dw_find_test.Po ├── dw_images_scaled.Po ├── dw_images_scaled2.Po ├── dw_images_simple.Po ├── dw_imgbuf_mem_test.Po ├── dw_links.Po ├── dw_links2.Po ├── dw_lists.Po ├── dw_resource_test.Po ├── dw_table.Po ├── dw_table_aligned.Po ├── dw_ui_test.Po ├── fltk_browser.Po ├── form.Po └── shapes.Po ├── Makefile ├── Makefile.am ├── Makefile.in ├── cookies ├── cookies.c ├── cookies.o ├── dw-anchors-test ├── dw-border-test ├── dw-example ├── dw-find-test ├── dw-images-scaled ├── dw-images-scaled2 ├── dw-images-simple ├── dw-imgbuf-mem-test ├── dw-links ├── dw-links2 ├── dw-lists ├── dw-resource-test ├── dw-table ├── dw-table-aligned ├── dw-ui-test ├── dw_anchors_test.cc ├── dw_anchors_test.o ├── dw_border_test.cc ├── dw_border_test.o ├── dw_example.cc ├── dw_example.o ├── dw_find_test.cc ├── dw_find_test.o ├── dw_images_scaled.cc ├── dw_images_scaled.o ├── dw_images_scaled2.cc ├── dw_images_scaled2.o ├── dw_images_simple.cc ├── dw_images_simple.o ├── dw_imgbuf_mem_test.cc ├── dw_imgbuf_mem_test.o ├── dw_links.cc ├── dw_links.o ├── dw_links2.cc ├── dw_links2.o ├── dw_lists.cc ├── dw_lists.o ├── dw_resource_test.cc ├── dw_resource_test.o ├── dw_table.cc ├── dw_table.o ├── dw_table_aligned.cc ├── dw_table_aligned.o ├── dw_ui_test.cc ├── dw_ui_test.o ├── fltk-browser ├── fltk_browser.cc ├── fltk_browser.o ├── form.cc ├── form.hh ├── form.o ├── shapes ├── shapes.cc └── shapes.o /.gitignore: -------------------------------------------------------------------------------- 1 | .hg* 2 | *~ 3 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/AUTHORS -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/ChangeLog -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = lout dw dlib dpip src doc dpid dpi test 2 | 3 | EXTRA_DIST = Doxyfile dillorc install-dpi-local d_size.h 4 | 5 | sysconf_DATA = dillorc 6 | -------------------------------------------------------------------------------- /NEWS: -------------------------------------------------------------------------------- 1 | ---- 2 | NEWS 3 | ---- 4 | 5 | Nov 2000: 6 | 7 | Introduced a new design layer between the IO and the Dw. 8 | 9 | March 2001: 10 | 11 | Finally the new dillo widget is ready! (dillo >= 0.4.0). 12 | 0.4.0 is able to cope with low resolution depths. 13 | 14 | Apr 2002: 15 | 16 | We moved to: http://dillo.cipsga.org.br/ 17 | 18 | Dec 2002 19 | 20 | We moved to: http://dillo.auriga.wearlab.de/ 21 | 22 | Jun 2003 23 | 24 | http://www.dillo.org/ (hosted at the wearlab!) 25 | 26 | Sep 2007 27 | 28 | The new FLTK2-based dillo code is released! (under GPL3) 29 | 30 | Jul 2011 31 | 32 | Dillo switches to fltk-1.3.0. 33 | dillo-2.2.1, the last of the 2.x series is released. 34 | 35 | Sep 2011 36 | 37 | dillo-3.0, the first of the 3.x series is released. 38 | 39 | dillo-3.0.1, a bugfix release for the new 3.x series is out. 40 | 41 | 42 | Jorge.- 43 | jcid@dillo.org 44 | Project maintainer, core developer, patcher, you name it! :-) 45 | 46 | -------------------------------------------------------------------------------- /d_size.h: -------------------------------------------------------------------------------- 1 | #ifndef __D_SIZE_H__ 2 | #define __D_SIZE_H__ 3 | 4 | 5 | #include "config.h" 6 | 7 | #ifdef HAVE_STDINT_H 8 | #include 9 | #else 10 | #ifdef HAVE_INTTYPES_H 11 | #include 12 | #else 13 | /* config.h defines {int,uint}*_t */ 14 | #endif /* HAVE_INTTYPES_H */ 15 | #endif /*HAVE_STDINT_H */ 16 | 17 | typedef unsigned char uchar_t; 18 | typedef unsigned short ushort_t; 19 | typedef unsigned long ulong_t; 20 | typedef unsigned int uint_t; 21 | typedef unsigned char bool_t; 22 | 23 | 24 | #endif /* __D_SIZE_H__ */ 25 | -------------------------------------------------------------------------------- /debian/NEWS: -------------------------------------------------------------------------------- 1 | dillo (0.8.6-1) unstable; urgency=low 2 | 3 | * From this version on dillo uses an UTF8 encoded bookmark file. It is 4 | therefore necessary to convert an existing bookmark file. For this 5 | purpose the package contains an utility called bm-update. It should be 6 | called with no arguments as the user whose bookmarks shall be converted. 7 | 8 | -- Patrick Schoenfeld Wed, 28 Nov 2007 08:08:48 +0100 9 | -------------------------------------------------------------------------------- /debian/README.Debian: -------------------------------------------------------------------------------- 1 | 2 | To fully make use of dillo, you will want to copy the provided dillorc 3 | file located in /etc/dillorc into ~/.dillo/ 4 | 5 | This Debian package was created by Ron Farrer . 6 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: dillo 2 | Section: web 3 | Priority: extra 4 | Maintainer: Axel Beckert 5 | Standards-Version: 3.9.3 6 | Build-Depends: debhelper (>= 5), libfltk1.3-dev, libglib2.0-dev, libpng-dev | libpng12-dev, zlib1g-dev, libjpeg8-dev | libjpeg-dev, autotools-dev, libssl-dev, dpkg-dev (>= 1.16.1~) 7 | Homepage: http://www.dillo.org/ 8 | Vcs-Git: git://anonscm.debian.org/collab-maint/dillo.git 9 | Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/dillo.git 10 | 11 | Package: dillo 12 | Architecture: any 13 | Depends: ${shlibs:Depends}, ${misc:Depends}, wget 14 | Provides: www-browser 15 | Description: Small and fast web browser 16 | Dillo 3 is a graphical multi-platform web browser known for its speed 17 | and small footprint. It is based on version 1.3 of the Fast and Light 18 | Toolkit (FLTK) in version 1.3 19 | . 20 | It aims to be small in resources, stable, developer-friendly, usable, 21 | very fast, and extensible. 22 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Ron Farrer . 2 | 3 | It was downloaded from http://www.dillo.org/ 4 | 5 | Upstream Author: Jorge Arellano Cid 6 | 7 | Copyright: 8 | 9 | Copyright 1999-2011, Jorge Arellano Cid 10 | 11 | Copyright holders: Jorge Arellano Cid 12 | Sebastian Geerken 13 | Johannes Hofmann 14 | Luca Rota 15 | Randall Maas 16 | Raph Levien 17 | James McCollough 18 | Sammy Mannaert 19 | Lars Clausen 20 | Juergen Viksell 21 | Ferdi Franceschini 22 | Garrett Kajmowicz 23 | Sammy Mannaert 24 | Jeremy Henty 25 | Peter Mattis 26 | Spencer Kimball 27 | Josh MacDonald 28 | Eric Gaudet 29 | 30 | License: 31 | 32 | This program is free software; you can redistribute it and/or modify 33 | it under the terms of the GNU General Public License as published by 34 | the Free Software Foundation; either version 3 of the License, or 35 | (at your option) any later version. 36 | 37 | This program is distributed in the hope that it will be useful, 38 | but WITHOUT ANY WARRANTY; without even the implied warranty of 39 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 40 | GNU General Public License for more details. 41 | 42 | You should have received a copy of the GNU General Public License 43 | along with this package; if not, write to the Free Software 44 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 45 | 46 | From dpi/https.c: 47 | 48 | As a special exception permission is granted to link the code of 49 | the https dillo plugin with the OpenSSL project's "OpenSSL" 50 | library, and distribute the linked executables, without including 51 | the source code for OpenSSL in the source distribution. You must 52 | obey the GNU General Public License, version 3, in all respects 53 | for all of the code used other than "OpenSSL". 54 | 55 | On Debian systems, the complete text of the GNU General 56 | Public License can be found in `/usr/share/common-licenses/GPL-3'. 57 | -------------------------------------------------------------------------------- /debian/dillo.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | GenericName=Web Browser 3 | GenericName[lt]=Web naršyklė 4 | Name=Dillo 5 | Comment=Lightweight browser 6 | Comment[lt]=Labai paprasta naršyklė 7 | MimeType=text/html;text/xml;application/xhtml+xml; 8 | Exec=dillo 9 | Terminal=false 10 | Type=Application 11 | Categories=Application;Network; 12 | Icon=dillo 13 | -------------------------------------------------------------------------------- /debian/dillo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/debian/dillo.png -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | README 2 | AUTHORS 3 | dillorc 4 | NEWS 5 | doc/Cache.txt 6 | doc/Cookies.txt 7 | doc/Dillo.txt 8 | doc/Dpid.txt 9 | doc/dw-changes.doc 10 | doc/dw-example-screenshot.png 11 | doc/dw-images-and-backgrounds.doc 12 | doc/dw-layout-views.doc 13 | doc/dw-layout-widgets.doc 14 | doc/dw-map.doc 15 | doc/dw-overview.doc 16 | doc/dw-size-of-widget.png 17 | doc/dw-style-box-model.png 18 | doc/dw-style-length-absolute.png 19 | doc/dw-style-length-percentage.png 20 | doc/dw-style-length-relative.png 21 | doc/dw-textblock-collapsing-spaces-1-1.png 22 | doc/dw-textblock-collapsing-spaces-1-2.png 23 | doc/dw-textblock-collapsing-spaces-2-1.png 24 | doc/dw-textblock-collapsing-spaces-2-2.png 25 | doc/Dw.txt 26 | doc/dw-usage.doc 27 | doc/dw-viewport-without-scrollbar.png 28 | doc/dw-viewport-with-scrollbar.png 29 | doc/dw-widget-sizes.doc 30 | doc/fltk-problems.doc 31 | doc/HtmlParser.txt 32 | doc/Images.txt 33 | doc/Imgbuf.txt 34 | doc/index.doc 35 | doc/IO.txt 36 | doc/lout.doc 37 | doc/NC_design.txt 38 | doc/README 39 | doc/rounding-errors.doc 40 | doc/Selection.txt 41 | doc/uml-legend.doc 42 | -------------------------------------------------------------------------------- /debian/menu: -------------------------------------------------------------------------------- 1 | ?package(dillo):needs="X11" section="Applications/Network/Web Browsing"\ 2 | title="Dillo" command="/usr/bin/dillo"\ 3 | icon="/usr/share/pixmaps/dillo.xpm" 4 | -------------------------------------------------------------------------------- /debian/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | if [ "$1" = "configure" ] ; then 5 | update-alternatives --quiet --install /usr/bin/x-www-browser x-www-browser \ 6 | /usr/bin/dillo 50 \ 7 | --slave /usr/share/man/man1/x-www-browser.1.gz x-www-browser.1.gz \ 8 | /usr/share/man/man1/dillo.1.gz 9 | fi 10 | 11 | #DEBHELPER# 12 | -------------------------------------------------------------------------------- /debian/prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | case "$1" in 5 | remove|deconfigure) 6 | update-alternatives --quiet --remove x-www-browser /usr/bin/dillo 7 | ;; 8 | *) 9 | esac 10 | 11 | #DEBHELPER# 12 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | #export DH_VERBOSE=1 4 | 5 | DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 6 | DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 7 | 8 | ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) 9 | CONFFLAGS += --build $(DEB_HOST_GNU_TYPE) 10 | else 11 | CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) 12 | endif 13 | 14 | DEB_CFLAGS_MAINT_APPEND=-Wall 15 | DEB_CPPFLAGS_MAINT_APPEND=-fPIC 16 | DPKG_EXPORT_BUILDFLAGS = 1 17 | include /usr/share/dpkg/buildflags.mk 18 | 19 | configure: config.status 20 | config.h.in.backup: 21 | [ -f config.h.in.backup ] || cp -pv config.h.in config.h.in.backup 22 | config.status: config.h.in.backup 23 | dh_testdir 24 | dh_autotools-dev_updateconfig 25 | ./configure $(CONFFLAGS) \ 26 | --prefix=/usr \ 27 | --sysconfdir=/etc \ 28 | --enable-ipv6 \ 29 | --enable-ssl \ 30 | 31 | build: build-arch build-indep 32 | build-arch: build-stamp 33 | build-indep: build-stamp 34 | build-stamp: config.status 35 | dh_testdir 36 | $(MAKE) 37 | touch build-stamp 38 | 39 | clean: clean-patched 40 | clean-patched: 41 | dh_testdir 42 | dh_testroot 43 | rm -f build-stamp configure-stamp 44 | [ ! -f Makefile ] || $(MAKE) distclean 45 | -rm -f `find . -name "*~"` 46 | -rm -rf debian/dillo debian/files* core debian/substvars debian/prerm.debhelper debian/*postinst.debhelper debian/*postrm.debhelper 47 | -rm -f `find . -name "*.o"` `find . -name "*.dpi"` `find . -name "*.a"` 48 | -rm -f `find . -name "*.gmo"` src/dillo dpid/dpid config/dillocfg 49 | -rm -f config.log 50 | #-rm -f `find . -name "Makefile.in"` config.guess config.sub configure 51 | #-rm -f depcomp install-sh missing aclocal.m4 52 | [ ! -f Makefile ] || $(MAKE) clean 53 | [ ! -f config.h.in.backup ] || mv -v config.h.in.backup config.h.in 54 | dh_autotools-dev_restoreconfig 55 | dh_clean 56 | 57 | install: build 58 | dh_testdir 59 | dh_testroot 60 | dh_prep 61 | dh_installdirs 62 | $(MAKE) install DESTDIR=$(CURDIR)/debian/dillo 63 | 64 | 65 | binary-indep: build install 66 | binary-arch: build install 67 | dh_testdir 68 | dh_testroot 69 | mkdir -p debian/dillo/etc 70 | $(MAKE) DESTDIR=$(CURDIR)/debian/dillo install 71 | dh_installchangelogs ChangeLog 72 | dh_installdocs 73 | dh_installexamples 74 | dh_installmenu 75 | dh_installman doc/dillo.1 76 | install -m644 -D debian/dillo.desktop debian/dillo/usr/share/applications/dillo.desktop 77 | # Install icons 78 | install -m644 -D debian/dillo.xpm debian/dillo/usr/share/pixmaps/dillo.xpm 79 | install -m644 -D debian/dillo.png debian/dillo/usr/share/pixmaps/dillo.png 80 | dh_link 81 | dh_strip 82 | dh_compress 83 | dh_fixperms 84 | dh_installdeb 85 | dh_shlibdeps 86 | dh_gencontrol 87 | dh_md5sums 88 | dh_builddeb 89 | 90 | binary: binary-indep binary-arch 91 | .PHONY: build clean binary-indep binary-arch binary install configure 92 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/source/include-binaries: -------------------------------------------------------------------------------- 1 | debian/dillo.png 2 | -------------------------------------------------------------------------------- /debian/source/local-options: -------------------------------------------------------------------------------- 1 | abort-on-upstream-changes 2 | unapply-patches 3 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | http://www.dillo.org/download/dillo-(.*).tar.bz2 debian git-import-orig 3 | -------------------------------------------------------------------------------- /dlib/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) 3 | 4 | noinst_LIBRARIES = libDlib.a 5 | 6 | libDlib_a_SOURCES = \ 7 | dlib.h \ 8 | dlib.c 9 | -------------------------------------------------------------------------------- /dlib/dlib.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dlib/dlib.o -------------------------------------------------------------------------------- /dlib/libDlib.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dlib/libDlib.a -------------------------------------------------------------------------------- /doc/Cache.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/Cache.txt -------------------------------------------------------------------------------- /doc/Cookies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/Cookies.txt -------------------------------------------------------------------------------- /doc/Dw.txt: -------------------------------------------------------------------------------- 1 | Last update: Oct 2008 2 | 3 | ================ 4 | Dw: Dillo Widget 5 | ================ 6 | 7 | Dw is the internal widget library for rendering HTML. It has excellent 8 | documentation. 9 | 10 | Just run "doxygen" and browse the html/ directory! 11 | 12 | -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | dist_doc_DATA = user_help.html 2 | man_MANS = dillo.1 3 | EXTRA_DIST = \ 4 | $(man_MANS) \ 5 | index.doc \ 6 | lout.doc \ 7 | dw-map.doc \ 8 | dw-overview.doc \ 9 | dw-usage.doc \ 10 | dw-layout-views.doc \ 11 | dw-layout-widgets.doc \ 12 | dw-widget-sizes.doc \ 13 | dw-changes.doc \ 14 | dw-images-and-backgrounds.doc \ 15 | fltk-problems.doc \ 16 | rounding-errors.doc \ 17 | uml-legend.doc \ 18 | dw-example-screenshot.png \ 19 | dw-viewport-without-scrollbar.png \ 20 | dw-viewport-with-scrollbar.png \ 21 | dw-size-of-widget.png \ 22 | dw-style-box-model.png \ 23 | dw-style-length-absolute.png \ 24 | dw-style-length-percentage.png \ 25 | dw-style-length-relative.png \ 26 | dw-textblock-collapsing-spaces-1-1.png \ 27 | dw-textblock-collapsing-spaces-1-2.png \ 28 | dw-textblock-collapsing-spaces-2-1.png \ 29 | dw-textblock-collapsing-spaces-2-2.png \ 30 | Cache.txt \ 31 | Cookies.txt \ 32 | Dillo.txt \ 33 | Dw.txt \ 34 | HtmlParser.txt \ 35 | IO.txt \ 36 | Images.txt \ 37 | Imgbuf.txt \ 38 | NC_design.txt \ 39 | Selection.txt \ 40 | Dpid.txt \ 41 | README 42 | -------------------------------------------------------------------------------- /doc/README: -------------------------------------------------------------------------------- 1 | README: Last update Jul 2009 2 | 3 | These documents cover dillo's internals. 4 | For user help, see http://www.dillo.org/dillo3-help.html 5 | 6 | -------------------------------------------------------------------------- 7 | 8 | These documents need a review. 9 | *.txt were current with Dillo1, but many have since become more or 10 | less out-of-date. 11 | *.doc are doxygen source for the Dillo Widget (dw) component, and 12 | were written for Dillo2. 13 | 14 | They will give you an overview of what's going on, but take them 15 | with a pinch of salt. 16 | 17 | Of course I'd like to have *.txt as doxygen files too! 18 | If somebody wants to make this conversion, please let me know 19 | to assign higher priority to updating these docs. 20 | 21 | -- 22 | Jorge.- 23 | 24 | -------------------------------------------------------------------------- 25 | FILE DESCRIPTION STATE 26 | -------------------------------------------------------------------------- 27 | NC_design.txt Naming&Coding design (Be sure to Current 28 | read it before any other doc) 29 | Dillo.txt General overview of the program Current 30 | IO.txt Extensive introduction Current 31 | Cache.txt Informative description Current 32 | Images.txt Image handling and processing Current 33 | HtmlParser.txt A versatile parser Current 34 | Dw.txt The New Dillo Widget (Overview) Current 35 | Imgbuf.txt Image buffers Pending 36 | Selection.txt Selections, and link activation Current (?) 37 | Cookies.txt Explains how to enable cookies Current 38 | Dpid.txt Dillo plugin daemon Current 39 | -------------------------------------------------------------------------- 40 | 41 | 42 | * BTW, there's a small program (srch) within the src/ dir. It searches 43 | tokens within the whole code (*.[ch]). It has proven very useful. 44 | Ex: ./srch a_Image_write 45 | ./srch todo: 46 | 47 | * Please submit your patches with 'hg diff'. 48 | 49 | 50 | Happy coding! 51 | --Jcid 52 | -------------------------------------------------------------------------------- /doc/dillo.1: -------------------------------------------------------------------------------- 1 | .TH dillo 1 "October 13, 2011" "" "USER COMMANDS" 2 | .SH NAME 3 | dillo \- web browser 4 | .SH SYNOPSIS 5 | .B dillo 6 | .RI [ OPTION ]... 7 | .RB [ \-\- ] 8 | .RI [ URL | FILE ]... 9 | .SH DESCRIPTION 10 | .PP 11 | Dillo is a lightweight graphical web browser that aims to be secure. 12 | It handles HTTP internally, and FILE, FTP, and 13 | DATA URIs are handled through a plugin system (dpi). In addition, 14 | .I INSECURE 15 | HTTPS support can be enabled. Both FTP and Dillo's download manager use the 16 | .BR wget (1) 17 | downloader. 18 | .PP 19 | Dillo displays HTML, text, PNG, JPEG, and GIF files. 20 | It handles cookies, HTTP authentication (basic and digest), proxying (basic), 21 | and some CSS. 22 | .PP 23 | Framesets are displayed as links to frames, and there is currently 24 | no support for javascript or video. 25 | .SH OPTIONS 26 | .TP 27 | \fB\-f\fR, \fB\-\-fullwindow\fR 28 | Start in full window mode: hide address bar, navigation buttons, menu, and 29 | status bar. 30 | .TP 31 | \fB\-g\fR, \fB\-\-geometry \fIGEO\fR 32 | Set initial window position where \fIGEO\fR is 33 | \fIW\fBx\fIH\fR[{\fB+\-\fR}\fIX\fR{\fB+\-\fR}\fIY\fR]. 34 | .TP 35 | \fB\-h\fR, \fB\-\-help\fR 36 | Display this help text and exit. 37 | .TP 38 | \fB\-l\fR, \fB\-\-local\fR 39 | Don't load images for these URL(s). 40 | .TP 41 | \fB\-v\fR, \fB\-\-version\fR 42 | Display version info and exit. 43 | .TP 44 | \fB\-x\fR, \fB\-\-xid \fIXID\fR 45 | Open first Dillo window in an existing window whose window ID is \fIXID\fR. 46 | .SH EXIT STATUS 47 | .TP 48 | .B 0 49 | No error. 50 | .TP 51 | .B 1 52 | Internal error. 53 | .TP 54 | .B 2 55 | Error in command line arguments. 56 | .SH ENVIRONMENT 57 | .TP 58 | .BR "HOME " "(or " "HOMEDRIVE " "and " "HOMEPATH " "on Cygwin)" 59 | User's home directory. 60 | .TP 61 | .B http_proxy 62 | URL of proxy to send HTTP traffic through. 63 | .SH FILES 64 | .TP 65 | .I dpid 66 | Dillo plugin daemon 67 | .TP 68 | .I dpidc 69 | Control program for dpid. 70 | .TP 71 | .I ~/.dillo/bm.txt 72 | User bookmarks 73 | .TP 74 | .I ~/.dillo/certs/ 75 | Saved certificates for HTTPS. 76 | .TP 77 | .I ~/.dillo/cookies.txt 78 | Stored cookies 79 | .TP 80 | .I ~/.dillo/cookiesrc 81 | Cookie settings 82 | .TP 83 | .I ~/.dillo/dillorc 84 | Configuration file. 85 | .TP 86 | .I ~/.dillo/dpid_comm_keys 87 | Keys used in dpi daemon communication. 88 | .TP 89 | .I ~/.dillo/dpidrc 90 | Contains name of directory containing dpis, and associates 91 | dpi files with protocols. 92 | .TP 93 | .I ~/.dillo/keysrc 94 | Keybindings. 95 | .TP 96 | .I ~/.dillo/style.css 97 | User style sheet 98 | .SH SEE ALSO 99 | .BR wget (1) 100 | .PP 101 | Dillo website: 102 | .B http://www.dillo.org 103 | -------------------------------------------------------------------------------- /doc/dw-example-screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-example-screenshot.png -------------------------------------------------------------------------------- /doc/dw-map.doc: -------------------------------------------------------------------------------- 1 | /** \page dw-map Dillo Widget Documentation Map 2 | 3 | This maps includes special documentations as well as longer comments 4 | in the sources. Arrows denote references between the documents. 5 | 6 | \dot 7 | digraph G { 8 | rankdir=LR; 9 | node [shape=record, fontname=Helvetica, fontsize=8]; 10 | fontname=Helvetica; fontsize=8; 11 | 12 | dw_overview [label="Dillo Widget Overview", URL="\ref dw-overview"]; 13 | dw_usage [label="Dillo Widget Usage", URL="\ref dw-usage"]; 14 | dw_layout_views [label="Layout and Views", URL="\ref dw-layout-views"]; 15 | dw_layout_widgets [label="Layout and Widgets", 16 | URL="\ref dw-layout-widgets"]; 17 | dw_widget_sizes [label="Sizes of Dillo Widgets", 18 | URL="\ref dw-widget-sizes"]; 19 | dw_changes [label="Changes to the GTK+-based Release Version", 20 | URL="\ref dw-changes"]; 21 | dw_images_and_backgrounds [label="Images and Backgrounds in Dw", 22 | URL="\ref dw-images-and-backgrounds"]; 23 | dw_Image [label="dw::Image", URL="\ref dw::Image"]; 24 | dw_core_Imgbuf [label="dw::core::Imgbuf", URL="\ref dw::core::Imgbuf"]; 25 | dw_core_SelectionState [label="dw::core::SelectionState", 26 | URL="\ref dw::core::SelectionState"]; 27 | dw_core_style [label="dw::core::style", URL="\ref dw::core::style"]; 28 | dw_Table [label="dw::Table", URL="\ref dw::Table"]; 29 | dw_Textblock [label="dw::Textblock", URL="\ref dw::Textblock"]; 30 | dw_core_ui [label="dw::core::ui", URL="\ref dw::core::ui"]; 31 | 32 | dw_overview -> dw_changes; 33 | dw_overview -> dw_usage; 34 | dw_overview -> dw_core_style; 35 | dw_overview -> dw_core_ui; 36 | dw_overview -> dw_images_and_backgrounds; 37 | dw_overview -> dw_layout_widgets; 38 | dw_overview -> dw_widget_sizes; 39 | dw_overview -> dw_layout_views; 40 | 41 | dw_usage -> dw_Table; 42 | dw_usage -> dw_Textblock; 43 | dw_usage -> dw_core_style; 44 | dw_usage -> dw_core_ui; 45 | dw_usage -> dw_images_and_backgrounds; 46 | 47 | dw_layout_widgets -> dw_widget_sizes; 48 | dw_layout_widgets -> dw_core_SelectionState; 49 | 50 | dw_widget_sizes -> dw_Table; 51 | dw_widget_sizes -> dw_Textblock; 52 | 53 | dw_images_and_backgrounds -> dw_core_Imgbuf; 54 | dw_images_and_backgrounds -> dw_Image; 55 | 56 | dw_core_style -> dw_Textblock; 57 | } 58 | \enddot 59 | */ -------------------------------------------------------------------------------- /doc/dw-size-of-widget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-size-of-widget.png -------------------------------------------------------------------------------- /doc/dw-style-box-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-style-box-model.png -------------------------------------------------------------------------------- /doc/dw-style-length-absolute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-style-length-absolute.png -------------------------------------------------------------------------------- /doc/dw-style-length-percentage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-style-length-percentage.png -------------------------------------------------------------------------------- /doc/dw-style-length-relative.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-style-length-relative.png -------------------------------------------------------------------------------- /doc/dw-textblock-collapsing-spaces-1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-textblock-collapsing-spaces-1-1.png -------------------------------------------------------------------------------- /doc/dw-textblock-collapsing-spaces-1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-textblock-collapsing-spaces-1-2.png -------------------------------------------------------------------------------- /doc/dw-textblock-collapsing-spaces-2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-textblock-collapsing-spaces-2-1.png -------------------------------------------------------------------------------- /doc/dw-textblock-collapsing-spaces-2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-textblock-collapsing-spaces-2-2.png -------------------------------------------------------------------------------- /doc/dw-viewport-with-scrollbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-viewport-with-scrollbar.png -------------------------------------------------------------------------------- /doc/dw-viewport-without-scrollbar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/doc/dw-viewport-without-scrollbar.png -------------------------------------------------------------------------------- /doc/index.doc: -------------------------------------------------------------------------------- 1 | /** \mainpage 2 | 3 |

Overview

4 | 5 | This is a list of documents to start with: 6 | 7 |
    8 |
  • \ref lout 9 |
  • \ref dw-overview (map at \ref dw-map) 10 |
11 | 12 | Currently, a document \ref fltk-problems is maintained, ideally, it 13 | will be removed soon. 14 | 15 |

Historical

16 | 17 |

Replacements for GTK+ and GLib

18 | 19 | There are several classes etc., which are used for tasks formerly (in the GTK+ 20 | version of dillo) achieved by GtkObject (in 1.2.x, this is part of Gtk+) and 21 | GLib. For an overview on all this, take a look at \ref lout. 22 | 23 | GtkObject is replaced by the following: 24 | 25 |
    26 |
  • object::Object is a common base class for many classes used dillo. In 27 | the namespace ::object, there are also some more common classes and 28 | interfaces. 29 | 30 |
  • A sub class of object::Object is identity::IdentifiableObject, which 31 | allows to determine the class at run-time (equivalent to GTK_CHECK_CAST 32 | in GtkObject). 33 | 34 |
  • For signals, there is the namespace ::signal. 35 |
36 | 37 | Hash tables, linked lists etc. can be found in the ::container namespace, 38 | several useful macros from GLib have been implemented as inline functions 39 | in the ::misc namespace. 40 | 41 | As an alternative to the macros defined in list.h, there is also a template 42 | class, misc::SimpleVector, which does the same. 43 | 44 |

Changes in Dw

45 | 46 | If you have been familiar with Dw before, take a look at \ref dw-changes. 47 | 48 | */ 49 | -------------------------------------------------------------------------------- /doc/rounding-errors.doc: -------------------------------------------------------------------------------- 1 | /** \page rounding-errors How to Avoid Rounding Errors 2 | 3 | (Probably, this is a standard algorithm, so if someone knows the name, 4 | drop me a note.) 5 | 6 | If something like 7 | 8 | \f[y_i = {x_i a \over b}\f] 9 | 10 | is to be calculated, and all numbers are integers, a naive 11 | implementation would result in something, for which 12 | 13 | \f[\sum y_i \ne {(\sum x_i) a \over b}\f] 14 | 15 | because of rounding errors, due to the integer division. This can be 16 | avoided by transforming the formula into 17 | 18 | \f[y_i = {(\sum_{j=0}^{j=i} x_j) a \over b} - \sum_{j=0}^{j=i} y_j\f] 19 | 20 | Of corse, when all \f$y_i\f$ are calculated in a sequence, 21 | \f$\sum_{j=0}^{j=i} x_j\f$ and \f$\sum_{j=0}^{j=i} y_j\f$ can be 22 | accumulated in the same loop. 23 | 24 | */ -------------------------------------------------------------------------------- /dpi/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) 3 | 4 | bookmarksdir = $(libdir)/dillo/dpi/bookmarks 5 | downloadsdir = $(libdir)/dillo/dpi/downloads 6 | ftpdir = $(libdir)/dillo/dpi/ftp 7 | httpsdir = $(libdir)/dillo/dpi/https 8 | hellodir = $(libdir)/dillo/dpi/hello 9 | vsourcedir = $(libdir)/dillo/dpi/vsource 10 | filedir = $(libdir)/dillo/dpi/file 11 | cookiesdir = $(libdir)/dillo/dpi/cookies 12 | datauridir = $(libdir)/dillo/dpi/datauri 13 | bookmarks_PROGRAMS = bookmarks.dpi 14 | downloads_PROGRAMS = downloads.dpi 15 | ftp_PROGRAMS = ftp.filter.dpi 16 | https_PROGRAMS = https.filter.dpi 17 | hello_PROGRAMS = hello.filter.dpi 18 | vsource_PROGRAMS = vsource.filter.dpi 19 | file_PROGRAMS = file.dpi 20 | cookies_PROGRAMS = cookies.dpi 21 | datauri_PROGRAMS = datauri.filter.dpi 22 | 23 | bookmarks_dpi_LDADD = \ 24 | $(top_builddir)/dpip/libDpip.a \ 25 | $(top_builddir)/dlib/libDlib.a 26 | downloads_dpi_LDADD = @LIBFLTK_LIBS@ \ 27 | $(top_builddir)/dpip/libDpip.a \ 28 | $(top_builddir)/dlib/libDlib.a 29 | ftp_filter_dpi_LDADD = \ 30 | $(top_builddir)/dpip/libDpip.a \ 31 | $(top_builddir)/dlib/libDlib.a 32 | https_filter_dpi_LDADD = @LIBSSL_LIBS@ \ 33 | $(top_builddir)/dpip/libDpip.a \ 34 | $(top_builddir)/dlib/libDlib.a 35 | hello_filter_dpi_LDADD = \ 36 | $(top_builddir)/dpip/libDpip.a \ 37 | $(top_builddir)/dlib/libDlib.a 38 | vsource_filter_dpi_LDADD = \ 39 | $(top_builddir)/dpip/libDpip.a \ 40 | $(top_builddir)/dlib/libDlib.a 41 | file_dpi_LDADD = \ 42 | $(top_builddir)/dpip/libDpip.a \ 43 | $(top_builddir)/dlib/libDlib.a 44 | cookies_dpi_LDADD = \ 45 | $(top_builddir)/dpip/libDpip.a \ 46 | $(top_builddir)/dlib/libDlib.a 47 | datauri_filter_dpi_LDADD = \ 48 | $(top_builddir)/dpip/libDpip.a \ 49 | $(top_builddir)/dlib/libDlib.a 50 | 51 | downloads_dpi_CXXFLAGS = @LIBFLTK_CXXFLAGS@ 52 | 53 | bookmarks_dpi_SOURCES = bookmarks.c dpiutil.c dpiutil.h 54 | downloads_dpi_SOURCES = downloads.cc dpiutil.c dpiutil.h 55 | ftp_filter_dpi_SOURCES = ftp.c dpiutil.c dpiutil.h 56 | https_filter_dpi_SOURCES = https.c dpiutil.c dpiutil.h 57 | hello_filter_dpi_SOURCES = hello.c dpiutil.c dpiutil.h 58 | vsource_filter_dpi_SOURCES = vsource.c dpiutil.c dpiutil.h 59 | file_dpi_SOURCES = file.c dpiutil.c dpiutil.h 60 | cookies_dpi_SOURCES = cookies.c dpiutil.c dpiutil.h 61 | datauri_filter_dpi_SOURCES = datauri.c dpiutil.c dpiutil.h 62 | 63 | -------------------------------------------------------------------------------- /dpi/bookmarks.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/bookmarks.dpi -------------------------------------------------------------------------------- /dpi/bookmarks.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/bookmarks.o -------------------------------------------------------------------------------- /dpi/cookies.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/cookies.c -------------------------------------------------------------------------------- /dpi/cookies.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/cookies.dpi -------------------------------------------------------------------------------- /dpi/cookies.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/cookies.o -------------------------------------------------------------------------------- /dpi/datauri.filter.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/datauri.filter.dpi -------------------------------------------------------------------------------- /dpi/datauri.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/datauri.o -------------------------------------------------------------------------------- /dpi/downloads.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/downloads.dpi -------------------------------------------------------------------------------- /dpi/downloads_dpi-downloads.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/downloads_dpi-downloads.o -------------------------------------------------------------------------------- /dpi/dpiutil.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: dpiutil.h 3 | * 4 | * Copyright 2004-2005 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | */ 12 | 13 | /* 14 | * This file contains common functions used by dpi programs. 15 | * (i.e. a convenience library). 16 | */ 17 | 18 | #ifndef __DPIUTIL_H__ 19 | #define __DPIUTIL_H__ 20 | 21 | #include 22 | #include "d_size.h" 23 | #include "../dlib/dlib.h" 24 | 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif /* __cplusplus */ 29 | 30 | 31 | /* 32 | * Escape URI characters in 'esc_set' as %XX sequences. 33 | * Return value: New escaped string. 34 | */ 35 | char *Escape_uri_str(const char *str, const char *p_esc_set); 36 | 37 | /* 38 | * Unescape %XX sequences in a string. 39 | * Return value: a new unescaped string 40 | */ 41 | char *Unescape_uri_str(const char *str); 42 | 43 | /* 44 | * Escape unsafe characters as html entities. 45 | * Return value: New escaped string. 46 | */ 47 | char *Escape_html_str(const char *str); 48 | 49 | /* 50 | * Unescape a few HTML entities (inverse of Escape_html_str) 51 | * Return value: New unescaped string. 52 | */ 53 | char *Unescape_html_str(const char *str); 54 | 55 | /* 56 | * Filter an SMTP hack with a FTP URI 57 | */ 58 | char *Filter_smtp_hack(char *url); 59 | 60 | 61 | #ifdef __cplusplus 62 | } 63 | #endif /* __cplusplus */ 64 | 65 | #endif /* __DPIUTIL_H__ */ 66 | 67 | -------------------------------------------------------------------------------- /dpi/dpiutil.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/dpiutil.o -------------------------------------------------------------------------------- /dpi/file.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/file.dpi -------------------------------------------------------------------------------- /dpi/file.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/file.o -------------------------------------------------------------------------------- /dpi/ftp.filter.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/ftp.filter.dpi -------------------------------------------------------------------------------- /dpi/ftp.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/ftp.o -------------------------------------------------------------------------------- /dpi/hello.filter.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/hello.filter.dpi -------------------------------------------------------------------------------- /dpi/hello.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/hello.o -------------------------------------------------------------------------------- /dpi/https.filter.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/https.filter.dpi -------------------------------------------------------------------------------- /dpi/https.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/https.o -------------------------------------------------------------------------------- /dpi/vsource.filter.dpi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/vsource.filter.dpi -------------------------------------------------------------------------------- /dpi/vsource.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpi/vsource.o -------------------------------------------------------------------------------- /dpid/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) \ 3 | -DDPIDRC_SYS='"$(sysconfdir)/dpidrc"' 4 | 5 | bin_PROGRAMS = dpid dpidc 6 | dpid_LDADD = \ 7 | $(top_builddir)/dpip/libDpip.a \ 8 | $(top_builddir)/dlib/libDlib.a 9 | dpidc_LDADD = \ 10 | $(top_builddir)/dpip/libDpip.a \ 11 | $(top_builddir)/dlib/libDlib.a 12 | 13 | EXTRA_DIST = dpidrc.in 14 | 15 | dpid_SOURCES = \ 16 | dpi.h \ 17 | dpi_socket_dir.h \ 18 | dpid.h \ 19 | dpid_common.h \ 20 | misc_new.h \ 21 | dpi.c \ 22 | dpi_socket_dir.c \ 23 | dpid.c \ 24 | dpid_common.c \ 25 | main.c \ 26 | misc_new.c 27 | 28 | dpidc_SOURCES = dpidc.c 29 | 30 | sysconf_DATA = dpidrc 31 | CLEANFILES = $(sysconf_DATA) 32 | 33 | dpidrc: $(srcdir)/dpidrc.in Makefile 34 | sed -e 's|[@]libdir[@]|$(libdir)|' $(srcdir)/dpidrc.in > dpidrc 35 | 36 | -------------------------------------------------------------------------------- /dpid/TODO: -------------------------------------------------------------------------------- 1 | Todo List 2 | 3 | File dpi_service.c 4 | This module should be removed because its original functions 5 | have been removed or modified. Put these functions in dpid.c 6 | 7 | File dpi_service.h 8 | This module should be removed because its original functions 9 | have been removed or modified. Put these functions in dpid.c 10 | 11 | Add other file types, but first we need to add files associated 12 | with a dpi to the design. 13 | 14 | Global SRS_NAME 15 | Should read this from dillorc 16 | 17 | File dpid_common.h 18 | The dpid error codes will be used in the next patch 19 | 20 | Global main() 21 | + add new plugins when they become available 22 | __________________________________________________________ 23 | 24 | Remove global variables. 25 | 26 | Use a singly linked list for dpi_attr_list 27 | 28 | Allow dpis to be registered one at a time 29 | 30 | Only run dpis listed in users dillorc 31 | 32 | MAYBE Have dpid accept all connections to dpis (fixes inf loop if dpi crashes before accept) 33 | -------------------------------------------------------------------------------- /dpid/dpi.h: -------------------------------------------------------------------------------- 1 | /*! \file 2 | * Access functions for ~/.dillo/dpi_socket_dir. 3 | * The most useful function for dillo is a_Dpi_srs, it returns 4 | * the full path to the dpid service request socket. 5 | */ 6 | 7 | #ifndef DPI_H 8 | #define DPI_H 9 | 10 | #include /* for socklen_t */ 11 | #include /* for socklen_t and AF_LOCAL */ 12 | 13 | /* Some systems may not have this one... */ 14 | #ifndef AF_LOCAL 15 | #define AF_LOCAL AF_UNIX 16 | #endif 17 | 18 | /* This one is tricky, some sources state it should include the byte 19 | * for the terminating NULL, and others say it shouldn't. 20 | * The other way is to only use this one when a native SUN_LEN is not present, 21 | * but as dillo has used this for a long time successfully, here it goes. 22 | */ 23 | # define D_SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ 24 | + strlen ((ptr)->sun_path)) 25 | 26 | /*! 27 | * dpi commands 28 | */ 29 | enum { 30 | UNKNOWN_CMD, 31 | AUTH_CMD, /* authentication */ 32 | BYE_CMD, /* "DpiBye" */ 33 | CHECK_SERVER_CMD, /* "check_server" */ 34 | REGISTER_ALL_CMD, /* "register_all" */ 35 | REGISTER_SERVICE_CMD /* "register_service" */ 36 | }; 37 | 38 | 39 | char *a_Dpi_sockdir_file(void); 40 | 41 | char *a_Dpi_rd_dpi_socket_dir(char *dirname); 42 | 43 | char *a_Dpi_srs(void); 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /dpid/dpi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpi.o -------------------------------------------------------------------------------- /dpid/dpi_socket_dir.h: -------------------------------------------------------------------------------- 1 | /*! \file 2 | * Create a per user temporary directory for dpi sockets 3 | */ 4 | 5 | #ifndef DPI_SOCKET_DIR_H 6 | #define DPI_SOCKET_DIR_H 7 | 8 | 9 | int w_dpi_socket_dir(char *dirname, char *sockdir); 10 | 11 | int tst_dir(char *dir); 12 | 13 | char *mk_sockdir(void); 14 | 15 | char *init_sockdir(char *dpi_socket_dir); 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /dpid/dpi_socket_dir.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpi_socket_dir.o -------------------------------------------------------------------------------- /dpid/dpid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpid -------------------------------------------------------------------------------- /dpid/dpid.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpid.o -------------------------------------------------------------------------------- /dpid/dpid_common.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: dpid_common.c 3 | * 4 | * Copyright 2008 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #include 13 | #include 14 | #include 15 | #include "dpid_common.h" 16 | 17 | /* 18 | * Send a verbose error message. 19 | */ 20 | void errmsg(char *caller, char *called, int errornum, char *file, int line) 21 | { 22 | MSG_ERR("%s:%d: %s: %s\n", file, line, caller, called); 23 | if (errornum > 0) 24 | MSG_ERR("%s\n", dStrerror(errornum)); 25 | } 26 | 27 | /*! Selector function for scandir 28 | * Do not scan files starting with '.' 29 | */ 30 | int no_dotfiles(const struct dirent *filedat) 31 | { 32 | if (filedat->d_name[0] == '.') 33 | return 0; 34 | else 35 | return 1; 36 | } 37 | 38 | /*! 39 | * Provides an error checked write command. 40 | * Call this via the CKD_WRITE macro 41 | * \return write return value 42 | */ 43 | ssize_t ckd_write(int fd, char *msg, char *file, int line) 44 | { 45 | ssize_t ret; 46 | 47 | do { 48 | ret = write(fd, msg, strlen(msg)); 49 | } while (ret == -1 && errno == EINTR); 50 | if (ret == -1) { 51 | MSG_ERR("%s:%d: write: %s\n", file, line, dStrerror(errno)); 52 | } 53 | return (ret); 54 | } 55 | 56 | /*! 57 | * Provides an error checked close() call. 58 | * Call this via the CKD_CLOSE macro 59 | * \return close return value 60 | */ 61 | ssize_t ckd_close(int fd, char *file, int line) 62 | { 63 | ssize_t ret; 64 | 65 | do { 66 | ret = close(fd); 67 | } while (ret == -1 && errno == EINTR); 68 | if (ret == -1) { 69 | MSG_ERR("%s:%d: close: %s\n", file, line, dStrerror(errno)); 70 | } 71 | return (ret); 72 | } 73 | 74 | -------------------------------------------------------------------------------- /dpid/dpid_common.h: -------------------------------------------------------------------------------- 1 | #ifndef DPID_COMMON_H 2 | #define DPID_COMMON_H 3 | 4 | /*! \file 5 | * Declares common functions, global variables, and types. 6 | * 7 | * \todo 8 | * The dpid error codes will be used in 9 | * the next patch 10 | */ 11 | 12 | #include 13 | 14 | #include "../dlib/dlib.h" 15 | 16 | /* 17 | * Debugging macros 18 | */ 19 | #define _MSG(...) 20 | #define MSG(...) printf("[dpid]: " __VA_ARGS__) 21 | #define _MSG_ERR(...) 22 | #define MSG_ERR(...) fprintf(stderr, "[dpid]: " __VA_ARGS__) 23 | 24 | #define dotDILLO_DPI ".dillo/dpi" 25 | #define dotDILLO_DPIDRC ".dillo/dpidrc" 26 | #define dotDILLO_DPID_COMM_KEYS ".dillo/dpid_comm_keys" 27 | 28 | #define ERRMSG(CALLER, CALLED, ERR)\ 29 | errmsg(CALLER, CALLED, ERR, __FILE__, __LINE__) 30 | #define _ERRMSG(CALLER, CALLED, ERR) 31 | 32 | 33 | /*! 34 | * Macros for calling ckd_write and ckd_close functions 35 | */ 36 | #define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__) 37 | #define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__) 38 | 39 | 40 | /*! Error codes for dpid */ 41 | enum { 42 | no_errors, 43 | dpid_srs_addrinuse /* dpid service request socket address already in use */ 44 | } dpi_errno; 45 | 46 | /*! Intended for identifying dillo plugins 47 | * and related files 48 | */ 49 | enum file_type { 50 | DPI_FILE, /*! Any file name containing .dpi */ 51 | UNKNOWN_FILE 52 | }; 53 | 54 | 55 | void errmsg(char *caller, char *called, int errornum, char *file, int line); 56 | 57 | int no_dotfiles(const struct dirent *filedat); 58 | 59 | ssize_t ckd_write(int fd, char *msg, char *file, int line); 60 | ssize_t ckd_close(int fd, char *file, int line); 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /dpid/dpid_common.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpid_common.o -------------------------------------------------------------------------------- /dpid/dpidc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpidc -------------------------------------------------------------------------------- /dpid/dpidc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/dpidc.o -------------------------------------------------------------------------------- /dpid/dpidrc: -------------------------------------------------------------------------------- 1 | dpi_dir=/opt/dillo/lib/dillo/dpi 2 | 3 | proto.file=file/file.dpi 4 | proto.ftp=ftp/ftp.filter.dpi 5 | proto.https=https/https.filter.dpi 6 | proto.data=datauri/datauri.filter.dpi 7 | -------------------------------------------------------------------------------- /dpid/dpidrc.in: -------------------------------------------------------------------------------- 1 | dpi_dir=@libdir@/dillo/dpi 2 | 3 | proto.file=file/file.dpi 4 | proto.ftp=ftp/ftp.filter.dpi 5 | proto.https=https/https.filter.dpi 6 | proto.data=datauri/datauri.filter.dpi 7 | -------------------------------------------------------------------------------- /dpid/main.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/main.o -------------------------------------------------------------------------------- /dpid/misc_new.h: -------------------------------------------------------------------------------- 1 | #ifndef MISC_NEW_H 2 | #define MISC_NEW_H 3 | 4 | 5 | int a_Misc_close_fd(int fd); 6 | Dstr *a_Misc_rdtag(int socket); 7 | char *a_Misc_readtag(int sock); 8 | char *a_Misc_mkdtemp(char *template); 9 | char *a_Misc_mkfname(char *template); 10 | char *a_Misc_mksecret(int nchar); 11 | 12 | #endif 13 | -------------------------------------------------------------------------------- /dpid/misc_new.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpid/misc_new.o -------------------------------------------------------------------------------- /dpip/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) 3 | 4 | noinst_LIBRARIES = libDpip.a 5 | 6 | libDpip_a_SOURCES = \ 7 | dpip.h \ 8 | dpip.c 9 | -------------------------------------------------------------------------------- /dpip/dpip.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpip/dpip.o -------------------------------------------------------------------------------- /dpip/libDpip.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dpip/libDpip.a -------------------------------------------------------------------------------- /dw/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) 3 | 4 | noinst_LIBRARIES = \ 5 | libDw-core.a \ 6 | libDw-fltk.a \ 7 | libDw-widgets.a 8 | 9 | libDw_core_a_SOURCES = \ 10 | core.hh \ 11 | events.hh \ 12 | findtext.cc \ 13 | findtext.hh \ 14 | imgbuf.hh \ 15 | iterator.cc \ 16 | iterator.hh \ 17 | layout.cc \ 18 | layout.hh \ 19 | platform.hh \ 20 | selection.hh \ 21 | selection.cc \ 22 | style.cc \ 23 | style.hh \ 24 | types.cc \ 25 | types.hh \ 26 | ui.cc \ 27 | ui.hh \ 28 | view.hh \ 29 | widget.cc \ 30 | widget.hh 31 | 32 | libDw_fltk_a_SOURCES = \ 33 | fltkcomplexbutton.cc \ 34 | fltkcomplexbutton.hh \ 35 | fltkcore.hh \ 36 | fltkflatview.cc \ 37 | fltkflatview.hh \ 38 | fltkimgbuf.cc \ 39 | fltkimgbuf.hh \ 40 | fltkmisc.cc \ 41 | fltkmisc.hh \ 42 | fltkplatform.cc \ 43 | fltkplatform.hh \ 44 | fltkpreview.hh \ 45 | fltkpreview.cc \ 46 | fltkui.cc \ 47 | fltkui.hh \ 48 | fltkviewbase.cc \ 49 | fltkviewbase.hh \ 50 | fltkviewport.cc \ 51 | fltkviewport.hh 52 | 53 | libDw_fltk_a_CXXFLAGS = @LIBFLTK_CXXFLAGS@ 54 | 55 | libDw_widgets_a_SOURCES = \ 56 | alignedtextblock.cc \ 57 | alignedtextblock.hh \ 58 | bullet.cc \ 59 | bullet.hh \ 60 | image.cc \ 61 | image.hh \ 62 | listitem.cc \ 63 | listitem.hh \ 64 | ruler.cc \ 65 | ruler.hh \ 66 | table.cc \ 67 | table.hh \ 68 | tablecell.cc \ 69 | tablecell.hh \ 70 | textblock.cc \ 71 | textblock.hh 72 | 73 | EXTRA_DIST = preview.xbm 74 | -------------------------------------------------------------------------------- /dw/alignedtextblock.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_ALIGNEDTEXTBLOCK_HH__ 2 | #define __DW_ALIGNEDTEXTBLOCK_HH__ 3 | 4 | #include "core.hh" 5 | #include "textblock.hh" 6 | 7 | namespace dw { 8 | 9 | /** 10 | * \brief Base widget for all textblocks (sub classes of dw::Textblock), which 11 | * are positioned vertically and aligned horizontally. 12 | */ 13 | class AlignedTextblock: public Textblock 14 | { 15 | private: 16 | class List 17 | { 18 | private: 19 | lout::misc::SimpleVector *textblocks; 20 | lout::misc::SimpleVector *values; 21 | int maxValue, refCount; 22 | 23 | ~List (); 24 | 25 | public: 26 | List (); 27 | inline int add (AlignedTextblock *textblock); 28 | void unref (int pos); 29 | 30 | inline int getMaxValue () { return maxValue; } 31 | inline void setMaxValue (int maxValue) { this->maxValue = maxValue; } 32 | 33 | inline int size () { return textblocks->size (); } 34 | inline AlignedTextblock *getTextblock (int pos) { 35 | return textblocks->get (pos); } 36 | inline int getValue (int pos) {return values->get (pos); } 37 | inline void setValue (int pos, int value) { 38 | return values->set (pos, value); } 39 | }; 40 | 41 | List *list; 42 | int listPos; 43 | 44 | protected: 45 | AlignedTextblock(bool limitTextWidth); 46 | 47 | virtual int getValue () = 0; 48 | virtual void setMaxValue (int maxValue, int value) = 0; 49 | 50 | void setRefTextblock (AlignedTextblock *ref); 51 | void updateValue (); 52 | 53 | public: 54 | static int CLASS_ID; 55 | 56 | ~AlignedTextblock(); 57 | }; 58 | 59 | } // namespace dw 60 | 61 | #endif // __DW_ALIGNEDTEXTBLOCK_HH__ 62 | -------------------------------------------------------------------------------- /dw/alignedtextblock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/alignedtextblock.o -------------------------------------------------------------------------------- /dw/bullet.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "bullet.hh" 23 | 24 | #include 25 | 26 | namespace dw { 27 | 28 | Bullet::Bullet () 29 | { 30 | } 31 | 32 | void Bullet::sizeRequestImpl (core::Requisition *requisition) 33 | { 34 | requisition->width = lout::misc::max (getStyle()->font->xHeight * 4 / 5, 1); 35 | requisition->ascent = lout::misc::max (getStyle()->font->xHeight, 1); 36 | requisition->descent = 0; 37 | } 38 | 39 | void Bullet::draw (core::View *view, core::Rectangle *area) 40 | { 41 | int x, y, l; 42 | bool filled = true; 43 | 44 | l = lout::misc::min (allocation.width, allocation.ascent); 45 | x = allocation.x; 46 | y = allocation.y + allocation.ascent - getStyle()->font->xHeight; 47 | 48 | switch (getStyle()->listStyleType) { 49 | case core::style::LIST_STYLE_TYPE_SQUARE: 50 | view->drawRectangle (getStyle()->color, 51 | core::style::Color::SHADING_NORMAL, 52 | false, x, y, l, l); 53 | break; 54 | case core::style::LIST_STYLE_TYPE_CIRCLE: 55 | filled = false; 56 | // Fall Through 57 | case core::style::LIST_STYLE_TYPE_DISC: 58 | default: 59 | view->drawArc (getStyle()->color, core::style::Color::SHADING_NORMAL, 60 | filled, x + l/2, y + l/2, l, l, 0, 360); 61 | } 62 | } 63 | 64 | core::Iterator *Bullet::iterator (core::Content::Type mask, bool atEnd) 65 | { 66 | //return new core::TextIterator (this, mask, atEnd, "*"); 67 | /** \bug Not implemented. */ 68 | return new core::EmptyIterator (this, mask, atEnd); 69 | } 70 | 71 | } // namespace dw 72 | -------------------------------------------------------------------------------- /dw/bullet.hh: -------------------------------------------------------------------------------- 1 | #ifndef __BULLET_HH__ 2 | #define __BULLET_HH__ 3 | 4 | #include "core.hh" 5 | 6 | namespace dw { 7 | 8 | /** 9 | * \brief Displays different kind of bullets. 10 | * 11 | * Perhaps, in the future, Unicode characters are used for bullets, so this 12 | * widget is not used anymore. 13 | */ 14 | class Bullet: public core::Widget 15 | { 16 | protected: 17 | void sizeRequestImpl (core::Requisition *requisition); 18 | void draw (core::View *view, core::Rectangle *area); 19 | core::Iterator *iterator (core::Content::Type mask, bool atEnd); 20 | 21 | public: 22 | Bullet (); 23 | }; 24 | 25 | } // namespace dw 26 | 27 | #endif // __BULLET_HH__ 28 | -------------------------------------------------------------------------------- /dw/bullet.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/bullet.o -------------------------------------------------------------------------------- /dw/core.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_CORE_HH__ 2 | #define __DW_CORE_HH__ 3 | 4 | #define __INCLUDED_FROM_DW_CORE_HH__ 5 | 6 | /** 7 | * \brief Dw is in this namespace, or sub namespaces of this one. 8 | * 9 | * The core can be found in dw::core, widgets are defined directly here. 10 | * 11 | * \sa \ref dw-overview 12 | */ 13 | namespace dw { 14 | 15 | /** 16 | * \brief The core of Dw is defined in this namespace. 17 | * 18 | * \sa \ref dw-overview 19 | */ 20 | namespace core { 21 | 22 | typedef unsigned char byte; 23 | 24 | class Layout; 25 | class View; 26 | class Widget; 27 | class Iterator; 28 | 29 | namespace ui { 30 | 31 | class ResourceFactory; 32 | 33 | } // namespace ui 34 | 35 | 36 | } // namespace dw 37 | } // namespace core 38 | 39 | #include "../lout/object.hh" 40 | #include "../lout/container.hh" 41 | #include "../lout/signal.hh" 42 | 43 | #include "types.hh" 44 | #include "events.hh" 45 | #include "imgbuf.hh" 46 | #include "style.hh" 47 | #include "view.hh" 48 | #include "platform.hh" 49 | #include "iterator.hh" 50 | #include "findtext.hh" 51 | #include "selection.hh" 52 | #include "layout.hh" 53 | #include "widget.hh" 54 | #include "ui.hh" 55 | 56 | #undef __INCLUDED_FROM_DW_CORE_HH__ 57 | 58 | #endif // __DW_CORE_HH__ 59 | -------------------------------------------------------------------------------- /dw/events.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_EVENTS_HH__ 2 | #define __DW_EVENTS_HH__ 3 | 4 | #ifndef __INCLUDED_FROM_DW_CORE_HH__ 5 | # error Do not include this file directly, use "core.hh" instead. 6 | #endif 7 | 8 | namespace dw { 9 | namespace core { 10 | 11 | /** 12 | * \brief Platform independent representation. 13 | */ 14 | enum ButtonState 15 | { 16 | /* We won't use more than these ones. */ 17 | SHIFT_MASK = 1 << 0, 18 | CONTROL_MASK = 1 << 1, 19 | META_MASK = 1 << 2, 20 | BUTTON1_MASK = 1 << 3, 21 | BUTTON2_MASK = 1 << 4, 22 | BUTTON3_MASK = 1 << 5 23 | }; 24 | 25 | /** 26 | * \brief Base class for all events. 27 | * 28 | * The dw::core::Event hierarchy describes events in a platform independent 29 | * way. 30 | */ 31 | class Event: public lout::object::Object 32 | { 33 | public: 34 | }; 35 | 36 | /** 37 | * \brief Base class for all mouse events. 38 | */ 39 | class MouseEvent: public Event 40 | { 41 | public: 42 | ButtonState state; 43 | }; 44 | 45 | /** 46 | * \brief Base class for all mouse events related to a specific position. 47 | */ 48 | class MousePositionEvent: public MouseEvent 49 | { 50 | public: 51 | int xCanvas, yCanvas, xWidget, yWidget; 52 | }; 53 | 54 | /** 55 | * \brief Represents a button press or release event. 56 | */ 57 | class EventButton: public MousePositionEvent 58 | { 59 | public: 60 | int numPressed; /* 1 for simple click, 2 for double click, etc. */ 61 | int button; 62 | }; 63 | 64 | /** 65 | * \brief Represents a mouse motion event. 66 | */ 67 | class EventMotion: public MousePositionEvent 68 | { 69 | }; 70 | 71 | /** 72 | * \brief Represents a enter or leave notify event. 73 | */ 74 | class EventCrossing: public MouseEvent 75 | { 76 | public: 77 | Widget *lastWidget, *currentWidget; 78 | }; 79 | 80 | } // namespace dw 81 | } // namespace core 82 | 83 | #endif // __DW_EVENTS_HH__ 84 | -------------------------------------------------------------------------------- /dw/findtext.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_FINDTEXT_STATE_H__ 2 | #define __DW_FINDTEXT_STATE_H__ 3 | 4 | #ifndef __INCLUDED_FROM_DW_CORE_HH__ 5 | # error Do not include this file directly, use "core.hh" instead. 6 | #endif 7 | 8 | #include 9 | 10 | namespace dw { 11 | namespace core { 12 | 13 | class FindtextState 14 | { 15 | public: 16 | typedef enum { 17 | /** \brief The next occurrence of the pattern has been found. */ 18 | SUCCESS, 19 | 20 | /** 21 | * \brief There is no further occurrence of the pattern, instead, the 22 | * first occurrence has been selected. 23 | */ 24 | RESTART, 25 | 26 | /** \brief The patten does not at all occur in the text. */ 27 | NOT_FOUND 28 | } Result; 29 | 30 | private: 31 | /** 32 | * \brief The key used for the last search. 33 | * 34 | * If dw::core::Findtext::search is called with the same key, the search 35 | * is continued, otherwise it is restarted. 36 | */ 37 | char *key; 38 | 39 | /** \brief Whether the last search was case sensitive. */ 40 | bool caseSens; 41 | 42 | /** \brief The table used for KMP search. */ 43 | int *nexttab; 44 | 45 | /** \brief The top of the widget tree, in which the search is done. 46 | * 47 | * From this, the iterator will be constructed. Set by 48 | * dw::core::Findtext::widget 49 | */ 50 | Widget *widget; 51 | 52 | /** \brief The position from where the next search will start. */ 53 | CharIterator *iterator; 54 | 55 | /** 56 | * \brief The position from where the characters are highlighted. 57 | * 58 | * NULL, when no text is highlighted. 59 | */ 60 | CharIterator *hlIterator; 61 | 62 | static const char* rev(const char* _str); /* reverse a C string */ 63 | 64 | static int *createNexttab (const char *needle,bool caseSens,bool backwards); 65 | bool unhighlight (); 66 | bool search0 (bool backwards, bool firstTrial); 67 | 68 | inline static bool charsEqual (char c1, char c2, bool caseSens) 69 | { return caseSens ? c1 == c2 : tolower (c1) == tolower (c2) || 70 | (isspace (c1) && isspace (c2)); } 71 | 72 | public: 73 | FindtextState (); 74 | ~FindtextState (); 75 | 76 | void setWidget (Widget *widget); 77 | Result search (const char *key, bool caseSens, bool backwards); 78 | void resetSearch (); 79 | }; 80 | 81 | } // namespace dw 82 | } // namespace core 83 | 84 | #endif // __DW_FINDTEXT_STATE_H__ 85 | -------------------------------------------------------------------------------- /dw/findtext.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/findtext.o -------------------------------------------------------------------------------- /dw/fltkcomplexbutton.hh: -------------------------------------------------------------------------------- 1 | 2 | // fltkcomplexbutton.hh is derived from FL/Fl_Button.H from FLTK's 1.3 branch 3 | // at http://fltk.org in early 2011. 4 | // FL/Fl_Button.H is Copyright 1998-2010 by Bill Spitzak and others. 5 | 6 | /* 7 | * This program is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 3 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * This program is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program. If not, see . 19 | */ 20 | 21 | #ifndef __FLTK_COMPLEX_BUTTON_HH__ 22 | #define __FLTK_COMPLEX_BUTTON_HH__ 23 | 24 | #include 25 | 26 | extern FL_EXPORT Fl_Shortcut fl_old_shortcut(const char*); 27 | 28 | namespace dw { 29 | namespace fltk { 30 | namespace ui { 31 | 32 | class FL_EXPORT ComplexButton : public Fl_Group { 33 | 34 | int shortcut_; 35 | char value_; 36 | char oldval; 37 | uchar down_box_; 38 | 39 | protected: 40 | virtual void draw(); 41 | 42 | public: 43 | virtual int handle(int); 44 | 45 | ComplexButton(int X, int Y, int W, int H, const char *L = 0); 46 | ~ComplexButton(); 47 | 48 | int value(int v); 49 | 50 | /** 51 | Returns the current value of the button (0 or 1). 52 | */ 53 | char value() const {return value_;} 54 | 55 | /** 56 | Returns the current down box type, which is drawn when value() is non-zero. 57 | \retval Fl_Boxtype 58 | */ 59 | Fl_Boxtype down_box() const {return (Fl_Boxtype)down_box_;} 60 | 61 | /** 62 | Sets the down box type. The default value of 0 causes FLTK to figure out 63 | the correct matching down version of box(). 64 | \param[in] b down box type 65 | */ 66 | void down_box(Fl_Boxtype b) {down_box_ = b;} 67 | }; 68 | 69 | } // namespace ui 70 | } // namespace fltk 71 | } // namespace dw 72 | 73 | #endif 74 | 75 | // 76 | // 77 | -------------------------------------------------------------------------------- /dw/fltkcore.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_FLTK_CORE_HH__ 2 | #define __DW_FLTK_CORE_HH__ 3 | 4 | #define __INCLUDED_FROM_DW_FLTK_CORE_HH__ 5 | 6 | namespace dw { 7 | namespace fltk { 8 | namespace ui { 9 | 10 | class FltkResource; 11 | 12 | } // namespace ui 13 | } // namespace fltk 14 | } // namespace core 15 | 16 | #include 17 | 18 | #include "core.hh" 19 | #include "fltkimgbuf.hh" 20 | #include "fltkplatform.hh" 21 | #include "fltkui.hh" 22 | 23 | #undef __INCLUDED_FROM_DW_FLTK_CORE_HH__ 24 | 25 | #endif // __DW_FLTK_CORE_HH__ 26 | -------------------------------------------------------------------------------- /dw/fltkflatview.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "fltkflatview.hh" 23 | 24 | #include 25 | 26 | using namespace lout::container::typed; 27 | 28 | namespace dw { 29 | namespace fltk { 30 | 31 | FltkFlatView::FltkFlatView (int x, int y, int w, int h, const char *label): 32 | FltkWidgetView (x, y, w, h, label) 33 | { 34 | } 35 | 36 | FltkFlatView::~FltkFlatView () 37 | { 38 | } 39 | 40 | void FltkFlatView::setCanvasSize (int width, int ascent, int descent) 41 | { 42 | /** 43 | * \bug It has to be clarified, who is responsible for setting the 44 | * FLTK widget size. In the only used context (complex buttons), 45 | * it is done elsewhere. 46 | */ 47 | 48 | #if 0 49 | FltkWidgetView::setCanvasSize (width, ascent, descent); 50 | 51 | w (width); 52 | h (ascent + descent); 53 | #endif 54 | } 55 | 56 | bool FltkFlatView::usesViewport () 57 | { 58 | return false; 59 | } 60 | 61 | int FltkFlatView::getHScrollbarThickness () 62 | { 63 | return 0; 64 | } 65 | 66 | int FltkFlatView::getVScrollbarThickness () 67 | { 68 | return 0; 69 | } 70 | 71 | void FltkFlatView::scrollTo (int x, int y) 72 | { 73 | } 74 | 75 | void FltkFlatView::setViewportSize (int width, int height, 76 | int hScrollbarThickness, 77 | int vScrollbarThickness) 78 | { 79 | } 80 | 81 | int FltkFlatView::translateViewXToCanvasX (int X) 82 | { 83 | return X - x (); 84 | } 85 | 86 | int FltkFlatView::translateViewYToCanvasY (int Y) 87 | { 88 | return Y - y (); 89 | } 90 | 91 | int FltkFlatView::translateCanvasXToViewX (int X) 92 | { 93 | return X + x (); 94 | } 95 | 96 | int FltkFlatView::translateCanvasYToViewY (int Y) 97 | { 98 | return Y + y (); 99 | } 100 | 101 | 102 | } // namespace fltk 103 | } // namespace dw 104 | -------------------------------------------------------------------------------- /dw/fltkflatview.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_FLTKFLATVIEW_HH__ 2 | #define __DW_FLTKFLATVIEW_HH__ 3 | 4 | #include "core.hh" 5 | #include "fltkcore.hh" 6 | #include "fltkviewbase.hh" 7 | 8 | namespace dw { 9 | namespace fltk { 10 | 11 | class FltkFlatView: public FltkWidgetView 12 | { 13 | protected: 14 | int translateViewXToCanvasX (int x); 15 | int translateViewYToCanvasY (int y); 16 | int translateCanvasXToViewX (int x); 17 | int translateCanvasYToViewY (int y); 18 | 19 | public: 20 | FltkFlatView (int x, int y, int w, int h, const char *label = 0); 21 | ~FltkFlatView (); 22 | 23 | void setCanvasSize (int width, int ascent, int descent); 24 | 25 | bool usesViewport (); 26 | int getHScrollbarThickness (); 27 | int getVScrollbarThickness (); 28 | void scrollTo (int x, int y); 29 | void setViewportSize (int width, int height, 30 | int hScrollbarThickness, int vScrollbarThickness); 31 | }; 32 | 33 | } // namespace fltk 34 | } // namespace dw 35 | 36 | #endif // __DW_FLTKFLATVIEW_HH__ 37 | 38 | -------------------------------------------------------------------------------- /dw/fltkimgbuf.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_FLTKIMGBUF_HH__ 2 | #define __DW_FLTKIMGBUF_HH__ 3 | 4 | #ifndef __INCLUDED_FROM_DW_FLTK_CORE_HH__ 5 | # error Do not include this file directly, use "fltkcore.hh" instead. 6 | #endif 7 | 8 | namespace dw { 9 | namespace fltk { 10 | 11 | class FltkImgbuf: public core::Imgbuf 12 | { 13 | private: 14 | FltkImgbuf *root; 15 | int refCount; 16 | bool deleteOnUnref; 17 | lout::container::typed::List *scaledBuffers; 18 | 19 | int width, height; 20 | Type type; 21 | 22 | //{ 23 | int bpp; 24 | uchar *rawdata; 25 | //} 26 | 27 | // This is just for testing drawing, it has to be replaced by 28 | // the image buffer. 29 | lout::misc::BitSet *copiedRows; 30 | 31 | FltkImgbuf (Type type, int width, int height, FltkImgbuf *root); 32 | void init (Type type, int width, int height, FltkImgbuf *root); 33 | int scaledY(int ySrc); 34 | int isRoot() { return (root == NULL); } 35 | void detachScaledBuf (FltkImgbuf *scaledBuf); 36 | 37 | protected: 38 | ~FltkImgbuf (); 39 | 40 | public: 41 | FltkImgbuf (Type type, int width, int height); 42 | 43 | void setCMap (int *colors, int num_colors); 44 | inline void scaleRow (int row, const core::byte *data); 45 | void newScan (); 46 | void copyRow (int row, const core::byte *data); 47 | core::Imgbuf* getScaledBuf (int width, int height); 48 | void getRowArea (int row, dw::core::Rectangle *area); 49 | int getRootWidth (); 50 | int getRootHeight (); 51 | void ref (); 52 | void unref (); 53 | 54 | bool lastReference (); 55 | void setDeleteOnUnref (bool deleteOnUnref); 56 | bool isReferred (); 57 | 58 | void draw (Fl_Widget *target, int xRoot, int yRoot, 59 | int x, int y, int width, int height); 60 | }; 61 | 62 | } // namespace dw 63 | } // namespace fltk 64 | 65 | #endif // __DW_FLTK_IMGBUF_HH__ 66 | -------------------------------------------------------------------------------- /dw/fltkmisc.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | #include "../lout/msg.h" 22 | #include "fltkmisc.hh" 23 | 24 | #include 25 | #include 26 | 27 | namespace dw { 28 | namespace fltk { 29 | namespace misc { 30 | 31 | int screenWidth () 32 | { 33 | return Fl::w (); 34 | } 35 | 36 | int screenHeight () 37 | { 38 | return Fl::h (); 39 | } 40 | 41 | void warpPointer (int x, int y) 42 | { 43 | MSG_ERR("no warpPointer mechanism available.\n"); 44 | } 45 | 46 | } // namespace misc 47 | } // namespace fltk 48 | } // namespace dw 49 | -------------------------------------------------------------------------------- /dw/fltkmisc.hh: -------------------------------------------------------------------------------- 1 | #ifndef __FLTKMISC_HH__ 2 | #define __FLTKMISC_HH__ 3 | 4 | namespace dw { 5 | namespace fltk { 6 | 7 | /** 8 | * \brief Miscellaneous FLTK stuff. 9 | */ 10 | namespace misc { 11 | 12 | int screenWidth (); 13 | int screenHeight (); 14 | 15 | void warpPointer (int x, int y); 16 | 17 | } // namespace misc 18 | } // namespace fltk 19 | } // namespace dw 20 | 21 | 22 | #endif // __FLTKMISC_HH__ 23 | -------------------------------------------------------------------------------- /dw/fltkpreview.hh: -------------------------------------------------------------------------------- 1 | #ifndef __FlTKPREVIEW_HH__ 2 | #define __FlTKPREVIEW_HH__ 3 | 4 | #include 5 | #include 6 | #include "fltkviewbase.hh" 7 | 8 | namespace dw { 9 | namespace fltk { 10 | 11 | class FltkPreview: public FltkViewBase 12 | { 13 | friend class FltkPreviewWindow; 14 | 15 | private: 16 | int scrollX, scrollY, scrollWidth, scrollHeight; 17 | 18 | protected: 19 | int translateViewXToCanvasX (int x); 20 | int translateViewYToCanvasY (int y); 21 | int translateCanvasXToViewX (int x); 22 | int translateCanvasYToViewY (int y); 23 | 24 | public: 25 | FltkPreview (int x, int y, int w, int h, dw::core::Layout *layout, 26 | const char *label = 0); 27 | ~FltkPreview (); 28 | 29 | int handle (int event); 30 | 31 | void setCanvasSize (int width, int ascent, int descent); 32 | 33 | bool usesViewport (); 34 | int getHScrollbarThickness (); 35 | int getVScrollbarThickness (); 36 | void scrollTo (int x, int y); 37 | void scroll (dw::core::ScrollCommand cmd); 38 | void setViewportSize (int width, int height, 39 | int hScrollbarThickness, int vScrollbarThickness); 40 | 41 | void drawText (core::style::Font *font, 42 | core::style::Color *color, 43 | core::style::Color::Shading shading, 44 | int x, int y, const char *text, int len); 45 | void drawSimpleWrappedText (core::style::Font *font, 46 | core::style::Color *color, 47 | core::style::Color::Shading shading, 48 | int x, int y, int w, int h, 49 | const char *text); 50 | void drawImage (core::Imgbuf *imgbuf, int xRoot, int yRoot, 51 | int x, int y, int width, int height); 52 | 53 | bool usesFltkWidgets (); 54 | void drawFltkWidget (Fl_Widget *widget, core::Rectangle *area); 55 | }; 56 | 57 | 58 | class FltkPreviewWindow: public Fl_Menu_Window 59 | { 60 | private: 61 | enum { BORDER_WIDTH = 2 }; 62 | 63 | FltkPreview *preview; 64 | int posX, posY; 65 | 66 | public: 67 | FltkPreviewWindow (dw::core::Layout *layout); 68 | ~FltkPreviewWindow (); 69 | 70 | void reallocate (); 71 | 72 | void showWindow (); 73 | void hideWindow (); 74 | 75 | void scrollTo (int mouseX, int mouseY); 76 | }; 77 | 78 | 79 | class FltkPreviewButton: public Fl_Button 80 | { 81 | private: 82 | FltkPreviewWindow *window; 83 | 84 | public: 85 | FltkPreviewButton (int x, int y, int w, int h, 86 | dw::core::Layout *layout, const char *label = 0); 87 | ~FltkPreviewButton (); 88 | 89 | int handle (int event); 90 | }; 91 | 92 | } // namespace fltk 93 | } // namespace dw 94 | 95 | #endif // __FlTKPREVIEW_HH__ 96 | -------------------------------------------------------------------------------- /dw/fltkviewport.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_FLTKVIEWPORT_HH__ 2 | #define __DW_FLTKVIEWPORT_HH__ 3 | 4 | #include 5 | #include 6 | 7 | #include "core.hh" 8 | #include "fltkcore.hh" 9 | #include "fltkviewbase.hh" 10 | 11 | namespace dw { 12 | namespace fltk { 13 | 14 | class FltkViewport: public FltkWidgetView 15 | { 16 | public: 17 | enum GadgetOrientation { GADGET_VERTICAL, GADGET_HORIZONTAL }; 18 | 19 | private: 20 | enum { SCROLLBAR_THICKNESS = 15 }; 21 | 22 | int scrollX, scrollY; 23 | int scrollDX, scrollDY; 24 | int hasDragScroll, dragScrolling, dragX, dragY; 25 | int horScrolling, verScrolling; 26 | 27 | Fl_Scrollbar *vscrollbar, *hscrollbar; 28 | 29 | GadgetOrientation gadgetOrientation[4]; 30 | lout::container::typed::List > 31 | *gadgets; 32 | 33 | void adjustScrollbarsAndGadgetsAllocation (); 34 | void adjustScrollbarValues (); 35 | void hscrollbarChanged (); 36 | void vscrollbarChanged (); 37 | void positionChanged (); 38 | 39 | static void hscrollbarCallback (Fl_Widget *hscrollbar, void *viewportPtr); 40 | static void vscrollbarCallback (Fl_Widget *vscrollbar, void *viewportPtr); 41 | 42 | void updateCanvasWidgets (int oldScrollX, int oldScrollY); 43 | static void draw_area (void *data, int x, int y, int w, int h); 44 | 45 | protected: 46 | int translateViewXToCanvasX (int x); 47 | int translateViewYToCanvasY (int y); 48 | int translateCanvasXToViewX (int x); 49 | int translateCanvasYToViewY (int y); 50 | 51 | public: 52 | FltkViewport (int x, int y, int w, int h, const char *label = 0); 53 | ~FltkViewport (); 54 | 55 | void resize(int x, int y, int w, int h); 56 | void draw (); 57 | int handle (int event); 58 | 59 | void setCanvasSize (int width, int ascent, int descent); 60 | 61 | bool usesViewport (); 62 | int getHScrollbarThickness (); 63 | int getVScrollbarThickness (); 64 | void scroll(int dx, int dy); 65 | void scroll(dw::core::ScrollCommand cmd); 66 | void scrollTo (int x, int y); 67 | void setViewportSize (int width, int height, 68 | int hScrollbarThickness, int vScrollbarThickness); 69 | void setScrollStep(int step); 70 | 71 | void setGadgetOrientation (bool hscrollbarVisible, bool vscrollbarVisible, 72 | GadgetOrientation gadgetOrientation); 73 | void setDragScroll (bool enable) { hasDragScroll = enable ? 1 : 0; } 74 | void addGadget (Fl_Widget *gadget); 75 | }; 76 | 77 | } // namespace fltk 78 | } // namespace dw 79 | 80 | #endif // __DW_FLTKVIEWPORT_HH__ 81 | 82 | -------------------------------------------------------------------------------- /dw/image.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/image.o -------------------------------------------------------------------------------- /dw/iterator.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/iterator.o -------------------------------------------------------------------------------- /dw/layout.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/layout.o -------------------------------------------------------------------------------- /dw/libDw-core.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw-core.a -------------------------------------------------------------------------------- /dw/libDw-fltk.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw-fltk.a -------------------------------------------------------------------------------- /dw/libDw-widgets.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw-widgets.a -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkcomplexbutton.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkcomplexbutton.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkflatview.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkflatview.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkimgbuf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkimgbuf.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkmisc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkmisc.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkplatform.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkplatform.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkpreview.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkpreview.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkui.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkui.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkviewbase.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkviewbase.o -------------------------------------------------------------------------------- /dw/libDw_fltk_a-fltkviewport.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/libDw_fltk_a-fltkviewport.o -------------------------------------------------------------------------------- /dw/listitem.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "listitem.hh" 23 | #include 24 | 25 | namespace dw { 26 | 27 | int ListItem::CLASS_ID = -1; 28 | 29 | ListItem::ListItem (ListItem *ref, bool limitTextWidth): 30 | AlignedTextblock (limitTextWidth) 31 | { 32 | registerName ("dw::ListItem", &CLASS_ID); 33 | setRefTextblock (ref); 34 | } 35 | 36 | ListItem::~ListItem() 37 | { 38 | } 39 | 40 | void ListItem::initWithWidget (core::Widget *widget, 41 | core::style::Style *style) 42 | { 43 | hasListitemValue = true; 44 | addWidget (widget, style); 45 | addSpace (style); 46 | if (style->listStylePosition == core::style::LIST_STYLE_POSITION_OUTSIDE) 47 | updateValue (); 48 | } 49 | 50 | void ListItem::initWithText (const char *text, core::style::Style *style) 51 | { 52 | hasListitemValue = true; 53 | addText (text, style); 54 | addSpace (style); 55 | if (style->listStylePosition == core::style::LIST_STYLE_POSITION_OUTSIDE) 56 | updateValue (); 57 | } 58 | 59 | int ListItem::getValue () 60 | { 61 | if (words->size () == 0) 62 | return 0; 63 | else 64 | return words->getRef(0)->size.width + words->getRef(0)->origSpace; 65 | } 66 | 67 | void ListItem::setMaxValue (int maxValue, int value) 68 | { 69 | innerPadding = maxValue; 70 | line1Offset = - value; 71 | redrawY = 0; 72 | queueResize (0, true); 73 | } 74 | 75 | } // namespace dw 76 | -------------------------------------------------------------------------------- /dw/listitem.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_LISTITEM_HH__ 2 | #define __DW_LISTITEM_HH__ 3 | 4 | #include "core.hh" 5 | #include "alignedtextblock.hh" 6 | 7 | namespace dw { 8 | 9 | class ListItem: public AlignedTextblock 10 | { 11 | protected: 12 | int getValue (); 13 | void setMaxValue (int maxValue, int value); 14 | 15 | public: 16 | static int CLASS_ID; 17 | 18 | ListItem(ListItem *ref, bool limitTextWidth); 19 | ~ListItem(); 20 | 21 | void initWithWidget (core::Widget *widget, core::style::Style *style); 22 | void initWithText (const char *text, core::style::Style *style); 23 | }; 24 | 25 | } // namespace dw 26 | 27 | #endif // __DW_LISTITEM_HH__ 28 | -------------------------------------------------------------------------------- /dw/listitem.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/listitem.o -------------------------------------------------------------------------------- /dw/preview.xbm: -------------------------------------------------------------------------------- 1 | #define preview_width 11 2 | #define preview_height 11 3 | static unsigned char preview_bits[] = { 4 | 0x20, 0x00, 0x70, 0x00, 0x20, 0x00, 0x20, 0x00, 0x22, 0x02, 0xff, 0x07, 5 | 0x22, 0x02, 0x20, 0x00, 0x20, 0x00, 0x70, 0x00, 0x20, 0x00}; 6 | -------------------------------------------------------------------------------- /dw/ruler.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "ruler.hh" 23 | #include "../lout/misc.hh" 24 | 25 | #include 26 | 27 | namespace dw { 28 | 29 | Ruler::Ruler () 30 | { 31 | setFlags (BLOCK_LEVEL); 32 | unsetFlags (HAS_CONTENTS); 33 | } 34 | 35 | void Ruler::sizeRequestImpl (core::Requisition *requisition) 36 | { 37 | requisition->width = getStyle()->boxDiffWidth (); 38 | requisition->ascent = getStyle()->boxOffsetY (); 39 | requisition->descent = getStyle()->boxRestHeight (); 40 | } 41 | 42 | void Ruler::draw (core::View *view, core::Rectangle *area) 43 | { 44 | drawWidgetBox (view, area, false); 45 | } 46 | 47 | core::Iterator *Ruler::iterator (core::Content::Type mask, bool atEnd) 48 | { 49 | /** \todo TextIterator? */ 50 | return new core::EmptyIterator (this, mask, atEnd); 51 | } 52 | 53 | } // namespace dw 54 | -------------------------------------------------------------------------------- /dw/ruler.hh: -------------------------------------------------------------------------------- 1 | #ifndef __RULER_HH__ 2 | #define __RULER_HH__ 3 | 4 | #include "core.hh" 5 | 6 | namespace dw { 7 | 8 | /** 9 | * \brief Widget for drawing (horizontal) rules. 10 | * 11 | * This is really an empty widget, the HTML parser puts a border 12 | * around it, and drawing is done in dw::core::Widget::drawWidgetBox. 13 | * The only remarkable point is that the HAS_CONTENT flag is 14 | * cleared. 15 | */ 16 | class Ruler: public core::Widget 17 | { 18 | protected: 19 | void sizeRequestImpl (core::Requisition *requisition); 20 | void draw (core::View *view, core::Rectangle *area); 21 | 22 | public: 23 | Ruler (); 24 | 25 | core::Iterator *iterator (core::Content::Type mask, bool atEnd); 26 | }; 27 | 28 | } // namespace dw 29 | 30 | #endif // __RULER_HH__ 31 | -------------------------------------------------------------------------------- /dw/ruler.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/ruler.o -------------------------------------------------------------------------------- /dw/selection.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/selection.o -------------------------------------------------------------------------------- /dw/style.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/style.o -------------------------------------------------------------------------------- /dw/table.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/table.o -------------------------------------------------------------------------------- /dw/tablecell.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DW_TABLECELL_HH__ 2 | #define __DW_TABLECELL_HH__ 3 | 4 | #include "core.hh" 5 | #include "alignedtextblock.hh" 6 | 7 | namespace dw { 8 | 9 | class TableCell: public AlignedTextblock 10 | { 11 | private: 12 | int charWordIndex, charWordPos; 13 | 14 | protected: 15 | void wordWrap(int wordIndex); 16 | 17 | int getValue (); 18 | void setMaxValue (int maxValue, int value); 19 | 20 | public: 21 | static int CLASS_ID; 22 | 23 | TableCell(TableCell *ref, bool limitTextWidth); 24 | ~TableCell(); 25 | }; 26 | 27 | } // namespace dw 28 | 29 | #endif // __DW_TABLECELL_HH__ 30 | -------------------------------------------------------------------------------- /dw/tablecell.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/tablecell.o -------------------------------------------------------------------------------- /dw/textblock.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/textblock.o -------------------------------------------------------------------------------- /dw/types.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/types.o -------------------------------------------------------------------------------- /dw/ui.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/ui.o -------------------------------------------------------------------------------- /dw/view.hh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/view.hh -------------------------------------------------------------------------------- /dw/widget.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/dw/widget.o -------------------------------------------------------------------------------- /install-dpi-local: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Install the dpi framework programs inside the user's account. 4 | # 5 | 6 | BASE="$HOME/.dillo" 7 | BASE2="$BASE/dpi" 8 | 9 | if [ -r $BASE/dpi_socket_dir ] ; then 10 | rm -r `cat $BASE/dpi_socket_dir` 11 | rm $BASE/dpi_socket_dir 12 | fi 13 | 14 | if [ ! -x dpid/dpid ] ; then 15 | echo "This script may only be run AFTER make." 16 | exit 1 17 | fi 18 | 19 | # Try to communicate with any currently-running dpid to tell it 20 | # to stop itself and the dpi programs. 21 | dpidc stop 22 | 23 | if [ ! -d $BASE ] ; then 24 | mkdir $BASE 25 | fi 26 | if [ ! -d $BASE2 ] ; then 27 | mkdir $BASE2 28 | fi 29 | 30 | cp dpid/dpid dpid/dpidc dpid/dpidrc $BASE 31 | strip $BASE/dpid $BASE/dpidc 32 | 33 | cd dpi 34 | for F in *.dpi ; do 35 | D="`echo $F | sed 's/\..*$//'`" 36 | if [ ! -d $BASE2/$D ] ; then 37 | mkdir $BASE2/$D 38 | fi 39 | cp $F $BASE2/$D 40 | strip $BASE2/$D/$F 41 | done 42 | cd .. 43 | 44 | -------------------------------------------------------------------------------- /lout/.deps/container.Po: -------------------------------------------------------------------------------- 1 | container.o: container.cc container.hh object.hh /usr/include/stdlib.h \ 2 | /usr/include/features.h /usr/include/bits/predefs.h \ 3 | /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \ 4 | /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h \ 7 | /usr/include/endian.h /usr/include/bits/endian.h \ 8 | /usr/include/bits/byteswap.h /usr/include/xlocale.h \ 9 | /usr/include/sys/types.h /usr/include/bits/types.h \ 10 | /usr/include/bits/typesizes.h /usr/include/time.h \ 11 | /usr/include/sys/select.h /usr/include/bits/select.h \ 12 | /usr/include/bits/sigset.h /usr/include/bits/time.h \ 13 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \ 14 | /usr/include/alloca.h /usr/include/bits/stdlib.h /usr/include/string.h \ 15 | /usr/include/bits/string3.h misc.hh /usr/include/stdio.h \ 16 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 17 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 18 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 19 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 20 | /usr/include/assert.h 21 | 22 | container.hh: 23 | 24 | object.hh: 25 | 26 | /usr/include/stdlib.h: 27 | 28 | /usr/include/features.h: 29 | 30 | /usr/include/bits/predefs.h: 31 | 32 | /usr/include/sys/cdefs.h: 33 | 34 | /usr/include/bits/wordsize.h: 35 | 36 | /usr/include/gnu/stubs.h: 37 | 38 | /usr/include/gnu/stubs-64.h: 39 | 40 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 41 | 42 | /usr/include/bits/waitflags.h: 43 | 44 | /usr/include/bits/waitstatus.h: 45 | 46 | /usr/include/endian.h: 47 | 48 | /usr/include/bits/endian.h: 49 | 50 | /usr/include/bits/byteswap.h: 51 | 52 | /usr/include/xlocale.h: 53 | 54 | /usr/include/sys/types.h: 55 | 56 | /usr/include/bits/types.h: 57 | 58 | /usr/include/bits/typesizes.h: 59 | 60 | /usr/include/time.h: 61 | 62 | /usr/include/sys/select.h: 63 | 64 | /usr/include/bits/select.h: 65 | 66 | /usr/include/bits/sigset.h: 67 | 68 | /usr/include/bits/time.h: 69 | 70 | /usr/include/sys/sysmacros.h: 71 | 72 | /usr/include/bits/pthreadtypes.h: 73 | 74 | /usr/include/alloca.h: 75 | 76 | /usr/include/bits/stdlib.h: 77 | 78 | /usr/include/string.h: 79 | 80 | /usr/include/bits/string3.h: 81 | 82 | misc.hh: 83 | 84 | /usr/include/stdio.h: 85 | 86 | /usr/include/libio.h: 87 | 88 | /usr/include/_G_config.h: 89 | 90 | /usr/include/wchar.h: 91 | 92 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 93 | 94 | /usr/include/bits/stdio_lim.h: 95 | 96 | /usr/include/bits/sys_errlist.h: 97 | 98 | /usr/include/bits/stdio.h: 99 | 100 | /usr/include/bits/stdio2.h: 101 | 102 | /usr/include/assert.h: 103 | -------------------------------------------------------------------------------- /lout/.deps/object.Po: -------------------------------------------------------------------------------- 1 | object.o: object.cc object.hh /usr/include/stdlib.h \ 2 | /usr/include/features.h /usr/include/bits/predefs.h \ 3 | /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \ 4 | /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h \ 7 | /usr/include/endian.h /usr/include/bits/endian.h \ 8 | /usr/include/bits/byteswap.h /usr/include/xlocale.h \ 9 | /usr/include/sys/types.h /usr/include/bits/types.h \ 10 | /usr/include/bits/typesizes.h /usr/include/time.h \ 11 | /usr/include/sys/select.h /usr/include/bits/select.h \ 12 | /usr/include/bits/sigset.h /usr/include/bits/time.h \ 13 | /usr/include/sys/sysmacros.h /usr/include/bits/pthreadtypes.h \ 14 | /usr/include/alloca.h /usr/include/bits/stdlib.h /usr/include/string.h \ 15 | /usr/include/bits/string3.h misc.hh /usr/include/stdio.h \ 16 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 17 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 18 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 19 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 20 | /usr/include/assert.h ../config.h 21 | 22 | object.hh: 23 | 24 | /usr/include/stdlib.h: 25 | 26 | /usr/include/features.h: 27 | 28 | /usr/include/bits/predefs.h: 29 | 30 | /usr/include/sys/cdefs.h: 31 | 32 | /usr/include/bits/wordsize.h: 33 | 34 | /usr/include/gnu/stubs.h: 35 | 36 | /usr/include/gnu/stubs-64.h: 37 | 38 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 39 | 40 | /usr/include/bits/waitflags.h: 41 | 42 | /usr/include/bits/waitstatus.h: 43 | 44 | /usr/include/endian.h: 45 | 46 | /usr/include/bits/endian.h: 47 | 48 | /usr/include/bits/byteswap.h: 49 | 50 | /usr/include/xlocale.h: 51 | 52 | /usr/include/sys/types.h: 53 | 54 | /usr/include/bits/types.h: 55 | 56 | /usr/include/bits/typesizes.h: 57 | 58 | /usr/include/time.h: 59 | 60 | /usr/include/sys/select.h: 61 | 62 | /usr/include/bits/select.h: 63 | 64 | /usr/include/bits/sigset.h: 65 | 66 | /usr/include/bits/time.h: 67 | 68 | /usr/include/sys/sysmacros.h: 69 | 70 | /usr/include/bits/pthreadtypes.h: 71 | 72 | /usr/include/alloca.h: 73 | 74 | /usr/include/bits/stdlib.h: 75 | 76 | /usr/include/string.h: 77 | 78 | /usr/include/bits/string3.h: 79 | 80 | misc.hh: 81 | 82 | /usr/include/stdio.h: 83 | 84 | /usr/include/libio.h: 85 | 86 | /usr/include/_G_config.h: 87 | 88 | /usr/include/wchar.h: 89 | 90 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 91 | 92 | /usr/include/bits/stdio_lim.h: 93 | 94 | /usr/include/bits/sys_errlist.h: 95 | 96 | /usr/include/bits/stdio.h: 97 | 98 | /usr/include/bits/stdio2.h: 99 | 100 | /usr/include/assert.h: 101 | 102 | ../config.h: 103 | -------------------------------------------------------------------------------- /lout/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) 3 | 4 | noinst_LIBRARIES = liblout.a 5 | 6 | liblout_a_SOURCES = \ 7 | container.cc \ 8 | container.hh \ 9 | debug.hh \ 10 | identity.cc \ 11 | identity.hh \ 12 | misc.cc \ 13 | misc.hh \ 14 | object.cc \ 15 | object.hh \ 16 | signal.cc \ 17 | signal.hh \ 18 | msg.h 19 | -------------------------------------------------------------------------------- /lout/container.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/container.o -------------------------------------------------------------------------------- /lout/identity.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/identity.cc -------------------------------------------------------------------------------- /lout/identity.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/identity.o -------------------------------------------------------------------------------- /lout/liblout.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/liblout.a -------------------------------------------------------------------------------- /lout/misc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/misc.o -------------------------------------------------------------------------------- /lout/msg.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_H__ 2 | #define __MSG_H__ 3 | 4 | #include 5 | 6 | #define prefs_show_msg 1 7 | 8 | #define D_STMT_START do 9 | #define D_STMT_END while (0) 10 | 11 | /* 12 | * You can disable any MSG* macro by adding the '_' prefix. 13 | */ 14 | #define _MSG(...) 15 | #define _MSG_WARN(...) 16 | #define _MSG_ERR(...) 17 | 18 | 19 | #define MSG(...) \ 20 | D_STMT_START { \ 21 | if (prefs_show_msg){ \ 22 | printf(__VA_ARGS__); \ 23 | fflush (stdout); \ 24 | } \ 25 | } D_STMT_END 26 | 27 | #define MSG_WARN(...) \ 28 | D_STMT_START { \ 29 | if (prefs_show_msg) \ 30 | printf("** WARNING **: " __VA_ARGS__); \ 31 | } D_STMT_END 32 | 33 | #define MSG_ERR(...) \ 34 | D_STMT_START { \ 35 | if (prefs_show_msg) \ 36 | printf("** ERROR **: " __VA_ARGS__); \ 37 | } D_STMT_END 38 | 39 | #endif /* __MSG_H__ */ 40 | -------------------------------------------------------------------------------- /lout/object.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/object.o -------------------------------------------------------------------------------- /lout/signal.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/lout/signal.o -------------------------------------------------------------------------------- /myconfig.sh: -------------------------------------------------------------------------------- 1 | export PATH=/opt/dillo/bin:$PATH 2 | ./configure --prefix=/opt/dillo --enable-ssl 3 | make 4 | -------------------------------------------------------------------------------- /src/.deps/auth.Po: -------------------------------------------------------------------------------- 1 | auth.o: auth.c /usr/include/ctype.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h /usr/include/bits/types.h \ 5 | /usr/include/bits/typesizes.h /usr/include/endian.h \ 6 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 7 | /usr/include/xlocale.h auth.h url.h ../d_size.h ../config.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 9 | /usr/include/stdint.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 10 | /usr/include/stdio.h \ 11 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 12 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 13 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 14 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 15 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 16 | /usr/include/string.h /usr/include/bits/string.h \ 17 | /usr/include/bits/string2.h /usr/include/stdlib.h \ 18 | /usr/include/bits/string3.h msg.h prefs.h misc.h dialog.hh digest.h 19 | 20 | /usr/include/ctype.h: 21 | 22 | /usr/include/features.h: 23 | 24 | /usr/include/bits/predefs.h: 25 | 26 | /usr/include/sys/cdefs.h: 27 | 28 | /usr/include/bits/wordsize.h: 29 | 30 | /usr/include/gnu/stubs.h: 31 | 32 | /usr/include/gnu/stubs-64.h: 33 | 34 | /usr/include/bits/types.h: 35 | 36 | /usr/include/bits/typesizes.h: 37 | 38 | /usr/include/endian.h: 39 | 40 | /usr/include/bits/endian.h: 41 | 42 | /usr/include/bits/byteswap.h: 43 | 44 | /usr/include/xlocale.h: 45 | 46 | auth.h: 47 | 48 | url.h: 49 | 50 | ../d_size.h: 51 | 52 | ../config.h: 53 | 54 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 55 | 56 | /usr/include/stdint.h: 57 | 58 | /usr/include/bits/wchar.h: 59 | 60 | ../dlib/dlib.h: 61 | 62 | /usr/include/stdio.h: 63 | 64 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 65 | 66 | /usr/include/libio.h: 67 | 68 | /usr/include/_G_config.h: 69 | 70 | /usr/include/wchar.h: 71 | 72 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 73 | 74 | /usr/include/bits/stdio_lim.h: 75 | 76 | /usr/include/bits/sys_errlist.h: 77 | 78 | /usr/include/bits/stdio.h: 79 | 80 | /usr/include/bits/stdio2.h: 81 | 82 | /usr/include/string.h: 83 | 84 | /usr/include/bits/string.h: 85 | 86 | /usr/include/bits/string2.h: 87 | 88 | /usr/include/stdlib.h: 89 | 90 | /usr/include/bits/string3.h: 91 | 92 | msg.h: 93 | 94 | prefs.h: 95 | 96 | misc.h: 97 | 98 | dialog.hh: 99 | 100 | digest.h: 101 | -------------------------------------------------------------------------------- /src/.deps/bitvec.Po: -------------------------------------------------------------------------------- 1 | bitvec.o: bitvec.c ../dlib/dlib.h /usr/include/stdio.h \ 2 | /usr/include/features.h /usr/include/bits/predefs.h \ 3 | /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \ 4 | /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 11 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 12 | /usr/include/bits/string2.h /usr/include/endian.h \ 13 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 14 | /usr/include/stdlib.h /usr/include/bits/string3.h ../d_size.h \ 15 | ../config.h \ 16 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 17 | /usr/include/stdint.h /usr/include/bits/wchar.h bitvec.h 18 | 19 | ../dlib/dlib.h: 20 | 21 | /usr/include/stdio.h: 22 | 23 | /usr/include/features.h: 24 | 25 | /usr/include/bits/predefs.h: 26 | 27 | /usr/include/sys/cdefs.h: 28 | 29 | /usr/include/bits/wordsize.h: 30 | 31 | /usr/include/gnu/stubs.h: 32 | 33 | /usr/include/gnu/stubs-64.h: 34 | 35 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 36 | 37 | /usr/include/bits/types.h: 38 | 39 | /usr/include/bits/typesizes.h: 40 | 41 | /usr/include/libio.h: 42 | 43 | /usr/include/_G_config.h: 44 | 45 | /usr/include/wchar.h: 46 | 47 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 48 | 49 | /usr/include/bits/stdio_lim.h: 50 | 51 | /usr/include/bits/sys_errlist.h: 52 | 53 | /usr/include/bits/stdio.h: 54 | 55 | /usr/include/bits/stdio2.h: 56 | 57 | /usr/include/string.h: 58 | 59 | /usr/include/xlocale.h: 60 | 61 | /usr/include/bits/string.h: 62 | 63 | /usr/include/bits/string2.h: 64 | 65 | /usr/include/endian.h: 66 | 67 | /usr/include/bits/endian.h: 68 | 69 | /usr/include/bits/byteswap.h: 70 | 71 | /usr/include/stdlib.h: 72 | 73 | /usr/include/bits/string3.h: 74 | 75 | ../d_size.h: 76 | 77 | ../config.h: 78 | 79 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 80 | 81 | /usr/include/stdint.h: 82 | 83 | /usr/include/bits/wchar.h: 84 | 85 | bitvec.h: 86 | -------------------------------------------------------------------------------- /src/.deps/bw.Po: -------------------------------------------------------------------------------- 1 | bw.o: bw.c bw.h url.h ../d_size.h ../config.h \ 2 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 3 | /usr/include/stdint.h /usr/include/features.h \ 4 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 5 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 6 | /usr/include/gnu/stubs-64.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 7 | /usr/include/stdio.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 9 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 10 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 11 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 14 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 15 | /usr/include/bits/string2.h /usr/include/endian.h \ 16 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 17 | /usr/include/stdlib.h /usr/include/bits/string3.h msg.h prefs.h list.h \ 18 | capi.h cache.h chain.h web.hh image.hh bitvec.h uicmd.hh 19 | 20 | bw.h: 21 | 22 | url.h: 23 | 24 | ../d_size.h: 25 | 26 | ../config.h: 27 | 28 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 29 | 30 | /usr/include/stdint.h: 31 | 32 | /usr/include/features.h: 33 | 34 | /usr/include/bits/predefs.h: 35 | 36 | /usr/include/sys/cdefs.h: 37 | 38 | /usr/include/bits/wordsize.h: 39 | 40 | /usr/include/gnu/stubs.h: 41 | 42 | /usr/include/gnu/stubs-64.h: 43 | 44 | /usr/include/bits/wchar.h: 45 | 46 | ../dlib/dlib.h: 47 | 48 | /usr/include/stdio.h: 49 | 50 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 51 | 52 | /usr/include/bits/types.h: 53 | 54 | /usr/include/bits/typesizes.h: 55 | 56 | /usr/include/libio.h: 57 | 58 | /usr/include/_G_config.h: 59 | 60 | /usr/include/wchar.h: 61 | 62 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 63 | 64 | /usr/include/bits/stdio_lim.h: 65 | 66 | /usr/include/bits/sys_errlist.h: 67 | 68 | /usr/include/bits/stdio.h: 69 | 70 | /usr/include/bits/stdio2.h: 71 | 72 | /usr/include/string.h: 73 | 74 | /usr/include/xlocale.h: 75 | 76 | /usr/include/bits/string.h: 77 | 78 | /usr/include/bits/string2.h: 79 | 80 | /usr/include/endian.h: 81 | 82 | /usr/include/bits/endian.h: 83 | 84 | /usr/include/bits/byteswap.h: 85 | 86 | /usr/include/stdlib.h: 87 | 88 | /usr/include/bits/string3.h: 89 | 90 | msg.h: 91 | 92 | prefs.h: 93 | 94 | list.h: 95 | 96 | capi.h: 97 | 98 | cache.h: 99 | 100 | chain.h: 101 | 102 | web.hh: 103 | 104 | image.hh: 105 | 106 | bitvec.h: 107 | 108 | uicmd.hh: 109 | -------------------------------------------------------------------------------- /src/.deps/chain.Po: -------------------------------------------------------------------------------- 1 | chain.o: chain.c msg.h /usr/include/stdio.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h prefs.h url.h \ 11 | ../d_size.h ../config.h \ 12 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 13 | /usr/include/stdint.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 14 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 15 | /usr/include/bits/string2.h /usr/include/endian.h \ 16 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 17 | /usr/include/stdlib.h /usr/include/bits/string3.h chain.h 18 | 19 | msg.h: 20 | 21 | /usr/include/stdio.h: 22 | 23 | /usr/include/features.h: 24 | 25 | /usr/include/bits/predefs.h: 26 | 27 | /usr/include/sys/cdefs.h: 28 | 29 | /usr/include/bits/wordsize.h: 30 | 31 | /usr/include/gnu/stubs.h: 32 | 33 | /usr/include/gnu/stubs-64.h: 34 | 35 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 36 | 37 | /usr/include/bits/types.h: 38 | 39 | /usr/include/bits/typesizes.h: 40 | 41 | /usr/include/libio.h: 42 | 43 | /usr/include/_G_config.h: 44 | 45 | /usr/include/wchar.h: 46 | 47 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 48 | 49 | /usr/include/bits/stdio_lim.h: 50 | 51 | /usr/include/bits/sys_errlist.h: 52 | 53 | /usr/include/bits/stdio.h: 54 | 55 | /usr/include/bits/stdio2.h: 56 | 57 | prefs.h: 58 | 59 | url.h: 60 | 61 | ../d_size.h: 62 | 63 | ../config.h: 64 | 65 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 66 | 67 | /usr/include/stdint.h: 68 | 69 | /usr/include/bits/wchar.h: 70 | 71 | ../dlib/dlib.h: 72 | 73 | /usr/include/string.h: 74 | 75 | /usr/include/xlocale.h: 76 | 77 | /usr/include/bits/string.h: 78 | 79 | /usr/include/bits/string2.h: 80 | 81 | /usr/include/endian.h: 82 | 83 | /usr/include/bits/endian.h: 84 | 85 | /usr/include/bits/byteswap.h: 86 | 87 | /usr/include/stdlib.h: 88 | 89 | /usr/include/bits/string3.h: 90 | 91 | chain.h: 92 | -------------------------------------------------------------------------------- /src/.deps/dpiapi.Po: -------------------------------------------------------------------------------- 1 | dpiapi.o: dpiapi.c msg.h /usr/include/stdio.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h prefs.h url.h \ 11 | ../d_size.h ../config.h \ 12 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 13 | /usr/include/stdint.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 14 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 15 | /usr/include/bits/string2.h /usr/include/endian.h \ 16 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 17 | /usr/include/stdlib.h /usr/include/bits/string3.h bw.h capi.h cache.h \ 18 | chain.h web.hh image.hh bitvec.h dpiapi.h dialog.hh ../dpip/dpip.h \ 19 | ../dpip/../dlib/dlib.h 20 | 21 | msg.h: 22 | 23 | /usr/include/stdio.h: 24 | 25 | /usr/include/features.h: 26 | 27 | /usr/include/bits/predefs.h: 28 | 29 | /usr/include/sys/cdefs.h: 30 | 31 | /usr/include/bits/wordsize.h: 32 | 33 | /usr/include/gnu/stubs.h: 34 | 35 | /usr/include/gnu/stubs-64.h: 36 | 37 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 38 | 39 | /usr/include/bits/types.h: 40 | 41 | /usr/include/bits/typesizes.h: 42 | 43 | /usr/include/libio.h: 44 | 45 | /usr/include/_G_config.h: 46 | 47 | /usr/include/wchar.h: 48 | 49 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 50 | 51 | /usr/include/bits/stdio_lim.h: 52 | 53 | /usr/include/bits/sys_errlist.h: 54 | 55 | /usr/include/bits/stdio.h: 56 | 57 | /usr/include/bits/stdio2.h: 58 | 59 | prefs.h: 60 | 61 | url.h: 62 | 63 | ../d_size.h: 64 | 65 | ../config.h: 66 | 67 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 68 | 69 | /usr/include/stdint.h: 70 | 71 | /usr/include/bits/wchar.h: 72 | 73 | ../dlib/dlib.h: 74 | 75 | /usr/include/string.h: 76 | 77 | /usr/include/xlocale.h: 78 | 79 | /usr/include/bits/string.h: 80 | 81 | /usr/include/bits/string2.h: 82 | 83 | /usr/include/endian.h: 84 | 85 | /usr/include/bits/endian.h: 86 | 87 | /usr/include/bits/byteswap.h: 88 | 89 | /usr/include/stdlib.h: 90 | 91 | /usr/include/bits/string3.h: 92 | 93 | bw.h: 94 | 95 | capi.h: 96 | 97 | cache.h: 98 | 99 | chain.h: 100 | 101 | web.hh: 102 | 103 | image.hh: 104 | 105 | bitvec.h: 106 | 107 | dpiapi.h: 108 | 109 | dialog.hh: 110 | 111 | ../dpip/dpip.h: 112 | 113 | ../dpip/../dlib/dlib.h: 114 | -------------------------------------------------------------------------------- /src/.deps/gif.Po: -------------------------------------------------------------------------------- 1 | gif.o: gif.c ../config.h /usr/include/stdio.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 11 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 12 | /usr/include/bits/string2.h /usr/include/endian.h \ 13 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 14 | /usr/include/stdlib.h /usr/include/bits/string3.h msg.h prefs.h url.h \ 15 | ../d_size.h ../config.h \ 16 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 17 | /usr/include/stdint.h /usr/include/bits/wchar.h ../dlib/dlib.h image.hh \ 18 | bitvec.h cache.h chain.h dicache.h 19 | 20 | ../config.h: 21 | 22 | /usr/include/stdio.h: 23 | 24 | /usr/include/features.h: 25 | 26 | /usr/include/bits/predefs.h: 27 | 28 | /usr/include/sys/cdefs.h: 29 | 30 | /usr/include/bits/wordsize.h: 31 | 32 | /usr/include/gnu/stubs.h: 33 | 34 | /usr/include/gnu/stubs-64.h: 35 | 36 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 37 | 38 | /usr/include/bits/types.h: 39 | 40 | /usr/include/bits/typesizes.h: 41 | 42 | /usr/include/libio.h: 43 | 44 | /usr/include/_G_config.h: 45 | 46 | /usr/include/wchar.h: 47 | 48 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 49 | 50 | /usr/include/bits/stdio_lim.h: 51 | 52 | /usr/include/bits/sys_errlist.h: 53 | 54 | /usr/include/bits/stdio.h: 55 | 56 | /usr/include/bits/stdio2.h: 57 | 58 | /usr/include/string.h: 59 | 60 | /usr/include/xlocale.h: 61 | 62 | /usr/include/bits/string.h: 63 | 64 | /usr/include/bits/string2.h: 65 | 66 | /usr/include/endian.h: 67 | 68 | /usr/include/bits/endian.h: 69 | 70 | /usr/include/bits/byteswap.h: 71 | 72 | /usr/include/stdlib.h: 73 | 74 | /usr/include/bits/string3.h: 75 | 76 | msg.h: 77 | 78 | prefs.h: 79 | 80 | url.h: 81 | 82 | ../d_size.h: 83 | 84 | ../config.h: 85 | 86 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 87 | 88 | /usr/include/stdint.h: 89 | 90 | /usr/include/bits/wchar.h: 91 | 92 | ../dlib/dlib.h: 93 | 94 | image.hh: 95 | 96 | bitvec.h: 97 | 98 | cache.h: 99 | 100 | chain.h: 101 | 102 | dicache.h: 103 | -------------------------------------------------------------------------------- /src/.deps/history.Po: -------------------------------------------------------------------------------- 1 | history.o: history.c msg.h /usr/include/stdio.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h prefs.h url.h \ 11 | ../d_size.h ../config.h \ 12 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 13 | /usr/include/stdint.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 14 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 15 | /usr/include/bits/string2.h /usr/include/endian.h \ 16 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 17 | /usr/include/stdlib.h /usr/include/bits/string3.h list.h history.h 18 | 19 | msg.h: 20 | 21 | /usr/include/stdio.h: 22 | 23 | /usr/include/features.h: 24 | 25 | /usr/include/bits/predefs.h: 26 | 27 | /usr/include/sys/cdefs.h: 28 | 29 | /usr/include/bits/wordsize.h: 30 | 31 | /usr/include/gnu/stubs.h: 32 | 33 | /usr/include/gnu/stubs-64.h: 34 | 35 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 36 | 37 | /usr/include/bits/types.h: 38 | 39 | /usr/include/bits/typesizes.h: 40 | 41 | /usr/include/libio.h: 42 | 43 | /usr/include/_G_config.h: 44 | 45 | /usr/include/wchar.h: 46 | 47 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 48 | 49 | /usr/include/bits/stdio_lim.h: 50 | 51 | /usr/include/bits/sys_errlist.h: 52 | 53 | /usr/include/bits/stdio.h: 54 | 55 | /usr/include/bits/stdio2.h: 56 | 57 | prefs.h: 58 | 59 | url.h: 60 | 61 | ../d_size.h: 62 | 63 | ../config.h: 64 | 65 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 66 | 67 | /usr/include/stdint.h: 68 | 69 | /usr/include/bits/wchar.h: 70 | 71 | ../dlib/dlib.h: 72 | 73 | /usr/include/string.h: 74 | 75 | /usr/include/xlocale.h: 76 | 77 | /usr/include/bits/string.h: 78 | 79 | /usr/include/bits/string2.h: 80 | 81 | /usr/include/endian.h: 82 | 83 | /usr/include/bits/endian.h: 84 | 85 | /usr/include/bits/byteswap.h: 86 | 87 | /usr/include/stdlib.h: 88 | 89 | /usr/include/bits/string3.h: 90 | 91 | list.h: 92 | 93 | history.h: 94 | -------------------------------------------------------------------------------- /src/.deps/klist.Po: -------------------------------------------------------------------------------- 1 | klist.o: klist.c klist.h ../dlib/dlib.h /usr/include/stdio.h \ 2 | /usr/include/features.h /usr/include/bits/predefs.h \ 3 | /usr/include/sys/cdefs.h /usr/include/bits/wordsize.h \ 4 | /usr/include/gnu/stubs.h /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 7 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 9 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 10 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 11 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 12 | /usr/include/bits/string2.h /usr/include/endian.h \ 13 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 14 | /usr/include/stdlib.h /usr/include/bits/string3.h ../d_size.h \ 15 | ../config.h \ 16 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 17 | /usr/include/stdint.h /usr/include/bits/wchar.h 18 | 19 | klist.h: 20 | 21 | ../dlib/dlib.h: 22 | 23 | /usr/include/stdio.h: 24 | 25 | /usr/include/features.h: 26 | 27 | /usr/include/bits/predefs.h: 28 | 29 | /usr/include/sys/cdefs.h: 30 | 31 | /usr/include/bits/wordsize.h: 32 | 33 | /usr/include/gnu/stubs.h: 34 | 35 | /usr/include/gnu/stubs-64.h: 36 | 37 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 38 | 39 | /usr/include/bits/types.h: 40 | 41 | /usr/include/bits/typesizes.h: 42 | 43 | /usr/include/libio.h: 44 | 45 | /usr/include/_G_config.h: 46 | 47 | /usr/include/wchar.h: 48 | 49 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 50 | 51 | /usr/include/bits/stdio_lim.h: 52 | 53 | /usr/include/bits/sys_errlist.h: 54 | 55 | /usr/include/bits/stdio.h: 56 | 57 | /usr/include/bits/stdio2.h: 58 | 59 | /usr/include/string.h: 60 | 61 | /usr/include/xlocale.h: 62 | 63 | /usr/include/bits/string.h: 64 | 65 | /usr/include/bits/string2.h: 66 | 67 | /usr/include/endian.h: 68 | 69 | /usr/include/bits/endian.h: 70 | 71 | /usr/include/bits/byteswap.h: 72 | 73 | /usr/include/stdlib.h: 74 | 75 | /usr/include/bits/string3.h: 76 | 77 | ../d_size.h: 78 | 79 | ../config.h: 80 | 81 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 82 | 83 | /usr/include/stdint.h: 84 | 85 | /usr/include/bits/wchar.h: 86 | -------------------------------------------------------------------------------- /src/.deps/md5.Po: -------------------------------------------------------------------------------- 1 | md5.o: md5.c md5.h /usr/include/string.h /usr/include/features.h \ 2 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 3 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 4 | /usr/include/gnu/stubs-64.h \ 5 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 6 | /usr/include/xlocale.h /usr/include/bits/string.h \ 7 | /usr/include/bits/string2.h /usr/include/endian.h \ 8 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 9 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 10 | /usr/include/stdlib.h /usr/include/bits/string3.h 11 | 12 | md5.h: 13 | 14 | /usr/include/string.h: 15 | 16 | /usr/include/features.h: 17 | 18 | /usr/include/bits/predefs.h: 19 | 20 | /usr/include/sys/cdefs.h: 21 | 22 | /usr/include/bits/wordsize.h: 23 | 24 | /usr/include/gnu/stubs.h: 25 | 26 | /usr/include/gnu/stubs-64.h: 27 | 28 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 29 | 30 | /usr/include/xlocale.h: 31 | 32 | /usr/include/bits/string.h: 33 | 34 | /usr/include/bits/string2.h: 35 | 36 | /usr/include/endian.h: 37 | 38 | /usr/include/bits/endian.h: 39 | 40 | /usr/include/bits/byteswap.h: 41 | 42 | /usr/include/bits/types.h: 43 | 44 | /usr/include/bits/typesizes.h: 45 | 46 | /usr/include/stdlib.h: 47 | 48 | /usr/include/bits/string3.h: 49 | -------------------------------------------------------------------------------- /src/.deps/prefs.Po: -------------------------------------------------------------------------------- 1 | prefs.o: prefs.c prefs.h url.h ../d_size.h ../config.h \ 2 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 3 | /usr/include/stdint.h /usr/include/features.h \ 4 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 5 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 6 | /usr/include/gnu/stubs-64.h /usr/include/bits/wchar.h ../dlib/dlib.h \ 7 | /usr/include/stdio.h \ 8 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 9 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 10 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 11 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 12 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 13 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 14 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 15 | /usr/include/bits/string2.h /usr/include/endian.h \ 16 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 17 | /usr/include/stdlib.h /usr/include/bits/string3.h 18 | 19 | prefs.h: 20 | 21 | url.h: 22 | 23 | ../d_size.h: 24 | 25 | ../config.h: 26 | 27 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 28 | 29 | /usr/include/stdint.h: 30 | 31 | /usr/include/features.h: 32 | 33 | /usr/include/bits/predefs.h: 34 | 35 | /usr/include/sys/cdefs.h: 36 | 37 | /usr/include/bits/wordsize.h: 38 | 39 | /usr/include/gnu/stubs.h: 40 | 41 | /usr/include/gnu/stubs-64.h: 42 | 43 | /usr/include/bits/wchar.h: 44 | 45 | ../dlib/dlib.h: 46 | 47 | /usr/include/stdio.h: 48 | 49 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 50 | 51 | /usr/include/bits/types.h: 52 | 53 | /usr/include/bits/typesizes.h: 54 | 55 | /usr/include/libio.h: 56 | 57 | /usr/include/_G_config.h: 58 | 59 | /usr/include/wchar.h: 60 | 61 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 62 | 63 | /usr/include/bits/stdio_lim.h: 64 | 65 | /usr/include/bits/sys_errlist.h: 66 | 67 | /usr/include/bits/stdio.h: 68 | 69 | /usr/include/bits/stdio2.h: 70 | 71 | /usr/include/string.h: 72 | 73 | /usr/include/xlocale.h: 74 | 75 | /usr/include/bits/string.h: 76 | 77 | /usr/include/bits/string2.h: 78 | 79 | /usr/include/endian.h: 80 | 81 | /usr/include/bits/endian.h: 82 | 83 | /usr/include/bits/byteswap.h: 84 | 85 | /usr/include/stdlib.h: 86 | 87 | /usr/include/bits/string3.h: 88 | -------------------------------------------------------------------------------- /src/IO/.deps/about.Po: -------------------------------------------------------------------------------- 1 | about.o: about.c ../../config.h 2 | 3 | ../../config.h: 4 | -------------------------------------------------------------------------------- /src/IO/.deps/mime.Po: -------------------------------------------------------------------------------- 1 | mime.o: mime.c mime.h ../../config.h ../cache.h ../chain.h ../url.h \ 2 | ../../d_size.h ../../config.h \ 3 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \ 4 | /usr/include/stdint.h /usr/include/features.h \ 5 | /usr/include/bits/predefs.h /usr/include/sys/cdefs.h \ 6 | /usr/include/bits/wordsize.h /usr/include/gnu/stubs.h \ 7 | /usr/include/gnu/stubs-64.h /usr/include/bits/wchar.h ../../dlib/dlib.h \ 8 | /usr/include/stdio.h \ 9 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h \ 10 | /usr/include/bits/types.h /usr/include/bits/typesizes.h \ 11 | /usr/include/libio.h /usr/include/_G_config.h /usr/include/wchar.h \ 12 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h \ 13 | /usr/include/bits/stdio_lim.h /usr/include/bits/sys_errlist.h \ 14 | /usr/include/bits/stdio.h /usr/include/bits/stdio2.h \ 15 | /usr/include/string.h /usr/include/xlocale.h /usr/include/bits/string.h \ 16 | /usr/include/bits/string2.h /usr/include/endian.h \ 17 | /usr/include/bits/endian.h /usr/include/bits/byteswap.h \ 18 | /usr/include/stdlib.h /usr/include/bits/string3.h ../list.h 19 | 20 | mime.h: 21 | 22 | ../../config.h: 23 | 24 | ../cache.h: 25 | 26 | ../chain.h: 27 | 28 | ../url.h: 29 | 30 | ../../d_size.h: 31 | 32 | ../../config.h: 33 | 34 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h: 35 | 36 | /usr/include/stdint.h: 37 | 38 | /usr/include/features.h: 39 | 40 | /usr/include/bits/predefs.h: 41 | 42 | /usr/include/sys/cdefs.h: 43 | 44 | /usr/include/bits/wordsize.h: 45 | 46 | /usr/include/gnu/stubs.h: 47 | 48 | /usr/include/gnu/stubs-64.h: 49 | 50 | /usr/include/bits/wchar.h: 51 | 52 | ../../dlib/dlib.h: 53 | 54 | /usr/include/stdio.h: 55 | 56 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stddef.h: 57 | 58 | /usr/include/bits/types.h: 59 | 60 | /usr/include/bits/typesizes.h: 61 | 62 | /usr/include/libio.h: 63 | 64 | /usr/include/_G_config.h: 65 | 66 | /usr/include/wchar.h: 67 | 68 | /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdarg.h: 69 | 70 | /usr/include/bits/stdio_lim.h: 71 | 72 | /usr/include/bits/sys_errlist.h: 73 | 74 | /usr/include/bits/stdio.h: 75 | 76 | /usr/include/bits/stdio2.h: 77 | 78 | /usr/include/string.h: 79 | 80 | /usr/include/xlocale.h: 81 | 82 | /usr/include/bits/string.h: 83 | 84 | /usr/include/bits/string2.h: 85 | 86 | /usr/include/endian.h: 87 | 88 | /usr/include/bits/endian.h: 89 | 90 | /usr/include/bits/byteswap.h: 91 | 92 | /usr/include/stdlib.h: 93 | 94 | /usr/include/bits/string3.h: 95 | 96 | ../list.h: 97 | -------------------------------------------------------------------------------- /src/IO/IO.h: -------------------------------------------------------------------------------- 1 | #ifndef __IO_H__ 2 | #define __IO_H__ 3 | 4 | #include "d_size.h" 5 | #include "../../dlib/dlib.h" 6 | #include "../chain.h" 7 | 8 | /* 9 | * IO Operations 10 | */ 11 | #define IORead 0 12 | #define IOWrite 1 13 | #define IOClose 2 14 | #define IOAbort 3 15 | 16 | /* 17 | * IO Flags 18 | */ 19 | #define IOFlag_ForceClose (1 << 1) 20 | #define IOFlag_SingleWrite (1 << 2) 21 | 22 | /* 23 | * IO constants 24 | */ 25 | #define IOBufLen 8192 26 | 27 | 28 | /* 29 | * Exported functions 30 | */ 31 | /* Note: a_IO_ccc() is defined in Url.h together with the *_ccc() set */ 32 | 33 | 34 | /* 35 | * Exported data 36 | */ 37 | extern const char *AboutSplash; 38 | 39 | 40 | #endif /* __IO_H__ */ 41 | 42 | -------------------------------------------------------------------------------- /src/IO/IO.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/IO.o -------------------------------------------------------------------------------- /src/IO/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = \ 2 | -I$(top_srcdir) \ 3 | -DDILLO_BINDIR='"$(bindir)/"' 4 | AM_CFLAGS = @LIBFLTK_CFLAGS@ 5 | AM_CXXFLAGS = @LIBFLTK_CXXFLAGS@ 6 | 7 | noinst_LIBRARIES = libDiof.a 8 | 9 | libDiof_a_SOURCES = \ 10 | mime.c \ 11 | mime.h \ 12 | about.c \ 13 | Url.h \ 14 | http.c \ 15 | dpi.c \ 16 | IO.c \ 17 | iowatch.cc \ 18 | iowatch.hh \ 19 | IO.h 20 | -------------------------------------------------------------------------------- /src/IO/Url.h: -------------------------------------------------------------------------------- 1 | #ifndef __IO_URL_H__ 2 | #define __IO_URL_H__ 3 | 4 | #include "../chain.h" 5 | #include "../url.h" 6 | #include "../../dlib/dlib.h" 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif /* __cplusplus */ 11 | 12 | /* 13 | * External functions 14 | */ 15 | extern void a_Http_freeall(void); 16 | int a_Http_init(void); 17 | int a_Http_proxy_auth(void); 18 | void a_Http_set_proxy_passwd(const char *str); 19 | char *a_Http_make_connect_str(const DilloUrl *url); 20 | const char *a_Http_get_proxy_urlstr(); 21 | Dstr *a_Http_make_query_str(const DilloUrl *url, const DilloUrl *requester, 22 | bool_t use_proxy); 23 | 24 | void a_Http_ccc (int Op, int Branch, int Dir, ChainLink *Info, 25 | void *Data1, void *Data2); 26 | void a_IO_ccc (int Op, int Branch, int Dir, ChainLink *Info, 27 | void *Data1, void *Data2); 28 | void a_Dpi_ccc (int Op, int Branch, int Dir, ChainLink *Info, 29 | void *Data1, void *Data2); 30 | 31 | char *a_Dpi_send_blocking_cmd(const char *server_name, const char *cmd); 32 | void a_Dpi_dillo_exit(void); 33 | void a_Dpi_init(void); 34 | 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif /* __cplusplus */ 39 | 40 | #endif /* __IO_URL_H__ */ 41 | 42 | -------------------------------------------------------------------------------- /src/IO/about.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/about.o -------------------------------------------------------------------------------- /src/IO/dpi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/dpi.o -------------------------------------------------------------------------------- /src/IO/http.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/http.o -------------------------------------------------------------------------------- /src/IO/iowatch.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * File: iowatch.cc 3 | * 4 | * Copyright (C) 2005-2007 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | // Simple ADT for watching file descriptor activity 13 | 14 | #include 15 | #include "iowatch.hh" 16 | 17 | // 18 | // Hook a Callback for a certain activities in a FD 19 | // 20 | void a_IOwatch_add_fd(int fd, int when, Fl_FD_Handler Callback, 21 | void *usr_data = 0) 22 | { 23 | if (fd >= 0) 24 | Fl::add_fd(fd, when, Callback, usr_data); 25 | } 26 | 27 | // 28 | // Remove a Callback for a given FD (or just remove some events) 29 | // 30 | void a_IOwatch_remove_fd(int fd, int when) 31 | { 32 | if (fd >= 0) 33 | Fl::remove_fd(fd, when); 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/IO/iowatch.hh: -------------------------------------------------------------------------------- 1 | #ifndef __IO_WATCH_H__ 2 | #define __IO_WATCH_H__ 3 | 4 | /* 5 | * BUG: enum {READ = 1, WRITE = 4, EXCEPT = 8} borrowed from FL/Enumerations.H 6 | */ 7 | #define DIO_READ 1 8 | #define DIO_WRITE 4 9 | #define DIO_EXCEPT 8 10 | 11 | typedef void (*CbFunction_t)(int fd, void *data); 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif /* __cplusplus */ 16 | 17 | void a_IOwatch_add_fd(int fd,int when,CbFunction_t Callback,void *usr_data); 18 | void a_IOwatch_remove_fd(int fd,int when); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif /* __cplusplus */ 23 | 24 | #endif /* __IO_WATCH_H__ */ 25 | 26 | -------------------------------------------------------------------------------- /src/IO/iowatch.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/iowatch.o -------------------------------------------------------------------------------- /src/IO/libDiof.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/libDiof.a -------------------------------------------------------------------------------- /src/IO/mime.h: -------------------------------------------------------------------------------- 1 | /* 2 | * File: mime.h 3 | * 4 | * Copyright (C) 2005 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __MIME_H__ 13 | #define __MIME_H__ 14 | 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif /* __cplusplus */ 20 | 21 | 22 | #include "../cache.h" 23 | 24 | typedef void* (*Viewer_t) (const char*, void*, CA_Callback_t*, void**); 25 | 26 | /* 27 | * Function prototypes defined elsewhere 28 | */ 29 | void *a_Html_text (const char *Type,void *web, CA_Callback_t *Call, 30 | void **Data); 31 | void *a_Plain_text(const char *Type,void *web, CA_Callback_t *Call, 32 | void **Data); 33 | void *a_Dicache_png_image (const char *Type,void *web, CA_Callback_t *Call, 34 | void **Data); 35 | void *a_Dicache_gif_image(const char *Type, void *Ptr, CA_Callback_t *Call, 36 | void **Data); 37 | void *a_Dicache_jpeg_image(const char *Type, void *Ptr, CA_Callback_t *Call, 38 | void **Data); 39 | 40 | /* 41 | * Functions defined inside Mime module 42 | */ 43 | void a_Mime_init(void); 44 | void *a_Mime_set_viewer(const char *content_type, void *Ptr, 45 | CA_Callback_t *Call, void **Data); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif /* __cplusplus */ 50 | 51 | #endif /* __MIME_H__ */ 52 | -------------------------------------------------------------------------------- /src/IO/mime.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/IO/mime.o -------------------------------------------------------------------------------- /src/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS= \ 2 | -I$(top_srcdir) \ 3 | -DDILLO_SYSCONF='"$(sysconfdir)/"' \ 4 | -DDILLO_DOCDIR='"$(docdir)/"' \ 5 | @LIBJPEG_CPPFLAGS@ 6 | AM_CFLAGS = @LIBPNG_CFLAGS@ 7 | AM_CXXFLAGS = @LIBPNG_CFLAGS@ @LIBFLTK_CXXFLAGS@ 8 | 9 | SUBDIRS = IO 10 | 11 | bin_PROGRAMS = dillo 12 | 13 | dillo_LDADD = \ 14 | $(top_builddir)/dlib/libDlib.a \ 15 | $(top_builddir)/dpip/libDpip.a \ 16 | IO/libDiof.a \ 17 | $(top_builddir)/dw/libDw-widgets.a \ 18 | $(top_builddir)/dw/libDw-fltk.a \ 19 | $(top_builddir)/dw/libDw-core.a \ 20 | $(top_builddir)/lout/liblout.a \ 21 | @LIBJPEG_LIBS@ @LIBPNG_LIBS@ @LIBFLTK_LIBS@ @LIBZ_LIBS@ \ 22 | @LIBICONV_LIBS@ @LIBPTHREAD_LIBS@ 23 | 24 | dillo_SOURCES = \ 25 | dillo.cc \ 26 | paths.cc \ 27 | paths.hh \ 28 | ui.cc \ 29 | ui.hh \ 30 | uicmd.cc \ 31 | uicmd.hh \ 32 | bw.h \ 33 | bw.c \ 34 | cookies.c \ 35 | cookies.h \ 36 | auth.c \ 37 | auth.h \ 38 | md5.c \ 39 | md5.h \ 40 | digest.c \ 41 | digest.h \ 42 | colors.c \ 43 | colors.h \ 44 | binaryconst.h \ 45 | misc.c \ 46 | misc.h \ 47 | history.h \ 48 | history.c \ 49 | prefs.c \ 50 | prefs.h \ 51 | prefsparser.cc \ 52 | prefsparser.hh \ 53 | keys.cc \ 54 | keys.hh \ 55 | msg.h \ 56 | list.h \ 57 | url.c \ 58 | url.h \ 59 | bitvec.c \ 60 | bitvec.h \ 61 | klist.c \ 62 | klist.h \ 63 | chain.c \ 64 | chain.h \ 65 | utf8.cc \ 66 | utf8.hh \ 67 | timeout.cc \ 68 | timeout.hh \ 69 | dialog.cc \ 70 | dialog.hh \ 71 | \ 72 | \ 73 | web.cc \ 74 | web.hh \ 75 | nav.c \ 76 | nav.h \ 77 | cache.c \ 78 | cache.h \ 79 | decode.c \ 80 | decode.h \ 81 | dicache.c \ 82 | dicache.h \ 83 | capi.c \ 84 | capi.h \ 85 | css.cc \ 86 | css.hh \ 87 | cssparser.cc \ 88 | cssparser.hh \ 89 | doctree.hh \ 90 | styleengine.cc \ 91 | styleengine.hh \ 92 | plain.cc \ 93 | html.cc \ 94 | html.hh \ 95 | html_common.hh \ 96 | form.cc \ 97 | form.hh \ 98 | table.cc \ 99 | table.hh \ 100 | bookmark.c \ 101 | bookmark.h \ 102 | dns.c \ 103 | dns.h \ 104 | gif.c \ 105 | dgif.h \ 106 | jpeg.c \ 107 | djpeg.h \ 108 | png.c \ 109 | dpng.h \ 110 | imgbuf.cc \ 111 | imgbuf.hh \ 112 | image.cc \ 113 | image.hh \ 114 | menu.hh \ 115 | menu.cc \ 116 | dpiapi.c \ 117 | dpiapi.h \ 118 | pixmaps.h \ 119 | findbar.cc \ 120 | findbar.hh \ 121 | xembed.cc \ 122 | xembed.hh 123 | 124 | EXTRA_DIST = chg srch keysrc 125 | sysconf_DATA = keysrc 126 | -------------------------------------------------------------------------------- /src/auth.h: -------------------------------------------------------------------------------- 1 | #ifndef __AUTH_H__ 2 | #define __AUTH_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | #include "url.h" 9 | 10 | enum AuthParseHTTPAuthType_t { TYPENOTSET, BASIC, DIGEST }; 11 | enum AuthParseDigestAlgorithm_t { ALGORITHMNOTSET, MD5, MD5SESS }; 12 | enum AuthParseDigestQOP_t { QOPNOTSET, AUTH, AUTHINT }; 13 | 14 | typedef struct { 15 | enum AuthParseHTTPAuthType_t type; 16 | char *name; 17 | Dlist *paths; /* stripped of any trailing '/', so the root path is "" */ 18 | char *authorization; /* BASIC: the authorization request header */ 19 | /* DIGEST: the hexdigest of A1 */ 20 | /* digest state ahead */ 21 | char *username; 22 | char *cnonce; 23 | unsigned int nonce_count; 24 | char *nonce; 25 | char *opaque; 26 | enum AuthParseDigestAlgorithm_t algorithm; 27 | char *domain; /* NOT USED */ 28 | enum AuthParseDigestQOP_t qop; 29 | } AuthRealm_t; 30 | 31 | 32 | char *a_Auth_get_auth_str(const DilloUrl *url, const char *request_uri); 33 | int a_Auth_do_auth(Dlist *auth_string, const DilloUrl *url); 34 | void a_Auth_init(void); 35 | 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif /* __cplusplus */ 40 | #endif /* !__AUTH_H__ */ 41 | -------------------------------------------------------------------------------- /src/auth.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/auth.o -------------------------------------------------------------------------------- /src/binaryconst.h: -------------------------------------------------------------------------------- 1 | #ifndef __BINARYCONST_H__ 2 | #define __BINARYCONST_H__ 3 | 4 | /* binaryconst.h was integrated into the Dillo project in April 2004, and 5 | * presumably comes from the ancestor of the code found at 6 | * http://cprog.tomsweb.net/binconst.txt 7 | */ 8 | 9 | /* Macros for allowing binary constants in C 10 | * By Tom Torfs - donated to the public domain */ 11 | 12 | #define HEX__(n) 0x##n##LU 13 | 14 | /* 8-bit conversion function */ 15 | #define B8__(x) ((x&0x0000000FLU)?1:0) \ 16 | +((x&0x000000F0LU)?2:0) \ 17 | +((x&0x00000F00LU)?4:0) \ 18 | +((x&0x0000F000LU)?8:0) \ 19 | +((x&0x000F0000LU)?16:0) \ 20 | +((x&0x00F00000LU)?32:0) \ 21 | +((x&0x0F000000LU)?64:0) \ 22 | +((x&0xF0000000LU)?128:0) 23 | 24 | 25 | /* 26 | * *** USER MACROS *** 27 | */ 28 | 29 | /* for upto 8-bit binary constants */ 30 | #define B8(d) ((unsigned char)B8__(HEX__(d))) 31 | 32 | /* for upto 16-bit binary constants, MSB first */ 33 | #define B16(dmsb,dlsb) (((unsigned short)B8(dmsb)<<8) + B8(dlsb)) 34 | 35 | /* 36 | * Sample usage: 37 | * B8(01010101) = 85 38 | * B16(10101010,01010101) = 43605 39 | */ 40 | 41 | 42 | #endif /* __BINARYCONST_H__ */ 43 | 44 | -------------------------------------------------------------------------------- /src/bitvec.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: bitvec.c 3 | * 4 | * Copyright 2001 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | /* 13 | * A simple ADT for bit arrays 14 | */ 15 | 16 | #include "../dlib/dlib.h" 17 | #include "bitvec.h" 18 | 19 | 20 | /* 21 | * Create a new bitvec with 'num_bits' size 22 | */ 23 | bitvec_t *a_Bitvec_new(int num_bits) 24 | { 25 | bitvec_t *bvec = dNew(bitvec_t, 1); 26 | 27 | bvec->vec = dNew0(uchar_t, num_bits/BVEC_SIZE + 1); 28 | bvec->len = num_bits; 29 | return bvec; 30 | } 31 | 32 | /* 33 | * Clear a bitvec 34 | */ 35 | void a_Bitvec_clear(bitvec_t *bvec) 36 | { 37 | memset(bvec->vec, 0, sizeof(uchar_t) * bvec->len/BVEC_SIZE + 1); 38 | } 39 | 40 | /* 41 | * Free a bitvec 42 | */ 43 | void a_Bitvec_free(bitvec_t *bvec) 44 | { 45 | if (bvec) { 46 | dFree(bvec->vec); 47 | dFree(bvec); 48 | } 49 | } 50 | 51 | /* 52 | * Get a bit 53 | */ 54 | int a_Bitvec_get_bit(bitvec_t *bvec, int pos) 55 | { 56 | dReturn_val_if_fail (pos < bvec->len, 0); 57 | return (bvec->vec[pos/BVEC_SIZE] & 1 << pos % BVEC_SIZE); 58 | } 59 | 60 | /* 61 | * Set a bit 62 | */ 63 | void a_Bitvec_set_bit(bitvec_t *bvec, int pos) 64 | { 65 | dReturn_if_fail (pos < bvec->len); 66 | bvec->vec[pos/BVEC_SIZE] |= 1 << (pos % BVEC_SIZE); 67 | } 68 | -------------------------------------------------------------------------------- /src/bitvec.h: -------------------------------------------------------------------------------- 1 | #ifndef __BITVEC_H__ 2 | #define __BITVEC_H__ 3 | 4 | #include "d_size.h" 5 | 6 | #define BVEC_TYPE uchar_t 7 | #define BVEC_SIZE sizeof(BVEC_TYPE) 8 | 9 | typedef struct _bitvec bitvec_t; 10 | 11 | struct _bitvec { 12 | BVEC_TYPE *vec; 13 | int len; /* number of bits [1 based] */ 14 | }; 15 | 16 | 17 | /* 18 | * Function prototypes 19 | */ 20 | bitvec_t *a_Bitvec_new(int bits); 21 | void a_Bitvec_free(bitvec_t *bvec); 22 | int a_Bitvec_get_bit(bitvec_t *bvec, int pos); 23 | void a_Bitvec_set_bit(bitvec_t *bvec, int pos); 24 | void a_Bitvec_clear(bitvec_t *bvec); 25 | 26 | /* 27 | #define a_Bitvec_get_bit(bvec,pos) \ 28 | ((bvec)->vec[(pos)/BVEC_SIZE] & 1 << (pos) % BVEC_SIZE) 29 | 30 | #define a_Bitvec_set_bit(bvec,pos) \ 31 | ((bvec)->vec[(pos)/BVEC_SIZE] |= 1 << (pos) % BVEC_SIZE) 32 | */ 33 | #define a_Bitvec_clear_bit(bvec,pos) \ 34 | ((bvec)->vec[(pos)/BVEC_SIZE] &= ~(1 << (pos) % BVEC_SIZE)) 35 | 36 | 37 | #endif /* __BITVEC_H__ */ 38 | -------------------------------------------------------------------------------- /src/bitvec.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/bitvec.o -------------------------------------------------------------------------------- /src/bookmark.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: bookmark.c 3 | * 4 | * Copyright 2002-2007 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #include 13 | 14 | #include "msg.h" 15 | #include "history.h" 16 | #include "capi.h" 17 | #include "bookmark.h" /* for prototypes */ 18 | #include "../dpip/dpip.h" 19 | 20 | 21 | 22 | /* 23 | * Have a short chat with the bookmarks server, 24 | * and finally ask it to add a new bookmark. 25 | * (this is an example of dpi chat) 26 | */ 27 | void a_Bookmarks_chat_add(BrowserWindow *Bw, char *Cmd, char *answer) 28 | { 29 | static char *cmd1 = NULL, *cmd2 = NULL, *cmd3 = NULL, *cmd4 = NULL; 30 | static BrowserWindow *bw = NULL; 31 | 32 | if (!cmd1) { 33 | cmd1 = a_Dpip_build_cmd("cmd=%s msg=%s", "chat", "Hi server"); 34 | cmd2 = a_Dpip_build_cmd("cmd=%s msg=%s", "chat", 35 | "I want to set a bookmark"); 36 | cmd3 = a_Dpip_build_cmd("cmd=%s msg=%s", "chat", "Sure it is!"); 37 | } 38 | 39 | _MSG("a_Bookmarks_chat_add\n answer=%s\n", answer ? answer : "(null)"); 40 | 41 | if (Bw) 42 | bw = Bw; 43 | if (!cmd4 && Cmd) 44 | cmd4 = dStrdup(Cmd); 45 | 46 | if (!answer) { 47 | a_Capi_dpi_send_cmd(NULL, bw, cmd1, "bookmarks", 1); 48 | 49 | } else { 50 | /* we have an answer */ 51 | if (answer) { 52 | if (*answer == 'H') { 53 | /* "Hi browser" */ 54 | a_Capi_dpi_send_cmd(NULL, bw, cmd2, "bookmarks", 0); 55 | } else if (*answer == 'I') { 56 | /* "Is it worth?" */ 57 | a_Capi_dpi_send_cmd(NULL, bw, cmd3, "bookmarks", 0); 58 | } else if (*answer == 'O') { 59 | /* "OK, send it!" */ 60 | a_Capi_dpi_send_cmd(NULL, bw, cmd4, "bookmarks", 0); 61 | dFree(cmd4); 62 | cmd4 = NULL; 63 | } 64 | } 65 | } 66 | } 67 | 68 | /* 69 | * Add the new bookmark through the bookmarks server 70 | */ 71 | void a_Bookmarks_add(BrowserWindow *bw, const DilloUrl *url) 72 | { 73 | const char *title; 74 | char *cmd; 75 | 76 | dReturn_if_fail(url != NULL); 77 | 78 | /* if the page has no title, we'll use the url string */ 79 | title = a_History_get_title_by_url(url, 1); 80 | 81 | cmd = a_Dpip_build_cmd("cmd=%s url=%s title=%s", 82 | "add_bookmark", URL_STR(url), title); 83 | a_Bookmarks_chat_add(bw, cmd, NULL); 84 | dFree(cmd); 85 | } 86 | 87 | -------------------------------------------------------------------------------- /src/bookmark.h: -------------------------------------------------------------------------------- 1 | #ifndef __BOOKMARK_H__ 2 | #define __BOOKMARK_H__ 3 | 4 | #include "bw.h" 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif /* __cplusplus */ 9 | 10 | void a_Bookmarks_add(BrowserWindow *bw, const DilloUrl *url); 11 | 12 | /* TODO: this is for testing purposes */ 13 | void a_Bookmarks_chat_add(BrowserWindow *Bw, char *Cmd, char *answer); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif /* __cplusplus */ 18 | 19 | #endif /* __BOOKMARK_H__ */ 20 | -------------------------------------------------------------------------------- /src/bookmark.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/bookmark.o -------------------------------------------------------------------------------- /src/bw.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/bw.o -------------------------------------------------------------------------------- /src/cache.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/cache.o -------------------------------------------------------------------------------- /src/capi.h: -------------------------------------------------------------------------------- 1 | #ifndef __CAPI_H__ 2 | #define __CAPI_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | 9 | #include "cache.h" 10 | #include "web.hh" 11 | 12 | /* 13 | * Flag defines 14 | */ 15 | #define CAPI_IsCached (0x1) 16 | #define CAPI_IsEmpty (0x2) 17 | #define CAPI_InProgress (0x4) 18 | #define CAPI_Aborted (0x8) 19 | #define CAPI_Completed (0x10) 20 | 21 | /* 22 | * Function prototypes 23 | */ 24 | void a_Capi_init(void); 25 | int a_Capi_open_url(DilloWeb *web, CA_Callback_t Call, void *CbData); 26 | int a_Capi_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize); 27 | void a_Capi_unref_buf(const DilloUrl *Url); 28 | const char *a_Capi_get_content_type(const DilloUrl *url); 29 | const char *a_Capi_set_content_type(const DilloUrl *url, const char *ctype, 30 | const char *from); 31 | int a_Capi_get_flags(const DilloUrl *Url); 32 | int a_Capi_get_flags_with_redirection(const DilloUrl *Url); 33 | int a_Capi_dpi_verify_request(BrowserWindow *bw, DilloUrl *url); 34 | int a_Capi_dpi_send_data(const DilloUrl *url, void *bw, 35 | char *data, int data_sz, char *server, int flags); 36 | int a_Capi_dpi_send_cmd(DilloUrl *url, void *bw, char *cmd, char *server, 37 | int flags); 38 | void a_Capi_set_vsource_url(const DilloUrl *url); 39 | void a_Capi_stop_client(int Key, int force); 40 | void a_Capi_conn_abort_by_url(const DilloUrl *url); 41 | 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif /* __cplusplus */ 46 | 47 | #endif /* __CAPI_H__ */ 48 | 49 | -------------------------------------------------------------------------------- /src/capi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/capi.o -------------------------------------------------------------------------------- /src/chain.h: -------------------------------------------------------------------------------- 1 | #ifndef __CHAIN_H__ 2 | #define __CHAIN_H__ 3 | 4 | /* 5 | * Concomitant control chain (CCC) 6 | * Theory and code by Jorge Arellano Cid 7 | */ 8 | 9 | 10 | /* 11 | * Supported CCC operations 12 | */ 13 | #define OpStart 1 14 | #define OpSend 2 15 | #define OpStop 3 16 | #define OpEnd 4 17 | #define OpAbort 5 18 | 19 | /* 20 | * CCC flags 21 | */ 22 | #define CCC_Stopped (1 << 0) 23 | #define CCC_Ended (1 << 1) 24 | #define CCC_Aborted (1 << 2) 25 | 26 | /* 27 | * Linking direction 28 | */ 29 | #define FWD 1 30 | #define BCK 2 31 | 32 | 33 | typedef struct _ChainLink ChainLink; 34 | typedef struct _DataBuf DataBuf; 35 | typedef void (*ChainFunction_t)(int Op, int Branch, int Dir, ChainLink *Info, 36 | void *Data1, void *Data2); 37 | 38 | /* This is the main data structure for CCC nodes */ 39 | struct _ChainLink { 40 | void *LocalKey; 41 | 42 | int Flags; 43 | 44 | ChainLink *FcbInfo; 45 | ChainFunction_t Fcb; 46 | int FcbBranch; 47 | 48 | ChainLink *BcbInfo; 49 | ChainFunction_t Bcb; 50 | int BcbBranch; 51 | }; 52 | 53 | /* A convenience data structure for passing data chunks between nodes */ 54 | struct _DataBuf { 55 | char *Buf; 56 | int Size; 57 | int Code; 58 | }; 59 | 60 | 61 | 62 | /* 63 | * Function prototypes 64 | */ 65 | ChainLink *a_Chain_new(void); 66 | ChainLink *a_Chain_link_new(ChainLink *AInfo, ChainFunction_t AFunc, 67 | int Direction, ChainFunction_t BFunc, 68 | int AtoB_branch, int BtoA_branch); 69 | void a_Chain_unlink(ChainLink *Info, int Direction); 70 | int a_Chain_fcb(int Op, ChainLink *Info, void *Data1, void *Data2); 71 | int a_Chain_bcb(int Op, ChainLink *Info, void *Data1, void *Data2); 72 | int a_Chain_bfcb(int Op, ChainLink *Info, void *Data1, void *Data2); 73 | int a_Chain_check(char *FuncStr, int Op, int Branch, int Dir, 74 | ChainLink *Info); 75 | 76 | DataBuf *a_Chain_dbuf_new(void *buf, int size, int code); 77 | 78 | #endif /* __CHAIN_H__ */ 79 | -------------------------------------------------------------------------------- /src/chain.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/chain.o -------------------------------------------------------------------------------- /src/chg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Shell script for name changing source code 4 | # 5 | 6 | if [ ! $# = 3 ]; then 7 | echo "Usage: chg " 8 | echo " (this script changes directly)" 9 | exit 1 10 | fi 11 | 12 | if [ ! -r $1 ]; then 13 | echo "source file ->$1<- doesn't exist..." 14 | exit 1 15 | fi 16 | 17 | if [ ! -r $1.BAK ]; then 18 | echo "creating backup file: $1.BAK" 19 | cp $1 $1.BAK 20 | fi 21 | 22 | sed "s/$2/$3/g" $1 > out 23 | #sed s/$2/$3/ $1 > out 24 | rm $1 25 | mv out $1 26 | echo "done!" 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/colors.h: -------------------------------------------------------------------------------- 1 | #ifndef __COLORS_H__ 2 | #define __COLORS_H__ 3 | 4 | #include "config.h" 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif /* __cplusplus */ 10 | 11 | int32_t a_Color_parse (const char *subtag, int32_t default_color, int *err); 12 | int32_t a_Color_vc(int32_t candidate, int32_t c1, int32_t c2, int32_t c3); 13 | 14 | #ifdef __cplusplus 15 | } 16 | #endif /* __cplusplus */ 17 | 18 | #endif /* __COLORS_H__ */ 19 | -------------------------------------------------------------------------------- /src/colors.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/colors.o -------------------------------------------------------------------------------- /src/cookies.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/cookies.c -------------------------------------------------------------------------------- /src/cookies.h: -------------------------------------------------------------------------------- 1 | #ifndef __COOKIES_H__ 2 | #define __COOKIES_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | 9 | #ifdef DISABLE_COOKIES 10 | # define a_Cookies_get_query(url, requester) dStrdup("") 11 | # define a_Cookies_set() ; 12 | # define a_Cookies_init() ; 13 | # define a_Cookies_freeall() ; 14 | #else 15 | char *a_Cookies_get_query(const DilloUrl *query_url, 16 | const DilloUrl *requester); 17 | void a_Cookies_set(Dlist *cookie_string, const DilloUrl *set_url, 18 | const char *server_date); 19 | void a_Cookies_init( void ); 20 | void a_Cookies_freeall( void ); 21 | #endif 22 | 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif /* __cplusplus */ 27 | #endif /* !__COOKIES_H__ */ 28 | -------------------------------------------------------------------------------- /src/cookies.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/cookies.o -------------------------------------------------------------------------------- /src/css.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/css.o -------------------------------------------------------------------------------- /src/cssparser.hh: -------------------------------------------------------------------------------- 1 | #ifndef __CSSPARSER_HH__ 2 | #define __CSSPARSER_HH__ 3 | 4 | #include "css.hh" 5 | #include "html_common.hh" 6 | 7 | class CssParser { 8 | private: 9 | typedef enum { 10 | CSS_TK_DECINT, CSS_TK_FLOAT, CSS_TK_COLOR, CSS_TK_SYMBOL, 11 | CSS_TK_STRING, CSS_TK_CHAR, CSS_TK_END 12 | } CssTokenType; 13 | 14 | static const int maxStrLen = 256; 15 | CssContext *context; 16 | CssOrigin origin; 17 | 18 | const char *buf; 19 | int buflen, bufptr; 20 | 21 | CssTokenType ttype; 22 | char tval[maxStrLen]; 23 | bool withinBlock; 24 | bool spaceSeparated; /* used when parsing CSS selectors */ 25 | 26 | CssParser(CssContext *context, CssOrigin origin, 27 | const char *buf, int buflen); 28 | int getChar(); 29 | void ungetChar(); 30 | void nextToken(); 31 | bool skipString(int c, const char *string); 32 | bool tokenMatchesProperty(CssPropertyName prop, CssValueType * type); 33 | bool parseValue(CssPropertyName prop, CssValueType type, 34 | CssPropertyValue * val); 35 | bool parseWeight(); 36 | bool parseRgbColorComponent(int32_t *cc, int *percentage); 37 | bool parseRgbColor(int32_t *c); 38 | void parseDeclaration(CssPropertyList * props, 39 | CssPropertyList * importantProps); 40 | bool parseSimpleSelector(CssSimpleSelector *selector); 41 | char *parseUrl(); 42 | void parseImport(DilloHtml *html, DilloUrl *url); 43 | void parseMedia(); 44 | CssSelector *parseSelector(); 45 | void parseRuleset(); 46 | void ignoreBlock(); 47 | void ignoreStatement(); 48 | 49 | public: 50 | static void parseDeclarationBlock(const char *buf, int buflen, 51 | CssPropertyList *props, 52 | CssPropertyList *propsImortant); 53 | static void parse(DilloHtml *html, DilloUrl *url, CssContext *context, 54 | const char *buf, int buflen, CssOrigin origin); 55 | static const char *propertyNameString(CssPropertyName name); 56 | }; 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /src/cssparser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/cssparser.o -------------------------------------------------------------------------------- /src/decode.h: -------------------------------------------------------------------------------- 1 | #ifndef __DECODE_H__ 2 | #define __DECODE_H__ 3 | 4 | #include "../dlib/dlib.h" 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif /* __cplusplus */ 9 | 10 | typedef struct _Decode Decode; 11 | 12 | struct _Decode { 13 | char *buffer; 14 | Dstr *leftover; 15 | void *state; 16 | Dstr *(*decode) (Decode *dc, const char *instr, int inlen); 17 | void (*free) (Decode *dc); 18 | }; 19 | 20 | Decode *a_Decode_transfer_init(const char *format); 21 | Decode *a_Decode_content_init(const char *format); 22 | Decode *a_Decode_charset_init(const char *format); 23 | Dstr *a_Decode_process(Decode *dc, const char *instr, int inlen); 24 | void a_Decode_free(Decode *dc); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif /* __cplusplus */ 29 | 30 | #endif /* __DECODE_H__ */ 31 | -------------------------------------------------------------------------------- /src/decode.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/decode.o -------------------------------------------------------------------------------- /src/dgif.h: -------------------------------------------------------------------------------- 1 | #ifndef __GIF_H__ 2 | #define __GIF_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | #include "url.h" 9 | #include "image.hh" 10 | 11 | 12 | void *a_Gif_new(DilloImage *Image, DilloUrl *url, int version); 13 | void a_Gif_callback(int Op, void *data); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif /* __cplusplus */ 19 | #endif /* !__GIF_H__ */ 20 | -------------------------------------------------------------------------------- /src/dialog.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DIALOG_HH__ 2 | #define __DIALOG_HH__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | typedef void (*UserPasswordCB)(const char *user, const char *password, 9 | void *vp); 10 | 11 | void a_Dialog_msg(const char *msg); 12 | int a_Dialog_choice5(const char *QuestionTxt, 13 | const char *alt1, const char *alt2, const char *alt3, 14 | const char *alt4, const char *alt5); 15 | int a_Dialog_user_password(const char *message, UserPasswordCB cb, void *vp); 16 | const char *a_Dialog_input(const char *msg); 17 | const char *a_Dialog_passwd(const char *msg); 18 | const char *a_Dialog_save_file(const char *msg, 19 | const char *pattern, const char *fname); 20 | const char *a_Dialog_select_file(const char *msg, 21 | const char *pattern, const char *fname); 22 | char *a_Dialog_open_file(const char *msg, 23 | const char *pattern, const char *fname); 24 | void a_Dialog_text_window(const char *txt, const char *title); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif /* __cplusplus */ 29 | 30 | #endif // __DIALOG_HH__ 31 | -------------------------------------------------------------------------------- /src/dialog.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dialog.o -------------------------------------------------------------------------------- /src/dicache.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dicache.o -------------------------------------------------------------------------------- /src/digest.h: -------------------------------------------------------------------------------- 1 | #ifndef __DIGEST_H__ 2 | #define __DIGEST_H__ 3 | 4 | #include "auth.h" 5 | #include "../dlib/dlib.h" 6 | 7 | 8 | char *a_Digest_create_cnonce(void); 9 | int a_Digest_compute_digest(AuthRealm_t *realm, 10 | const char *username, 11 | const char *passwd); 12 | char *a_Digest_authorization_hdr(AuthRealm_t *realm, 13 | const DilloUrl *url, 14 | const char *uri); 15 | 16 | #endif /* !__DIGEST_H__ */ 17 | -------------------------------------------------------------------------------- /src/digest.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/digest.o -------------------------------------------------------------------------------- /src/dillo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dillo -------------------------------------------------------------------------------- /src/dillo.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dillo.o -------------------------------------------------------------------------------- /src/djpeg.h: -------------------------------------------------------------------------------- 1 | #ifndef __JPEG_H__ 2 | #define __JPEG_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | #include "url.h" 9 | #include "image.hh" 10 | 11 | 12 | void *a_Jpeg_new(DilloImage *Image, DilloUrl *url, int version); 13 | void a_Jpeg_callback(int Op, void *data); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif /* __cplusplus */ 19 | #endif /* !__JPEG_H__ */ 20 | -------------------------------------------------------------------------------- /src/dns.h: -------------------------------------------------------------------------------- 1 | #ifndef __DNS_H__ 2 | #define __DNS_H__ 3 | 4 | #include 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif /* __cplusplus */ 9 | 10 | 11 | typedef void (*DnsCallback_t)(int status, Dlist *addr_list, void *data); 12 | 13 | void a_Dns_init (void); 14 | void a_Dns_freeall(void); 15 | void a_Dns_resolve(const char *hostname, DnsCallback_t cb_func, void *cb_data); 16 | 17 | #ifdef ENABLE_IPV6 18 | # define DILLO_ADDR_MAX sizeof(struct in6_addr) 19 | #else 20 | # define DILLO_ADDR_MAX sizeof(struct in_addr) 21 | #endif 22 | 23 | typedef struct _DilloHost 24 | { 25 | int af; 26 | int alen; 27 | char data[DILLO_ADDR_MAX]; 28 | } DilloHost; 29 | void a_Dns_dillohost_to_string(DilloHost *host, char *dst, size_t size); 30 | 31 | #ifdef __cplusplus 32 | } 33 | #endif /* __cplusplus */ 34 | 35 | #endif /* __DNS_H__ */ 36 | -------------------------------------------------------------------------------- /src/dns.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dns.o -------------------------------------------------------------------------------- /src/doctree.hh: -------------------------------------------------------------------------------- 1 | #ifndef __DOCTREE_HH__ 2 | #define __DOCTREE_HH__ 3 | 4 | #include "lout/misc.hh" 5 | 6 | class DoctreeNode { 7 | public: 8 | DoctreeNode *parent; 9 | DoctreeNode *sibling; 10 | DoctreeNode *lastChild; 11 | int num; // unique ascending id 12 | int element; 13 | lout::misc::SimpleVector *klass; 14 | const char *pseudo; 15 | const char *id; 16 | 17 | DoctreeNode () { 18 | parent = NULL; 19 | sibling = NULL; 20 | lastChild = NULL; 21 | klass = NULL; 22 | pseudo = NULL; 23 | id = NULL; 24 | element = 0; 25 | }; 26 | 27 | ~DoctreeNode () { 28 | dFree ((void*) id); 29 | while (lastChild) { 30 | DoctreeNode *n = lastChild; 31 | lastChild = lastChild->sibling; 32 | delete n; 33 | } 34 | if (klass) { 35 | for (int i = 0; i < klass->size (); i++) 36 | dFree (klass->get(i)); 37 | delete klass; 38 | } 39 | } 40 | }; 41 | 42 | /** 43 | * \brief HTML document tree interface. 44 | * 45 | * The Doctree class defines the interface to the parsed HTML document tree 46 | * as it is used for CSS selector matching. 47 | */ 48 | class Doctree { 49 | private: 50 | DoctreeNode *topNode; 51 | DoctreeNode *rootNode; 52 | int num; 53 | 54 | public: 55 | Doctree () { 56 | rootNode = new DoctreeNode; 57 | topNode = rootNode; 58 | num = 0; 59 | }; 60 | 61 | ~Doctree () { 62 | delete rootNode; 63 | }; 64 | 65 | DoctreeNode *push () { 66 | DoctreeNode *dn = new DoctreeNode (); 67 | dn->parent = topNode; 68 | dn->sibling = dn->parent->lastChild; 69 | dn->parent->lastChild = dn; 70 | dn->num = num++; 71 | topNode = dn; 72 | return dn; 73 | }; 74 | 75 | void pop () { 76 | assert (topNode != rootNode); // never pop the root node 77 | topNode = topNode->parent; 78 | }; 79 | 80 | inline DoctreeNode *top () { 81 | if (topNode != rootNode) 82 | return topNode; 83 | else 84 | return NULL; 85 | }; 86 | 87 | inline DoctreeNode *parent (const DoctreeNode *node) { 88 | if (node->parent != rootNode) 89 | return node->parent; 90 | else 91 | return NULL; 92 | }; 93 | 94 | inline DoctreeNode *sibling (const DoctreeNode *node) { 95 | return node->sibling; 96 | }; 97 | }; 98 | 99 | #endif 100 | -------------------------------------------------------------------------------- /src/dpiapi.c: -------------------------------------------------------------------------------- 1 | /* 2 | * File: dpiapi.c 3 | * 4 | * Copyright (C) 2004-2007 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | /* Support for dpi/dpip from Dillo's side */ 13 | 14 | #include "msg.h" 15 | #include "bw.h" 16 | #include "capi.h" 17 | #include "dpiapi.h" /* for prototypes */ 18 | #include "dialog.hh" 19 | #include "../dpip/dpip.h" 20 | 21 | 22 | //---------------------------------------------------------------------------- 23 | // Dialog interface 24 | // 25 | 26 | /* This variable can be eliminated as a parameter with a cleaner API. */ 27 | static char *dialog_server = NULL; 28 | 29 | 30 | /* 31 | * Generic callback function for dpip dialogs. 32 | */ 33 | static void Dpiapi_dialog_answer_cb(BrowserWindow *bw, int answer) 34 | { 35 | char *cmd, numstr[16]; 36 | 37 | /* make dpip tag with the answer */ 38 | snprintf(numstr, 16, "%d", answer); 39 | cmd = a_Dpip_build_cmd("cmd=%s to_cmd=%s msg=%s", 40 | "answer", "dialog", numstr); 41 | 42 | /* Send answer */ 43 | a_Capi_dpi_send_cmd(NULL, bw, cmd, dialog_server, 0); 44 | dFree(cmd); 45 | } 46 | 47 | /* 48 | * Process a dpip "dialog" command from any dpi. 49 | */ 50 | void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag) 51 | { 52 | char *question, *alt1, *alt2, *alt3, *alt4, *alt5; 53 | size_t dpip_tag_len; 54 | int ret; 55 | 56 | _MSG("a_Dpiapi_dialog:\n"); 57 | _MSG(" dpip_tag: %s\n", dpip_tag); 58 | 59 | /* set the module scoped variable */ 60 | dialog_server = server; 61 | 62 | /* other options can be parsed the same way */ 63 | dpip_tag_len = strlen(dpip_tag); 64 | question = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "msg"); 65 | alt1 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt1"); 66 | alt2 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt2"); 67 | alt3 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt3"); 68 | alt4 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt4"); 69 | alt5 = a_Dpip_get_attr_l(dpip_tag, dpip_tag_len, "alt5"); 70 | 71 | ret = a_Dialog_choice5(question, alt1, alt2, alt3, alt4, alt5); 72 | /* As choice5 is modal, call the callback function directly. */ 73 | Dpiapi_dialog_answer_cb(bw, ret); 74 | 75 | dFree(alt1); dFree(alt2); dFree(alt3); dFree(alt4); dFree(alt5); 76 | dFree(question); 77 | } 78 | 79 | -------------------------------------------------------------------------------- /src/dpiapi.h: -------------------------------------------------------------------------------- 1 | 2 | void a_Dpiapi_dialog(BrowserWindow *bw, char *server, char *dpip_tag); 3 | 4 | -------------------------------------------------------------------------------- /src/dpiapi.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/dpiapi.o -------------------------------------------------------------------------------- /src/dpng.h: -------------------------------------------------------------------------------- 1 | #ifndef __PNG_H__ 2 | #define __PNG_H__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | #include "url.h" 9 | #include "image.hh" 10 | 11 | 12 | void *a_Png_new(DilloImage *Image, DilloUrl *url, int version); 13 | void a_Png_callback(int Op, CacheClient_t *Client); 14 | 15 | 16 | #ifdef __cplusplus 17 | } 18 | #endif /* __cplusplus */ 19 | #endif /* !__PNG_H__ */ 20 | -------------------------------------------------------------------------------- /src/findbar.hh: -------------------------------------------------------------------------------- 1 | #ifndef __FINDBAR_HH__ 2 | #define __FINDBAR_HH__ 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | 11 | /* 12 | * Searchbar to find text in page. 13 | */ 14 | class Findbar : public Fl_Group { 15 | Fl_Button *clrb; 16 | Fl_Button *hide_btn, *next_btn, *prev_btn; 17 | Fl_Check_Button *check_btn; 18 | Fl_Pixmap *hideImg; 19 | Fl_Input *i; 20 | 21 | static void search_cb (Fl_Widget *, void *); 22 | static void searchBackwards_cb (Fl_Widget *, void *); 23 | static void hide_cb (Fl_Widget *, void *); 24 | 25 | public: 26 | Findbar(int width, int height); 27 | ~Findbar(); 28 | int handle(int event); 29 | void show(); 30 | }; 31 | 32 | #endif // __FINDBAR_HH__ 33 | -------------------------------------------------------------------------------- /src/findbar.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/findbar.o -------------------------------------------------------------------------------- /src/form.hh: -------------------------------------------------------------------------------- 1 | #ifndef __FORM_HH__ 2 | #define __FORM_HH__ 3 | 4 | #include "url.h" 5 | 6 | /* 7 | * Typedefs 8 | */ 9 | 10 | typedef enum { 11 | DILLO_HTML_METHOD_UNKNOWN, 12 | DILLO_HTML_METHOD_GET, 13 | DILLO_HTML_METHOD_POST 14 | } DilloHtmlMethod; 15 | 16 | typedef enum { 17 | DILLO_HTML_ENC_URLENCODED, 18 | DILLO_HTML_ENC_MULTIPART 19 | } DilloHtmlEnc; 20 | 21 | /* 22 | * Classes 23 | */ 24 | 25 | class DilloHtmlForm; 26 | class DilloHtmlInput; 27 | class DilloHtml; 28 | 29 | /* 30 | * Form API 31 | */ 32 | 33 | DilloHtmlForm *a_Html_form_new(DilloHtml *html, 34 | DilloHtmlMethod method, 35 | const DilloUrl *action, 36 | DilloHtmlEnc enc, 37 | const char *charset, bool enabled); 38 | 39 | void a_Html_form_delete(DilloHtmlForm* form); 40 | void a_Html_input_delete(DilloHtmlInput* input); 41 | void a_Html_form_submit2(void *v_form); 42 | void a_Html_form_reset2(void *v_form); 43 | void a_Html_form_display_hiddens2(void *v_form, bool display); 44 | 45 | 46 | /* 47 | * Form parsing functions 48 | */ 49 | 50 | void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize); 51 | void Html_tag_close_form(DilloHtml *html, int TagIdx); 52 | void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize); 53 | void Html_tag_open_isindex(DilloHtml *html, const char *tag, int tagsize); 54 | void Html_tag_open_textarea(DilloHtml *html, const char *tag, int tagsize); 55 | void Html_tag_close_textarea(DilloHtml *html, int TagIdx); 56 | void Html_tag_open_select(DilloHtml *html, const char *tag, int tagsize); 57 | void Html_tag_close_select(DilloHtml *html, int TagIdx); 58 | void Html_tag_open_option(DilloHtml *html, const char *tag, int tagsize); 59 | void Html_tag_open_button(DilloHtml *html, const char *tag, int tagsize); 60 | void Html_tag_close_button(DilloHtml *html, int TagIdx); 61 | 62 | #endif /* __FORM_HH__ */ 63 | -------------------------------------------------------------------------------- /src/form.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/form.o -------------------------------------------------------------------------------- /src/gif.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/gif.o -------------------------------------------------------------------------------- /src/history.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __DILLO_HISTORY_H__ 3 | #define __DILLO_HISTORY_H__ 4 | 5 | #include "url.h" 6 | 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif /* __cplusplus */ 11 | 12 | int a_History_add_url(DilloUrl *url); 13 | void a_History_set_title_by_url(const DilloUrl *url, const char *title); 14 | const DilloUrl *a_History_get_url(int idx); 15 | const char *a_History_get_title(int idx, int force); 16 | const char *a_History_get_title_by_url(const DilloUrl *url, int force); 17 | void a_History_freeall(void); 18 | 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif /* __cplusplus */ 23 | 24 | #endif /* __DILLO_HISTORY_H__ */ 25 | -------------------------------------------------------------------------------- /src/history.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/history.o -------------------------------------------------------------------------------- /src/html.hh: -------------------------------------------------------------------------------- 1 | #ifndef __HTML_HH__ 2 | #define __HTML_HH__ 3 | 4 | #include "url.h" // for DilloUrl 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif /* __cplusplus */ 9 | 10 | /* 11 | * Exported functions 12 | */ 13 | void a_Html_load_images(void *v_html, DilloUrl *pattern); 14 | void a_Html_form_submit(void *v_html, void *v_form); 15 | void a_Html_form_reset(void *v_html, void *v_form); 16 | void a_Html_form_display_hiddens(void *v_html, void *v_form, bool_t display); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif /* __cplusplus */ 21 | 22 | 23 | #endif /* __HTML_HH__ */ 24 | -------------------------------------------------------------------------------- /src/html.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/html.o -------------------------------------------------------------------------------- /src/image.hh: -------------------------------------------------------------------------------- 1 | #ifndef __IMAGE_HH__ 2 | #define __IMAGE_HH__ 3 | 4 | // The DilloImage data-structure and methods 5 | 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif /* __cplusplus */ 10 | 11 | 12 | #include "bitvec.h" 13 | #include "url.h" 14 | 15 | /* 16 | * Defines 17 | */ 18 | 19 | /* Arbitrary maximum for image size (to avoid image size-crafting attacks). */ 20 | #define IMAGE_MAX_AREA (6000 * 6000) 21 | 22 | /* 23 | * Types 24 | */ 25 | 26 | typedef struct _DilloImage DilloImage; 27 | 28 | typedef enum { 29 | DILLO_IMG_TYPE_INDEXED, 30 | DILLO_IMG_TYPE_RGB, 31 | DILLO_IMG_TYPE_GRAY, 32 | DILLO_IMG_TYPE_CMYK_INV, 33 | DILLO_IMG_TYPE_NOTSET /* Initial value */ 34 | } DilloImgType; 35 | 36 | /* These will reflect the Image's "state" */ 37 | typedef enum { 38 | IMG_Empty, /* Just created the entry */ 39 | IMG_SetParms, /* Parameters set */ 40 | IMG_SetCmap, /* Color map set */ 41 | IMG_Write, /* Feeding the entry */ 42 | IMG_Close, /* Whole image got! */ 43 | IMG_Abort /* Image transfer aborted */ 44 | } ImageState; 45 | 46 | struct _DilloImage { 47 | void *dw; 48 | 49 | /* Parameters as told by image data */ 50 | uint_t width; 51 | uint_t height; 52 | 53 | int32_t bg_color; /* Background color */ 54 | bitvec_t *BitVec; /* Bit vector for decoded rows */ 55 | uint_t ScanNumber; /* Current decoding scan */ 56 | ImageState State; /* Processing status */ 57 | 58 | int RefCount; /* Reference counter */ 59 | }; 60 | 61 | 62 | /* 63 | * Function prototypes 64 | */ 65 | DilloImage *a_Image_new(const char *alt_text, int32_t bg_color); 66 | void a_Image_ref(DilloImage *Image); 67 | void a_Image_unref(DilloImage *Image); 68 | 69 | void a_Image_set_parms(DilloImage *Image, void *v_imgbuf, DilloUrl *url, 70 | int version, uint_t width, uint_t height, 71 | DilloImgType type); 72 | void a_Image_write(DilloImage *Image, uint_t y); 73 | void a_Image_close(DilloImage *Image); 74 | 75 | 76 | #ifdef __cplusplus 77 | } 78 | #endif /* __cplusplus */ 79 | 80 | #endif /* __IMAGE_HH__ */ 81 | 82 | -------------------------------------------------------------------------------- /src/image.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/image.o -------------------------------------------------------------------------------- /src/imgbuf.hh: -------------------------------------------------------------------------------- 1 | #ifndef __IMGBUF_HH__ 2 | #define __IMGBUF_HH__ 3 | 4 | // Imgbuf wrappers 5 | 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif /* __cplusplus */ 10 | 11 | 12 | #include "image.hh" 13 | 14 | /* 15 | * Function prototypes 16 | */ 17 | void a_Imgbuf_ref(void *v_imgbuf); 18 | void a_Imgbuf_unref(void *v_imgbuf); 19 | void *a_Imgbuf_new(void *v_dw, int img_type, uint_t width, uint_t height); 20 | int a_Imgbuf_last_reference(void *v_imgbuf); 21 | void a_Imgbuf_update(void *v_imgbuf, const uchar_t *buf, DilloImgType type, 22 | uchar_t *cmap, uint_t width, uint_t height, uint_t y); 23 | void a_Imgbuf_new_scan(void *v_imgbuf); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif /* __cplusplus */ 28 | 29 | #endif /* __IMGBUF_HH__ */ 30 | 31 | -------------------------------------------------------------------------------- /src/imgbuf.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/imgbuf.o -------------------------------------------------------------------------------- /src/jpeg.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/jpeg.o -------------------------------------------------------------------------------- /src/keys.hh: -------------------------------------------------------------------------------- 1 | /* 2 | * Key parser 3 | * 4 | * Copyright (C) 2009 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __KEYS_HH__ 13 | #define __KEYS_HH__ 14 | 15 | 16 | typedef enum { 17 | KEYS_INVALID = -1, 18 | KEYS_NOP, /* No operation bound */ 19 | KEYS_OPEN, 20 | KEYS_NEW_WINDOW, 21 | KEYS_NEW_TAB, 22 | KEYS_LEFT_TAB, 23 | KEYS_RIGHT_TAB, 24 | KEYS_CLOSE_TAB, 25 | KEYS_FIRST_TAB, 26 | KEYS_LAST_TAB, 27 | KEYS_FIND, 28 | KEYS_WEBSEARCH, 29 | KEYS_BOOKMARKS, 30 | KEYS_RELOAD, 31 | KEYS_STOP, 32 | KEYS_SAVE, 33 | KEYS_HIDE_PANELS, 34 | KEYS_FILE_MENU, 35 | KEYS_CLOSE_ALL, 36 | KEYS_BACK, 37 | KEYS_FORWARD, 38 | KEYS_GOTO, 39 | KEYS_HOME, 40 | KEYS_SCREEN_UP, 41 | KEYS_SCREEN_DOWN, 42 | KEYS_SCREEN_LEFT, 43 | KEYS_SCREEN_RIGHT, 44 | KEYS_LINE_UP, 45 | KEYS_LINE_DOWN, 46 | KEYS_LEFT, 47 | KEYS_RIGHT, 48 | KEYS_TOP, 49 | KEYS_BOTTOM 50 | } KeysCommand_t; 51 | 52 | class Keys { 53 | private: 54 | static int nodeByKeyCmp(const void *node, const void *key); 55 | static void delKeyCmd(int key, int mod); 56 | static KeysCommand_t getCmdCode(const char *symbolName); 57 | static int getKeyCode(char *keyName); 58 | static int getModifier(char *modifierName); 59 | static void parseKey(char *key, char *symbol); 60 | public: 61 | static void init(); 62 | static void free(); 63 | static void parse(FILE *fp); 64 | static KeysCommand_t getKeyCmd(void); 65 | static int getShortcut(KeysCommand_t cmd); 66 | }; 67 | 68 | 69 | #endif /* __KEYS_HH__ */ 70 | -------------------------------------------------------------------------------- /src/keys.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/keys.o -------------------------------------------------------------------------------- /src/klist.h: -------------------------------------------------------------------------------- 1 | #ifndef __KLIST_H__ 2 | #define __KLIST_H__ 3 | 4 | #include "../dlib/dlib.h" 5 | 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif /* __cplusplus */ 10 | 11 | typedef struct _KlistNode KlistNode_t; 12 | typedef struct _Klist Klist_t; 13 | 14 | struct _KlistNode { 15 | int Key; /* primary key */ 16 | void *Data; /* data reference */ 17 | }; 18 | 19 | struct _Klist { 20 | Dlist *List; 21 | int Clean; /* check flag */ 22 | int Counter; /* counter (for making keys) */ 23 | }; 24 | 25 | 26 | /* 27 | * Function prototypes 28 | */ 29 | void* a_Klist_get_data(Klist_t *Klist, int Key); 30 | int a_Klist_insert(Klist_t **Klist, void *Data); 31 | void a_Klist_remove(Klist_t *Klist, int Key); 32 | int a_Klist_length(Klist_t *Klist); 33 | void a_Klist_free(Klist_t **Klist); 34 | 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif /* __cplusplus */ 39 | 40 | #endif /* __KLIST_H__ */ 41 | -------------------------------------------------------------------------------- /src/klist.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/klist.o -------------------------------------------------------------------------------- /src/list.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Fast list methods 3 | * Feb 2000 --Jcid 4 | * 5 | */ 6 | 7 | #ifndef __LIST_H__ 8 | #define __LIST_H__ 9 | 10 | /* 11 | * a_List_resize() 12 | * 13 | * Make sure there's space for 'num_items' items within the list 14 | * (First, allocate an 'alloc_step' sized chunk, after that, double the 15 | * list size --to make it faster) 16 | */ 17 | #define a_List_resize(list,num_items,alloc_step) \ 18 | if (!list) { \ 19 | list = dMalloc(alloc_step * sizeof((*list))); \ 20 | } \ 21 | if (num_items >= alloc_step){ \ 22 | while ( num_items >= alloc_step ) \ 23 | alloc_step <<= 1; \ 24 | list = dRealloc(list, alloc_step * sizeof((*list))); \ 25 | } 26 | 27 | 28 | /* 29 | * a_List_add() 30 | * 31 | * Make sure there's space for one more item within the list. 32 | */ 33 | #define a_List_add(list,num_items,alloc_step) \ 34 | a_List_resize(list,num_items,alloc_step) 35 | 36 | 37 | /* 38 | * a_List_remove() 39 | * 40 | * Quickly remove an item from the list 41 | * ==> We preserve relative position, but not the element index <== 42 | */ 43 | #define a_List_remove(list, item, num_items) \ 44 | if (list && item < num_items) { \ 45 | list[item] = list[--num_items]; \ 46 | } 47 | 48 | 49 | #endif /* __LIST_H__ */ 50 | -------------------------------------------------------------------------------- /src/md5.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/md5.o -------------------------------------------------------------------------------- /src/menu.hh: -------------------------------------------------------------------------------- 1 | #ifndef __MENU_HH__ 2 | #define __MENU_HH__ 3 | 4 | #include "bw.h" 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif /* __cplusplus */ 9 | 10 | void a_Menu_page_popup(BrowserWindow *bw, const DilloUrl *url, 11 | bool_t has_bugs, void *v_cssUrls); 12 | void a_Menu_link_popup(BrowserWindow *bw, const DilloUrl *url); 13 | void a_Menu_image_popup(BrowserWindow *bw, const DilloUrl *url, 14 | bool_t loaded_img, DilloUrl *page_url, 15 | DilloUrl *link_url); 16 | void a_Menu_form_popup(BrowserWindow *bw, const DilloUrl *page_url, 17 | void *vform, bool_t showing_hiddens); 18 | void a_Menu_file_popup(BrowserWindow *bw, void *v_wid); 19 | void a_Menu_bugmeter_popup(BrowserWindow *bw, const DilloUrl *url); 20 | void a_Menu_history_popup(BrowserWindow *bw, int x, int y, int direction); 21 | void a_Menu_tools_popup(BrowserWindow *bw, int x, int y); 22 | 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif /* __cplusplus */ 27 | 28 | #endif /* MENU_HH */ 29 | 30 | -------------------------------------------------------------------------------- /src/menu.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/menu.o -------------------------------------------------------------------------------- /src/misc.h: -------------------------------------------------------------------------------- 1 | #ifndef __DILLO_MISC_H__ 2 | #define __DILLO_MISC_H__ 3 | 4 | #include /* for size_t */ 5 | 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif /* __cplusplus */ 10 | 11 | 12 | char *a_Misc_escape_chars(const char *str, const char *esc_set); 13 | int a_Misc_expand_tabs(char **start, char *end, char *buf, int buflen); 14 | int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT); 15 | int a_Misc_content_type_check(const char *EntryType, const char *DetectedType); 16 | void a_Misc_parse_content_type(const char *str, char **major, char **minor, 17 | char **charset); 18 | int a_Misc_content_type_cmp(const char* ct1, const char *ct2); 19 | int a_Misc_parse_geometry(char *geom, int *x, int *y, int *w, int *h); 20 | int a_Misc_parse_search_url(char *source, char **label, char **urlstr); 21 | char *a_Misc_encode_base64(const char *in); 22 | Dstr *a_Misc_file2dstr(const char *filename); 23 | 24 | #ifdef __cplusplus 25 | } 26 | #endif /* __cplusplus */ 27 | 28 | #endif /* __DILLO_MISC_H__ */ 29 | 30 | -------------------------------------------------------------------------------- /src/misc.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/misc.o -------------------------------------------------------------------------------- /src/msg.h: -------------------------------------------------------------------------------- 1 | #ifndef __MSG_H__ 2 | #define __MSG_H__ 3 | 4 | #include 5 | #include "prefs.h" 6 | 7 | /* 8 | * You can disable any MSG* macro by adding the '_' prefix. 9 | */ 10 | #define _MSG(...) 11 | #define _MSG_WARN(...) 12 | #define _MSG_HTTP(...) 13 | 14 | #define MSG_INNARDS(prefix, ...) \ 15 | D_STMT_START { \ 16 | if (prefs.show_msg){ \ 17 | printf(prefix __VA_ARGS__); \ 18 | fflush (stdout); \ 19 | } \ 20 | } D_STMT_END 21 | 22 | #define MSG(...) MSG_INNARDS("", __VA_ARGS__) 23 | #define MSG_WARN(...) MSG_INNARDS("** WARNING **: ", __VA_ARGS__) 24 | #define MSG_ERR(...) MSG_INNARDS("** ERROR **: ", __VA_ARGS__) 25 | #define MSG_HTTP(...) MSG_INNARDS("HTTP warning: ", __VA_ARGS__) 26 | 27 | #endif /* __MSG_H__ */ 28 | -------------------------------------------------------------------------------- /src/nav.h: -------------------------------------------------------------------------------- 1 | #ifndef __NAV_H__ 2 | #define __NAV_H__ 3 | 4 | #include "bw.h" 5 | 6 | /* 7 | * useful macros for the navigation stack 8 | */ 9 | #define NAV_UIDX(bw, i) a_Nav_get_uidx(bw, i) 10 | #define NAV_TOP_UIDX(bw) a_Nav_get_top_uidx(bw) 11 | 12 | #ifdef __cplusplus 13 | extern "C" { 14 | #endif /* __cplusplus */ 15 | 16 | void a_Nav_redirection0(BrowserWindow *bw, const DilloUrl *new_url); 17 | void a_Nav_push(BrowserWindow *bw, const DilloUrl *url, 18 | const DilloUrl *requester); 19 | void a_Nav_repush(BrowserWindow *bw); 20 | void a_Nav_back(BrowserWindow *bw); 21 | void a_Nav_forw(BrowserWindow *bw); 22 | void a_Nav_home(BrowserWindow *bw); 23 | void a_Nav_reload(BrowserWindow *bw); 24 | void a_Nav_jump(BrowserWindow *bw, int offset, int new_bw); 25 | void a_Nav_free(BrowserWindow *bw); 26 | void a_Nav_cancel_expect (BrowserWindow *bw); 27 | void a_Nav_cancel_expect_if_eq(BrowserWindow *bw, const DilloUrl *url); 28 | void a_Nav_expect_done(BrowserWindow *bw); 29 | int a_Nav_stack_ptr(BrowserWindow *bw); 30 | int a_Nav_stack_size(BrowserWindow *bw); 31 | int a_Nav_get_uidx(BrowserWindow *bw, int i); 32 | int a_Nav_get_top_uidx(BrowserWindow *bw); 33 | 34 | void a_Nav_save_url(BrowserWindow *bw, 35 | const DilloUrl *url, const char *filename); 36 | int a_Nav_get_buf(const DilloUrl *Url, char **PBuf, int *BufSize); 37 | void a_Nav_unref_buf(const DilloUrl *Url); 38 | void a_Nav_set_vsource_url(const DilloUrl *Url); 39 | 40 | #ifdef __cplusplus 41 | } 42 | #endif /* __cplusplus */ 43 | 44 | #endif /* __NAV_H__ */ 45 | 46 | 47 | -------------------------------------------------------------------------------- /src/nav.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/nav.o -------------------------------------------------------------------------------- /src/paths.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * File: paths.cc 3 | * 4 | * Copyright 2006-2009 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | #include "msg.h" 17 | #include "../dlib/dlib.h" 18 | #include "paths.hh" 19 | 20 | /* 21 | * Local data 22 | */ 23 | 24 | // Dillo works from an unmounted directory (/tmp) 25 | static char* oldWorkingDir = NULL; 26 | 27 | /* 28 | * Changes current working directory to /tmp and creates ~/.dillo 29 | * if not exists. 30 | */ 31 | void Paths::init(void) 32 | { 33 | char *path; 34 | struct stat st; 35 | int rc = 0; 36 | 37 | dFree(oldWorkingDir); 38 | oldWorkingDir = dGetcwd(); 39 | rc = chdir("/tmp"); 40 | if (rc == -1) { 41 | MSG("paths: error changing directory to /tmp: %s\n", 42 | dStrerror(errno)); 43 | } 44 | 45 | path = dStrconcat(dGethomedir(), "/.dillo", NULL); 46 | if (stat(path, &st) == -1) { 47 | if (errno == ENOENT) { 48 | MSG("paths: creating directory %s.\n", path); 49 | if (mkdir(path, 0700) < 0) { 50 | MSG("paths: error creating directory %s: %s\n", 51 | path, dStrerror(errno)); 52 | } 53 | } else { 54 | MSG("Dillo: error reading %s: %s\n", path, dStrerror(errno)); 55 | } 56 | } 57 | 58 | dFree(path); 59 | } 60 | 61 | /* 62 | * Return the initial current working directory in a string. 63 | */ 64 | char *Paths::getOldWorkingDir(void) 65 | { 66 | return oldWorkingDir; 67 | } 68 | 69 | /* 70 | * Free memory 71 | */ 72 | void Paths::free(void) 73 | { 74 | dFree(oldWorkingDir); 75 | } 76 | 77 | /* 78 | * Examines the path for "rcFile" and assign its file pointer to "fp". 79 | */ 80 | FILE *Paths::getPrefsFP(const char *rcFile) 81 | { 82 | FILE *fp; 83 | char *path = dStrconcat(dGethomedir(), "/.dillo/", rcFile, NULL); 84 | 85 | if (!(fp = fopen(path, "r"))) { 86 | MSG("paths: Cannot open file '%s'\n", path); 87 | 88 | char *path2 = dStrconcat(DILLO_SYSCONF, rcFile, NULL); 89 | if (!(fp = fopen(path2, "r"))) { 90 | MSG("paths: Cannot open file '%s'\n",path2); 91 | MSG("paths: Using internal defaults...\n"); 92 | } else { 93 | MSG("paths: Using %s\n", path2); 94 | } 95 | dFree(path2); 96 | } 97 | 98 | dFree(path); 99 | return fp; 100 | } 101 | 102 | -------------------------------------------------------------------------------- /src/paths.hh: -------------------------------------------------------------------------------- 1 | /* 2 | * File: paths.hh 3 | * 4 | * Copyright 2006-2009 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __PATHS_HH__ 13 | #define __PATHS_HH__ 14 | 15 | #define PATHS_RC_PREFS "dillorc" 16 | #define PATHS_RC_KEYS "keysrc" 17 | 18 | class Paths { 19 | public: 20 | static void init(void); 21 | static void free(void); 22 | static char *getOldWorkingDir(void); 23 | static FILE *getPrefsFP(const char *rcFile); 24 | }; 25 | 26 | #endif /* __PATHS_HH__ */ 27 | -------------------------------------------------------------------------------- /src/paths.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/paths.o -------------------------------------------------------------------------------- /src/plain.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/plain.o -------------------------------------------------------------------------------- /src/png.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/png.o -------------------------------------------------------------------------------- /src/prefs.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/prefs.o -------------------------------------------------------------------------------- /src/prefsparser.hh: -------------------------------------------------------------------------------- 1 | /* 2 | * Preferences parser 3 | * 4 | * Copyright (C) 2006-2009 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | #ifndef __PREFS_HH__ 13 | #define __PREFS_HH__ 14 | 15 | #ifdef __cplusplus 16 | class PrefsParser { 17 | public: 18 | static int parseOption(char *name, char *value); 19 | static int parseLine(char *line, char *name, char *value); 20 | static void parse(FILE *fp); 21 | }; 22 | #endif /* __cplusplus */ 23 | 24 | #endif /* __PREFS_HH__ */ 25 | -------------------------------------------------------------------------------- /src/prefsparser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/prefsparser.o -------------------------------------------------------------------------------- /src/srch: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Find a token within source files ( *.[ch] ) 4 | # Enjoy! 5 | # Jorge.- 6 | 7 | if [ $# = 1 ]; then 8 | FLAGS="-H" 9 | elif [ $# = 2 ]; then 10 | FLAGS="-H $1" 11 | shift 1 12 | else 13 | echo "Usage:" 14 | echo " srch [-options] " 15 | exit 0 16 | fi 17 | 18 | # find "./" -name "*.[ch]" -print -exec grep $1 {} \; 19 | egrep $FLAGS "$1" *.[ch][ch] 20 | egrep $FLAGS "$1" *.[ch] 21 | egrep $FLAGS "$1" IO/*.[ch][ch]* 22 | egrep $FLAGS "$1" IO/*.[ch] 23 | egrep $FLAGS "$1" ../dpi/*.[ch] 24 | egrep $FLAGS "$1" ../dpi/*.[ch][ch] 25 | egrep $FLAGS "$1" ../dpid/*.[ch] 26 | egrep $FLAGS "$1" ../dpip/*.[ch] 27 | egrep $FLAGS "$1" ../dlib/*.[ch] 28 | 29 | #egrep $FLAGS "$1" dw/*[ch] 30 | #egrep $FLAGS "$1" lout/*[ch] 31 | egrep $FLAGS "$1" ../dw/*[ch] 32 | egrep $FLAGS "$1" ../lout/*[ch] 33 | 34 | -------------------------------------------------------------------------------- /src/styleengine.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/styleengine.o -------------------------------------------------------------------------------- /src/table.hh: -------------------------------------------------------------------------------- 1 | #ifndef __TABLE_HH__ 2 | #define __TABLE_HH__ 3 | 4 | /* 5 | * Classes 6 | */ 7 | 8 | class DilloHtml; 9 | 10 | /* 11 | * Table parsing functions 12 | */ 13 | 14 | void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize); 15 | void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize); 16 | void Html_tag_open_td(DilloHtml *html, const char *tag, int tagsize); 17 | void Html_tag_open_th(DilloHtml *html, const char *tag, int tagsize); 18 | 19 | #endif /* __TABLE_HH__ */ 20 | -------------------------------------------------------------------------------- /src/table.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/table.o -------------------------------------------------------------------------------- /src/timeout.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * File: timeout.cc 3 | * 4 | * Copyright (C) 2005-2007 Jorge Arellano Cid 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | */ 11 | 12 | // Simple ADT for timeout functions 13 | 14 | #include 15 | #include "timeout.hh" 16 | 17 | // C++ functions with C linkage ---------------------------------------------- 18 | 19 | /* 20 | * Hook a one-time timeout function 'cb' after 't' seconds 21 | * with 'cbdata" as its data. 22 | */ 23 | void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata) 24 | { 25 | Fl::add_timeout(t, cb, cbdata); 26 | } 27 | 28 | /* 29 | * To be called from inside the 'cb' function when it wants to keep running 30 | */ 31 | void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata) 32 | { 33 | Fl::add_timeout(t, cb, cbdata); 34 | } 35 | 36 | /* 37 | * Stop running a timeout function 38 | */ 39 | void a_Timeout_remove() 40 | { 41 | /* in FLTK, timeouts run one time by default */ 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/timeout.hh: -------------------------------------------------------------------------------- 1 | #ifndef __TIMEOUT_HH__ 2 | #define __TIMEOUT_HH__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | typedef void (*TimeoutCb_t)(void *data); 9 | 10 | void a_Timeout_add(float t, TimeoutCb_t cb, void *cbdata); 11 | void a_Timeout_repeat(float t, TimeoutCb_t cb, void *cbdata); 12 | void a_Timeout_remove(); 13 | 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif /* __cplusplus */ 18 | 19 | #endif /* __TIMEOUT_HH__ */ 20 | 21 | -------------------------------------------------------------------------------- /src/timeout.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/timeout.o -------------------------------------------------------------------------------- /src/ui.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/ui.o -------------------------------------------------------------------------------- /src/uicmd.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/uicmd.o -------------------------------------------------------------------------------- /src/url.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/url.o -------------------------------------------------------------------------------- /src/utf8.hh: -------------------------------------------------------------------------------- 1 | #ifndef __UTF8_HH__ 2 | #define __UTF8_HH__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif /* __cplusplus */ 7 | 8 | 9 | #include "d_size.h" 10 | 11 | /* 12 | * Unicode replacement character U+FFFD 13 | * "used to replace an incoming character whose value is unknown or otherwise 14 | * unrepresentable in Unicode" 15 | */ 16 | static const char utf8_replacement_char[] = "\xEF\xBF\xBD"; 17 | 18 | /* Unicode zero width space U+200B */ 19 | static const char utf8_zero_width_space[] = "\xE2\x80\x8B"; 20 | 21 | uint_t a_Utf8_end_of_char(const char *str, uint_t i); 22 | uint_t a_Utf8_decode(const char*, const char* end, int* len); 23 | int a_Utf8_encode(unsigned int ucs, char *buf); 24 | int a_Utf8_test(const char* src, unsigned int srclen); 25 | bool_t a_Utf8_ideographic(const char *s, const char *end, int *len); 26 | bool_t a_Utf8_combining_char(int unicode); 27 | int a_Utf8_char_count(const char *str, int len); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif /* __cplusplus */ 32 | 33 | #endif /* __UTF8_HH__ */ 34 | 35 | -------------------------------------------------------------------------------- /src/utf8.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/utf8.o -------------------------------------------------------------------------------- /src/web.hh: -------------------------------------------------------------------------------- 1 | #ifndef __WEB_H__ 2 | #define __WEB_H__ 3 | 4 | #include /* for FILE */ 5 | #include "bw.h" /* for BrowserWindow */ 6 | #include "cache.h" /* for CA_Callback_t */ 7 | #include "image.hh" /* for DilloImage */ 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif /* __cplusplus */ 12 | 13 | /* 14 | * Flag defines 15 | */ 16 | #define WEB_RootUrl 1 17 | #define WEB_Image 2 18 | #define WEB_Download 4 /* Half implemented... */ 19 | 20 | 21 | typedef struct _DilloWeb DilloWeb; 22 | 23 | struct _DilloWeb { 24 | DilloUrl *url; /* Requested URL */ 25 | DilloUrl *requester; /* URL that caused this request, or 26 | * NULL if user-initiated. */ 27 | BrowserWindow *bw; /* The requesting browser window [reference] */ 28 | int flags; /* Additional info */ 29 | 30 | DilloImage *Image; /* For image urls [reference] */ 31 | 32 | int32_t bgColor; /* for image backgrounds */ 33 | char *filename; /* Variables for Local saving */ 34 | FILE *stream; 35 | int SavedBytes; 36 | }; 37 | 38 | void a_Web_init(void); 39 | DilloWeb* a_Web_new (BrowserWindow *bw, const DilloUrl* url, 40 | const DilloUrl *requester); 41 | int a_Web_valid(DilloWeb *web); 42 | void a_Web_free (DilloWeb*); 43 | int a_Web_dispatch_by_type (const char *Type, DilloWeb *web, 44 | CA_Callback_t *Call, void **Data); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif /* __cplusplus */ 49 | #endif /* __WEB_H__ */ 50 | -------------------------------------------------------------------------------- /src/web.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/web.o -------------------------------------------------------------------------------- /src/xembed.hh: -------------------------------------------------------------------------------- 1 | #ifndef __XEMBED_HH__ 2 | #define __XEMBED_HH__ 3 | 4 | #include 5 | 6 | #include "d_size.h" 7 | 8 | class Xembed : public Fl_Window { 9 | private: 10 | uint32_t xid; 11 | void createInternal(uint32_t parent); 12 | void setXembedInfo(unsigned long flags); 13 | void sendXembedEvent(uint32_t message); 14 | 15 | public: 16 | Xembed(uint32_t xid, int _w, int _h) : Fl_Window(_w, _h) { 17 | this->xid = xid; 18 | }; 19 | void show(); 20 | int handle(int event); 21 | }; 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /src/xembed.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/src/xembed.o -------------------------------------------------------------------------------- /stamp-h1: -------------------------------------------------------------------------------- 1 | timestamp for config.h 2 | -------------------------------------------------------------------------------- /test/cookies: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/cookies -------------------------------------------------------------------------------- /test/cookies.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/cookies.o -------------------------------------------------------------------------------- /test/dw-anchors-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-anchors-test -------------------------------------------------------------------------------- /test/dw-border-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-border-test -------------------------------------------------------------------------------- /test/dw-example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-example -------------------------------------------------------------------------------- /test/dw-find-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-find-test -------------------------------------------------------------------------------- /test/dw-images-scaled: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-images-scaled -------------------------------------------------------------------------------- /test/dw-images-scaled2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-images-scaled2 -------------------------------------------------------------------------------- /test/dw-images-simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-images-simple -------------------------------------------------------------------------------- /test/dw-imgbuf-mem-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-imgbuf-mem-test -------------------------------------------------------------------------------- /test/dw-links: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-links -------------------------------------------------------------------------------- /test/dw-links2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-links2 -------------------------------------------------------------------------------- /test/dw-lists: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-lists -------------------------------------------------------------------------------- /test/dw-resource-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-resource-test -------------------------------------------------------------------------------- /test/dw-table: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-table -------------------------------------------------------------------------------- /test/dw-table-aligned: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-table-aligned -------------------------------------------------------------------------------- /test/dw-ui-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw-ui-test -------------------------------------------------------------------------------- /test/dw_anchors_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_anchors_test.o -------------------------------------------------------------------------------- /test/dw_border_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_border_test.o -------------------------------------------------------------------------------- /test/dw_example.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_example.o -------------------------------------------------------------------------------- /test/dw_find_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_find_test.o -------------------------------------------------------------------------------- /test/dw_images_scaled.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_images_scaled.o -------------------------------------------------------------------------------- /test/dw_images_scaled2.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_images_scaled2.o -------------------------------------------------------------------------------- /test/dw_images_simple.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_images_simple.o -------------------------------------------------------------------------------- /test/dw_imgbuf_mem_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_imgbuf_mem_test.o -------------------------------------------------------------------------------- /test/dw_links.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_links.o -------------------------------------------------------------------------------- /test/dw_links2.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_links2.o -------------------------------------------------------------------------------- /test/dw_lists.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_lists.o -------------------------------------------------------------------------------- /test/dw_resource_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_resource_test.o -------------------------------------------------------------------------------- /test/dw_table.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_table.o -------------------------------------------------------------------------------- /test/dw_table_aligned.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_table_aligned.o -------------------------------------------------------------------------------- /test/dw_ui_test.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/dw_ui_test.o -------------------------------------------------------------------------------- /test/fltk-browser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/fltk-browser -------------------------------------------------------------------------------- /test/fltk_browser.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | int main (int argc, char *argv[]) 27 | { 28 | Fl_Window *window = new Fl_Window (300, 300, "FLTK Browser"); 29 | window->box(FL_NO_BOX); 30 | window->begin (); 31 | Fl_Multi_Browser *browser = new Fl_Multi_Browser (0, 0, 300, 300); 32 | browser->begin (); 33 | 34 | for (int i = 0; i < 10; i++) { 35 | browser->add("first"); 36 | browser->add("second"); 37 | browser->add("third"); 38 | } 39 | 40 | window->resizable(browser); 41 | window->show(); 42 | return Fl::run(); 43 | } 44 | -------------------------------------------------------------------------------- /test/fltk_browser.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/fltk_browser.o -------------------------------------------------------------------------------- /test/form.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/form.o -------------------------------------------------------------------------------- /test/shapes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/shapes -------------------------------------------------------------------------------- /test/shapes.cc: -------------------------------------------------------------------------------- 1 | /* 2 | * Dillo Widget 3 | * 4 | * Copyright 2005-2007 Sebastian Geerken 5 | * 6 | * This program is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * This program is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program. If not, see . 18 | */ 19 | 20 | 21 | 22 | #include "../dw/core.hh" 23 | 24 | using namespace dw::core; 25 | using namespace lout::misc; 26 | 27 | int main() 28 | { 29 | Polygon poly; 30 | poly.addPoint (50, 10); 31 | poly.addPoint (90, 90); 32 | poly.addPoint (10, 90); 33 | 34 | printf("first test\n"); 35 | assert (poly.isPointWithin (50, 50)); 36 | printf("second test\n"); 37 | assert (!poly.isPointWithin (10, 10)); 38 | printf("third test\n"); 39 | assert (!poly.isPointWithin (90, 50)); 40 | } 41 | -------------------------------------------------------------------------------- /test/shapes.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fredollinger/dillo/7875b911e55c49971902d58da2f2418474b1332b/test/shapes.o --------------------------------------------------------------------------------